Question: How is the spy film Cairo related to Metro-Goldwyn-Mayer?
Choices: kit supplier
country for sport
partner
has edition
production company
published in
founded by
affiliation
after a work by
applies to jurisdiction
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Cairo" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "spy film" . ?e_2 <pred:name> "Metro-Goldwyn-Mayer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: spy film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Cairo
function: And
dependencies: 1
2
function: Find
inputs: Metro-Goldwyn-Mayer
function: QueryRelation
dependencies: 3
4
Answer: production company