Question: Which one, Nickelodeon (the one whose script is written by Peter Bogdanovich) or Wonder Boys, has less duration?
Choices:
Training Day
The Towering Inferno
Rebecca
The Hunchback of Notre Dame
Pleasantville
Talk to Her
Wonder Boys
A Prairie Home Companion
Nickelodeon
Curse of the Golden Flower
Program:
function: Find
inputs: Peter Bogdanovich
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Nickelodeon
function: And
dependencies: 1
2
function: Find
inputs: Wonder Boys
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nickelodeon" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Peter Bogdanovich" .   } UNION { ?e <pred:name> "Wonder Boys" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Wonder Boys