query-15921e7c486278cab90a69269e972b9c
Propertiesinstance of (P31)subclass of (P279)located in the administrative territorial entity (P131)number of hospital beds (P6801)
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 ?numberOfHospitalBedsLabel
WHERE
{
?hospital wdt:P31/wdt:P279* wd:Q16917; #hospital
wdt:P131 wd:Q1711; #Potsdam
wdt:P6801 ?numberOfHospitalBeds.
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
v3("?numberOfHospitalBeds")
a1((" "))
c5(["wd:Q1711"]):::iri
c8(["bd:serviceParam"]):::iri
c3(["wd:Q16917"]):::iri
c10(["en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P131"--> c5
v2 --"wdt:P6801"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end