Question: Which was longer, Stargate SG-1 or Chuck, with Richard Chamberlain?
Choices:
Six Feet Under
Saturday Night's Main Event
Robot Chicken
American Horror Story
Bleak House
Chuck
Seinfeld
Game of Thrones
Stargate SG-1
Dancing with the Stars
Program:
function: Find
inputs: Stargate SG-1
function: Find
inputs: Richard Chamberlain
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Chuck
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Stargate SG-1" .  } UNION { ?e <pred:name> "Chuck" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Richard Chamberlain" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Stargate SG-1