Question: What is the connection between Cairo (the one whose production company is Metro-Goldwyn-Mayer) to spy film?
Choices:
head of state
genre
kit supplier
instrument
software engine
film distribute region
located in time zone
feast day
conflict
substitute/deputy/replacement of office/officeholder
Answer: genre
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Cairo" . ?e_1 <production_company> ?e_3 . ?e_3 <pred:name> "Metro-Goldwyn-Mayer" . ?e_2 <pred:name> "spy film" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Cairo
function: And
dependencies: 1
2
function: Find
inputs: spy film
function: QueryRelation
dependencies: 3
4