query-2d3c81f823b1e63b788beefc0acc300a
Propertiesinstance of (P31)Kickstarter project ID (P8019)total revenue (P2139)
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 pqv: <http://www.wikidata.org/prop/qualifier/value/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:Money, per currency, raised by video games through Kickstarter (crowdfunding)
#defaultView:BarChart
SELECT ?currencyLabel (SUM(?money) AS ?totalMoney) (COUNT(?game) AS ?games) WHERE {
?game wdt:P31 wd:Q7889;
p:P8019 ?statement. # Get the Kickstarter statement
?statement pq:P2139 ?money. # Get the amount of money
?statement pqv:P2139 ?pqv.
?pqv wikibase:quantityUnit ?currency. # Get the currency
# FILTER (?currency != wd:Q39099) # Uncomment this to filter out the renminbi
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?currencyLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?currency")
v1("?game"):::projected
v7("?games")
v3("?money"):::projected
v4("?pqv")
v2("?statement")
v6("?totalMoney")
c8(["bd:serviceParam"]):::iri
c2(["wd:Q7889"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P31"--> c2
v1 --"p:P8019"--> v2
v2 --"p:qualifier/P2139"--> v3
v2 --"p:qualifier/value/P2139"--> v4
v4 --"wikibase:quantityUnit"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind2[/"sum(?money)"/]
v3 --o bind2
bind2 --as--o v6
bind3[/"count(?game)"/]
v1 --o bind3
bind3 --as--o v7