query-a3b675f4d9e9d8c3494fa21aff751a8e
title:Motion counts by subject SELECT (COUNT(?item) AS ?count) ?theme ?themeLabel WHERE { ?item wdt:P31/wdt:P279 wd:Q452237; wdt:P1001 wd:Q34; wdt:P921 ?theme
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?theme ?themeLabel ORDER BY DESC(?count)
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#>
#title:Motion counts by subject
SELECT (COUNT(?item) AS ?count) ?theme ?themeLabel WHERE {
?item wdt:P31/wdt:P279 wd:Q452237;
wdt:P1001 wd:Q34;
wdt:P921 ?theme
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?theme ?themeLabel
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("?theme"):::projected
a1((" "))
c3(["wd:Q452237"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["wd:Q34"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P1001"--> c5
v2 --"wdt:P921"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v4