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