Question: Which has lesser population, the Middle East or Orkney Islands?
Choices:
Pacific Ocean
Antarctica
South America
Orkney Islands
Lake District
Piedmont
Southern California
Atlantic Canada
Africa
Middle East
Program:
function: Find
inputs: Middle East
function: Find
inputs: Orkney Islands
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Middle East" .  } UNION { ?e <pred:name> "Orkney Islands" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Orkney Islands