Question: Tell me the ones with the least seasons, Drive (which has a script written by Tim minear) or the Big Bang Theory
Choices:
Six Feet Under
The Big Bang Theory
American Horror Story
Robot Chicken
Dancing with the Stars
Drive
Game of Thrones
Phineas and Ferb
Bleak House
Seinfeld
Program:
function: Find
inputs: Tim Minear
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Drive
function: And
dependencies: 1
2
function: Find
inputs: The Big Bang Theory
function: SelectBetween
dependencies: 3
4
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Drive" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Tim Minear" .   } UNION { ?e <pred:name> "The Big Bang Theory" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Drive