Question: What is the connection between House (the one that has Geoffrey Lewis as a cast member) to John Cho?
Choices:
contributor(s) to the creative work
connects with
opposite of
costume designer
military branch
honorific prefix
cast member
legal form
captain
director of photography
Program:
function: Find
inputs: Geoffrey Lewis
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: House
function: And
dependencies: 1
2
function: Find
inputs: John Cho
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "House" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Geoffrey Lewis" . ?e_2 <pred:name> "John Cho" . ?e_1 ?p ?e_2 .  }
Answer: cast member