Question: Between Israel, with an area of 20770 square kilometres, or East Timor, who has a greater GDP (PPP)?
Choices: Cambodia
Russian Soviet Federative Socialist Republic
Samoa
Benin
East Timor
Israel
Kiribati
Switzerland
South Sudan
Socialist Federal Republic of Yugoslavia
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Israel" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "20770"^^xsd:double . } UNION { ?e <pred:name> "East Timor" . } ?e <GDP_(PPP)> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Israel
function: FilterNum
dependencies: 0
inputs: area
20770 square kilometre
=
function: Find
inputs: East Timor
function: SelectBetween
dependencies: 1
2
inputs: GDP (PPP)
greater
Answer: Israel