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