Question: Which movie is shorter, Batman (the one that has James Brolin as a cast member) or America's Next Top Model?
Choices:
Game of Thrones
Robot Chicken
Six Feet Under
Seinfeld
Saturday Night's Main Event
Bleak House
American Horror Story
Batman
Dancing with the Stars
Phineas and Ferb
Program:
function: Find
inputs: James Brolin
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Batman
function: And
dependencies: 1
2
function: Find
inputs: America's Next Top Model
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Batman" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "James Brolin" .   } UNION { ?e <pred:name> "America's Next Top Model" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Batman