query-fe90987c20fd379e9b712dded0684f9d
Propertiesinstance of (P31)subclass of (P279)has use (P366)
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?use ?useLabel (COUNT (?item) as ?count)
WHERE
{
?item wdt:P31/wdt:P279* wd:Q7397.
?item wdt:P366 ?use.
MINUS {?item wdt:P31/wdt:P279* wd:Q7889.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?use ?useLabel
ORDER BY DESC (?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v2("?item"):::projected
v3("?use"):::projected
a1((" "))
a2((" "))
c3(["wd:Q7397"]):::iri
c7(["bd:serviceParam"]):::iri
c5(["wd:Q7889"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P366"--> v3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind2[/"count(?item)"/]
v2 --o bind2
bind2 --as--o v4