Question: What is the title of The Commitments (the one whose genre is novel)?
Choices:
Frankenstein
The Commitments
The Bodyguard
That's My Boy
The Godfather Part III
Sex and the City
On the Road
In the Name of the King
Der Mann mit der eisernen Maske
A Passage to India
Program:
function: Find
inputs: novel
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Commitments
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "The Commitments" . ?e <genre> ?e_1 . ?e_1 <pred:name> "novel" .  ?e <title> ?pv .  }
Answer: The Commitments