Question: Which has greater duration, Rules of Engagement that originally aired on CBS or Dark Shadows whose start time is 1966-07-27?
Choices:
Game of Thrones
Six Feet Under
Seinfeld
Robot Chicken
Bleak House
Rules of Engagement
Dancing with the Stars
Dark Shadows
Saturday Night's Main Event
Phineas and Ferb
Answer: Dark Shadows
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rules of Engagement" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "CBS" . } UNION { ?e <pred:name> "Dark Shadows" . ?e <start_time> ?pv_1 . ?pv_1 <pred:date> "1966-07-27"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: CBS
function: Relate
dependencies: 0
inputs: original network
backward
function: Find
inputs: Rules of Engagement
function: And
dependencies: 1
2
function: Find
inputs: Dark Shadows
function: FilterDate
dependencies: 4
inputs: start time
1966-07-27
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater