Question: Which show has fewer seasons, Roots (the one that was nominated for Primetime Emmy Award for Outstanding Guest Actor in a Drama Series) or Stargate SG-1?
Choices:
Roots
The Civil War
George Washington
Battlestar Galactica
The Stand
Emma
Stargate SG-1
Edge of Darkness
The Pacific
The Ten Commandments
Program:
function: Find
inputs: Primetime Emmy Award for Outstanding Guest Actor in a Drama Series
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Roots
function: And
dependencies: 1
2
function: Find
inputs: Stargate SG-1
function: SelectBetween
dependencies: 3
4
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Roots" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Primetime Emmy Award for Outstanding Guest Actor in a Drama Series" .   } UNION { ?e <pred:name> "Stargate SG-1" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Roots