Question: Which one consists of fewer seasons, Dark Shadows (the one whose date of first performance is 1966-06-27) or Savannah (the one whose producer is Aaron Spelling)?
Choices: Seinfeld
Six Feet Under
Phineas and Ferb
Dancing with the Stars
Savannah
Saturday Night's Main Event
Game of Thrones
American Horror Story
Robot Chicken
Dark Shadows
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dark Shadows" . ?e <date_of_first_performance> ?pv_1 . ?pv_1 <pred:date> "1966-06-27"^^xsd:date . } UNION { ?e <pred:name> "Savannah" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Aaron Spelling" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Dark Shadows
function: FilterDate
dependencies: 0
inputs: date of first performance
1966-06-27
=
function: Find
inputs: Aaron Spelling
function: Relate
dependencies: 2
inputs: producer
backward
function: Find
inputs: Savannah
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of seasons
less
Answer: Savannah