Question: Which has fewer seasons, Bewitched that a received Primetime Emmy Award for Outstanding Directing for a Comedy Series or Battlestar Galactica starring Fred Astaire?
Choices:
Game of Thrones
American Horror Story
Six Feet Under
Dancing with the Stars
Saturday Night's Main Event
Robot Chicken
Phineas and Ferb
Battlestar Galactica
Seinfeld
Bleak House
Answer: Battlestar Galactica
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bewitched" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "Primetime Emmy Award for Outstanding Directing for a Comedy Series" .   } UNION { ?e <pred:name> "Battlestar Galactica" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Fred Astaire" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Primetime Emmy Award for Outstanding Directing for a Comedy Series
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: Bewitched
function: And
dependencies: 1
2
function: Find
inputs: Fred Astaire
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Battlestar Galactica
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of seasons
less