Question: Which has more people, South Cambridgeshire or South Somerset?
Choices:
Guildford
West Dorset
South Somerset
North Norfolk
Kettering
Woking
Craven
South Cambridgeshire
Chichester
Carlisle
Program:
function: Find
inputs: South Cambridgeshire
function: Find
inputs: South Somerset
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "South Cambridgeshire" .  } UNION { ?e <pred:name> "South Somerset" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: South Somerset