Question: What is the title of a movie that comes from Catwoman (the one whose distribution format is DVD) ?
Choices:
Catwoman
Samson and Delilah
Mein Vater
The Passion of the Christ
Walk the Line
Glee
Elizabeth: The Golden Age
Chocolat
The Producers
X-Men Origins: Wolverine
Answer: Catwoman
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <derivative_work> ?e_1 . ?e_1 <pred:name> "Catwoman" . ?e_1 <distribution> ?e_2 . ?e_2 <pred:name> "DVD" .  ?e <title> ?pv .  }
Program:
function: Find
inputs: DVD
function: Relate
dependencies: 0
inputs: distribution
backward
function: Find
inputs: Catwoman
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
backward
function: FilterConcept
dependencies: 4
inputs: film
function: QueryAttr
dependencies: 5
inputs: title