Question: Which one, Yunnan or Jiangsu, has greater area?
Choices:
Anhui
Yunnan
Hubei
Jiangsu
Fujian
Shaanxi
Guangdong
Hunan
Henan
Liaoning
Program:
function: Find
inputs: Yunnan
function: Find
inputs: Jiangsu
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Yunnan" .  } UNION { ?e <pred:name> "Jiangsu" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Yunnan