query-be3277b373a9656cf508cf5f6a8a268b
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 ?produttore ?produttoreLabel (SUM(?prodotti) AS ?totaleProdotti)
WHERE
{
?modello wdt:P31?/wdt:P279* wd:Q12796;
wdt:P176 ?produttore;
wdt:P1092 ?prodotti.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
GROUP BY ?produttore ?produttoreLabel
ORDER BY DESC(?prodotti)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?modello")
v1("?prodotti"):::projected
v3("?produttore"):::projected
v4("?totaleProdotti")
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(?prodotti)"/]
v1 --o bind1
bind1 --as--o v4