query-bb00a377a27b70630975bf3be7ea1f67

rq turtle/ttl

TODO

Use at

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 ?fabricante ?fabricanteLabel (SUM(?produzido) AS ?totalProduzido)
WHERE
{
  ?modelo wdt:P31?/wdt:P279* wd:Q12796;
         wdt:P176 ?fabricante;
         wdt:P1092 ?produzido.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
GROUP BY ?fabricante ?fabricanteLabel
ORDER BY DESC(?produzido)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?fabricante"):::projected v2("?modelo") v1("?produzido"):::projected v4("?totalProduzido") 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(?produzido)"/] v1 --o bind1 bind1 --as--o v4