Question: Does Twin Peaks, executive produced by David Lynch, or Dumb and Dumber, with composer Mark Mothersbaugh, boast the longer run of seasons?
Choices:
Robot Chicken
Dumb and Dumber
Saturday Night's Main Event
Game of Thrones
American Horror Story
Twin Peaks
Bleak House
Seinfeld
Dancing with the Stars
Six Feet Under
Answer: Twin Peaks
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Twin Peaks" . ?e <executive_producer> ?e_1 . ?e_1 <pred:name> "David Lynch" .   } UNION { ?e <pred:name> "Dumb and Dumber" . ?e <composer> ?e_2 . ?e_2 <pred:name> "Mark Mothersbaugh" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: David Lynch
function: Relate
dependencies: 0
inputs: executive producer
backward
function: Find
inputs: Twin Peaks
function: And
dependencies: 1
2
function: Find
inputs: Mark Mothersbaugh
function: Relate
dependencies: 4
inputs: composer
backward
function: Find
inputs: Dumb and Dumber
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of seasons
greater