Question: What town has an area of under 340000 square kilometers and is the origin of the name Richmond (that is the capital of Fort Bend County)?
Choices: Doncaster
Crawley
Colchester
South Shields
Blackpool
Wigan
Richmond
Edmonton
Royal Tunbridge Wells
Macclesfield
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v < "340000"^^xsd:double ) . ?e_1 <named_after> ?e . ?e_1 <pred:name> "Richmond" . ?e_1 <capital_of> ?e_2 . ?e_2 <pred:name> "Fort Bend County" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
340000 square kilometre
<
function: FilterConcept
dependencies: 1
inputs: town
function: Find
inputs: Fort Bend County
function: Relate
dependencies: 3
inputs: capital of
backward
function: Find
inputs: Richmond
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: named after
forward
function: FilterConcept
dependencies: 7
inputs: town
function: And
dependencies: 2
8
function: What
dependencies: 9
Answer: Richmond