query-63836e8860841064793e422c1c9d2149
All different human settlements (in India) that are also Lakes SELECT ?object ?objectLabel WHERE { ?object wdt:P17 wd:Q668. #India ?object wdt:P31/wdt:P279 wd:Q486972. #Subclass of Human settlement ?object wdt:P31/wdt:P279 wd:Q23397. #Lake SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } }
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#>
#All different human settlements (in India) that are also Lakes
SELECT ?object ?objectLabel
WHERE {
?object wdt:P17 wd:Q668. #India
?object wdt:P31/wdt:P279* wd:Q486972. #Subclass of Human settlement
?object wdt:P31/wdt:P279* wd:Q23397. #Lake
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?object"):::projected
a1((" "))
a2((" "))
c6(["wd:Q23397"]):::iri
c5(["wd:Q486972"]):::iri
c8(["bd:serviceParam"]):::iri
c2(["wd:Q668"]):::iri
c10(["en"]):::literal
v1 --"wdt:P17"--> c2
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
v1 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end