Question: Which has fewer episodes, 24 (the one that was nominated for Primetime Emmy Award for Outstanding Guest Actress in a Drama Series) or Chuck (the one that has Dominic Monaghan as a cast member)?
Choices: Saturday Night's Main Event
Seinfeld
Dancing with the Stars
Six Feet Under
24
Game of Thrones
American Horror Story
Robot Chicken
Chuck
Phineas and Ferb
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "24" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Primetime Emmy Award for Outstanding Guest Actress in a Drama Series" .   } UNION { ?e <pred:name> "Chuck" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Dominic Monaghan" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Primetime Emmy Award for Outstanding Guest Actress in a Drama Series
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: 24
function: And
dependencies: 1
2
function: Find
inputs: Dominic Monaghan
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Chuck
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of episodes
less
Answer: Chuck