Question: What is the connection between Gulliver's Travels (the one whose director of photography is Alan Hume) to Don Black (the one that has the occupation of lyricist)?
Choices:
hair color
screenwriter
partially contains
noble title
model item
dialect of
statistical leader
source of income
foundational text
production company
Answer: screenwriter
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Gulliver's Travels" . ?e_1 <director_of_photography> ?e_3 . ?e_3 <pred:name> "Alan Hume" . ?e_2 <pred:name> "Don Black" . ?e_2 <occupation> ?e_4 . ?e_4 <pred:name> "lyricist" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Alan Hume
function: Relate
dependencies: 0
inputs: director of photography
backward
function: Find
inputs: Gulliver's Travels
function: And
dependencies: 1
2
function: Find
inputs: lyricist
function: Relate
dependencies: 4
inputs: occupation
backward
function: Find
inputs: Don Black
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7