Question: What animated film's lyrics are written by the person who is the composer of Planet of the Apes (whose director is Tim Burton)?
Choices:
Who Framed Roger Rabbit
Magic Knight Rayearth
Anastasia
The Polar Express
Ponyo on the Cliff by the Sea
Code Geass
The Nightmare Before Christmas
Superman
Wonder Woman
The Lion King
Program:
function: Find
inputs: Tim Burton
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Planet of the Apes
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: composer
forward
function: FilterConcept
dependencies: 4
inputs: human
function: Relate
dependencies: 5
inputs: lyrics by
backward
function: FilterConcept
dependencies: 6
inputs: animated film
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated film" . ?e <lyrics_by> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_2 <composer> ?e_1 . ?e_2 <pred:name> "Planet of the Apes" . ?e_2 <director> ?e_3 . ?e_3 <pred:name> "Tim Burton" .   }
Answer: The Nightmare Before Christmas