query-31db6703fe66b200533b0618f5805092

rq turtle/ttl

People with more than one date of birth People with more than one date of death 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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel (COUNT(?dob) AS ?cnt) WHERE {
   {
  SELECT ?item WHERE {
    ?item wdt:P569 ?dob .
  } GROUP BY ?item HAVING(COUNT(?dob) > 1)
}.
  ?item wdt:P31 wd:Q5 .
  ?item wdt:P569 ?dob .
  SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
} GROUP BY ?item ?itemLabel ORDER BY DESC(?cnt)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?_anon_42b5416610844a34809f33a099ae9de178848") v5("?cnt") v3("?dob"):::projected v2("?item"):::projected a1((" ")) c6(["bd:serviceParam"]):::iri c4(["wd:Q5"]):::iri c8(["en"]):::literal f0[[" > '1^^xsd:integer'"]] f0 --> a1 v2 --"wdt:P569"--> v3 bind2[/"count(?dob)"/] v3 --o bind2 bind2 --as--o v4 v2 --"wdt:P31"--> c4 v2 --"wdt:P569"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind4[/"count(?dob)"/] v3 --o bind4 bind4 --as--o v5