Question: What is the connection between Veracruz (the one that is located in Mexico) to Chiapas?
Choices: present in work
shares border with
significant person
architect
mascot
taxon rank
student
significant event
student of
parent astronomical body
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Veracruz" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_3 . ?e_3 <pred:name> "Mexico" . ?e_2 <pred:name> "Chiapas" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Mexico
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Veracruz
function: And
dependencies: 1
2
function: Find
inputs: Chiapas
function: QueryRelation
dependencies: 3
4
Answer: shares border with