Question: Which is shorter in length, the romance film Miracle on 34th Street or Titanic, which was nominated for an Academy Award for Best Writing, Original Screenplay?
Choices:
Training Day
A Prairie Home Companion
Talk to Her
Rebecca
Pleasantville
Miracle on 34th Street
Titanic
The Towering Inferno
The Hunchback of Notre Dame
Curse of the Golden Flower
Answer: Titanic
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Miracle on 34th Street" . ?e <genre> ?e_1 . ?e_1 <pred:name> "romance film" .   } UNION { ?e <pred:name> "Titanic" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Writing, Original Screenplay" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: romance film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Miracle on 34th Street
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Writing, Original Screenplay
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Titanic
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less