query-f7bff14382f79a1d7ef8560bc25619e6
Visualize hospitals of NevadaGenerate map of all hosptials (Q16917) in the state of Nevada (Q1227)
Use at
- https://query.wikidata.org/sparql
#defaultView:Map
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?itemLabel ?geo WHERE {
?item wdt:P31/wdt:P279* wd:Q16917;
wdt:P625 ?geo ;
?range wd:Q1227 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}ORDER BY ASC(?hospitalLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?geo"):::projected
v1("?hospitalLabel")
v2("?item"):::projected
v4("?range")
a1((" "))
c5(["wd:Q1227"]):::iri
c7(["bd:serviceParam"]):::iri
c3(["wd:Q16917"]):::iri
c9(["en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P625"--> v3
v2 -->v4--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end