Question: Which county town, located in or next to the River Thames, has the largest population?
Choices: Guildford
Bedford
Maidstone
Warwick
Dorchester
Northampton
Reading
Ipswich
Taunton
Oxford
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county town" . ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:name> "River Thames" .  ?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: FilterConcept
dependencies: 1
inputs: county town
function: SelectAmong
dependencies: 2
inputs: population
largest
Answer: Reading