Question: Is the episode count smaller for The Young and the Restless or for Friends, the Primetime Emmy Award nominee for Outstanding Comedy Series?
Choices:
The Young and the Restless
American Horror Story
Game of Thrones
Seinfeld
Saturday Night's Main Event
Bleak House
Dancing with the Stars
Six Feet Under
Friends
Phineas and Ferb
Answer: Friends
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Young and the Restless" .  } UNION { ?e <pred:name> "Friends" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Primetime Emmy Award for Outstanding Comedy Series" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Young and the Restless
function: Find
inputs: Primetime Emmy Award for Outstanding Comedy Series
function: Relate
dependencies: 1
inputs: nominated for
backward
function: Find
inputs: Friends
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
less