Question: What is the entertainment that is a derivative work of Harry Potter and the Goblet of Fire starring Michael Gambon?
Choices:
Batman
Home Alone
Guitar Hero 5
music video game
Harry Potter and the Goblet of Fire
The Spiderwick Chronicles
Harry Potter and the Order of the Phoenix
Harry Potter and the Half-Blood Prince
Shrek Forever After
Battleship
Answer: Harry Potter and the Goblet of Fire
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "entertainment" . ?e_1 <derivative_work> ?e . ?e_1 <pred:name> "Harry Potter and the Goblet of Fire" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Michael Gambon" .   }
Program:
function: Find
inputs: Michael Gambon
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Harry Potter and the Goblet of Fire
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
forward
function: FilterConcept
dependencies: 4
inputs: entertainment
function: What
dependencies: 5