Question: Which one has more seasons, Working Girl (which ended on 1990-08-27) or Savannah (which was originally aired on the WB)
Choices:
Seinfeld
Six Feet Under
Working Girl
Dancing with the Stars
Saturday Night's Main Event
Phineas and Ferb
Robot Chicken
Game of Thrones
Savannah
Bleak House
Answer: Savannah
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Working Girl" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1990-08-27"^^xsd:date . } UNION { ?e <pred:name> "Savannah" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "The WB" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Working Girl
function: FilterDate
dependencies: 0
inputs: end time
1990-08-27
=
function: Find
inputs: The WB
function: Relate
dependencies: 2
inputs: original network
backward
function: Find
inputs: Savannah
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of seasons
greater