Question: Does Spartacus (that has Lucy Lawless as a cast member) or Rosemary's Baby (that has 1 season) have more episodes?
Choices:
Game of Thrones
Robot Chicken
American Horror Story
Spartacus
Phineas and Ferb
Six Feet Under
Dancing with the Stars
Seinfeld
Bleak House
Saturday Night's Main Event
Program:
function: Find
inputs: Lucy Lawless
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Spartacus
function: And
dependencies: 1
2
function: Find
inputs: Rosemary's Baby
function: FilterNum
dependencies: 4
inputs: number of seasons
1
=
function: SelectBetween
dependencies: 3
5
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Spartacus" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Lucy Lawless" . } UNION { ?e <pred:name> "Rosemary's Baby" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Spartacus