query-fd5492941fc3456fba3414f18cd841dd

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?identifier ?identifierLabel (COUNT(DISTINCT ?s) AS ?statements) (COUNT(DISTINCT ?item) AS ?items) WHERE {
   {
  SELECT DISTINCT ?item WHERE {
    ?item p:P106/ps:P106/wdt:P279* wd:Q26270618 .
  }
}.
  ?item ?p ?s .
  ?identifier wikibase:claim ?p; wikibase:propertyType wikibase:ExternalId .
  SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
} GROUP BY ?identifier ?identifierLabel ORDER BY DESC(?statements) DESC(?items)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?identifier"):::projected v3("?item"):::projected v7("?items") v4("?p") v5("?s"):::projected v7("?statements") a1((" ")) a2((" ")) c9(["bd:serviceParam"]):::iri c4(["wd:Q26270618"]):::iri c11(["en"]):::literal c7(["wikibase:ExternalId"]):::iri v3 --"p:P106"--> a1 a1 --"p:statement/P106"--> a2 a2 --"p:direct/P279"--> c4 v3 -->v4--> v5 v6 --"wikibase:claim"--> v4 v6 --"wikibase:propertyType"--> c7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end bind2[/"count(?s)"/] v5 --o bind2 bind2 --as--o v7 bind3[/"count(?item)"/] v3 --o bind3 bind3 --as--o v7