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