Question: Which has the largest area in the geographic region that is a part of Asia (the continent that includes Kazakhstan)?
Choices:
South America
Southern California
Lake District
Pacific Ocean
Middle East
Transylvania
Southeast Asia
Antarctica
Africa
Atlantic Canada
Program:
function: Find
inputs: Kazakhstan
function: Relate
dependencies: 0
inputs: continent
forward
function: Find
inputs: Asia
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: has part
forward
function: FilterConcept
dependencies: 4
inputs: geographic region
function: SelectAmong
dependencies: 5
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "geographic region" . ?e_1 <has_part> ?e . ?e_1 <pred:name> "Asia" . ?e_2 <continent> ?e_1 . ?e_2 <pred:name> "Kazakhstan" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Middle East