Question: Which one has fewer episodes, Edge of Darkness (the one whose end time is 1985-12-09) or Rules of Engagement (the one that has Heather Locklear as a cast member)?
Choices: The Civil War
The Pacific
Battlestar Galactica
The Diary of Anne Frank
Roots
Rules of Engagement
The Stand
Emma
George Washington
Edge of Darkness
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Edge of Darkness" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1985-12-09"^^xsd:date . } UNION { ?e <pred:name> "Rules of Engagement" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Heather Locklear" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Edge of Darkness
function: FilterDate
dependencies: 0
inputs: end time
1985-12-09
=
function: Find
inputs: Heather Locklear
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Rules of Engagement
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
less
Answer: Edge of Darkness