Question: Which has the longer run time: Doctor Zhivago with Keira Knightley as a cast member, or adventure film Legend ?
Choices: The Three Musketeers
Doctor Zhivago
The Challenge
The Goodbye Girl
Shackleton
Legend
A Christmas Carol
A Streetcar Named Desire
The Late Shift
The Music Man
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Doctor Zhivago" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Keira Knightley" .   } UNION { ?e <pred:name> "Legend" . ?e <genre> ?e_2 . ?e_2 <pred:name> "adventure film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Keira Knightley
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Doctor Zhivago
function: And
dependencies: 1
2
function: Find
inputs: adventure film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Legend
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Doctor Zhivago