Question: Which one has the largest elevation above sea level among the landforms that locates in the continent of Asia (the one where Pakistan is)?
Choices:
Ireland
Honshu
Kyushu
Tasmania
Hokkaidō
Hawaii
Trinidad
Newfoundland
Cyprus
Puerto Rico
Program:
function: Find
inputs: Pakistan
function: Relate
dependencies: 0
inputs: continent
forward
function: Find
inputs: Asia
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: continent
backward
function: FilterConcept
dependencies: 4
inputs: landform
function: SelectAmong
dependencies: 5
inputs: elevation above sea level
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "landform" . ?e <continent> ?e_1 . ?e_1 <pred:name> "Asia" . ?e_2 <continent> ?e_1 . ?e_2 <pred:name> "Pakistan" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Honshu