Question: How are American Gangster, which has Ted Levine as a cast member, and Roger Bart related?
Choices:
operating area
partially contains
maintained by
given name
cast member
family name
business division
location
allegiance
successful candidate
Program:
function: Find
inputs: Ted Levine
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: American Gangster
function: And
dependencies: 1
2
function: Find
inputs: Roger Bart
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "American Gangster" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Ted Levine" . ?e_2 <pred:name> "Roger Bart" . ?e_1 ?p ?e_2 .  }
Answer: cast member