Question: What is the activity which is the derivitive work of Harry Potter and the Order of the Phoenix, which stars Emma Watson?
Choices:
music video game
Battleship
philanthropy
Harry Potter and the Chamber of Secrets
Guitar Hero 5
English literature
Harry Potter and the Order of the Phoenix
Harry Potter and the Philosopher's Stone
Harry Potter and the Half-Blood Prince
Batman
Program:
function: Find
inputs: Emma Watson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Harry Potter and the Order of the Phoenix
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
forward
function: FilterConcept
dependencies: 4
inputs: activity
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "activity" . ?e_1 <derivative_work> ?e . ?e_1 <pred:name> "Harry Potter and the Order of the Phoenix" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Emma Watson" .   }
Answer: Harry Potter and the Order of the Phoenix