Question: Which has more episodes, Working Girl (the one whose end time is 1990-08-27) or Spider-Man (the one that origins from Canada)?
Choices:
Robot Chicken
Bleak House
Dancing with the Stars
Six Feet Under
Working Girl
American Horror Story
Game of Thrones
Spider-Man
Saturday Night's Main Event
Phineas and Ferb
Answer: Spider-Man
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> "Spider-Man" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Canada" . } ?e <number_of_episodes> ?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: Canada
function: Relate
dependencies: 2
inputs: country of origin
backward
function: Find
inputs: Spider-Man
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
greater