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