Question: Which has fewer episodes, Mad TV or Into the West (the one whose start time is 2005-07-22)?
Choices: Into the West
Battlestar Galactica
Mad TV
The Pacific
The Ten Commandments
The Stand
Roots
The Diary of Anne Frank
Edge of Darkness
George Washington
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mad TV" . } UNION { ?e <pred:name> "Into the West" . ?e <start_time> ?pv_1 . ?pv_1 <pred:date> "2005-07-22"^^xsd:date . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Mad TV
function: Find
inputs: Into the West
function: FilterDate
dependencies: 1
inputs: start time
2005-07-22
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
less
Answer: Into the West