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