Question: Which is longer, Spartacus which originally aired on USA Network or Miracle on 34th Street which was nominated for an Academy Award for Best Writing, Adapted Screenplay?
Choices:
All Quiet on the Western Front
Spartacus
Miracle on 34th Street
Shackleton
The Challenge
A Streetcar Named Desire
The Goodbye Girl
A Christmas Carol
The Three Musketeers
The Late Shift
Answer: Spartacus
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Spartacus" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "USA Network" .   } UNION { ?e <pred:name> "Miracle on 34th Street" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Writing, Adapted Screenplay" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: USA Network
function: Relate
dependencies: 0
inputs: original network
backward
function: Find
inputs: Spartacus
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Writing, Adapted Screenplay
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Miracle on 34th Street
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater