Question: Tell me the activity that is based on Harry Potter and the Goblet of Fire (the one which features Robert Pattinson in the cast)
Choices: Harry Potter and the Half-Blood Prince
music video game
Star Wars
Guitar Hero 5
Shrek Forever After
Batman
Battleship
Superman
Harry Potter and the Goblet of Fire
Harry Potter and the Order of the Phoenix
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "activity" . ?e <based_on> ?e_1 . ?e_1 <pred:name> "Harry Potter and the Goblet of Fire" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Robert Pattinson" .   }
Program:
function: Find
inputs: Robert Pattinson
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: based on
backward
function: FilterConcept
dependencies: 4
inputs: activity
function: What
dependencies: 5
Answer: Harry Potter and the Goblet of Fire