query-3bea6ea7acccfe3f18cfb0abd7c93052
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?sport (COUNT(DISTINCT ?item) AS ?number) WHERE {
?item wdt:P641 ?sport .
MINUS { ?sport (wdt:P279)* wd:Q349 . }
MINUS { ?sport (wdt:P279)* wd:Q20037067 . }
} GROUP BY ?sport ORDER BY DESC(?number)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v4("?number")
v3("?sport"):::projected
c4(["wd:Q20037067"]):::iri
c3(["wd:Q349"]):::iri
v2 --"wdt:P641"--> v3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P279"--> c3
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P279"--> c4
end
bind3[/"count(?item)"/]
v2 --o bind3
bind3 --as--o v4