query-0bd4e2762c8ccbafb006b58388ea211d
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 DISTINCT ?item ?itemLabel ?subsidiary ?subsidiaryLabel ?revenue WHERE {
?item wdt:P17 wd:Q30.
?item wdt:P31/wdt:P279* wd:Q4830453.
?item wdt:P355 ?subsidiary.
OPTIONAL {?subsidiary wdt:P2139 ?revenue.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?revenue"):::projected
v2("?subsidiary"):::projected
a1((" "))
c9(["bd:serviceParam"]):::iri
c5(["wd:Q4830453"]):::iri
c2(["wd:Q30"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P17"--> c2
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
v1 --"wdt:P355"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P2139".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end