Question: Which one, Mr. & Mrs. Smith (the one whose number of episodes is 13) or American Horror Story, has the greater number of seasons?
Choices:
Dancing with the Stars
Babylon 5
Six Feet Under
Mr. & Mrs. Smith
Game of Thrones
Robot Chicken
Seinfeld
American Horror Story
Bleak House
Phineas and Ferb
Answer: American Horror Story
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mr. & Mrs. Smith" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "13"^^xsd:double . } UNION { ?e <pred:name> "American Horror Story" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Mr. & Mrs. Smith
function: FilterNum
dependencies: 0
inputs: number of episodes
13
=
function: Find
inputs: American Horror Story
function: SelectBetween
dependencies: 1
2
inputs: number of seasons
greater