Question: What is the title of The Spiderwick Chronicles whose genre is film based on literature?
Choices:
デジモンアドベンチャー
Rush Hour 2
Mean Girls
The Spiderwick Chronicles
A Man for All Seasons
The Rules of Attraction
Wakefield
Rango
DodgeBall: A True Underdog Story
Moneyball
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Spiderwick Chronicles
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "The Spiderwick Chronicles" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" .  ?e <title> ?pv .  }
Answer: The Spiderwick Chronicles