query-78e412070b37bfbff63ed1b5ce2e58b1
Currencies as unitsI have this query listing companies by its revenue:
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 ?item ?itemLabel ?revenue ?hqLabel
WHERE
{
?item wdt:P31 wd:Q4830453 .
?item wdt:P159 ?hq .
?item wdt:P2139 ?revenue .
SERVICE wikibase:label { bd:serviceParam wikibase:language "cs, en" }
}
ORDER BY DESC(?revenue)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?hq")
v2("?item"):::projected
v1("?revenue"):::projected
c6(["bd:serviceParam"]):::iri
c8(["cs, en"]):::literal
c2(["wd:Q4830453"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P159"--> v3
v2 --"wdt:P2139"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end