Question: What is the connection between Virginia (the one that has Jennifer Connelly as a cast member) to Carrie Preston?
Choices:
capital
position played on team / speciality
cast member
member of sports team
voice actor
political ideology
executive producer
original network
substitute/deputy/replacement of office/officeholder
language of work or name
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> "Carrie Preston" . ?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: Carrie Preston
function: QueryRelation
dependencies: 3
4