Question: Which has fewer seasons, Charmed whose episode count is 178 or Downton Abbey starring Dan Stevens?
Choices: Robot Chicken
Dancing with the Stars
American Horror Story
Phineas and Ferb
Saturday Night's Main Event
Seinfeld
Downton Abbey
Charmed
Game of Thrones
Bleak House
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charmed" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "178"^^xsd:double . } UNION { ?e <pred:name> "Downton Abbey" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Dan Stevens" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Charmed
function: FilterNum
dependencies: 0
inputs: number of episodes
178
=
function: Find
inputs: Dan Stevens
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Downton Abbey
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of seasons
less
Answer: Downton Abbey