query-afd4153a1674574171e1427fabffbba2
Unit replacement. The values itself are correct. These items are affected: (Q11573)metre instead of (Q174728)centimetre Sorry, I made a mistake in import using incorrect units -
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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?height WHERE {
?item wdt:P31/wdt:P279* wd:Q12280;
p:P2048 ?statement .
{
?statement psv:P2048 [
wikibase:quantityAmount ?height; wikibase:quantityUnit wd:Q174728
] .
} .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?height"):::projected
v1("?item"):::projected
v2("?statement")
a1((" "))
a2((" "))
c10(["bd:serviceParam"]):::iri
c7(["wd:Q174728"]):::iri
c3(["wd:Q12280"]):::iri
c12(["en"]):::literal
v1 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
v1 --"p:P2048"--> v2
a2 --"wikibase:quantityAmount"--> v3
a2 --"wikibase:quantityUnit"--> c7
v2 --"p:statement/value/P2048"--> a2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end