query-80df6c857897f09a4040bcac91747d02
Number of awards received by movies made in USA
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 ?film ?filmLabel
(COUNT(?award) AS ?awardsWon)
WHERE {
#country of origin
?film wdt:P495 wd:Q30.
#instanceof film
?film wdt:P31 wd:Q11424.
#award recieved
?film wdt:P166 ?award.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?film ?filmLabel ?date
ORDER BY DESC(?awardsWon)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?award"):::projected
v4("?awardsWon")
v2("?film"):::projected
c7(["bd:serviceParam"]):::iri
c2(["wd:Q30"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wd:Q11424"]):::iri
v2 --"wdt:P495"--> c2
v2 --"wdt:P31"--> c4
v2 --"wdt:P166"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind1[/"count(?award)"/]
v3 --o bind1
bind1 --as--o v4