Christopher added a comment. Quick edit: I ran this query successfully in 13min, 11sec, 476m returning 312,068 results returning the arity of GND (https://phabricator.wikimedia.org/P227) property statements. So it is possible, but really, really slow.
prefix wikibase: <http://wikiba.se/ontology#> prefix wdt: <http://www.wikidata.org/prop/direct/> prefix prov: <http://www.w3.org/ns/prov#> prefix wd: <http://www.wikidata.org/entity/> prefix p: <http://www.wikidata.org/prop/> SELECT ?wds (count(distinct(?o)) AS ?ocount) WHERE { ?s p:P227 ?wds . ?wds a wikibase:Statement OPTIONAL { ?wds prov:wasDerivedFrom ?o } } GROUP BY ?wds TASK DETAIL https://phabricator.wikimedia.org/T120166 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Christopher Cc: Jheald, daniel, Lydia_Pintscher, Aklapper, Christopher, StudiesWorld, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Deskana, Manybubbles, JeroenDeDauw, Mbch331 _______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs