Question: Which hore has more inhabitants, London Borough of Tower Hamlets or Autonomous Republic of Crimea?
Choices:
London Borough of Tower Hamlets
Delaware County
San Juan County
Greene County
Autonomous Republic of Crimea
Kent County
Orange County
African Union
Cass County
Lee County
Program:
function: Find
inputs: London Borough of Tower Hamlets
function: Find
inputs: Autonomous Republic of Crimea
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "London Borough of Tower Hamlets" .  } UNION { ?e <pred:name> "Autonomous Republic of Crimea" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Autonomous Republic of Crimea