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