query-31db6703fe66b200533b0618f5805092
People with more than one date of birth People with more than one date of death TODO
Use at
- https://query.wikidata.org/sparql
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
- https://www.wikidata.org/wiki/User:Jean-Fr%C3%A9d%C3%A9ric/Wikidata_and_the_truth
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2019/03
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