Question: who are the writer of the series episode number 170?
SQL: SELECT "Written by" FROM "1-22580855-1" WHERE "Series no." = 170.0;

Question: which is the  maximun serie episode number when the millions of North American spectators is 3.14?
SQL: SELECT MAX("Series no.") FROM "1-22580855-1" WHERE "U.S. Viewers (millions)" = '3.14';

Question: How many writers write the episode whose director is Jonathan Herron?
SQL: SELECT COUNT("Written by") FROM "1-22580855-1" WHERE "Directed by" = 'Jonathan Herron';

Question: which is the biggest production code?
SQL: SELECT MAX("Production code") FROM "1-22580855-1";

Question: who are the writers when the production code is 8011?
SQL: SELECT "Written by" FROM "1-22580855-1" WHERE "Production code" = 8011.0;

Question: what is the name of the episode whose writer is Timothy J. Lea and the director is Norberto Barba?
SQL: SELECT "Title" FROM "1-22580855-1" WHERE "Written by" = 'Timothy J. Lea' AND "Directed by" = 'Norberto Barba';