Question: Which town is located in Surrey (the one whose country is Kingdom of Great Britain)?
Choices: Royal Tunbridge Wells
Epsom
Hampstead
Woking
River Thames
Gateshead
Southend-on-Sea
Edmonton
South Shields
Wigan
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Surrey" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "Kingdom of Great Britain" .   }
Program:
function: Find
inputs: Kingdom of Great Britain
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Surrey
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: town
function: What
dependencies: 5
Answer: Epsom