Question: Which has more seasons, Lost in Space directed by Irwin Allen or The Office starring Leslie David Baker?
Choices:
Saturday Night's Main Event
Seinfeld
Dancing with the Stars
Game of Thrones
Six Feet Under
Robot Chicken
Phineas and Ferb
The Office
American Horror Story
Lost in Space
Answer: The Office
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lost in Space" . ?e <director> ?e_1 . ?e_1 <pred:name> "Irwin Allen" .   } UNION { ?e <pred:name> "The Office" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Leslie David Baker" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Irwin Allen
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Lost in Space
function: And
dependencies: 1
2
function: Find
inputs: Leslie David Baker
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Office
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of seasons
greater