Question: What is the title of The SpongeBob SquarePants Movie (the one that is a derivative work of SpongeBob SquarePants)?
Choices:
The Chronicles of Narnia: The Lion, the Witch and the Wardrobe
8 femmes
Steve Jobs
Bury My Heart at Wounded Knee
Apache
La Joconde
The Terminal
Miracle on 34th Street
The SpongeBob SquarePants Movie
Girl with a Pearl Earring
Program:
function: Find
inputs: SpongeBob SquarePants
function: Relate
dependencies: 0
inputs: derivative work
forward
function: Find
inputs: The SpongeBob SquarePants Movie
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "The SpongeBob SquarePants Movie" . ?e_1 <derivative_work> ?e . ?e_1 <pred:name> "SpongeBob SquarePants" .  ?e <title> ?pv .  }
Answer: The SpongeBob SquarePants Movie