query-dbe25be79a7d9284d1913f35e5c87dc3
constituency of the Kerala legislative assembly by number SELECT ?constituencyNumber ?itemLabel WHERE { ?item p:P31 ?id. ?id ps:P31 wd:Q54375461 . ?id pq:P1545 ?constituencyNumber. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ml". } } ORDER BY ASC(xsd:integer(?constituencyNumber) )
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#constituency of the Kerala legislative assembly by number
SELECT ?constituencyNumber ?itemLabel WHERE {
?item p:P31 ?id.
?id ps:P31 wd:Q54375461 .
?id pq:P1545 ?constituencyNumber.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ml". }
}
ORDER BY ASC(xsd:integer(?constituencyNumber) )
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?constituencyNumber"):::projected
v3("?id")
v2("?item")
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,ml"]):::literal
c3(["wd:Q54375461"]):::iri
v2 --"p:P31"--> v3
v3 --"p:statement/P31"--> c3
v3 --"p:qualifier/P1545"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end