Question: Does Dallas produced by Lorimar Television or American Horror Story have more seasons?
Choices:
Seinfeld
Phineas and Ferb
Babylon 5
Dallas
Bleak House
Saturday Night's Main Event
Six Feet Under
Game of Thrones
Dancing with the Stars
Robot Chicken
Program:
function: Find
inputs: Lorimar Television
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Dallas
function: And
dependencies: 1
2
function: Find
inputs: American Horror Story
function: SelectBetween
dependencies: 3
4
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dallas" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Lorimar Television" .   } UNION { ?e <pred:name> "American Horror Story" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Dallas