Question: Which has fewer seasons, Fringe or The Hitchhiker's Guide to the Galaxy (the one whose number of episodes is 6)?
Choices:
Phineas and Ferb
Bleak House
Robot Chicken
American Horror Story
The Hitchhiker's Guide to the Galaxy
Saturday Night's Main Event
Game of Thrones
Six Feet Under
Dancing with the Stars
Fringe
Program:
function: Find
inputs: Fringe
function: Find
inputs: The Hitchhiker's Guide to the Galaxy
function: FilterNum
dependencies: 1
inputs: number of episodes
6
=
function: SelectBetween
dependencies: 0
2
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fringe" . } UNION { ?e <pred:name> "The Hitchhiker's Guide to the Galaxy" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "6"^^xsd:double . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Hitchhiker's Guide to the Galaxy