Question: What film is adapted from Cat in the Hat (whose genre is children's literature)?
Choices:
Role Models
Pleasantville
The League of Extraordinary Gentlemen
A Prairie Home Companion
Training Day
The Cat in the Hat
The Fifth Element
Virginia
The Polar Express
Rebecca
Program:
function: Find
inputs: children's literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Cat in the Hat
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
backward
function: FilterConcept
dependencies: 4
inputs: film
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <based_on> ?e_1 . ?e_1 <pred:name> "The Cat in the Hat" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "children's literature" .   }
Answer: The Cat in the Hat