query-eab065150a81244fd0d855ac1d741e3d
Propertiesinstance of (P31)subclass of (P279)language of work or name (P407)collection (P195)end time (P582)
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 ?lang ?langLabel ?langDescription (COUNT(DISTINCT ?q) AS ?mcount)
WHERE {
?q (wdt:P31/wdt:P279*) wd:Q87167.
?q p:P195 ?s. ?s ps:P195 ?collection . MINUS {?s pq:P582 []}.
MINUS { ?s ps:P195 wd:Q1322278 }
?q wdt:P407 ?lang
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en"
}
}
GROUP BY ?lang ?langLabel ?langDescription
ORDER BY UCASE(?langLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?collection")
v5("?lang"):::projected
v1("?langLabel"):::projected
v6("?mcount")
v2("?q"):::projected
v3("?s")
a2((" "))
a1((" "))
c7(["wd:Q1322278"]):::iri
c3(["wd:Q87167"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["en"]):::literal
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
v2 --"p:P195"--> v3
v3 --"p:statement/P195"--> v4
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v3 --"p:qualifier/P582"--> a2
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v3 --"p:statement/P195"--> c7
end
v2 --"p:direct/P407"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end
bind3[/"count(?q)"/]
v2 --o bind3
bind3 --as--o v6