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