Question: What is the connection between Annapolis (the one that has Tyrese Gibson as a cast member) to Maryland (the one that shares border with Pennsylvania)?
Choices:
narrative location
replaces
executive producer
location
theme music
continent
mascot
father
grants
quotes work
Answer: narrative location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Annapolis" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Tyrese Gibson" . ?e_2 <pred:name> "Maryland" . ?e_2 <shares_border_with> ?e_4 . ?e_4 <pred:name> "Pennsylvania" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Tyrese Gibson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Annapolis
function: And
dependencies: 1
2
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 4
inputs: shares border with
backward
function: Find
inputs: Maryland
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7