Question: What is the connection between Tony Thomas (the one that is related to sport association football) to Liverpool (the one that is located in Lancashire)?
Choices: place of birth
country of origin
has quality
superhuman feature or ability
doctoral student
part of the series
shares border with
replaced by
lyrics by
head coach
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Tony Thomas" . ?e_1 <sport> ?e_3 . ?e_3 <pred:name> "association football" . ?e_2 <pred:name> "Liverpool" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_4 . ?e_4 <pred:name> "Lancashire" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: association football
function: Relate
dependencies: 0
inputs: sport
backward
function: Find
inputs: Tony Thomas
function: And
dependencies: 1
2
function: Find
inputs: Lancashire
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Liverpool
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: place of birth