Question: What is the connection between Venice (the one that is located in Republic of Venice) to Basra?
Choices:
location
twinned administrative body
has edition
located in time zone
symptom of
dialect of
used by
stated in
capital of
contributor(s) to the creative work
Answer: twinned administrative body
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Venice" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_3 . ?e_3 <pred:name> "Republic of Venice" . ?e_2 <pred:name> "Basra" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Republic of Venice
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Venice
function: And
dependencies: 1
2
function: Find
inputs: Basra
function: QueryRelation
dependencies: 3
4