Question: Which has fewer seasons, Twin Peaks (the one that has Jim Belushi as a cast member) or The Office (the one that has Martin Freeman as a cast member)?
Choices:
Game of Thrones
Bleak House
Robot Chicken
Dancing with the Stars
Phineas and Ferb
American Horror Story
Seinfeld
The Office
Saturday Night's Main Event
Twin Peaks
Program:
function: Find
inputs: Jim Belushi
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Twin Peaks
function: And
dependencies: 1
2
function: Find
inputs: Martin Freeman
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
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Twin Peaks" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jim Belushi" .   } UNION { ?e <pred:name> "The Office" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Martin Freeman" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Twin Peaks