Question: Does Dallas (the one whose number of seasons is 3) or Starsky & Hutch (the one whose genre is television comedy) have the greater number of seasons?
Choices: Dancing with the Stars
Starsky & Hutch
Six Feet Under
Phineas and Ferb
American Horror Story
Robot Chicken
Dallas
Seinfeld
Saturday Night's Main Event
Bleak House
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dallas" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3"^^xsd:double . } UNION { ?e <pred:name> "Starsky & Hutch" . ?e <genre> ?e_1 . ?e_1 <pred:name> "television comedy" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Dallas
function: FilterNum
dependencies: 0
inputs: number of seasons
3
=
function: Find
inputs: television comedy
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: Starsky & Hutch
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of seasons
greater
Answer: Starsky & Hutch