Question: What is the connection between American Pie (the one that has Jennifer Coolidge as a cast member) to Jennifer Coolidge?
Choices:
subject has role
material used
original language of film or TV show
architect
parent organization
filming location
enclave within
designed to carry
significant person
cast member
Program:
function: Find
inputs: Jennifer Coolidge
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: American Pie
function: And
dependencies: 1
2
function: Find
inputs: Jennifer Coolidge
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "American Pie" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Jennifer Coolidge" . ?e_2 <pred:name> "Jennifer Coolidge" . ?e_1 ?p ?e_2 .  }
Answer: cast member