Question: Which show has fewer episodes, ECW Hardcore TV or Working Girl (the one that has Sandra Bullock as a cast member)?
Choices: Bleak House
Dancing with the Stars
Saturday Night's Main Event
Working Girl
Six Feet Under
Seinfeld
Phineas and Ferb
Game of Thrones
American Horror Story
Robot Chicken
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "ECW Hardcore TV" .  } UNION { ?e <pred:name> "Working Girl" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Sandra Bullock" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: ECW Hardcore TV
function: Find
inputs: Sandra Bullock
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Working Girl
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
less
Answer: Working Girl