Question: Does Miami Vice, with John Ortiz in the cast, or All the King's Men, the black-and-white version, have the longer running time?
Choices:
The Towering Inferno
Curse of the Golden Flower
Miami Vice
Rebecca
The Hunchback of Notre Dame
All the King's Men
Training Day
Talk to Her
The Fifth Element
A Prairie Home Companion
Program:
function: Find
inputs: John Ortiz
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Miami Vice
function: And
dependencies: 1
2
function: Find
inputs: black-and-white
function: Relate
dependencies: 4
inputs: color
backward
function: Find
inputs: All the King's Men
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Miami Vice" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "John Ortiz" .   } UNION { ?e <pred:name> "All the King's Men" . ?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: Miami Vice