Question: Does the Las Vegas program originating in the USA or The Singing Detective, which concluded on 1986-12-21, have the higher episode code?
Choices: Six Feet Under
Las Vegas
Phineas and Ferb
Game of Thrones
Robot Chicken
Bleak House
Saturday Night's Main Event
The Singing Detective
American Horror Story
Seinfeld
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Las Vegas" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" . } UNION { ?e <pred:name> "The Singing Detective" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1986-12-21"^^xsd:date . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Las Vegas
function: And
dependencies: 1
2
function: Find
inputs: The Singing Detective
function: FilterDate
dependencies: 4
inputs: end time
1986-12-21
=
function: SelectBetween
dependencies: 3
5
inputs: number of episodes
greater
Answer: Las Vegas