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