Question: Does The Shield or the soap opera One Tree Hill have more seasons?
Choices:
Six Feet Under
Robot Chicken
Saturday Night's Main Event
Game of Thrones
The Shield
Dancing with the Stars
One Tree Hill
Phineas and Ferb
Seinfeld
American Horror Story
Program:
function: Find
inputs: The Shield
function: Find
inputs: soap opera
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: One Tree Hill
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Shield" .  } UNION { ?e <pred:name> "One Tree Hill" . ?e <genre> ?e_1 . ?e_1 <pred:name> "soap opera" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: One Tree Hill