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