Question: Which area is smaller, Asia (the one that is the continent that Jaipur locates) or Korea?
Choices:
Korea
Pacific Ocean
Piedmont
Antarctica
Transylvania
Asia
South America
Lake District
Southern California
Atlantic Canada
Program:
function: Find
inputs: Jaipur
function: Relate
dependencies: 0
inputs: continent
forward
function: Find
inputs: Asia
function: And
dependencies: 1
2
function: Find
inputs: Korea
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Asia" . ?e_1 <continent> ?e . ?e_1 <pred:name> "Jaipur" .   } UNION { ?e <pred:name> "Korea" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Korea