Question: Tell me how long Dune is (which is in the genre a film based on literature)
Choices:
22 minute
86 minute
74 minute
117 minute
231 minute
125 minute
10 week
201 minute
110 minute
137 minute
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Dune
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: duration
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Dune" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" .  ?e <duration> ?pv .  }
Answer: 137 minute