Question: Which show has more seasons, Around the World in 80 Days (the one whose genre is documentary film) or The O.C.?
Choices:
Seinfeld
The O.C.
Six Feet Under
Phineas and Ferb
Bleak House
Dancing with the Stars
Around the World in 80 Days
Robot Chicken
Game of Thrones
Saturday Night's Main Event
Answer: The O.C.
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Around the World in 80 Days" . ?e <genre> ?e_1 . ?e_1 <pred:name> "documentary film" .   } UNION { ?e <pred:name> "The O.C." .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: documentary film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Around the World in 80 Days
function: And
dependencies: 1
2
function: Find
inputs: The O.C.
function: SelectBetween
dependencies: 3
4
inputs: number of seasons
greater