Question: Which show has more seasons, Julia (the one whose distributor is 20th Century Fox Television) or Indian Idol?
Choices:
Game of Thrones
Indian Idol
Phineas and Ferb
Bleak House
Seinfeld
Saturday Night's Main Event
Six Feet Under
Robot Chicken
American Horror Story
Julia
Answer: Indian Idol
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Julia" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "20th Century Fox Television" .   } UNION { ?e <pred:name> "Indian Idol" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: 20th Century Fox Television
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Julia
function: And
dependencies: 1
2
function: Find
inputs: Indian Idol
function: SelectBetween
dependencies: 3
4
inputs: number of seasons
greater