text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "earliest_serving_senators_currently_livi" ( "rank" real, "senator" text, "date_of_birth" text, "entered_senate" text, "left_senate" text, "state_served" text, "party" text, "time_since_entry" text ); Question: List the states that have entry times of 49years, 29days <|assistant|> SELECT "state_served" FROM "earliest_serving_senators_currently_livi" WHERE "time_since_entry"='49years, 29days';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "earliest_serving_senators_currently_livi" ( "rank" real, "senator" text, "date_of_birth" text, "entered_senate" text, "left_senate" text, "state_served" text, "party" text, "time_since_entry" text ); Question: Of which part does congressman dick clark belong to? <|assistant|> SELECT "party" FROM "earliest_serving_senators_currently_livi" WHERE "senator"='Dick Clark';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "earliest_serving_senators_currently_livi" ( "rank" real, "senator" text, "date_of_birth" text, "entered_senate" text, "left_senate" text, "state_served" text, "party" text, "time_since_entry" text ); Question: On what date did congressman joseph tydings enter take his seat? <|assistant|> SELECT "entered_senate" FROM "earliest_serving_senators_currently_livi" WHERE "senator"='Joseph Tydings';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: What are the lowest points when poles were 0 and races were 10? <|assistant|> SELECT MIN("points") FROM "career_summary" WHERE "poles"=0 AND "races"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: What was the highest number of points when flaps were 0? <|assistant|> SELECT MAX("points") FROM "career_summary" WHERE "f_laps"=0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); Question: Who played 20 questions during the issue in which Pamela Horton is on the cover? <|assistant|> SELECT "20_questions" FROM "2012" WHERE "cover_model"='Pamela Horton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); Question: What date did Dax Shepard play 20 questions? <|assistant|> SELECT "date" FROM "2012" WHERE "20_questions"='Dax Shepard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); Question: Who was the centerfold model when Krysten Ritter played 20 questions? <|assistant|> SELECT "centerfold_model" FROM "2012" WHERE "20_questions"='Krysten Ritter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); Question: Who was the centerfold model when Meghan McCain played 20 questions? <|assistant|> SELECT "centerfold_model" FROM "2012" WHERE "20_questions"='Meghan McCain';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24418525_1" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "coverage" text ); Question: When the power kw is 5kw, what is the frequency? <|assistant|> SELECT "frequency" FROM "table1_24418525_1" WHERE "power_k_w"='5kW';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24418525_1" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "coverage" text ); Question: when coverage is dumaguete central visayas region, what is the callsign? <|assistant|> SELECT "callsign" FROM "table1_24418525_1" WHERE "coverage"='Dumaguete Central Visayas Region';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24418525_1" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "coverage" text ); Question: How much power covers dumaguete central visayas region? <|assistant|> SELECT COUNT("power_k_w") FROM "table1_24418525_1" WHERE "coverage"='Dumaguete Central Visayas Region';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24418525_1" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "coverage" text ); Question: What frequency is mega manila set to? <|assistant|> SELECT "frequency" FROM "table1_24418525_1" WHERE "coverage"='Mega Manila';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24425976_2" ( "series" real, "season" text, "original_air_date" text, "production_code" text, "episode_title" text ); Question: What original air date was for the episode with production code of 108? <|assistant|> SELECT "original_air_date" FROM "table1_24425976_2" WHERE "production_code"='108';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24425976_2" ( "series" real, "season" text, "original_air_date" text, "production_code" text, "episode_title" text ); Question: How many production codes are there for episode 10 in the season? <|assistant|> SELECT COUNT("production_code") FROM "table1_24425976_2" WHERE "season"='10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24425976_2" ( "series" real, "season" text, "original_air_date" text, "production_code" text, "episode_title" text ); Question: What date did "paintball deer hunter" originally air? <|assistant|> SELECT "original_air_date" FROM "table1_24425976_2" WHERE "episode_title"='\"Paintball Deer Hunter\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24425976_2" ( "series" real, "season" text, "original_air_date" text, "production_code" text, "episode_title" text ); Question: What date did the episode with code 110 originally air? <|assistant|> SELECT "original_air_date" FROM "table1_24425976_2" WHERE "production_code"='110';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24425976_2" ( "series" real, "season" text, "original_air_date" text, "production_code" text, "episode_title" text ); Question: What is the name of the episode with a production code of 107? <|assistant|> SELECT "episode_title" FROM "table1_24425976_2" WHERE "production_code"='107';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24425976_2" ( "series" real, "season" text, "original_air_date" text, "production_code" text, "episode_title" text ); Question: How many episodes in the series has a production code of 111? <|assistant|> SELECT COUNT("series") FROM "table1_24425976_2" WHERE "production_code"='111';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "location" text, "tv" text, "matchup_winner_bolded" text, "payout_us" text ); Question: Name the total number of payout for december 28, 2009 <|assistant|> SELECT COUNT("payout_us") FROM "bowl_games" WHERE "date"='December 28, 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "location" text, "tv" text, "matchup_winner_bolded" text, "payout_us" text ); Question: Name the payout for espn for music city bowl <|assistant|> SELECT "payout_us" FROM "bowl_games" WHERE "tv"='ESPN' AND "bowl_game"='Music City Bowl';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "location" text, "tv" text, "matchup_winner_bolded" text, "payout_us" text ); Question: Name the date for raymond james stadium <|assistant|> SELECT "date" FROM "bowl_games" WHERE "stadium"='Raymond James Stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24425976_7" ( "series" real, "season" real, "original_air_date" text, "production_code" real, "episode_title" text ); Question: What date did episode 4 in the season originally air? <|assistant|> SELECT "original_air_date" FROM "table1_24425976_7" WHERE "season"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24425976_7" ( "series" real, "season" real, "original_air_date" text, "production_code" real, "episode_title" text ); Question: What date did episode 115 in the series originally air? <|assistant|> SELECT "original_air_date" FROM "table1_24425976_7" WHERE "series"=115;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the 2nd leg for team #1 River Plate? <|assistant|> SELECT "2nd_leg" FROM "round_of_16" WHERE "team_num1"='River Plate';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What was team number 2's Fluminense's 2nd leg? <|assistant|> SELECT "2nd_leg" FROM "round_of_16" WHERE "team_num2"='Fluminense';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_french_open" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" text, "points_won" real, "new_points" real, "status" text ); Question: What was david ferrer seeded? <|assistant|> SELECT MAX("seed") FROM "2010_french_open" WHERE "player"='David Ferrer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_french_open" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" text, "points_won" real, "new_points" real, "status" text ); Question: What player had 1420 points coming in? <|assistant|> SELECT "player" FROM "2010_french_open" WHERE "points"=1420;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_french_open" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" text, "points_won" real, "new_points" real, "status" text ); Question: How many players named victor hănescu played? <|assistant|> SELECT COUNT("points_won") FROM "2010_french_open" WHERE "player"='Victor Hănescu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seats" ( "governorate" text, "kurdistan_democratic_party" real, "patriotic_union_of_kurdistan" real, "total_kurdistan_list" real, "total_governorate_seats" real ); Question: Name the kurdistan democratic party for kurdistan list being 10 <|assistant|> SELECT MIN("kurdistan_democratic_party") FROM "seats" WHERE "total_kurdistan_list"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seats" ( "governorate" text, "kurdistan_democratic_party" real, "patriotic_union_of_kurdistan" real, "total_kurdistan_list" real, "total_governorate_seats" real ); Question: Name the most kirdistan list for diyala <|assistant|> SELECT MAX("total_kurdistan_list") FROM "seats" WHERE "governorate"='Diyala';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seats" ( "governorate" text, "kurdistan_democratic_party" real, "patriotic_union_of_kurdistan" real, "total_kurdistan_list" real, "total_governorate_seats" real ); Question: Name the governorate seats for hewler <|assistant|> SELECT MIN("total_governorate_seats") FROM "seats" WHERE "governorate"='Hewler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seats" ( "governorate" text, "kurdistan_democratic_party" real, "patriotic_union_of_kurdistan" real, "total_kurdistan_list" real, "total_governorate_seats" real ); Question: Name the least total kurdistan list <|assistant|> SELECT MIN("total_kurdistan_list") FROM "seats";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seats" ( "governorate" text, "kurdistan_democratic_party" real, "patriotic_union_of_kurdistan" real, "total_kurdistan_list" real, "total_governorate_seats" real ); Question: Name the most total governorate seats for hewler <|assistant|> SELECT MAX("total_governorate_seats") FROM "seats" WHERE "governorate"='Hewler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mutya_ng_pilipinas_asia_pacific_titlehol" ( "year" real, "mutya_ng_pilipinas_asia_pacific" text, "1st_runner_up" text, "2nd_runner_up" text, "3rd_runner_up" text, "4th_runner_up" text ); Question: Who won 3rd place when the mutya ng pilipinas winner was was rochelle romero ong? <|assistant|> SELECT "2nd_runner_up" FROM "mutya_ng_pilipinas_asia_pacific_titlehol" WHERE "mutya_ng_pilipinas_asia_pacific"='Rochelle Romero Ong';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mutya_ng_pilipinas_asia_pacific_titlehol" ( "year" real, "mutya_ng_pilipinas_asia_pacific" text, "1st_runner_up" text, "2nd_runner_up" text, "3rd_runner_up" text, "4th_runner_up" text ); Question: List the year that mimilannie p. lisondra was the 3rd place winner. <|assistant|> SELECT MAX("year") FROM "mutya_ng_pilipinas_asia_pacific_titlehol" WHERE "2nd_runner_up"='Mimilannie P. Lisondra';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mutya_ng_pilipinas_asia_pacific_titlehol" ( "year" real, "mutya_ng_pilipinas_asia_pacific" text, "1st_runner_up" text, "2nd_runner_up" text, "3rd_runner_up" text, "4th_runner_up" text ); Question: List the number of years where ritchie ocampo was the mutya ng pilipinas winner. <|assistant|> SELECT COUNT("year") FROM "mutya_ng_pilipinas_asia_pacific_titlehol" WHERE "mutya_ng_pilipinas_asia_pacific"='Ritchie Ocampo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24446718_7" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text ); Question: Name the number of awardees for english and hindi <|assistant|> SELECT COUNT("awardee_s") FROM "table1_24446718_7" WHERE "language"='English and Hindi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24446718_7" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text ); Question: Name the name of award for zubeen garg <|assistant|> SELECT "name_of_award" FROM "table1_24446718_7" WHERE "awardee_s"='Zubeen Garg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24446718_7" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text ); Question: Name the awardee for best editing <|assistant|> SELECT "awardee_s" FROM "table1_24446718_7" WHERE "name_of_award"='Best Editing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24446718_7" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text ); Question: Name the number of awardees for best cinematography <|assistant|> SELECT COUNT("awardee_s") FROM "table1_24446718_7" WHERE "name_of_award"='Best Cinematography';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: Name the least flaps <|assistant|> SELECT MIN("f_laps") FROM "career_summary";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: Name th most poles for macau grand prix <|assistant|> SELECT MAX("poles") FROM "career_summary" WHERE "series"='Macau Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: Name the total number of races for 15th position <|assistant|> SELECT COUNT("races") FROM "career_summary" WHERE "position"='15th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: Name the most races for flaps larger than 2.0 <|assistant|> SELECT MAX("races") FROM "career_summary" WHERE "f_laps">2.0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: Name the number of poles for 15th position <|assistant|> SELECT COUNT("poles") FROM "career_summary" WHERE "position"='15th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: Name the team for season 2010 <|assistant|> SELECT "team" FROM "career_summary" WHERE "season"=2010;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24466855_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text, "viewers_millions" text ); Question: Name the air date for jay j. demopoulos <|assistant|> SELECT "original_air_date" FROM "table1_24466855_1" WHERE "written_by"='Jay J. Demopoulos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24481478_1" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: At which location did 29753 fans show up to watch the game? <|assistant|> SELECT "game_site" FROM "table1_24481478_1" WHERE "attendance"=29753;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24481478_1" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: What was the game record during week 7? <|assistant|> SELECT "team_record" FROM "table1_24481478_1" WHERE "week"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24481478_1" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: What time did the game start on saturday, april 20? <|assistant|> SELECT "kickoff" FROM "table1_24481478_1" WHERE "date"='Saturday, April 20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24481478_1" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: In which week was the team record 7–2? <|assistant|> SELECT MIN("week") FROM "table1_24481478_1" WHERE "team_record"='7–2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24481478_1" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: How man fans showed up to watch the game versus the raleigh-durham skyhawks? <|assistant|> SELECT MAX("attendance") FROM "table1_24481478_1" WHERE "opponent"='Raleigh-Durham Skyhawks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "methodology" ( "rank" real, "country" text, "disposable_usd_2011" real, "disposable_usd_growth" real, "compulsory_deduction" text, "gross_usd_2011" real ); Question: If the rank is 26, what is the disposable USD growth? <|assistant|> SELECT "disposable_usd_growth" FROM "methodology" WHERE "rank"=26;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "methodology" ( "rank" real, "country" text, "disposable_usd_2011" real, "disposable_usd_growth" real, "compulsory_deduction" text, "gross_usd_2011" real ); Question: What country has a compulsory deduction of 29.3%? <|assistant|> SELECT "country" FROM "methodology" WHERE "compulsory_deduction"='29.3%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "methodology" ( "rank" real, "country" text, "disposable_usd_2011" real, "disposable_usd_growth" real, "compulsory_deduction" text, "gross_usd_2011" real ); Question: What is Australia's Disposable USD growth? <|assistant|> SELECT MAX("disposable_usd_growth") FROM "methodology" WHERE "country"='Australia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "methodology" ( "rank" real, "country" text, "disposable_usd_2011" real, "disposable_usd_growth" real, "compulsory_deduction" text, "gross_usd_2011" real ); Question: What is the lowest disposable USD 2011? <|assistant|> SELECT MIN("disposable_usd_2011") FROM "methodology";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_statistics" ( "name" text, "nationality" text, "position" text, "los_angeles_sol_career" text, "appearances" real, "starts" real, "minutes" real, "goals" real, "assists" real ); Question: Name the most minutes and starts being 12 <|assistant|> SELECT MAX("minutes") FROM "all_time_statistics" WHERE "starts"=12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_statistics" ( "name" text, "nationality" text, "position" text, "los_angeles_sol_career" text, "appearances" real, "starts" real, "minutes" real, "goals" real, "assists" real ); Question: Name the position for 132 minutes <|assistant|> SELECT "position" FROM "all_time_statistics" WHERE "minutes"=132;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bischofshofen" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_fht_points" text, "overall_wc_points_rank" text ); Question: Name the rank for thomas morgenstern <|assistant|> SELECT "rank" FROM "bischofshofen" WHERE "name"='Thomas Morgenstern';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bischofshofen" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_fht_points" text, "overall_wc_points_rank" text ); Question: Name the rank for switzerland <|assistant|> SELECT COUNT("rank") FROM "bischofshofen" WHERE "nationality"='Switzerland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bischofshofen" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_fht_points" text, "overall_wc_points_rank" text ); Question: Name the points for switzerland <|assistant|> SELECT "points" FROM "bischofshofen" WHERE "nationality"='Switzerland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bischofshofen" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_fht_points" text, "overall_wc_points_rank" text ); Question: Name the points for thomas morgenstern <|assistant|> SELECT "points" FROM "bischofshofen" WHERE "name"='Thomas Morgenstern';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bischofshofen" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_fht_points" text, "overall_wc_points_rank" text ); Question: Name the total number of overall fht points for simon ammann <|assistant|> SELECT COUNT("overall_fht_points") FROM "bischofshofen" WHERE "name"='Simon Ammann';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_judges" ( "position" text, "name" text, "stationed_in" text, "appointed" real, "nominated_by" text, "position_prior_to_appointment" text ); Question: When was jack watson appointed? <|assistant|> SELECT "appointed" FROM "current_judges" WHERE "name"='Jack Watson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships" ( "ship" text, "laid_down" text, "builder" text, "engine_builder" text, "launched" text, "completed" text, "disposition" text, "fate" text ); Question: When was the Carysfort launched? <|assistant|> SELECT "launched" FROM "ships" WHERE "ship"='Carysfort';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships" ( "ship" text, "laid_down" text, "builder" text, "engine_builder" text, "launched" text, "completed" text, "disposition" text, "fate" text ); Question: When was the stokers' training ship launched? <|assistant|> SELECT "launched" FROM "ships" WHERE "disposition"='Stokers'' training ship';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships" ( "ship" text, "laid_down" text, "builder" text, "engine_builder" text, "launched" text, "completed" text, "disposition" text, "fate" text ); Question: How many ships were named Carysfort? <|assistant|> SELECT COUNT("completed") FROM "ships" WHERE "ship"='Carysfort';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "candidates" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); Question: What is the background of the person fired in week 5? <|assistant|> SELECT "background" FROM "candidates" WHERE "result"='Fired in week 5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "candidates" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); Question: What was the result of the player from Maylands, Western Australia? <|assistant|> SELECT "result" FROM "candidates" WHERE "hometown"='Maylands, Western Australia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "candidates" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); Question: How many ages for player Amy Cato? <|assistant|> SELECT COUNT("age") FROM "candidates" WHERE "candidate"='Amy Cato';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "candidates" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); Question: What is the name of the player from Maylands, Western Australia? <|assistant|> SELECT "candidate" FROM "candidates" WHERE "hometown"='Maylands, Western Australia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "candidates" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); Question: How many age figures for the player fired in week 6? <|assistant|> SELECT COUNT("age") FROM "candidates" WHERE "result"='Fired in week 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_aftershocks" ( "date_yyyy_mm_dd" text, "time_utc" text, "latitude" text, "longitude" text, "depth" text, "magnitude" text ); Question: What was the latitude that had a UTC time of 18:19:36? <|assistant|> SELECT "latitude" FROM "list_of_aftershocks" WHERE "time_utc"='18:19:36';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_aftershocks" ( "date_yyyy_mm_dd" text, "time_utc" text, "latitude" text, "longitude" text, "depth" text, "magnitude" text ); Question: What is the depth of the aftershock at 18:00:22? <|assistant|> SELECT "depth" FROM "list_of_aftershocks" WHERE "time_utc"='18:00:22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24535095_2" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: Name the team for susan bates <|assistant|> SELECT "team" FROM "table1_24535095_2" WHERE "listed_owner_s"='Susan Bates';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24535095_2" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: Name the truck for eric phillips <|assistant|> SELECT "truck_s" FROM "table1_24535095_2" WHERE "crew_chief"='Eric Phillips';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24535095_2" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: Name the listed owner for mike garvey <|assistant|> SELECT "listed_owner_s" FROM "table1_24535095_2" WHERE "crew_chief"='Mike Garvey';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24535095_2" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: Name the least listed owner for pete raymer <|assistant|> SELECT MIN("num") FROM "table1_24535095_2" WHERE "listed_owner_s"='Pete Raymer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24535095_2" ( "team" text, "truck_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: Name the crew chief for rhonda thorson <|assistant|> SELECT "crew_chief" FROM "table1_24535095_2" WHERE "listed_owner_s"='Rhonda Thorson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2453243_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: What episode number in the series is "mean teacher"? <|assistant|> SELECT MAX("no_in_series") FROM "table1_2453243_3" WHERE "title"='\"Mean Teacher\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2453243_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: What episode number in the series is "guitar"? <|assistant|> SELECT MIN("no_in_series") FROM "table1_2453243_3" WHERE "title"='\"Guitar\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2453243_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: What is the production code for episode 3 in the season? <|assistant|> SELECT MAX("production_code") FROM "table1_2453243_3" WHERE "no_in_season"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "items" text, "2008_q1" text, "2008_q2" text, "2008_q3" text, "extrapol_08" text, "year_2007" text ); Question: Name the year 2007 for 668 2008-q1 <|assistant|> SELECT "year_2007" FROM "statistics" WHERE "2008_q1"='668';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "items" text, "2008_q1" text, "2008_q2" text, "2008_q3" text, "extrapol_08" text, "year_2007" text ); Question: Name the year 2007 for 668 being 2008-q1 <|assistant|> SELECT "year_2007" FROM "statistics" WHERE "2008_q1"='668';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "slogans_and_points" ( "team" text, "slogan" text, "match1" real, "match2" real, "match3" real, "match4" real, "match5" real, "total" real ); Question: What is the lowest score of all games for match 2? <|assistant|> SELECT MIN("match2") FROM "slogans_and_points";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "slogans_and_points" ( "team" text, "slogan" text, "match1" real, "match2" real, "match3" real, "match4" real, "match5" real, "total" real ); Question: What is the highest score for match 2 where the score for match 4 is 0 and the total score is 5? <|assistant|> SELECT MAX("match2") FROM "slogans_and_points" WHERE "match4"=0 AND "total"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "slogans_and_points" ( "team" text, "slogan" text, "match1" real, "match2" real, "match3" real, "match4" real, "match5" real, "total" real ); Question: What is the score for match 1 for the team Eastern Tigers? <|assistant|> SELECT "match1" FROM "slogans_and_points" WHERE "team"='Eastern Tigers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "core_i3" ( "codename_main_article" text, "brand_name_list" text, "cores" real, "l3_cache" text, "socket" text, "tdp" text, "i_o_bus" text ); Question: How many sockets are listed that have a brand name of "Core i3-2xx7m"? <|assistant|> SELECT COUNT("socket") FROM "core_i3" WHERE "brand_name_list"='Core i3-2xx7M';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "core_i3" ( "codename_main_article" text, "brand_name_list" text, "cores" real, "l3_cache" text, "socket" text, "tdp" text, "i_o_bus" text ); Question: What is the i/o bus for the brand name Core i3-21xx? <|assistant|> SELECT "i_o_bus" FROM "core_i3" WHERE "brand_name_list"='Core i3-21xx';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "core_i3" ( "codename_main_article" text, "brand_name_list" text, "cores" real, "l3_cache" text, "socket" text, "tdp" text, "i_o_bus" text ); Question: What i/o buses are associated with the brand name Core i3-21xxt? <|assistant|> SELECT "i_o_bus" FROM "core_i3" WHERE "brand_name_list"='Core i3-21xxT';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "core_i3" ( "codename_main_article" text, "brand_name_list" text, "cores" real, "l3_cache" text, "socket" text, "tdp" text, "i_o_bus" text ); Question: What is the codename for the Core i3-32xxt? <|assistant|> SELECT "codename_main_article" FROM "core_i3" WHERE "brand_name_list"='Core i3-32xxT';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "core_i3" ( "codename_main_article" text, "brand_name_list" text, "cores" real, "l3_cache" text, "socket" text, "tdp" text, "i_o_bus" text ); Question: What i/o buses are associated with the LGA 1155 socket, a code name of Sandy Bridge (desktop) and a brand name of Core i3-21xx? <|assistant|> SELECT "i_o_bus" FROM "core_i3" WHERE "socket"='LGA 1155' AND "codename_main_article"='Sandy Bridge (Desktop)' AND "brand_name_list"='Core i3-21xx';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "core_i3" ( "codename_main_article" text, "brand_name_list" text, "cores" real, "l3_cache" text, "socket" text, "tdp" text, "i_o_bus" text ); Question: What is the sockets associated with a brand name of Core i3-3xx0m? <|assistant|> SELECT "socket" FROM "core_i3" WHERE "brand_name_list"='Core i3-3xx0M';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "school" text ); Question: Who was drafted by the calgary stampeders? <|assistant|> SELECT "player" FROM "round_six" WHERE "cfl_team"='Calgary Stampeders';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "school" text ); Question: Where was the player from se missouri state drafted? <|assistant|> SELECT COUNT("pick_num") FROM "round_six" WHERE "school"='SE Missouri State';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "school" text ); Question: What position does the player from kent state play? <|assistant|> SELECT "position" FROM "round_six" WHERE "school"='Kent State';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "school" text ); Question: What school did the rb drafted attend? <|assistant|> SELECT "school" FROM "round_six" WHERE "position"='RB';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "school" text ); Question: What numbered pick attended western ontario and is an OL? <|assistant|> SELECT "pick_num" FROM "round_six" WHERE "school"='Western Ontario' AND "position"='OL';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "school" text ); Question: How many players attended SE missouri state? <|assistant|> SELECT COUNT("position") FROM "round_six" WHERE "school"='SE Missouri State';<|endoftext|>