Question: Does the smaller run of episodes belong to Santa Barbara, hailing from the USA, or The Incredible Hulk, which had its finale on 1982-06-02?
Choices:
Game of Thrones
American Horror Story
Santa Barbara
Seinfeld
Six Feet Under
Robot Chicken
Dancing with the Stars
Phineas and Ferb
The Incredible Hulk
Saturday Night's Main Event
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Santa Barbara
function: And
dependencies: 1
2
function: Find
inputs: The Incredible Hulk
function: FilterDate
dependencies: 4
inputs: end time
1982-06-02
=
function: SelectBetween
dependencies: 3
5
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Santa Barbara" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" . } UNION { ?e <pred:name> "The Incredible Hulk" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1982-06-02"^^xsd:date . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Incredible Hulk