Question: What is the connection between Harry Potter and the Prisoner of Azkaban (the one whose genre is film based on literature) to Chris Columbus (the one that has the occupation of screenwriter)?
Choices:
next lower rank
currency
lifestyle
architect
place of burial
inspired by
chief executive officer
occupant
affiliation
producer
Answer: producer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Harry Potter and the Prisoner of Azkaban" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "film based on literature" . ?e_2 <pred:name> "Chris Columbus" . ?e_2 <occupation> ?e_4 . ?e_4 <pred:name> "screenwriter" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Harry Potter and the Prisoner of Azkaban
function: And
dependencies: 1
2
function: Find
inputs: screenwriter
function: Relate
dependencies: 4
inputs: occupation
backward
function: Find
inputs: Chris Columbus
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7