query-1107967d64f24b1fbc71315460de3cde
Propertiesdifferent from (P1889)instance of (P31)educated at (P69)date of birth (P569)date of death (P570)criterion used (P1013)
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?school ?schoolLabel ?item ?itemLabel ?item1 ?item1Label ?dob ?dod
{ ?item wdt:P1889 ?item1 ; wdt:P31 wd:Q5 ; p:P1889/pq:P1013 wd:Q20978290 ; wdt:P69 ?school ; wdt:P569 ?dob ; wdt:P570 ?dod .
?item1 wdt:P1889 ?item; wdt:P31 wd:Q5 ; p:P1889/pq:P1013 wd:Q20978290 ; wdt:P69 ?school ; wdt:P569 ?dob ; wdt:P570 ?dod .
FILTER (?item != ?item1)
FILTER NOT EXISTS { ?item wdt:P31 wd:Q159979 }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?dob)
LIMIT 4000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?dob"):::projected
v5("?dod"):::projected
v2("?item"):::projected
v3("?item1"):::projected
v4("?school"):::projected
a1((" "))
a2((" "))
c2(["wd:Q159979"]):::iri
c7(["wd:Q20978290"]):::iri
c12(["bd:serviceParam"]):::iri
c4(["wd:Q5"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:direct/P31"--> e0c2
e0v1("?item"):::projected
e0c2(["wd:Q159979"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> c2
v2 --"p:direct/P31"--> c2
f1[["?item != ?item1"]]
f1 --> v2
f1 --> v3
v2 --"p:direct/P1889"--> v3
v2 --"p:direct/P31"--> c4
v2 --"p:P1889"--> a1
a1 --"p:qualifier/P1013"--> c7
v2 --"p:direct/P69"--> v4
v2 --"p:direct/P569"--> v1
v2 --"p:direct/P570"--> v5
v3 --"p:direct/P1889"--> v2
v3 --"p:direct/P31"--> c4
v3 --"p:P1889"--> a2
a2 --"p:qualifier/P1013"--> c7
v3 --"p:direct/P69"--> v4
v3 --"p:direct/P569"--> v1
v3 --"p:direct/P570"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end