Question: Which show has more seasons, Iron Man (the one whose distributor is New World Pictures) or One Life to Live?
Choices:
One Life to Live
Game of Thrones
Dancing with the Stars
Phineas and Ferb
Seinfeld
Bleak House
Robot Chicken
Saturday Night's Main Event
Iron Man
American Horror Story
Program:
function: Find
inputs: New World Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Iron Man
function: And
dependencies: 1
2
function: Find
inputs: One Life to Live
function: SelectBetween
dependencies: 3
4
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Iron Man" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "New World Pictures" .   } UNION { ?e <pred:name> "One Life to Live" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: One Life to Live