Question: Which one, Bedtime Stories (the one that has Kathryn Joosten as a cast member) or The Hunchback of Notre Dame (the one whose original language is French), has less duration?
Choices:
Old Dogs
The Hunchback of Notre Dame
G-Force
Bedtime Stories
The Flintstones
Holes
The Flintstones in Viva Rock Vegas
National Treasure: Book of Secrets
John Carter
Alvin and the Chipmunks: Chipwrecked
Answer: Bedtime Stories
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bedtime Stories" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Kathryn Joosten" .   } UNION { ?e <pred:name> "The Hunchback of Notre Dame" . ?e <original_language_of_film_or_TV_show> ?e_2 . ?e_2 <pred:name> "French" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Kathryn Joosten
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Bedtime Stories
function: And
dependencies: 1
2
function: Find
inputs: French
function: Relate
dependencies: 4
inputs: original language of film or TV show
backward
function: Find
inputs: The Hunchback of Notre Dame
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less