Question: Which has fewer episodes, Sex and the City that ended on 2004-02-22 or Charmed starring Alyssa Milano?
Choices: Six Feet Under
Charmed
Game of Thrones
Saturday Night's Main Event
Phineas and Ferb
Seinfeld
Bleak House
Robot Chicken
American Horror Story
Sex and the City
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sex and the City" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "2004-02-22"^^xsd:date . } UNION { ?e <pred:name> "Charmed" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Alyssa Milano" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Sex and the City
function: FilterDate
dependencies: 0
inputs: end time
2004-02-22
=
function: Find
inputs: Alyssa Milano
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Charmed
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
less
Answer: Sex and the City