Question: Which has a larger population, Chesterfield or Hitchin?
Choices:
Bury St Edmunds
Hitchin
TVT Records
Socialist Federal Republic of Yugoslavia
Chesterfield
Carmarthen
American International Pictures
Burnley
Pontefract
John Wood
Program:
function: Find
inputs: Chesterfield
function: Find
inputs: Hitchin
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chesterfield" .  } UNION { ?e <pred:name> "Hitchin" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hitchin