Question: Are there more episodes of the soap opera Somerset or of The Biggest Loser?
Choices:
The Biggest Loser
Game of Thrones
American Horror Story
Six Feet Under
Robot Chicken
Bleak House
Seinfeld
Dancing with the Stars
Somerset
Saturday Night's Main Event
Program:
function: Find
inputs: soap opera
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Somerset
function: And
dependencies: 1
2
function: Find
inputs: The Biggest Loser
function: SelectBetween
dependencies: 3
4
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Somerset" . ?e <genre> ?e_1 . ?e_1 <pred:name> "soap opera" .   } UNION { ?e <pred:name> "The Biggest Loser" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Somerset