Question: Does Winchester (whose TOID is 7000000000017754) or Guildford (whose TOID is 7000000000014002) have the larger population?
Choices: South Somerset
Guildford
North Norfolk
Kettering
Woking
Carlisle
Chichester
West Dorset
Winchester
Craven
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Winchester" . ?e <TOID> ?pv_1 . ?pv_1 <pred:value> "7000000000017754" . } UNION { ?e <pred:name> "Guildford" . ?e <TOID> ?pv_2 . ?pv_2 <pred:value> "7000000000014002" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Winchester
function: FilterStr
dependencies: 0
inputs: TOID
7000000000017754
function: Find
inputs: Guildford
function: FilterStr
dependencies: 2
inputs: TOID
7000000000014002
function: SelectBetween
dependencies: 1
3
inputs: population
greater
Answer: Guildford