Question: Between Yunnan or Hubei, which occupies a smaller area?
Choices:
Liaoning
Jiangsu
Henan
Zhejiang
Yunnan
Anhui
Shaanxi
Hubei
Hunan
Guangdong
Program:
function: Find
inputs: Yunnan
function: Find
inputs: Hubei
function: SelectBetween
dependencies: 0
1
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Yunnan" .  } UNION { ?e <pred:name> "Hubei" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hubei