Question: Which one of the landforms in Asia (the continent Delhi locates in) is the largest?
Choices:
Honshu
Ireland
Newfoundland
Tasmania
Cyprus
Hawaii
Hokkaidō
Kyushu
Java
Trinidad
Program:
function: Find
inputs: Delhi
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: area
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> "Delhi" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Honshu