Question: What is the connection between Kettering (the one that is located in Northamptonshire) to United Kingdom?
Choices: designed to carry
depicted by
residence
cast member
country
distributor
musical conductor
place of publication
religious order
works in collection
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Kettering" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_3 . ?e_3 <pred:name> "Northamptonshire" . ?e_2 <pred:name> "United Kingdom" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Northamptonshire
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Kettering
function: And
dependencies: 1
2
function: Find
inputs: United Kingdom
function: QueryRelation
dependencies: 3
4
Answer: country