Question: Which show has more seasons, 3rd Rock from the Sun or Rosemary's Baby (the one that has Jason Isaacs as a cast member)?
Choices:
American Horror Story
Bleak House
Saturday Night's Main Event
Six Feet Under
Seinfeld
Rosemary's Baby
Game of Thrones
Dancing with the Stars
Robot Chicken
3rd Rock from the Sun
Answer: 3rd Rock from the Sun
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "3rd Rock from the Sun" .  } UNION { ?e <pred:name> "Rosemary's Baby" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jason Isaacs" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: 3rd Rock from the Sun
function: Find
inputs: Jason Isaacs
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Rosemary's Baby
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
greater