query-a411afb3643dedabc21fde4719b38f88
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 ?fabricant ?fabricantLabel (SUM(?quantitéProduite) AS ?totalProduit)
WHERE
{
?modèle wdt:P31?/wdt:P279* wd:Q12796;
wdt:P176 ?fabricant;
wdt:P1092 ?quantitéProduite.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
GROUP BY ?fabricant ?fabricantLabel
ORDER BY DESC(?quantitéProduite)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?fabricant"):::projected
v2("?modèle")
v1("?quantitéProduite"):::projected
v4("?totalProduit")
a1((" "))
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;"]):::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"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind1[/"sum(?quantitéProduite)"/]
v1 --o bind1
bind1 --as--o v4