Question: Does Somerset with Sigourney Weaver or Merlin that has 1 season have more episodes?
Choices:
Phineas and Ferb
Merlin
Game of Thrones
Robot Chicken
American Horror Story
Somerset
Bleak House
Dancing with the Stars
Seinfeld
Saturday Night's Main Event
Program:
function: Find
inputs: Sigourney Weaver
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Somerset
function: And
dependencies: 1
2
function: Find
inputs: Merlin
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> "Somerset" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Sigourney Weaver" . } UNION { ?e <pred:name> "Merlin" . ?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: Somerset