Question: What is the relationship between Yorkshire Terrier and England (the one that contains Lincolnshire)?
Choices: source of income
main subject
educated at
country of origin
country for sport
successful candidate
officially opened by
subsidiary
named after
film editor
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Yorkshire Terrier" . ?e_2 <pred:name> "England" . ?e_3 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_3 <pred:name> "Lincolnshire" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Yorkshire Terrier
function: Find
inputs: Lincolnshire
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: Find
inputs: England
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: country of origin