Question: Which republic that is located on the continent of Asia (that is the continent where the Middle East is situated) has the most area?
Choices:
Georgia
Zimbabwe
Germany
Sierra Leone
India
Sri Lanka
Mozambique
Tunisia
Namibia
Colombia
Program:
function: Find
inputs: Middle East
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: republic
function: SelectAmong
dependencies: 5
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" . ?e <continent> ?e_1 . ?e_1 <pred:name> "Asia" . ?e_2 <continent> ?e_1 . ?e_2 <pred:name> "Middle East" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: India