Question: In which country is the Indus bordering Gujarat (the one that is the terrain feature of Jainism)?
Choices:
Curaçao
Russian Soviet Federative Socialist Republic
United Kingdom
international
Canada
Iceland
Pakistan
Papal States
Czech Republic
Mexico
Program:
function: Find
inputs: Jainism
function: Relate
dependencies: 0
inputs: located on terrain feature
forward
function: Find
inputs: Gujarat
function: And
dependencies: 1
2
function: Find
inputs: Sindh
function: QueryRelationQualifier
dependencies: 3
4
inputs: shares border with
country
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Gujarat" . ?e_3 <located_on_terrain_feature> ?e_1 . ?e_3 <pred:name> "Jainism" . ?e_2 <pred:name> "Sindh" . ?e_1 <shares_border_with> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Answer: Pakistan