query-a411117cd0a42a9afd98fe29364a018d
mw:Wikibase/Indexing/RDF Dump Format
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
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 ?itemLabel ?students ?year
WHERE
{
?item wdt:P6782 "024z2rq82" .
?item p:P2196 ?stm .
?stm ps:P2196 ?students .
OPTIONAL { ?stm pq:P585 ?year . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?year
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item")
v3("?stm")
v4("?students"):::projected
v1("?year"):::projected
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
c2(["024z2rq82"]):::literal
v2 --"p:direct/P6782"--> c2
v2 --"p:P2196"--> v3
v3 --"p:statement/P2196"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P585".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end