Question: What is the connection between Liverpool (the one that is the headquarter location of University of Liverpool) to Shanghai (the one that is the twinned administrative body of Basel)?
Choices:
production company
twinned administrative body
has edition
item operated
grants
uses
designed by
appointed by
art director
health specialty
Program:
function: Find
inputs: University of Liverpool
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: Liverpool
function: And
dependencies: 1
2
function: Find
inputs: Basel
function: Relate
dependencies: 4
inputs: twinned administrative body
backward
function: Find
inputs: Shanghai
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Liverpool" . ?e_3 <headquarters_location> ?e_1 . ?e_3 <pred:name> "University of Liverpool" . ?e_2 <pred:name> "Shanghai" . ?e_2 <twinned_administrative_body> ?e_4 . ?e_4 <pred:name> "Basel" . ?e_1 ?p ?e_2 .  }
Answer: twinned administrative body