query-c161ff2832af6dee623638a94564c0eb
churches taller than 100 meters in France SELECT $item $itemLabel ?elevation ?pic WHERE { $item (wdt:P31/(wdt:P279*)) wd:Q16970 ; wdt:P17 wd:Q142 . ?item p:P2048 ?st . ?st psn:P2048 $height .
?height wikibase:quantityAmount ?elevation . FILTER(?elevation > 100) . ?height wikibase:quantityUnit wd:Q11573 .
OPTIONAL { ?item wdt:P18 ?pic . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en". } } GROUP BY $item $itemLabel ?elevation ?pic
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 psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# churches taller than 100 meters in France
SELECT $item $itemLabel ?elevation ?pic WHERE {
$item (wdt:P31/(wdt:P279*)) wd:Q16970 ; wdt:P17 wd:Q142 .
?item p:P2048 ?st .
?st psn:P2048 $height .
?height wikibase:quantityAmount ?elevation . FILTER(?elevation > 100) .
?height wikibase:quantityUnit wd:Q11573 .
OPTIONAL { ?item wdt:P18 ?pic . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en". }
}
GROUP BY $item $itemLabel ?elevation ?pic
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?elevation"):::projected
v4("?height")
v2("?item"):::projected
v5("?pic"):::projected
v3("?st")
a1((" "))
c11(["wd:Q11573"]):::iri
c14(["bd:serviceParam"]):::iri
c16(["fr,en"]):::literal
c4(["wd:Q16970"]):::iri
c6(["wd:Q142"]):::iri
f0[["?elevation > '100^^xsd:integer'"]]
f0 --> v1
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c4
v2 --"p:direct/P17"--> c6
v2 --"p:P2048"--> v3
v3 --"p:statement/value-normalized/P2048"--> v4
v4 --"wikibase:quantityAmount"--> v1
v4 --"wikibase:quantityUnit"--> c11
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P18".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end