query-ffafa02deca37c357198c250964e64fe
title:P1114 statements with units SELECT ?item ?itemLabel ?st ?val ?unit ?unitLabel WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?item p:P1114 ?st. ?st psv:P1114 ?v. ?v wikibase:quantityAmount ?val. ?v wikibase:quantityUnit ?unit. FILTER( ?unit != wd:Q199 ) } ORDER BY ?item LIMIT 1000
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:P1114 statements with units
SELECT ?item ?itemLabel ?st ?val ?unit ?unitLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?item p:P1114 ?st.
?st psv:P1114 ?v.
?v wikibase:quantityAmount ?val.
?v wikibase:quantityUnit ?unit.
FILTER( ?unit != wd:Q199 )
}
ORDER BY ?item
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?st"):::projected
v2("?unit"):::projected
v4("?v")
v5("?val"):::projected
c3(["bd:serviceParam"]):::iri
c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?unit != 'wd:Q199'"]]
f0 --> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end
v1 --"p:P1114"--> v3
v3 --"p:statement/value/P1114"--> v4
v4 --"wikibase:quantityAmount"--> v5
v4 --"wikibase:quantityUnit"--> v2