Question: Is the episode count lower for Flight of the Conchords, originating in the USA, or the single-season Planet of the Apes ?
Choices: Saturday Night's Main Event
Phineas and Ferb
Seinfeld
Bleak House
Planet of the Apes
Game of Thrones
American Horror Story
Six Feet Under
Dancing with the Stars
Flight of the Conchords
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Flight of the Conchords" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" . } UNION { ?e <pred:name> "Planet of the Apes" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Flight of the Conchords
function: And
dependencies: 1
2
function: Find
inputs: Planet of the Apes
function: FilterNum
dependencies: 4
inputs: number of seasons
1
=
function: SelectBetween
dependencies: 3
5
inputs: number of episodes
less
Answer: Planet of the Apes