Question: How is American Gangster, featuring Richard Nixon as a cast member, related to John Ortiz?
Choices:
use
office held by head of state
convicted of
time period
family
has immediate cause
cast member
season starts
affiliation
noble title
Program:
function: Find
inputs: Richard Nixon
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: American Gangster
function: And
dependencies: 1
2
function: Find
inputs: John Ortiz
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> "Richard Nixon" . ?e_2 <pred:name> "John Ortiz" . ?e_1 ?p ?e_2 .  }
Answer: cast member