query-069208d886cc4c55ef476b7e4fc4e68e
Age problemHi, This query gives me the height of the < 1 m peoples :
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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?taille ?item
WHERE
{?item wdt:P31 wd:Q5 ;
wdt:P569 ?naissance ;
p:P2048 ?t .
?t psn:P2048 ?tm ; #unité SI
rdf:type wikibase:BestRank .
?tm wikibase:quantityAmount ?taille .
?tm wikibase:quantityUnit ?unit.
FILTER (?taille < 1) #moins de 1 mètre
BIND(YEAR(NOW()) AS ?year)
FILTER (?year - YEAR(?naissance) >= 18) #au moins 18 ans
minus {?item wdt:P31 wd:Q190 .} #pas un-e dieu|déesse
minus {VALUES ?item {wd:Q15397819} } #bac à sable
}
ORDER BY (?taille)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?item"):::projected
v3("?naissance")
v5("?t")
v1("?taille"):::projected
v6("?tm")
v7("?unit")
v8("?year")
c12(["wd:Q190"]):::iri
c4(["wd:Q5"]):::iri
c9(["wikibase:BestRank"]):::iri
f0[["?year - year-from-dateTime(?naissance) >= '18^^xsd:integer'"]]
f0 --> v8
f0 --> v3
f1[["?taille < '1^^xsd:integer'"]]
f1 --> v1
v8 --"p:direct/P31"--> c4
v8 --"p:direct/P569"--> v3
v8 --"p:P2048"--> v5
v5 --"p:statement/value-normalized/P2048"--> v6
v5 --"a"--> c9
v6 --"wikibase:quantityAmount"--> v1
v6 --"wikibase:quantityUnit"--> v7
bind2[/"year-from-dateTime(NOW())"/]
bind2 --as--o v8
subgraph minus3["MINUS"]
style minus3 stroke-width:6px,fill:pink,stroke:red;
v8 --"p:direct/P31"--> c12
end
subgraph minus4["MINUS"]
style minus4 stroke-width:6px,fill:pink,stroke:red;
bind5[/VALUES ?item/]
bind5-->v8
bind50(["wd:Q15397819"])
bind50 --> bind5
end