Question: Does Spartacus (whose ending date is 2013-04-12) or Rosemary's Baby (that is originally broadcast on NBC) have more episodes?
Choices:
Game of Thrones
American Horror Story
Six Feet Under
Saturday Night's Main Event
Phineas and Ferb
Spartacus
Seinfeld
Dancing with the Stars
Rosemary's Baby
Robot Chicken
Program:
function: Find
inputs: Spartacus
function: FilterDate
dependencies: 0
inputs: end time
2013-04-12
=
function: Find
inputs: NBC
function: Relate
dependencies: 2
inputs: original network
backward
function: Find
inputs: Rosemary's Baby
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Spartacus" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "2013-04-12"^^xsd:date . } UNION { ?e <pred:name> "Rosemary's Baby" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "NBC" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Spartacus