query-b99a6f6a3bf56c13f2530e74fc2ab39f
Indian National Highways below 100Hi, I am looking for Indian National highways below 100
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?id ?idLabel ?wikilink
(concat('[[', ?idLabel, ']]') as ?title)
(REPLACE( ?idLabel , "National Highway ", "" ) AS ?high_no)
WHERE
{
?id wdt:P31 wd:Q34442 . # is a road
?id wdt:P17 wd:Q668 . # in India
?id wdt:P16 wd:Q1967342 . # in India
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en'}
?wikilink schema:about ?id; schema:isPartOf <https://en.wikipedia.org/> .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?high_no")
v1("?id"):::projected
v3("?title")
v2("?wikilink"):::projected
c6(["wd:Q1967342"]):::iri
c10(["en"]):::literal
c2(["wd:Q34442"]):::iri
c13([https://en.wikipedia.org/]):::iri
c8(["bd:serviceParam"]):::iri
c4(["wd:Q668"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P17"--> c4
v1 --"wdt:P16"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
v2 --"schema:about"--> v1
v2 --"schema:isPartOf"--> c13
bind0[/"concat('#91;#91;',?idLabel,'#93;#93;')"/]
null --o bind0
bind0 --as--o v3
bind1[/"replace(?idLabel,'National Highway ','')"/]
null --o bind1
bind1 --as--o v4