Question: Does Smallville or The Smurfs (whose genre is television comedy) have the longer runtime?
Choices:
Game of Thrones
American Horror Story
The Smurfs
Phineas and Ferb
Six Feet Under
Dancing with the Stars
Seinfeld
Saturday Night's Main Event
Smallville
Bleak House
Answer: Smallville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Smallville" .  } UNION { ?e <pred:name> "The Smurfs" . ?e <genre> ?e_1 . ?e_1 <pred:name> "television comedy" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Smallville
function: Find
inputs: television comedy
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: The Smurfs
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater