Question: Which one has more seasons, Ryan's Hope or The Kingdom (the one that has Lars von Trier as a cast member) ?
Choices:
Phineas and Ferb
Bleak House
American Horror Story
Saturday Night's Main Event
Ryan's Hope
Six Feet Under
Seinfeld
Robot Chicken
The Kingdom
Dancing with the Stars
Program:
function: Find
inputs: Ryan's Hope
function: Find
inputs: Lars von Trier
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Kingdom
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ryan's Hope" .  } UNION { ?e <pred:name> "The Kingdom" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Lars von Trier" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ryan's Hope