Question: How is FC Barcelona B related to Barcelona, the twinned administrative body of Montreal?
Choices: significant person
organisation directed from the office or person
military rank
student
narrative role
headquarters location
month of the year
item operated
twinned administrative body
had as last meal
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "FC Barcelona B" . ?e_2 <pred:name> "Barcelona" . ?e_3 <twinned_administrative_body> ?e_2 . ?e_3 <pred:name> "Montreal" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: FC Barcelona B
function: Find
inputs: Montreal
function: Relate
dependencies: 1
inputs: twinned administrative body
forward
function: Find
inputs: Barcelona
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: headquarters location