query-3fbf366066af2638ef2bcc5760973daf
Propertiesinstance of (P31)subclass of (P279)grants (P5460)academic major (P812)
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?degreeLabel ?majorLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
wd:Q1202897 p:P5460 ?statement .
?statement ps:P5460 ?degree .
?statement pq:P812 ?major .
?degree wdt:P31*/wdt:P279* wd:Q163727 .
}
ORDER BY ?degreeLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?degree")
v1("?degreeLabel"):::projected
v4("?major")
v2("?statement")
a1((" "))
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c11(["wd:Q163727"]):::iri
c5(["wd:Q1202897"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
c5 --"p:P5460"--> v2
v2 --"p:statement/P5460"--> v3
v2 --"p:qualifier/P812"--> v4
v3 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c11