Question: Which movie is shorter, Unstoppable (the one that is shot in West Virginia) or Marie Antoinette (the one whose color is black-and-white)?
Choices:
Talk to Her
The Hunchback of Notre Dame
The Fifth Element
A Prairie Home Companion
The Towering Inferno
Unstoppable
Rebecca
Marie Antoinette
Curse of the Golden Flower
Training Day
Answer: Unstoppable
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Unstoppable" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "West Virginia" .   } UNION { ?e <pred:name> "Marie Antoinette" . ?e <color> ?e_2 . ?e_2 <pred:name> "black-and-white" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: West Virginia
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Unstoppable
function: And
dependencies: 1
2
function: Find
inputs: black-and-white
function: Relate
dependencies: 4
inputs: color
backward
function: Find
inputs: Marie Antoinette
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less