Question: Which has more people, Nottingham or Srinagar?
Choices:
Cork
Trieste
Nottingham
Bergen
Santo Domingo
Kilkenny
Kingston
Dundee
Srinagar
Abidjan
Program:
function: Find
inputs: Nottingham
function: Find
inputs: Srinagar
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nottingham" .  } UNION { ?e <pred:name> "Srinagar" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Srinagar