query-90c0c56a662491e62d53d9100edc083a
- Hospital sizes in Regensburg SELECT DISTINCT ?hospitalbeds ?item ?itemLabel ?workfieldLabel WHERE { #is or instance of Hospital in Regensburg ?item wdt:P31/wdt:P279* wd:Q16917; wdt:P131 wd:Q2978; #item is this size wdt:P6801 ?hospitalbeds; SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
ORDER BY DESC (?hospitalbeds)
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#>
# 3. Hospital sizes in Regensburg
SELECT DISTINCT ?hospitalbeds ?item ?itemLabel ?workfieldLabel
WHERE {
#is or instance of Hospital in Regensburg
?item wdt:P31/wdt:P279* wd:Q16917;
wdt:P131 wd:Q2978;
#item is this size
wdt:P6801 ?hospitalbeds;
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC (?hospitalbeds)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?hospitalbeds"):::projected
v2("?item"):::projected
a1((" "))
c5(["wd:Q2978"]):::iri
c8(["bd:serviceParam"]):::iri
c3(["wd:Q16917"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P131"--> c5
v2 --"wdt:P6801"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end