query-7be4860e6743a2d51c0b4aac588eb560
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?value ?unitLabel
WHERE
{
values ?item {wd:Q84}
?item p:P2046 ?statement.
?statement ps:P2046 ?value.
?statement psv:P2046 ?statement2.
?statement2 wikibase:quantityUnit ?unit.
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
v2("?statement")
v4("?statement2")
v5("?unit")
v3("?value"):::projected
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q84"])
bind00 --> bind0
v1 --"p:P2046"--> v2
v2 --"p:statement/P2046"--> v3
v2 --"p:statement/value/P2046"--> v4
v4 --"wikibase:quantityUnit"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end