query-ed61cabf2fae449166c7c1c6ff4c7635
Year-qualifier for "students count" (P2196) values
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?sl
{
?item wdt:P2196 ?value .
FILTER NOT EXISTS { ?item p:P2196 / pq:P585 [] }
?item wikibase:sitelinks ?sl .
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;
v1("?item"):::projected
v3("?sl"):::projected
v2("?value")
a2((" "))
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:P2196"--> e0a1
e0a1 --"p:qualifier/P585"--> e0a2
e0v1("?item"):::projected
e0a2((" ")):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> a2
v1 --"p:P2196"--> a1
a1 --"p:qualifier/P585"--> a2
v1 --"p:direct/P2196"--> v2
v1 --"wikibase:sitelinks"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end