Question: Are there fewer seasons of The Flintstones, first aired by the American Broadcasting Company, or of Spider-Man, which comes from Canada?
Choices:
Seinfeld
The Flintstones
Dancing with the Stars
Game of Thrones
Saturday Night's Main Event
American Horror Story
Phineas and Ferb
Robot Chicken
Six Feet Under
Spider-Man
Program:
function: Find
inputs: American Broadcasting Company
function: Relate
dependencies: 0
inputs: original network
backward
function: Find
inputs: The Flintstones
function: And
dependencies: 1
2
function: Find
inputs: Canada
function: Relate
dependencies: 4
inputs: country of origin
backward
function: Find
inputs: Spider-Man
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Flintstones" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "American Broadcasting Company" .   } UNION { ?e <pred:name> "Spider-Man" . ?e <country_of_origin> ?e_2 . ?e_2 <pred:name> "Canada" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Spider-Man