Question: Which movie is longer, A Star Is Born (the one that was nominated for Golden Globe Award for Best Original Score) or A Midsummer Night's Dream (the one whose color is black-and-white)?
Choices:
The Fifth Element
A Prairie Home Companion
Rebecca
Training Day
The Hunchback of Notre Dame
Pleasantville
A Midsummer Night's Dream
The Towering Inferno
Curse of the Golden Flower
A Star Is Born
Program:
function: Find
inputs: Golden Globe Award for Best Original Score
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: A Star Is Born
function: And
dependencies: 1
2
function: Find
inputs: black-and-white
function: Relate
dependencies: 4
inputs: color
backward
function: Find
inputs: A Midsummer Night's Dream
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "A Star Is Born" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Golden Globe Award for Best Original Score" .   } UNION { ?e <pred:name> "A Midsummer Night's Dream" . ?e <color> ?e_2 . ?e_2 <pred:name> "black-and-white" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: A Star Is Born