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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Name the team for kirk hinrich , derrick rose , john salmons (6)". [/INST] SELECT "team" FROM "game_log" WHERE "high_assists"='Kirk Hinrich , Derrick Rose , John Salmons (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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Name the high points 31-27". [/INST] SELECT "high_points" FROM "game_log" WHERE "record"='31-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 "schedule_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "pole_position" text, "winning_driver" text );. Question: "What is the location is the winning driver is Bill Vukovich II?". [/INST] SELECT "location" FROM "schedule_and_results" WHERE "winning_driver"='Bill Vukovich II';</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_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "pole_position" text, "winning_driver" text );. Question: "If the track is the Wisconsin State Fair Park Speedway and the winning driver is Wally Dallenbach, what was the location?". [/INST] SELECT "location" FROM "schedule_and_results" WHERE "winning_driver"='Wally Dallenbach' AND "track"='Wisconsin State Fair Park Speedway';</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_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "pole_position" text, "winning_driver" text );. Question: "If the location is Brooklyn, Michigan and the pole position is Bobby Unser, what is the RND total number?". [/INST] SELECT COUNT("rnd") FROM "schedule_and_results" WHERE "location"='Brooklyn, Michigan' AND "pole_position"='Bobby Unser';</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_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "pole_position" text, "winning_driver" text );. Question: "If the pole position is Johnny Rutherford and the track is the Ontario Motor Speedway, what is the RND total number?". [/INST] SELECT COUNT("rnd") FROM "schedule_and_results" WHERE "track"='Ontario Motor Speedway' AND "pole_position"='Johnny Rutherford';</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 "table1_2267857_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "Name the laps of october 26". [/INST] SELECT "laps" FROM "table1_2267857_1" WHERE "date"='October 26';</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 "table1_2267857_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "Name the date for 2006". [/INST] SELECT "date" FROM "table1_2267857_1" WHERE "year"=2006;</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 "table1_2267857_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "Name the number of year for dick hutcherson". [/INST] SELECT COUNT("year") FROM "table1_2267857_1" WHERE "driver"='Dick Hutcherson';</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 "table1_2267857_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "Name the total number for report july 23". [/INST] SELECT COUNT("report") FROM "table1_2267857_1" WHERE "date"='July 23';</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_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text );. Question: "What party won with a margin of 105731?". [/INST] SELECT "party" FROM "list_of_elected_m_ps" WHERE "margin"=105731;</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_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text );. Question: "What party is the winner K. Anbazhagan from?". [/INST] SELECT "party_a" FROM "list_of_elected_m_ps" WHERE "winner"='K. Anbazhagan';</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_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text );. Question: "How many times did M. Gounder win for Party A?". [/INST] SELECT COUNT("party_a") FROM "list_of_elected_m_ps" WHERE "winner"='M. Gounder';</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_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text );. Question: "Who won when V. A. Muthiah was the runner-up?". [/INST] SELECT "winner" FROM "list_of_elected_m_ps" WHERE "runner_up_a"='V. A. Muthiah';</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_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text );. Question: "What party was the winner when A. Krishnaswamy was the runner-up?". [/INST] SELECT "party" FROM "list_of_elected_m_ps" WHERE "runner_up_a"='A. Krishnaswamy';</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_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text );. Question: "Who was the runner up for the Nagapattinam constituency?". [/INST] SELECT "runner_up_a" FROM "list_of_elected_m_ps" WHERE "constituency"='Nagapattinam';</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_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text );. Question: "who ended runner-up to sankar adhi?". [/INST] SELECT "runner_up_a" FROM "list_of_elected_m_ps" WHERE "winner"='Sankar Adhi';</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_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text );. Question: "which was k. annamalai´s party a?". [/INST] SELECT "party_a" FROM "list_of_elected_m_ps" WHERE "runner_up_a"='K. Annamalai';</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_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text );. Question: "What is the population in those place where the market income per capita is $17,362?". [/INST] SELECT "population" FROM "list_of_appalachian_regional_commission_" WHERE "market_income_per_capita"='$17,362';</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_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text );. Question: "What is the unemployment rate in those places where the market income per capita is $16,981?". [/INST] SELECT COUNT("unemployment_rate") FROM "list_of_appalachian_regional_commission_" WHERE "market_income_per_capita"='$16,981';</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_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text );. Question: "What is the status in those places where the poverty rate is 8.6%?". [/INST] SELECT "status" FROM "list_of_appalachian_regional_commission_" WHERE "poverty_rate"='8.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 "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text );. Question: "What is the unemployment rate in those places in Alexander county whose status is transitional?". [/INST] SELECT "unemployment_rate" FROM "list_of_appalachian_regional_commission_" WHERE "status"='Transitional' AND "county"='Alexander';</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_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text );. Question: "What is the population of the country of McDowell?". [/INST] SELECT "population" FROM "list_of_appalachian_regional_commission_" WHERE "county"='McDowell';</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_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text );. Question: "In what counties is the unemployment rate 5.8% and the market income per capita is $22,866?". [/INST] SELECT "county" FROM "list_of_appalachian_regional_commission_" WHERE "unemployment_rate"='5.8%' AND "market_income_per_capita"='$22,866';</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_7" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "w_l" text, "result" text );. Question: "Name the partnering for round sf". [/INST] SELECT "partnering" FROM "doubles_7" WHERE "round"='SF';</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_7" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "w_l" text, "result" text );. Question: "Name the total number of round for against the netherlands". [/INST] SELECT COUNT("round") FROM "doubles_7" WHERE "against"='The Netherlands';</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_7" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "w_l" text, "result" text );. Question: "Name the round for john van lottum martin verkerk". [/INST] SELECT "round" FROM "doubles_7" WHERE "opponents"='John Van Lottum Martin Verkerk';</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_7" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "w_l" text, "result" text );. Question: "Name the w/l for czech republic". [/INST] SELECT "w_l" FROM "doubles_7" WHERE "against"='Czech Republic';</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_7" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "w_l" text, "result" text );. Question: "Name the result for jiří novák radek štěpánek". [/INST] SELECT "result" FROM "doubles_7" WHERE "opponents"='Jiří Novák Radek Štěpánek';</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 "table1_22849575_6" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "Name the tournament venue for big sky conference". [/INST] SELECT "tournament_venue_city" FROM "table1_22849575_6" WHERE "conference"='Big Sky Conference';</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 "table1_22849575_6" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "Name the number of conference tournament for james madison". [/INST] SELECT COUNT("conference_tournament") FROM "table1_22849575_6" WHERE "tournament_winner"='James Madison';</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 "table1_22849575_6" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "Name the conference player of the year for east tennessee state". [/INST] SELECT "conference_player_of_the_year" FROM "table1_22849575_6" WHERE "regular_season_winner"='East Tennessee State';</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 "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "Name the team for arif asadov". [/INST] SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='Arif Asadov';</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 "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "Name the manner of departure for 1 december 2009". [/INST] SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_vacancy"='1 December 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 "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "Name the outgoing manager for 10 june 2009". [/INST] SELECT COUNT("outgoing_manager") FROM "managerial_changes" WHERE "date_of_vacancy"='10 June 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 "paleogeography_and_climate" ( "age_before" text, "america" text, "atlantic_europe" text, "maghreb" text, "mediterranean_europe" text, "central_europe" text );. Question: "What is every entry for Atlantic Europe when Central Europe is Wisconsin stage?". [/INST] SELECT "atlantic_europe" FROM "paleogeography_and_climate" WHERE "central_europe"='Wisconsin Stage';</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 "paleogeography_and_climate" ( "age_before" text, "america" text, "atlantic_europe" text, "maghreb" text, "mediterranean_europe" text, "central_europe" text );. Question: "How many values for Maghreb with Mediterranean Europe is Siciliense?". [/INST] SELECT COUNT("maghreb") FROM "paleogeography_and_climate" WHERE "mediterranean_europe"='Siciliense';</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 "paleogeography_and_climate" ( "age_before" text, "america" text, "atlantic_europe" text, "maghreb" text, "mediterranean_europe" text, "central_europe" text );. Question: "What is the Atlantic Europe when age is 10,000 years?". [/INST] SELECT "atlantic_europe" FROM "paleogeography_and_climate" WHERE "age_before"='10,000 years';</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 "paleogeography_and_climate" ( "age_before" text, "america" text, "atlantic_europe" text, "maghreb" text, "mediterranean_europe" text, "central_europe" text );. Question: "What is every entry for America when Atlantic Europe is Hoxniense?". [/INST] SELECT "america" FROM "paleogeography_and_climate" WHERE "atlantic_europe"='Hoxniense';</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 "paleogeography_and_climate" ( "age_before" text, "america" text, "atlantic_europe" text, "maghreb" text, "mediterranean_europe" text, "central_europe" text );. Question: "What are all ages for Maghreb is Maarifiense?". [/INST] SELECT "age_before" FROM "paleogeography_and_climate" WHERE "maghreb"='Maarifiense';</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" ( "date" text, "location" text, "opponent" text, "spartans_points" real, "opp_points" real, "record" text );. Question: "How many points did the opponents with a 6-2 record against the Spartans score?". [/INST] SELECT MIN("opp_points") FROM "schedule" WHERE "record"='6-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 "schedule" ( "date" text, "location" text, "opponent" text, "spartans_points" real, "opp_points" real, "record" text );. Question: "Against whom did the Spartans score 73 points?". [/INST] SELECT "opponent" FROM "schedule" WHERE "spartans_points"=73;</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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Who had highest points in game 5?". [/INST] SELECT "high_points" FROM "game_log" WHERE "game"=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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What was the final score of the game held on February 24?". [/INST] SELECT "score" FROM "game_log" WHERE "date"='February 24';</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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Who was the opponent in the game held on February 4?". [/INST] SELECT "team" FROM "game_log" WHERE "date"='February 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 "active_courts" ( "region" text, "citation" text, "court_of_appeals" text, "established" real, "judges" real, "meeting_places" real, "chief_judge" text );. Question: "If the region is the Southern district of Texas, what is the citation?". [/INST] SELECT "citation" FROM "active_courts" WHERE "region"='Southern District of Texas';</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 "active_courts" ( "region" text, "citation" text, "court_of_appeals" text, "established" real, "judges" real, "meeting_places" real, "chief_judge" text );. Question: "If the chief judge is Jeffrey L. Viken, what is the region?". [/INST] SELECT "region" FROM "active_courts" WHERE "chief_judge"='Jeffrey L. Viken';</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 "active_courts" ( "region" text, "citation" text, "court_of_appeals" text, "established" real, "judges" real, "meeting_places" real, "chief_judge" text );. Question: "If the chief judge is Glen E. Conrad, what is the region?". [/INST] SELECT "region" FROM "active_courts" WHERE "chief_judge"='Glen E. Conrad';</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 "table1_22904707_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "rank_week" real, "original_air_date" text );. Question: "What was the name of the episode that had 14.52 viewers?". [/INST] SELECT "title" FROM "table1_22904707_1" WHERE "u_s_viewers_million"='14.52';</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 "table1_22904707_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "rank_week" real, "original_air_date" text );. Question: "How many million viewers did episode number 63 have?". [/INST] SELECT "u_s_viewers_million" FROM "table1_22904707_1" WHERE "no"=63;</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 "table1_22904707_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "rank_week" real, "original_air_date" text );. Question: "What number in the season was episode 52 in the series?". [/INST] SELECT MIN("num") FROM "table1_22904707_1" WHERE "no"=52;</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 "census_designated_places" ( "rank" real, "census_designated_place" text, "metropolitan_area" text, "state" text, "population_2000_census" real, "land_area_mi_2" text, "population_density_people_per_mi_2" text );. Question: "which area has a rank of 60?". [/INST] SELECT "metropolitan_area" FROM "census_designated_places" WHERE "rank"=60;</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 "census_designated_places" ( "rank" real, "census_designated_place" text, "metropolitan_area" text, "state" text, "population_2000_census" real, "land_area_mi_2" text, "population_density_people_per_mi_2" text );. Question: "what is the total number of population where census designated place is westmont?". [/INST] SELECT COUNT("population_2000_census") FROM "census_designated_places" WHERE "census_designated_place"='Westmont';</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 "census_designated_places" ( "rank" real, "census_designated_place" text, "metropolitan_area" text, "state" text, "population_2000_census" real, "land_area_mi_2" text, "population_density_people_per_mi_2" text );. Question: "what is the total number of census designated places with a population of 10581?". [/INST] SELECT COUNT("census_designated_place") FROM "census_designated_places" WHERE "population_2000_census"=10581;</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 "airing_of_the_show" ( "season" text, "premiere" text, "finale" text, "reunion" text, "winners" text, "runners_up" text, "number_of_contestants" real, "number_of_episodes" real );. Question: "Name the most number of contestants". [/INST] SELECT MAX("number_of_contestants") FROM "airing_of_the_show";</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 "airing_of_the_show" ( "season" text, "premiere" text, "finale" text, "reunion" text, "winners" text, "runners_up" text, "number_of_contestants" real, "number_of_episodes" real );. Question: "Name the premiere for 8 episodes". [/INST] SELECT "premiere" FROM "airing_of_the_show" WHERE "number_of_episodes"=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 "series_winners" ( "season" real, "winner" text, "captain" text, "coach" text, "league_finish" text, "mat" real, "w" real, "l" real, "win_pct" text, "runner_up" text );. Question: "Name the mat for win % for 56.25 for league finish being 4th". [/INST] SELECT "mat" FROM "series_winners" WHERE "win_pct"='56.25' AND "league_finish"='4th';</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 "series_winners" ( "season" real, "winner" text, "captain" text, "coach" text, "league_finish" text, "mat" real, "w" real, "l" real, "win_pct" text, "runner_up" text );. Question: "Name the league finish for deccan chargers". [/INST] SELECT "league_finish" FROM "series_winners" WHERE "winner"='Deccan Chargers';</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 "series_winners" ( "season" real, "winner" text, "captain" text, "coach" text, "league_finish" text, "mat" real, "w" real, "l" real, "win_pct" text, "runner_up" text );. Question: "Name the captain for royal challengers bangalore for 5". [/INST] SELECT "captain" FROM "series_winners" WHERE "runner_up"='Royal Challengers Bangalore' AND "l"=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 "series_winners" ( "season" real, "winner" text, "captain" text, "coach" text, "league_finish" text, "mat" real, "w" real, "l" real, "win_pct" text, "runner_up" text );. Question: "Name the win% for chennai super kings for 2010". [/INST] SELECT "win_pct" FROM "series_winners" WHERE "winner"='Chennai Super Kings' AND "season"=2010;</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 "series_winners" ( "season" real, "winner" text, "captain" text, "coach" text, "league_finish" text, "mat" real, "w" real, "l" real, "win_pct" text, "runner_up" text );. Question: "Name the league finish for w being 11". [/INST] SELECT "league_finish" FROM "series_winners" WHERE "w"=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 "series_winners" ( "season" real, "winner" text, "captain" text, "coach" text, "league_finish" text, "mat" real, "w" real, "l" real, "win_pct" text, "runner_up" text );. Question: "Name the least season for trevor bayliss". [/INST] SELECT MIN("season") FROM "series_winners" WHERE "coach"='Trevor Bayliss';</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 "conference_standings" ( "team" text, "sec_wins" real, "sec_losses" real, "percentage" text, "home_record" text, "road_record" text, "overall_record" text );. Question: "What's LSU's overall record/". [/INST] SELECT "overall_record" FROM "conference_standings" WHERE "team"='LSU';</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 "conference_standings" ( "team" text, "sec_wins" real, "sec_losses" real, "percentage" text, "home_record" text, "road_record" text, "overall_record" text );. Question: "How many different SEC Win counts does the team with an overall record of 30-4 have?". [/INST] SELECT COUNT("sec_wins") FROM "conference_standings" WHERE "overall_record"='30-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 "conference_standings" ( "team" text, "sec_wins" real, "sec_losses" real, "percentage" text, "home_record" text, "road_record" text, "overall_record" text );. Question: "What's Auburn's percentage?". [/INST] SELECT "percentage" FROM "conference_standings" WHERE "team"='Auburn';</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 "conference_standings" ( "team" text, "sec_wins" real, "sec_losses" real, "percentage" text, "home_record" text, "road_record" text, "overall_record" text );. Question: "What's the overall record of the team with 4-3 road record?". [/INST] SELECT "overall_record" FROM "conference_standings" WHERE "road_record"='4-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 "conference_standings" ( "team" text, "sec_wins" real, "sec_losses" real, "percentage" text, "home_record" text, "road_record" text, "overall_record" text );. Question: "What's the home record of the team with percentage of .168?". [/INST] SELECT "home_record" FROM "conference_standings" WHERE "percentage"='.168';</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 "qualifying_results" ( "pos" text, "numnum" real, "name" text, "team" text, "lap_one" text, "lap_two" text, "lap_three" text, "lap_four" text, "total_time" text, "avg_speed" text );. Question: "What was the average speed where lap four's time was 22.9049?". [/INST] SELECT "avg_speed" FROM "qualifying_results" WHERE "lap_four"='22.9049';</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 "qualifying_results" ( "pos" text, "numnum" real, "name" text, "team" text, "lap_one" text, "lap_two" text, "lap_three" text, "lap_four" text, "total_time" text, "avg_speed" text );. Question: "How many lap two's did marco andretti do?". [/INST] SELECT COUNT("lap_two") FROM "qualifying_results" WHERE "name"='Marco Andretti';</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 "qualifying_results" ( "pos" text, "numnum" real, "name" text, "team" text, "lap_one" text, "lap_two" text, "lap_three" text, "lap_four" text, "total_time" text, "avg_speed" text );. Question: "What is tthe lowest number on team 3g?". [/INST] SELECT MIN("numnum") FROM "qualifying_results" WHERE "team"='Team 3G';</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 "qualifying_results" ( "pos" text, "numnum" real, "name" text, "team" text, "lap_one" text, "lap_two" text, "lap_three" text, "lap_four" text, "total_time" text, "avg_speed" text );. Question: "How many positions have a total time of 1:30.4135?". [/INST] SELECT COUNT("pos") FROM "qualifying_results" WHERE "total_time"='1:30.4135';</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 "qualifying_results" ( "pos" text, "numnum" real, "name" text, "team" text, "lap_one" text, "lap_two" text, "lap_three" text, "lap_four" text, "total_time" text, "avg_speed" text );. Question: "Which positions have a lap two time of 22.7290?". [/INST] SELECT "pos" FROM "qualifying_results" WHERE "lap_two"='22.7290';</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 "qualifying_results" ( "pos" text, "numnum" real, "name" text, "team" text, "lap_one" text, "lap_two" text, "lap_three" text, "lap_four" text, "total_time" text, "avg_speed" text );. Question: "What was the average speed where the total time was 1:30.4842?". [/INST] SELECT "avg_speed" FROM "qualifying_results" WHERE "total_time"='1:30.4842';</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 "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "Name the poles for avg start being 4.7". [/INST] SELECT "poles" FROM "nascar_nationwide_series" WHERE "avg_start"='4.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 "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "Name the avg finish for position of 70th". [/INST] SELECT "avg_finish" FROM "nascar_nationwide_series" WHERE "position"='70th';</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 "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "Name the year for 15 starts". [/INST] SELECT "year" FROM "nascar_nationwide_series" WHERE "starts"=15;</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 "table1_23097214_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text );. Question: "What episode number in the season was "my comedy show"?". [/INST] SELECT "season_num" FROM "table1_23097214_1" WHERE "title"='\"My Comedy Show\"';</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 "table1_23097214_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text );. Question: "How many directors directed episode 3 of the season?". [/INST] SELECT COUNT("directed_by") FROM "table1_23097214_1" WHERE "season_num"=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 "table1_23097214_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text );. Question: "Who wrote the episode directed by Ken Whittingham?". [/INST] SELECT "written_by" FROM "table1_23097214_1" WHERE "directed_by"='Ken Whittingham';</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 "table1_23097214_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text );. Question: "What is the production code for Episode 153 in the series?". [/INST] SELECT MIN("production_code") FROM "table1_23097214_1" WHERE "series_num"=153;</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 "table1_23114705_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "What is the name of the episode where the season number is 13?". [/INST] SELECT "title" FROM "table1_23114705_3" WHERE "no_in_season"=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 "table1_23114705_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "If the episode was written by Tim Balme, what was the original air date?". [/INST] SELECT "original_air_date" FROM "table1_23114705_3" WHERE "written_by"='Tim Balme';</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 "series_1_2009" ( "episode" text, "location" text, "headliner" text, "comedians" text, "airdate" text );. Question: "What date did the show air when Rhod Gilbert was the headliner?". [/INST] SELECT "airdate" FROM "series_1_2009" WHERE "headliner"='Rhod Gilbert';</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 "series_1_2009" ( "episode" text, "location" text, "headliner" text, "comedians" text, "airdate" text );. Question: "What date did the show air when Sean Lock was the headliner?". [/INST] SELECT "airdate" FROM "series_1_2009" WHERE "headliner"='Sean Lock';</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 "series_1_2009" ( "episode" text, "location" text, "headliner" text, "comedians" text, "airdate" text );. Question: "Who were the comedians on episode 1x03?". [/INST] SELECT "comedians" FROM "series_1_2009" WHERE "episode"='1x03';</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 "series_1_2009" ( "episode" text, "location" text, "headliner" text, "comedians" text, "airdate" text );. Question: "What episode took place in Belfast Waterfront Hall?". [/INST] SELECT "episode" FROM "series_1_2009" WHERE "location"='Belfast Waterfront Hall';</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 "series_1_2009" ( "episode" text, "location" text, "headliner" text, "comedians" text, "airdate" text );. Question: "Who were the comedians during the episode located in Birmingham Hippodrome?". [/INST] SELECT "comedians" FROM "series_1_2009" WHERE "location"='Birmingham Hippodrome';</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 "table1_23141790_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text );. Question: "Name the total number of director for vesničko má středisková". [/INST] SELECT COUNT("director") FROM "table1_23141790_1" WHERE "original_title"='Vesničko má středisková';</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 "divisions_districts_and_cities" ( "rank" real, "district" text, "population" real, "growth_rate" text, "sex_ratio" real, "literacy" text, "density_per_kilometer" real );. Question: "Name the growth rate for density of 1087". [/INST] SELECT COUNT("growth_rate") FROM "divisions_districts_and_cities" WHERE "density_per_kilometer"=1087;</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 "divisions_districts_and_cities" ( "rank" real, "district" text, "population" real, "growth_rate" text, "sex_ratio" real, "literacy" text, "density_per_kilometer" real );. Question: "Name the sex ratio lowest for population 4773138". [/INST] SELECT MAX("sex_ratio") FROM "divisions_districts_and_cities" WHERE "population"=4773138;</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 "table1_23177573_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "rank_week" real, "original_air_date" text );. Question: "What is the original air date of the episode that had a week ranking of 21?". [/INST] SELECT "original_air_date" FROM "table1_23177573_1" WHERE "rank_week"=21;</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 "table1_23177573_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "rank_week" real, "original_air_date" text );. Question: "What was the week ranking of the episode written by Russel Friend & Garrett Lerner? ". [/INST] SELECT "rank_week" FROM "table1_23177573_1" WHERE "written_by"='Russel Friend & Garrett Lerner';</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 "table1_23177573_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "rank_week" real, "original_air_date" text );. Question: "What was the week ranking of the episode written by Thomas L. Moran and directed by Andrew Bernstein?". [/INST] SELECT "rank_week" FROM "table1_23177573_1" WHERE "written_by"='Thomas L. Moran' AND "directed_by"='Andrew Bernstein';</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 "top_scorers" ( "r" real, "player" text, "position" text, "league" real, "champions_league" real, "coppa_italia" real, "super_coppa" real, "total" real );. Question: "Name the position for chivu". [/INST] SELECT "position" FROM "top_scorers" WHERE "player"='Chivu';</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 "top_scorers" ( "r" real, "player" text, "position" text, "league" real, "champions_league" real, "coppa_italia" real, "super_coppa" real, "total" real );. Question: "Name the total number of r for coppa italia larger than 1.0". [/INST] SELECT COUNT("r") FROM "top_scorers" WHERE "coppa_italia">1.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 "charts" ( "release" text, "oricon_albums_chart" text, "peak_position" real, "debut_sales_copies" real, "sales_total_copies" real, "chart_run" text );. Question: "Which charts had debut sales of of more than 339333.011497678?". [/INST] SELECT "oricon_albums_chart" FROM "charts" WHERE "debut_sales_copies">339333.011497678;</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 "charts" ( "release" text, "oricon_albums_chart" text, "peak_position" real, "debut_sales_copies" real, "sales_total_copies" real, "chart_run" text );. Question: "How many peak positions were there on the weekly charts?". [/INST] SELECT COUNT("peak_position") FROM "charts" WHERE "oricon_albums_chart"='Weekly Charts';</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 "charts" ( "release" text, "oricon_albums_chart" text, "peak_position" real, "debut_sales_copies" real, "sales_total_copies" real, "chart_run" text );. Question: "How many peak positions were there on the daily charts?". [/INST] SELECT "peak_position" FROM "charts" WHERE "oricon_albums_chart"='Daily Charts';</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 "charts" ( "release" text, "oricon_albums_chart" text, "peak_position" real, "debut_sales_copies" real, "sales_total_copies" real, "chart_run" text );. Question: "Which charts had debut sales of 101976?". [/INST] SELECT "oricon_albums_chart" FROM "charts" WHERE "debut_sales_copies"=101976;</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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What was the score when playing Milwaukee?". [/INST] SELECT "score" FROM "game_log" WHERE "team"='Milwaukee';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.