Abaixo está uma instrução que descreve uma tarefa de geração de SQL, combinada com uma entrada que fornece mais contexto sobre os esquemas de tabela disponíveis. Escreva o código SQL que responda adequadamente à solicitação
 ###Instrução: Qual foi a divisão quando Jim O'Brien era o treinador principal e a equipe terminou em 2º na divisão?
 ###Tabelas: CREATE TABLE by_country_tally (by_country_tally_id AUTO_INCREMENT PRIMARY KEY, Rank INT, Country/Territory VARCHAR, Mister International INT, 1st runner-up INT, 2nd runner-up INT, 3rd runner-up INT, 4th runner-up INT, Semifinalists INT, Total INT) CREATE TABLE vermont_counties_ranked_by_per_capita_income (vermont_counties_ranked_by_per_capita_income_id AUTO_INCREMENT PRIMARY KEY, County VARCHAR, Per capita income VARCHAR, Median household income VARCHAR, Median family income VARCHAR, Population INT, Number of households INT) CREATE TABLE classic_competition (classic_competition_id AUTO_INCREMENT PRIMARY KEY, Driver VARCHAR, Navigator VARCHAR, Vehicle VARCHAR, Class VARCHAR, Capacity INT, Total Time VARCHAR, Margin VARCHAR) CREATE TABLE composition_of_the_6th_seanad (composition_of_the_6th_seanad_id AUTO_INCREMENT PRIMARY KEY, Administrative Panel INT, Agricultural Panel INT, Cultural and Educational Panel INT, Industrial and Commercial Panel INT, Labour Panel INT, National University of Ireland INT, University of Dublin INT, Nominated by the Taoiseach INT, Total INT) CREATE TABLE seasons (seasons_id AUTO_INCREMENT PRIMARY KEY, Season VARCHAR, Conf. VARCHAR, Conf. finish VARCHAR, Div. VARCHAR, Div. Finish VARCHAR, Head coach VARCHAR)  
SELECT Div. FROM seasons WHERE Div. Finish = 2nd AND Head coach = jim o'brien