query-0cd988477e34b4f8a5d9b7717eea0ba8
basketball players (P106: Q3665646) SELECT ?item ?itemLabel ?heightval ?image WHERE { ?item wdt:P106 wd:Q3665646. ?item p:P2048/psv:P2048 ?height. ?height wikibase:quantityAmount ?heightval. ?height wikibase:quantityUnit ?unit. filter( ?unit = wd:Q11573 && ?heightval < 1.9 ) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } } ORDER BY ?heightval
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#>
#basketball players (P106: Q3665646)
SELECT ?item ?itemLabel ?heightval ?image WHERE {
?item wdt:P106 wd:Q3665646.
?item p:P2048/psv:P2048 ?height.
?height wikibase:quantityAmount ?heightval.
?height wikibase:quantityUnit ?unit.
filter( ?unit = wd:Q11573 && ?heightval < 1.9 )
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
ORDER BY ?heightval
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?height")
v1("?heightval"):::projected
v3("?item"):::projected
v2("?unit")
a1((" "))
c4(["wd:Q3665646"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?unit = 'wd:Q11573'?heightval < '1.9^^xsd:decimal'"]]
f0 --> v2
f0 --> v1
v3 --"p:direct/P106"--> c4
v3 --"p:P2048"--> a1
a1 --"p:statement/value/P2048"--> v4
v4 --"wikibase:quantityAmount"--> v1
v4 --"wikibase:quantityUnit"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end