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