Question: Are there less seasons in the documentary film Egypt or in Star Trek: The Next Generation (the one whose number of episodes is 178)?
Choices: American Horror Story
Phineas and Ferb
Egypt
Six Feet Under
Dancing with the Stars
Bleak House
Robot Chicken
Star Trek: The Next Generation
Seinfeld
Saturday Night's Main Event
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Egypt" . ?e <genre> ?e_1 . ?e_1 <pred:name> "documentary film" . } UNION { ?e <pred:name> "Star Trek: The Next Generation" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "178"^^xsd:double . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: documentary film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Egypt
function: And
dependencies: 1
2
function: Find
inputs: Star Trek: The Next Generation
function: FilterNum
dependencies: 4
inputs: number of episodes
178
=
function: SelectBetween
dependencies: 3
5
inputs: number of seasons
less
Answer: Egypt