Question: What town is the capital of the non-metropolitan district that is an administrative division of Northamptonshire?
Choices: Barrow-in-Furness
Great Yarmouth
Scunthorpe
Greenock
Woking
Wigan
Kingston upon Thames
South Shields
Edmonton
Kettering
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e_1 <capital> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "non-metropolitan district" . ?e_3 <contains_administrative_territorial_entity> ?e_1 . ?e_3 <pred:name> "Northamptonshire" .   }
Program:
function: Find
inputs: Northamptonshire
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 1
inputs: non-metropolitan district
function: Relate
dependencies: 2
inputs: capital
forward
function: FilterConcept
dependencies: 3
inputs: town
function: What
dependencies: 4
Answer: Kettering