query-ae9a3decebafa50e371223bf5f57c610
Propertiesinstance of (P31)subclass of (P279)located in the administrative territorial entity (P131)street address (P6375)postal code (P281)
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?hospitalLabel ?streetAddressLabel ?postalCodeLabel
WHERE
{
?hospital wdt:P31/wdt:P279* wd:Q16917; #hospital
wdt:P131 wd:Q1711; #Potsdam
wdt:P6375 ?streetAddress;
wdt:P281 ?postalCode.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?hospitalLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?hospital")
v1("?hospitalLabel"):::projected
v4("?postalCode")
v3("?streetAddress")
a1((" "))
c5(["wd:Q1711"]):::iri
c9(["bd:serviceParam"]):::iri
c3(["wd:Q16917"]):::iri
c11(["en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P131"--> c5
v2 --"wdt:P6375"--> v3
v2 --"wdt:P281"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end