Question: What show had more seasons, The Golden Girls or Mr. Smith Goes to Washington (the one whose genre is situation comedy)?
Choices:
Dirty Dancing
Nevada
stand-up comedy
The Monkees
The Golden Girls
Max von Sydow
Harry Potter and the Goblet of Fire
farce
Mr. Smith Goes to Washington
comedy of manners
Program:
function: Find
inputs: The Golden Girls
function: Find
inputs: situation comedy
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Mr. Smith Goes to Washington
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Golden Girls" .  } UNION { ?e <pred:name> "Mr. Smith Goes to Washington" . ?e <genre> ?e_1 . ?e_1 <pred:name> "situation comedy" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Golden Girls