Question: Does the Richmond along the River Thames or Bury, assigned TOID number 4000000074567142, boast the larger population size?
Choices: South Shields
Wimbledon
Colchester
Doncaster
Edmonton
Wigan
Macclesfield
Richmond
Bury
Blackburn
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Richmond" . ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:name> "River Thames" . } UNION { ?e <pred:name> "Bury" . ?e <TOID> ?pv_1 . ?pv_1 <pred:value> "4000000074567142" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: River Thames
function: Relate
dependencies: 0
inputs: located in or next to body of water
backward
function: Find
inputs: Richmond
function: And
dependencies: 1
2
function: Find
inputs: Bury
function: FilterStr
dependencies: 4
inputs: TOID
4000000074567142
function: SelectBetween
dependencies: 3
5
inputs: population
greater
Answer: Bury