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