Question: What is the connection between Spain and Gibraltar (where English is the official language)?
Choices: is a list of
place of birth
language of work or name
signatory
dedicated to
religious order
cites
lowest point
part of the series
shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Spain" . ?e_2 <pred:name> "Gibraltar" . ?e_2 <official_language> ?e_3 . ?e_3 <pred:name> "English" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Spain
function: Find
inputs: English
function: Relate
dependencies: 1
inputs: official language
backward
function: Find
inputs: Gibraltar
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: shares border with