Question: Does the longer clock-time belong to Merlin, with cast member John Hurt, or The Flintstones, which had a 6-season run?
Choices: Merlin
Six Feet Under
American Horror Story
Robot Chicken
Seinfeld
Game of Thrones
Phineas and Ferb
The Flintstones
Bleak House
Saturday Night's Main Event
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Merlin" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "John Hurt" . } UNION { ?e <pred:name> "The Flintstones" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "6"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: John Hurt
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Merlin
function: And
dependencies: 1
2
function: Find
inputs: The Flintstones
function: FilterNum
dependencies: 4
inputs: number of seasons
6
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
Answer: Merlin