Question: Which show has fewer episodes, The Missing (the one whose Twitter username is TheMissingSTARZ) or Drive (the one whose script is wrote by Tim Minear)?
Choices:
Game of Thrones
Phineas and Ferb
Six Feet Under
Seinfeld
Saturday Night's Main Event
Drive
The Missing
Dancing with the Stars
Robot Chicken
Bleak House
Answer: Drive
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Missing" . ?e <Twitter_username> ?pv_1 . ?pv_1 <pred:value> "TheMissingSTARZ" . } UNION { ?e <pred:name> "Drive" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Tim Minear" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Missing
function: FilterStr
dependencies: 0
inputs: Twitter username
TheMissingSTARZ
function: Find
inputs: Tim Minear
function: Relate
dependencies: 2
inputs: screenwriter
backward
function: Find
inputs: Drive
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
less