query-bce2be983d78b81c1507348bb70b22b0
Hospitals providing services for patients with public health insurance SELECT ?hospital ?hospitalLabel WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". } ?hospital wdt:P31 wd:Q16917; wdt:P131 wd:Q64. FILTER NOT EXISTS { ?hospital wdt:P31 wd:Q18629950. #private (health insurance) clinic } }
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#>
#Hospitals providing services for patients with public health insurance
SELECT ?hospital ?hospitalLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". }
?hospital wdt:P31 wd:Q16917;
wdt:P131 wd:Q64.
FILTER NOT EXISTS {
?hospital wdt:P31 wd:Q18629950. #private (health insurance) clinic
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?hospital"):::projected
c6(["#91;AUTO_LANGUAGE#93;,de"]):::literal
c4(["bd:serviceParam"]):::iri
c7(["wd:Q16917"]):::iri
c9(["wd:Q64"]):::iri
c2(["wd:Q18629950"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P31"--> e0c2
e0v1("?hospital"):::projected
e0c2(["wd:Q18629950"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> c2
v1 --"wdt:P31"--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
v1 --"wdt:P31"--> c7
v1 --"wdt:P131"--> c9