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