Question: Is the run-time longer for the literature-based film On the Road or for The Phantom, with Treat Williams as a cast member?
Choices:
On the Road
The Phantom
Talk to Her
The Fifth Element
A Prairie Home Companion
The Towering Inferno
Training Day
Curse of the Golden Flower
Rebecca
The Hunchback of Notre Dame
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: On the Road
function: And
dependencies: 1
2
function: Find
inputs: Treat Williams
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Phantom
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "On the Road" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" .   } UNION { ?e <pred:name> "The Phantom" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Treat Williams" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: On the Road