Question: Does North Norfolk or South Somerset have the larger population?
Choices:
North Norfolk
Guildford
Woking
Kettering
Carlisle
West Dorset
Great Yarmouth
King's Lynn and West Norfolk
Craven
South Somerset
Program:
function: Find
inputs: North Norfolk
function: Find
inputs: South Somerset
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "North Norfolk" .  } UNION { ?e <pred:name> "South Somerset" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: South Somerset