query-709070951e8939875ee5341de5580e96
(but don't try it, because it doesn't work) We tried using a values list to see if it was our complicated subquery timing things out, but it wasn't. Originally, we had not included schoolLabel. Keiko included it, and that works!
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 ?person ?personLabel ?school ?schoolLabel WHERE {
?person wdt:P69 ?school.
{
SELECT ?school WHERE {
VALUES ?school {
wd:Q599316
wd:Q1339626
wd:Q7753740
wd:Q6850786
}
}
LIMIT 100
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?person"):::projected
v3("?school"):::projected
c3(["bd:serviceParam"]):::iri
c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P69"--> v3
bind0[/VALUES ?school/]
bind0-->v3
bind00(["wd:Q599316"])
bind00 --> bind0
bind01(["wd:Q1339626"])
bind01 --> bind0
bind02(["wd:Q7753740"])
bind02 --> bind0
bind03(["wd:Q6850786"])
bind03 --> bind0
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end