Question: Are there more inhabitants in Bedford (TOID 4000000074543049) or Maidstone (OS grid reference TQ765555)?
Choices: Guildford
Aylesbury
Northampton
Bedford
Oxford
Taunton
Reading
Maidstone
Dorchester
Warwick
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bedford" . ?e <TOID> ?pv_1 . ?pv_1 <pred:value> "4000000074543049" . } UNION { ?e <pred:name> "Maidstone" . ?e <OS_grid_reference> ?pv_2 . ?pv_2 <pred:value> "TQ765555" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Bedford
function: FilterStr
dependencies: 0
inputs: TOID
4000000074543049
function: Find
inputs: Maidstone
function: FilterStr
dependencies: 2
inputs: OS grid reference
TQ765555
function: SelectBetween
dependencies: 1
3
inputs: population
greater
Answer: Maidstone