Question: Which show has fewer episodes, Boston Legal or Constantine (the one whose end time is 2015-02-13)?
Choices: Robot Chicken
Seinfeld
Game of Thrones
Six Feet Under
Boston Legal
Dancing with the Stars
American Horror Story
Constantine
Saturday Night's Main Event
Bleak House
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Boston Legal" . } UNION { ?e <pred:name> "Constantine" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "2015-02-13"^^xsd:date . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Boston Legal
function: Find
inputs: Constantine
function: FilterDate
dependencies: 1
inputs: end time
2015-02-13
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
less
Answer: Constantine