Question: Which movie is shorter, Star Wars Episode V: The Empire Strikes Back (the one that has Billy Dee Williams as a cast member) or Around the World in 80 Days (the one that is shot in Madrid)?
Choices:
Curse of the Golden Flower
Star Wars Episode V: The Empire Strikes Back
The Hunchback of Notre Dame
Pleasantville
Training Day
Talk to Her
Around the World in 80 Days
A Prairie Home Companion
The Fifth Element
The Towering Inferno
Answer: Star Wars Episode V: The Empire Strikes Back
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Star Wars Episode V: The Empire Strikes Back" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Billy Dee Williams" .   } UNION { ?e <pred:name> "Around the World in 80 Days" . ?e <filming_location> ?e_2 . ?e_2 <pred:name> "Madrid" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Billy Dee Williams
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Star Wars Episode V: The Empire Strikes Back
function: And
dependencies: 1
2
function: Find
inputs: Madrid
function: Relate
dependencies: 4
inputs: filming location
backward
function: Find
inputs: Around the World in 80 Days
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less