query-2987f6773bdbeaf6ae8139f0ce7ee0ae
Propertieslocated in the administrative territorial entity (P131)instance of (P31)subclass of (P279)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 ?item ?itemLabel ?beds WHERE {
{ ?item wdt:P131 wd:Q2090 } UNION { ?item wdt:P131 wd:Q3126 }
?item wdt:P31/wdt:P279* wd:Q16917;
wdt:P6801 ?beds .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?beds"):::projected
v1("?item"):::projected
a1((" "))
c2(["wd:Q2090"]):::iri
c9(["bd:serviceParam"]):::iri
c6(["wd:Q16917"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q3126"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> c3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> c2
end
union0r <== or ==> union0l
end
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c6
v1 --"wdt:P6801"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end