Question: What is the connection between Virginia (the one that has Jennifer Connelly as a cast member) to Ed Harris?
Choices:
cast member
honorific prefix
office held by head of government
costume designer
capital of
replaced by
given name
native language
place of burial
month of the year
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Virginia" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Jennifer Connelly" . ?e_2 <pred:name> "Ed Harris" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Jennifer Connelly
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Virginia
function: And
dependencies: 1
2
function: Find
inputs: Ed Harris
function: QueryRelation
dependencies: 3
4