Question: Which is shorter, Hannibal starring Hugh Dancy or Dark Shadows that has 1225 episodes?
Choices:
Robot Chicken
Bleak House
Phineas and Ferb
Dancing with the Stars
Dark Shadows
Seinfeld
Hannibal
American Horror Story
Game of Thrones
Six Feet Under
Program:
function: Find
inputs: Hugh Dancy
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Hannibal
function: And
dependencies: 1
2
function: Find
inputs: Dark Shadows
function: FilterNum
dependencies: 4
inputs: number of episodes
1225
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hannibal" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Hugh Dancy" . } UNION { ?e <pred:name> "Dark Shadows" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1225"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Dark Shadows