query-6dd2e44fbedb20673d62d9274a1d7bde
Number of beds per hospital SELECT ?hospital ?hospitalLabel ?beds WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". } ?hospital wdt:P31 wd:Q16917; wdt:P131 wd:Q64; wdt:P6801 ?beds. } ORDER BY DESC(?beds)
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#>
#Number of beds per hospital
SELECT ?hospital ?hospitalLabel ?beds WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". }
?hospital wdt:P31 wd:Q16917;
wdt:P131 wd:Q64;
wdt:P6801 ?beds.
} ORDER BY DESC(?beds)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?beds"):::projected
v2("?hospital"):::projected
c4(["#91;AUTO_LANGUAGE#93;,de"]):::literal
c2(["bd:serviceParam"]):::iri
c6(["wd:Q16917"]):::iri
c8(["wd:Q64"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v2 --"wdt:P31"--> c6
v2 --"wdt:P131"--> c8
v2 --"wdt:P6801"--> v1