Question: Which movie is shorter, Pirates of the Caribbean: The Curse of the Black Pearl or Mighty Joe Young (the one that has Bill Paxton as a cast member)?
Choices:
Pirates of the Caribbean: The Curse of the Black Pearl
Old Dogs
The Flintstones in Viva Rock Vegas
The Flintstones
John Carter
The Muppets
National Treasure: Book of Secrets
G-Force
Alvin and the Chipmunks: Chipwrecked
Mighty Joe Young
Answer: Mighty Joe Young
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pirates of the Caribbean: The Curse of the Black Pearl" .  } UNION { ?e <pred:name> "Mighty Joe Young" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Bill Paxton" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Pirates of the Caribbean: The Curse of the Black Pearl
function: Find
inputs: Bill Paxton
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Mighty Joe Young
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less