Question: What activity is a derivative work of Independence Day (the one that has Randy Quaid as a cast member)?
Choices:
Battleship
Harry Potter and the Half-Blood Prince
French Revolution
Shrek Forever After
music video game
G.I. Joe: The Rise of Cobra
Batman
Guitar Hero 5
EFL Championship
Independence Day
Answer: Independence Day
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "activity" . ?e_1 <derivative_work> ?e . ?e_1 <pred:name> "Independence Day" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Randy Quaid" .   }
Program:
function: Find
inputs: Randy Quaid
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Independence Day
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
forward
function: FilterConcept
dependencies: 4
inputs: activity
function: What
dependencies: 5