query-a31559b3a33c8c9fd6fcc8ce45fd7f5c

rq turtle/ttl

Two Leidse Hoogleraren IDs in one Wikidata item SELECT ?item ?itemLabel (COUNT(*) AS ?count) WHERE { ?item p:P2861 [] SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?item ?itemLabel HAVING(?count > 1) ORDER BY DESC(?count)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Two Leidse Hoogleraren IDs in one Wikidata item
SELECT ?item ?itemLabel (COUNT(*) AS ?count)
WHERE { ?item p:P2861 [] 
        SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
      } 
GROUP BY ?item ?itemLabel HAVING(?count > 1) ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?count") v2("?item"):::projected a1((" ")) c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?count > '1^^xsd:integer'"]] f0 --> v3 v2 --"p:P2861"--> a1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end bind2[/"count(*)"/] bind2 --as--o v3