SELECT ?s, bif:GeometryType(?o), bif:ST_NumGeometries(?o) FROM WHERE { ?s ?p ?o } ORDER BY ASC(str(?s))