query-9f007d149cad335a39956b29720952ba
member of (P463), located in the administrative territorial entity (P131), subclass of (P279), instance of (P31): Properties Which hospital has the most employees? (With sorting)
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#>
#defaultView:BubbleChart
#Potsdams biggest hospitals by employees
#defaultView:BubbleChart
SELECT ?hospitalLabel ?employees
WHERE
{
?hospital wdt:P31/wdt:P279* wd:Q16917; #hospital
wdt:P131 wd:Q1711; #Potsdam
wdt:P1128 ?employees.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?hospitalLabel ?employees
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?employees"):::projected
v1("?hospital")
a1((" "))
c5(["wd:Q1711"]):::iri
c8(["bd:serviceParam"]):::iri
c3(["wd:Q16917"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P131"--> c5
v1 --"wdt:P1128"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end