text
stringlengths
411
1.74k
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_games_in_a_career" ( "rank" text, "games" text, "player" text, "nationality" text, "career_span" text );. Question: "What is Graham Gooch's nationality?". [/INST] SELECT "nationality" FROM "most_games_in_a_career" WHERE "player"='graham gooch';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indoor_sports" ( "league" text, "sport" text, "season" text, "total_attendance" text, "average_attendance" real );. Question: "What was the highest average attendance in the 2009 season?". [/INST] SELECT MAX("average_attendance") FROM "indoor_sports" WHERE "season"='2009';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indoor_sports" ( "league" text, "sport" text, "season" text, "total_attendance" text, "average_attendance" real );. Question: "What's the total attendance in rink hockey when the average attendance was smaller than 4850?". [/INST] SELECT "total_attendance" FROM "indoor_sports" WHERE "average_attendance"<4850 AND "sport"='rink hockey';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indoor_sports" ( "league" text, "sport" text, "season" text, "total_attendance" text, "average_attendance" real );. Question: "What's the average attendance of the league with a total attendance of 2268508?". [/INST] SELECT "average_attendance" FROM "indoor_sports" WHERE "total_attendance"='2268508';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "leading_points_scorers" ( "name" text, "nation" text, "points" real, "games" real, "pts_game" real );. Question: "Can you tell me the average Points that has a Pts/game larger than 4, and the Nation of england, and the Games smaller than 5?". [/INST] SELECT AVG("points") FROM "leading_points_scorers" WHERE "pts_game">4 AND "nation"='england' AND "games"<5;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "leading_points_scorers" ( "name" text, "nation" text, "points" real, "games" real, "pts_game" real );. Question: "Can you tell me the lowest Pts/game that has the Games larger than 6?". [/INST] SELECT MIN("pts_game") FROM "leading_points_scorers" WHERE "games">6;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "leading_points_scorers" ( "name" text, "nation" text, "points" real, "games" real, "pts_game" real );. Question: "Can you tell me the lowest Pts/game that has the Name of philippa tuttiett, and the Points larger then 6?". [/INST] SELECT MIN("pts_game") FROM "leading_points_scorers" WHERE "name"='philippa tuttiett' AND "points">6;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "leading_points_scorers" ( "name" text, "nation" text, "points" real, "games" real, "pts_game" real );. Question: "Can you tell me the lowest Games that has the Pts/game larger than 1.4 and the Points of 20, and the Name of susan day?". [/INST] SELECT MIN("games") FROM "leading_points_scorers" WHERE "pts_game">1.4 AND "points"=20 AND "name"='susan day';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_1_1994_1995" ( "series_num" real, "title" text, "directed_by" text, "original_air_date" text, "production_code" real );. Question: "For the "Downtown Girl" episode, what was the original air date?". [/INST] SELECT "original_air_date" FROM "season_1_1994_1995" WHERE "title"='\"downtown girl\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_1_1994_1995" ( "series_num" real, "title" text, "directed_by" text, "original_air_date" text, "production_code" real );. Question: "What was the lowest production code value in series #10?". [/INST] SELECT MIN("production_code") FROM "season_1_1994_1995" WHERE "series_num"=10;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "color" text, "mass_g_mol" text, "absorb_nm" text, "emit_nm" text, "m_1_cm_1" text );. Question: "What is the Absorbtion (in nanometers) of the color Orange?". [/INST] SELECT "absorb_nm" FROM "references" WHERE "color"='orange';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "color" text, "mass_g_mol" text, "absorb_nm" text, "emit_nm" text, "m_1_cm_1" text );. Question: "What is the Absorbtion (in nanometers) of the color Violet with an emission of 432 nm?". [/INST] SELECT "absorb_nm" FROM "references" WHERE "color"='violet' AND "emit_nm"='432';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "color" text, "mass_g_mol" text, "absorb_nm" text, "emit_nm" text, "m_1_cm_1" text );. Question: "Which Emission (in nanometers) has an absorbtion of 593 nm?". [/INST] SELECT "emit_nm" FROM "references" WHERE "absorb_nm"='593';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "color" text, "mass_g_mol" text, "absorb_nm" text, "emit_nm" text, "m_1_cm_1" text );. Question: "Which Emission (in nanometers) that has a molar mass of 1078 g/mol?". [/INST] SELECT "emit_nm" FROM "references" WHERE "mass_g_mol"='1078';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "color" text, "mass_g_mol" text, "absorb_nm" text, "emit_nm" text, "m_1_cm_1" text );. Question: "Which ε (M -1 cm -1) has a molar mass of 1008 g/mol?". [/INST] SELECT "m_1_cm_1" FROM "references" WHERE "mass_g_mol"='1008';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the away team that played against Fitzroy?". [/INST] SELECT "away_team" FROM "round_16" WHERE "home_team"='fitzroy';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "On what date was the Essendon home match?". [/INST] SELECT "date" FROM "round_16" WHERE "home_team"='essendon';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "On what Date did the friendly Competition take place?". [/INST] SELECT "date" FROM "international_goals" WHERE "competition"='friendly';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text );. Question: "What was the Attendance of the Game at Hoosier Dome?". [/INST] SELECT "attendance" FROM "schedule" WHERE "game_site"='hoosier dome';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text );. Question: "What was the Result of the Game at the Meadowlands on 1991-09-01?". [/INST] SELECT "result" FROM "schedule" WHERE "game_site"='the meadowlands' AND "date"='1991-09-01';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text );. Question: "What was the Attendance in Week 17?". [/INST] SELECT "attendance" FROM "schedule" WHERE "week"=17;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text );. Question: "Which Opponent was played on 1991-10-13?". [/INST] SELECT "opponent" FROM "schedule" WHERE "date"='1991-10-13';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "roster" ( "number" real, "name" text, "position" text, "height" text, "weight" text );. Question: "What is the number for the player that has a k position?". [/INST] SELECT "number" FROM "roster" WHERE "position"='k';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the venue for the friendly competition and score of 4-0?". [/INST] SELECT "venue" FROM "international_goals" WHERE "score"='4-0' AND "competition"='friendly';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "Name the score for 7 may 2000". [/INST] SELECT "score" FROM "international_goals" WHERE "date"='7 may 2000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "Name the date of the uncaf nations cup 2009". [/INST] SELECT "date" FROM "international_goals" WHERE "competition"='uncaf nations cup 2009';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );. Question: "What date were there more than 19,600 people in attendance?". [/INST] SELECT "date" FROM "january" WHERE "attendance">'19,600';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "During st kilda's home game, what was the number of people in the crowd?". [/INST] SELECT "crowd" FROM "round_5" WHERE "home_team"='st kilda';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "In the match where the home team scored 14.20 (104), how many attendees were in the crowd?". [/INST] SELECT SUM("crowd") FROM "round_5" WHERE "home_team_score"='14.20 (104)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "In the match where the away team scored 2.7 (19), how many peopel were in the crowd?". [/INST] SELECT MAX("crowd") FROM "round_5" WHERE "away_team_score"='2.7 (19)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text );. Question: "What's the time/retired for constructor source:?". [/INST] SELECT "time_retired" FROM "race" WHERE "constructor"='source:';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text );. Question: "How many laps does luca badoer have?". [/INST] SELECT "laps" FROM "race" WHERE "driver"='luca badoer';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text );. Question: "What's the time/retired for a grid of 14?". [/INST] SELECT "time_retired" FROM "race" WHERE "grid"='14';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text );. Question: "How many laps does jean-christophe boullion have with a time/retired of +1 lap?". [/INST] SELECT "laps" FROM "race" WHERE "time_retired"='+1 lap' AND "driver"='jean-christophe boullion';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text );. Question: "How many laps does roberto moreno have?". [/INST] SELECT "laps" FROM "race" WHERE "driver"='roberto moreno';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text );. Question: "What grid has 2 laps?". [/INST] SELECT "grid" FROM "race" WHERE "laps"='2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "On what date did a home team score 16.10 (106)?". [/INST] SELECT "date" FROM "round_9" WHERE "home_team_score"='16.10 (106)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which home team has a home team 14.12 (96)?". [/INST] SELECT "home_team" FROM "round_9" WHERE "home_team_score"='14.12 (96)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "On what date was a game played at Windy Hill?". [/INST] SELECT "date" FROM "round_9" WHERE "venue"='windy hill';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Where does South Melbourne play?". [/INST] SELECT "venue" FROM "round_17" WHERE "away_team"='south melbourne';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Where did Richmond play?". [/INST] SELECT "venue" FROM "round_17" WHERE "away_team"='richmond';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which home team had the away team score 15.18 (108) against them?". [/INST] SELECT "home_team_score" FROM "round_18" WHERE "away_team_score"='15.18 (108)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which Team plays at Western Oval?". [/INST] SELECT "home_team" FROM "round_18" WHERE "venue"='western oval';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "How many people witnessed their home team score 13.15 (93)?". [/INST] SELECT MAX("crowd") FROM "round_18" WHERE "home_team_score"='13.15 (93)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the average crowd attendance for Collingwood?". [/INST] SELECT AVG("crowd") FROM "round_18" WHERE "home_team"='collingwood';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which away team scored 12.18 (90)?". [/INST] SELECT "away_team" FROM "round_18" WHERE "away_team_score"='12.18 (90)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_5_3_titles_2_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponent_in_final" text, "score_in_final" text );. Question: "Name the outcome for alizé cornet janette husárová being opponent in final". [/INST] SELECT "outcome" FROM "doubles_5_3_titles_2_runners_up" WHERE "opponent_in_final"='alizé cornet janette husárová';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_5_3_titles_2_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponent_in_final" text, "score_in_final" text );. Question: "Name the outcome that had an opponent in final of nina bratchikova kathrin wörle". [/INST] SELECT "outcome" FROM "doubles_5_3_titles_2_runners_up" WHERE "opponent_in_final"='nina bratchikova kathrin wörle';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_5_3_titles_2_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponent_in_final" text, "score_in_final" text );. Question: "Which partner was on 14 april 2013?". [/INST] SELECT "partner" FROM "doubles_5_3_titles_2_runners_up" WHERE "date"='14 april 2013';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "When laps are less than 80 and Bruce mclaren is the driver, what is the grid?". [/INST] SELECT "grid" FROM "classification" WHERE "laps"<80 AND "driver"='bruce mclaren';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What driver has a grid greater than 19?". [/INST] SELECT "driver" FROM "classification" WHERE "grid">19;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "When the driver richard attwood has a constructor of brm, what is the number of laps?". [/INST] SELECT "laps" FROM "classification" WHERE "constructor"='brm' AND "driver"='richard attwood';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the average grid for the competitiors who had laps smaller than 3?". [/INST] SELECT AVG("grid") FROM "moto_gp_classification" WHERE "laps"<3;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the average grid for competitors who had more than 22 laps and time/retired of +17.276?". [/INST] SELECT AVG("grid") FROM "moto_gp_classification" WHERE "time_retired"='+17.276' AND "laps">22;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "What was the average amount of laps for competitors with a grid that was more than 11 and a Time/Retired of +28.108?". [/INST] SELECT AVG("laps") FROM "moto_gp_classification" WHERE "time_retired"='+28.108' AND "grid">11;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the away team that played at Princes Park?". [/INST] SELECT "away_team" FROM "round_5" WHERE "venue"='princes park';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the away team that played at Princes Park?". [/INST] SELECT "away_team" FROM "round_5" WHERE "venue"='princes park';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "In what venue was the hosted away team Essendon?". [/INST] SELECT "venue" FROM "round_5" WHERE "away_team"='essendon';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Who was the home team at MCG?". [/INST] SELECT "home_team" FROM "round_5" WHERE "venue"='mcg';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "I want to know the final score for december 27". [/INST] SELECT "final_score" FROM "2009" WHERE "date"='december 27';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "Tell me the final score for january 9 for cincinnati bengals". [/INST] SELECT "final_score" FROM "2009" WHERE "date"='january 9' AND "host_team"='cincinnati bengals';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "Tell me the host team for giants stadium and visiting of cincinnati bengals". [/INST] SELECT "host_team" FROM "2009" WHERE "stadium"='giants stadium' AND "visiting_team"='cincinnati bengals';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "Tell me the date for pittsburgh steelers". [/INST] SELECT "date" FROM "2009" WHERE "visiting_team"='pittsburgh steelers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "Tell me the visiting team for october 4". [/INST] SELECT "visiting_team" FROM "2009" WHERE "date"='october 4';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "I want to know the stadium for tennessee titans visiting". [/INST] SELECT "stadium" FROM "2009" WHERE "visiting_team"='tennessee titans';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "When the driver is Juan Manuel Fangio and laps is less than 39, what is the highest grid?". [/INST] SELECT MAX("grid") FROM "classification" WHERE "laps"<39 AND "driver"='juan manuel fangio';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "When grid is less than 7, laps are greater than 17, and time/retired is + 1:35.6, who is the constructor?". [/INST] SELECT "constructor" FROM "classification" WHERE "laps">17 AND "grid"<7 AND "time_retired"='+ 1:35.6';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What was the smallest grid for Prince bira?". [/INST] SELECT MIN("grid") FROM "classification" WHERE "driver"='prince bira';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );. Question: "How many losses did the team with 22 goals for andmore than 8 games played have?". [/INST] SELECT COUNT("losses") FROM "final_standing" WHERE "goals_for"=22 AND "games_played">8;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );. Question: "For teams with fewer than 5 wins, goals against over 37, and fewer than 8 games played, what is the average number of ties?". [/INST] SELECT AVG("ties") FROM "final_standing" WHERE "wins"<5 AND "goals_against">37 AND "games_played"<8;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );. Question: "For teams with 7 wins, what is the number of goals against?". [/INST] SELECT "goals_against" FROM "final_standing" WHERE "wins"=7;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );. Question: "For teams with more than 0 ties and goals against of 37, how many wins were tallied?". [/INST] SELECT MAX("wins") FROM "final_standing" WHERE "goals_against"=37 AND "ties">0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actor" text, "record_set" text, "year" text, "notes" text );. Question: "What year was the the youngest nominee a winner?". [/INST] SELECT "year" FROM "list_of_superlative_academy_award_winner" WHERE "superlative"='youngest nominee';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actor" text, "record_set" text, "year" text, "notes" text );. Question: "What actor won in 1978?". [/INST] SELECT "actor" FROM "list_of_superlative_academy_award_winner" WHERE "year"='1978';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actor" text, "record_set" text, "year" text, "notes" text );. Question: "What are the notes in 1981?". [/INST] SELECT "notes" FROM "list_of_superlative_academy_award_winner" WHERE "year"='1981';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actor" text, "record_set" text, "year" text, "notes" text );. Question: "In what year had the oldest winner?". [/INST] SELECT "year" FROM "list_of_superlative_academy_award_winner" WHERE "superlative"='oldest winner';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actor" text, "record_set" text, "year" text, "notes" text );. Question: "What year did actor Richard Farnsworth get nominated for an award?". [/INST] SELECT "year" FROM "list_of_superlative_academy_award_winner" WHERE "actor"='richard farnsworth';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "Tell me the time/retired for Laps of 42 and Grids of 4". [/INST] SELECT "time_retired" FROM "classification" WHERE "laps"=42 AND "grid"=4;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "I want the driver that has Laps of 10". [/INST] SELECT "driver" FROM "classification" WHERE "laps"=10;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );. Question: "What is the position of Perpignan?". [/INST] SELECT "position" FROM "2007_rugby_world_cup_squads" WHERE "club_province"='perpignan';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );. Question: "Which player has a cap larger than 12 and Clubs of Toulouse?". [/INST] SELECT "player" FROM "2007_rugby_world_cup_squads" WHERE "caps">12 AND "club_province"='toulouse';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );. Question: "What is the birthday of caps of 32?". [/INST] SELECT "date_of_birth_age" FROM "2007_rugby_world_cup_squads" WHERE "caps"=32;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "gevorg_ghazaryan_international_goals" ( "goal" real, "date" text, "score" text, "result" text, "competition" text );. Question: "What is the result when the score is 0-2?". [/INST] SELECT "result" FROM "gevorg_ghazaryan_international_goals" WHERE "score"='0-2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "gevorg_ghazaryan_international_goals" ( "goal" real, "date" text, "score" text, "result" text, "competition" text );. Question: "How many goals when the score is 3-0 in the euro 2012 q?". [/INST] SELECT COUNT("goal") FROM "gevorg_ghazaryan_international_goals" WHERE "competition"='euro 2012 q' AND "score"='3-0';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "I want the driver for grid of 9". [/INST] SELECT "driver" FROM "classification" WHERE "grid"=9;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round" real, "pick" text, "player" text, "position" text, "school" text );. Question: "Which school has a quarterback?". [/INST] SELECT "school" FROM "nfl_draft" WHERE "position"='quarterback';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round" real, "pick" text, "player" text, "position" text, "school" text );. Question: "In which round is pick number 242?". [/INST] SELECT COUNT("round") FROM "nfl_draft" WHERE "pick"='242';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round" real, "pick" text, "player" text, "position" text, "school" text );. Question: "Which round was Tom Morris picked in?". [/INST] SELECT COUNT("round") FROM "nfl_draft" WHERE "player"='tom morris';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round" real, "pick" text, "player" text, "position" text, "school" text );. Question: "What pick did Clemson choose?". [/INST] SELECT "pick" FROM "nfl_draft" WHERE "school"='clemson';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mapping_l_a" ( "tujunga" text, "la_crescenta_montrose" text, "glendale" text, "la_ca_ada_flintridge" text, "pasadena" text );. Question: "When Tujunga is moderate, what is La Crescenta-Montrose?". [/INST] SELECT "la_crescenta_montrose" FROM "mapping_l_a" WHERE "tujunga"='moderate';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mapping_l_a" ( "tujunga" text, "la_crescenta_montrose" text, "glendale" text, "la_ca_ada_flintridge" text, "pasadena" text );. Question: "What is the percentage of La Canada Flintridge when Tujunga is 7%?". [/INST] SELECT "la_ca_ada_flintridge" FROM "mapping_l_a" WHERE "tujunga"='7%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mapping_l_a" ( "tujunga" text, "la_crescenta_montrose" text, "glendale" text, "la_ca_ada_flintridge" text, "pasadena" text );. Question: "When Pasadena is at 10%, what is La Crescenta-Montrose?". [/INST] SELECT "la_crescenta_montrose" FROM "mapping_l_a" WHERE "pasadena"='10%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mapping_l_a" ( "tujunga" text, "la_crescenta_montrose" text, "glendale" text, "la_ca_ada_flintridge" text, "pasadena" text );. Question: "When La Crescenta-Montrose has 66%, what is Tujunga?". [/INST] SELECT "tujunga" FROM "mapping_l_a" WHERE "la_crescenta_montrose"='66%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mapping_l_a" ( "tujunga" text, "la_crescenta_montrose" text, "glendale" text, "la_ca_ada_flintridge" text, "pasadena" text );. Question: "What is the figure for Tujunga when Pasadena is 134,941?". [/INST] SELECT "tujunga" FROM "mapping_l_a" WHERE "pasadena"='134,941';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mapping_l_a" ( "tujunga" text, "la_crescenta_montrose" text, "glendale" text, "la_ca_ada_flintridge" text, "pasadena" text );. Question: "What is the figure for La Canada Flintridge when Pasadena is 34?". [/INST] SELECT "la_ca_ada_flintridge" FROM "mapping_l_a" WHERE "pasadena"='34';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senators" ( "district" real, "county_s_represented" text, "member_senator" text, "party" text, "first_elected" real );. Question: "Who was firest elected in 2002 in a district larger than 41?". [/INST] SELECT "member_senator" FROM "senators" WHERE "first_elected"=2002 AND "district">41;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senators" ( "district" real, "county_s_represented" text, "member_senator" text, "party" text, "first_elected" real );. Question: "What district for ulysses currie?". [/INST] SELECT "district" FROM "senators" WHERE "member_senator"='ulysses currie';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Where did Geelong play as the away team?". [/INST] SELECT "venue" FROM "round_8" WHERE "away_team"='geelong';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was Hawthorn's score as the home team?". [/INST] SELECT "home_team_score" FROM "round_8" WHERE "home_team"='hawthorn';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Who was South Melbourne's away opponents?". [/INST] SELECT "away_team" FROM "round_8" WHERE "home_team"='south melbourne';</s>