query-3d99413a56d92ef8f96880d28f047520
TODO
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 ?manufacturer ?manufacturerLabel (SUM(?produced) AS ?produced)
WHERE
{
?model wdt:P31?/wdt:P279* wd:Q12796;
wdt:P176 ?manufacturer;
wdt:P1092 ?produced.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?manufacturer ?manufacturerLabel
ORDER BY DESC(?produced)
Query found at
- https://www.wikidata.org/wiki/User:D1gggg/Wikidata_model_and_SPARQL
- https://www.wikidata.org/wiki/User:TweetsFactsAndQueries/A_Guide_To_WDQS/Staging
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?manufacturer"):::projected
v2("?model")
v4("?produced"):::projected
a1((" "))
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
c3(["wd:Q12796"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> a1
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
a1 --"wdt:P279"--> c3
v2 --"wdt:P176"--> v3
v2 --"wdt:P1092"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind1[/"sum(?produced)"/]
v4 --o bind1
bind1 --as--o v4