Question: What is the connection between The Spy Who Came in from the Cold (the one whose production company is Paramount Pictures) to The Spy Who Came in from the Cold (the one whose genre is adventure novel)?
Choices:
cites
has immediate cause
country for sport
convicted of
ancestral home
based on
part of the series
mother
influenced by
filming location
Answer: based on
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Spy Who Came in from the Cold" . ?e_1 <production_company> ?e_3 . ?e_3 <pred:name> "Paramount Pictures" . ?e_2 <pred:name> "The Spy Who Came in from the Cold" . ?e_2 <genre> ?e_4 . ?e_4 <pred:name> "adventure novel" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: The Spy Who Came in from the Cold
function: And
dependencies: 1
2
function: Find
inputs: adventure novel
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: The Spy Who Came in from the Cold
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7