query-b30e802a78b73f2a9b139a0080710f04
Propertiesgrants (P5460)academic major (P812)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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 {
wd:Q426045 p:P5460 ?statement . # University of Malta
?statement ps:P5460 ?degree .
OPTIONAL {
?statement pq:P812 ?major . FILTER bound(?major)
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?degreeLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?degree")
v1("?degreeLabel"):::projected
v2("?major")
v3("?statement")
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c1(["wd:Q426045"]):::iri
c1 --"p:P5460"--> v3
v3 --"p:statement/P5460"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P812".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end