query-d6a1084a29e7c3774fc66d7fada3b5bf
highest places of worship SELECT DISTINCT ?church ?churchLabel ?height WHERE { ?church wdt:P31/wdt:P279* wd:Q1370598; p:P2048/psn:P2048/wikibase:quantityAmount ?height. SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY DESC(?height)
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#>
# highest places of worship
SELECT DISTINCT ?church ?churchLabel ?height WHERE {
?church wdt:P31/wdt:P279* wd:Q1370598;
p:P2048/psn:P2048/wikibase:quantityAmount ?height.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY DESC(?height)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?church"):::projected
v1("?height"):::projected
a1((" "))
a2((" "))
a3((" "))
c8(["bd:serviceParam"]):::iri
c3(["wd:Q1370598"]):::iri
c10(["en"]):::literal
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
v2 --"p:P2048"--> a2
a2 --"p:statement/value-normalized/P2048"--> a3
a3 --"wikibase:quantityAmount"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end