Question: What is the connection between Africa (the one whose color is black-and-white) to Alaska (the one that shares border with British Columbia)?
Choices:
opposite of
winner
drug used for treatment
rector
followed by
operating area
replaces
film crew member
architectural style
noble title
Answer: followed by
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Africa" . ?e_1 <color> ?e_3 . ?e_3 <pred:name> "black-and-white" . ?e_2 <pred:name> "Alaska" . ?e_2 <shares_border_with> ?e_4 . ?e_4 <pred:name> "British Columbia" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: black-and-white
function: Relate
dependencies: 0
inputs: color
backward
function: Find
inputs: Africa
function: And
dependencies: 1
2
function: Find
inputs: British Columbia
function: Relate
dependencies: 4
inputs: shares border with
backward
function: Find
inputs: Alaska
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7