query-76c65711433c5a1f894eef1af6282bc3
TagishsimonJetam2
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#>
#defaultView:Tree
select ?person ?personLabel ?university ?universityLabel ?country ?countryLabel
{
{
select ?person ?university ?country {
{
select distinct ?person {
?person wdt:P69 ?universityCanada, ?universityBelgium.
?universityCanada wdt:P31/wdt:P279* wd:Q3918 ;
wdt:P17 wd:Q16 .
?universityBelgium wdt:P31/wdt:P279* wd:Q3918
; wdt:P17 wd:Q31 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
}
?person wdt:P69 ?university . ?university wdt:P17 ?country .
}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?country"):::projected
v1("?person"):::projected
v4("?university"):::projected
v3("?universityBelgium")
v2("?universityCanada")
a1((" "))
a2((" "))
c6(["wd:Q16"]):::iri
c9(["bd:serviceParam"]):::iri
c7(["wd:Q31"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wd:Q3918"]):::iri
v1 --"wdt:P69"--> v2
v1 --"wdt:P69"--> v3
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
v2 --"wdt:P17"--> c6
v3 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c4
v3 --"wdt:P17"--> c7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
v1 --"wdt:P69"--> v4
v4 --"wdt:P17"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end