Question: Which is shorter, Sex and the City that was nominated for a Primetime Emmy Award for Outstanding Writing for a Comedy Series or Dark Shadows whose end time is 1991-03-22?
Choices: Seinfeld
Dark Shadows
Sex and the City
American Horror Story
Dancing with the Stars
Six Feet Under
Robot Chicken
Bleak House
Game of Thrones
Saturday Night's Main Event
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sex and the City" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Primetime Emmy Award for Outstanding Writing for a Comedy Series" . } UNION { ?e <pred:name> "Dark Shadows" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1991-03-22"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Primetime Emmy Award for Outstanding Writing for a Comedy Series
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Sex and the City
function: And
dependencies: 1
2
function: Find
inputs: Dark Shadows
function: FilterDate
dependencies: 4
inputs: end time
1991-03-22
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
Answer: Sex and the City