Question: Which one, Catwoman (the one whose script is wrote by Bob Kane) or From Here to Eternity (the one whose color is black-and-white), has less duration?
Choices:
Pleasantville
Curse of the Golden Flower
The Hunchback of Notre Dame
A Prairie Home Companion
Training Day
Catwoman
From Here to Eternity
Rebecca
The Fifth Element
Talk to Her
Program:
function: Find
inputs: Bob Kane
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Catwoman
function: And
dependencies: 1
2
function: Find
inputs: black-and-white
function: Relate
dependencies: 4
inputs: color
backward
function: Find
inputs: From Here to Eternity
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Catwoman" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Bob Kane" .   } UNION { ?e <pred:name> "From Here to Eternity" . ?e <color> ?e_2 . ?e_2 <pred:name> "black-and-white" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Catwoman