text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1978_pittsburgh_steelers_draft_selection" ( "round" real, "pick_num" text, "player" text, "position" text, "college" text, "tenure_w_steelers" text ); Question: What pick number was from the college of maryland and was picked in a round larger than 7? <|assistant|> SELECT "pick_num" FROM "1978_pittsburgh_steelers_draft_selection" WHERE "round">7 AND "college"='maryland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: How much Overall has a Pick # of 26? <|assistant|> SELECT SUM("overall") FROM "atlanta_falcons_draft_history" WHERE "pick_num"=26;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which Position has a Round smaller than 14, and a College of illinois? <|assistant|> SELECT "position" FROM "atlanta_falcons_draft_history" WHERE "round"<14 AND "college"='illinois';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: How much Overall has a Round smaller than 6, and a Pick # of 26? <|assistant|> SELECT SUM("overall") FROM "atlanta_falcons_draft_history" WHERE "round"<6 AND "pick_num"=26;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is Roy Hall's highest round? <|assistant|> SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "name"='roy hall';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: How much Overall has a Pick # larger than 2, and a Name of claude humphrey? <|assistant|> SELECT COUNT("overall") FROM "atlanta_falcons_draft_history" WHERE "pick_num">2 AND "name"='claude humphrey';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What is the oppenent when the score was 5–0? <|assistant|> SELECT "opponent" FROM "regular_season" WHERE "score"='5–0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What is the opponent before game 57 when the score was 4–5? <|assistant|> SELECT "opponent" FROM "regular_season" WHERE "game"<57 AND "score"='4–5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What is the score when the points are larger than 74 and the game is 57? <|assistant|> SELECT "score" FROM "regular_season" WHERE "points">74 AND "game"=57;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: When is the latest year that an entrant has toro rosso str1 chassis and under 1 point? <|assistant|> SELECT MAX("year") FROM "complete_formula_one_results" WHERE "chassis"='toro rosso str1' AND "points"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: How many entrants have a mercedes fo 108w 2.4l v8 engine and over 0 points? <|assistant|> SELECT COUNT("year") FROM "complete_formula_one_results" WHERE "engine"='mercedes fo 108w 2.4l v8' AND "points">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the engine for the car with 3 points? <|assistant|> SELECT "engine" FROM "complete_formula_one_results" WHERE "points"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "duratec_ti_vct" ( "code" text, "years" text, "displacement_bore_x_stroke_type" text, "power_rpm" text, "torque_rpm" text, "compression_1" text ); Question: Code of 1.6 duratec ti-vct, and a Power@rpm of ps (kw; hp)@6300 has what torque@rpm? <|assistant|> SELECT "torque_rpm" FROM "duratec_ti_vct" WHERE "code"='1.6 duratec ti-vct' AND "power_rpm"='ps (kw; hp)@6300';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "duratec_ti_vct" ( "code" text, "years" text, "displacement_bore_x_stroke_type" text, "power_rpm" text, "torque_rpm" text, "compression_1" text ); Question: Code of 1.6 duratec ti-vct, and a Power@rpm of ps (kw; hp)@6000 has what torque@rpm? <|assistant|> SELECT "torque_rpm" FROM "duratec_ti_vct" WHERE "code"='1.6 duratec ti-vct' AND "power_rpm"='ps (kw; hp)@6000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "duratec_ti_vct" ( "code" text, "years" text, "displacement_bore_x_stroke_type" text, "power_rpm" text, "torque_rpm" text, "compression_1" text ); Question: torque@rpm of n·m (lb·ft)@4050 has what code? <|assistant|> SELECT "code" FROM "duratec_ti_vct" WHERE "torque_rpm"='n·m (lb·ft)@4050';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_tourism_expenditure_2012" ( "rank" real, "country" text, "unwto_region" text, "international_tourism_expenditure_2012" text, "international_tourism_expenditure_2011" text ); Question: Which International tourism expenditure (2012) has an International tourism expenditure (2011) of $33.3 billion? <|assistant|> SELECT "international_tourism_expenditure_2012" FROM "international_tourism_expenditure_2012" WHERE "international_tourism_expenditure_2011"='$33.3 billion';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_tourism_expenditure_2012" ( "rank" real, "country" text, "unwto_region" text, "international_tourism_expenditure_2012" text, "international_tourism_expenditure_2011" text ); Question: What is Italy's UNWTO region? <|assistant|> SELECT "unwto_region" FROM "international_tourism_expenditure_2012" WHERE "country"='italy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_tourism_expenditure_2012" ( "rank" real, "country" text, "unwto_region" text, "international_tourism_expenditure_2012" text, "international_tourism_expenditure_2011" text ); Question: What is China's International tourism expenditure (2011)? <|assistant|> SELECT "international_tourism_expenditure_2011" FROM "international_tourism_expenditure_2012" WHERE "country"='china';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dvd_and_blu_ray_releases" ( "dvd_season" text, "format" text, "num_episodes" real, "num_disc_s" real, "region_4" text ); Question: What was the format for the 4 disc season that had less than 22 episodes and n/a for region 4? <|assistant|> SELECT "format" FROM "dvd_and_blu_ray_releases" WHERE "num_episodes"<22 AND "num_disc_s"=4 AND "region_4"='n/a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the lowest Top-25 for the open championship, with a Top-10 larger than 3? <|assistant|> SELECT MIN("top_25") FROM "summary" WHERE "tournament"='the open championship' AND "top_10">3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the highest Top-5 when the Tournament is the open championship, with a Top-25 less than 9? <|assistant|> SELECT MAX("top_5") FROM "summary" WHERE "tournament"='the open championship' AND "top_25"<9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the average Top-25 that has a Top-10 less than 7, and the Tournament is the open championship, with a Top-5more than 1? <|assistant|> SELECT AVG("top_25") FROM "summary" WHERE "top_10"<7 AND "tournament"='the open championship' AND "top_5">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the total number of Top-5 when the Top-25 is 6, and a Cuts made are less than 12? <|assistant|> SELECT COUNT("top_5") FROM "summary" WHERE "top_25"=6 AND "cuts_made"<12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: Which date had a home team of the Wizards? <|assistant|> SELECT "date" FROM "february" WHERE "home"='wizards';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was the latest week with a date of November 12, 1967 and less than 34,761 in attendance? <|assistant|> SELECT MAX("week") FROM "season_schedule" WHERE "date"='november 12, 1967' AND "attendance"<'34,761';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the date for the game with an opponent of the Houston Oilers from before week 3? <|assistant|> SELECT "date" FROM "season_schedule" WHERE "week"<3 AND "opponent"='houston oilers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema 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 is the total for New York's game? <|assistant|> SELECT SUM("game") FROM "game_log" WHERE "team"='new york';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick_num" text, "player" text, "position" text, "college" text ); Question: What round was a player from Indiana picked? <|assistant|> SELECT "round" FROM "nfl_draft" WHERE "college"='indiana';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall_results_in_the_ipl" ( "year" text, "total" real, "wins" real, "losses" real, "no_result" real, "pct_win" text ); Question: How many losses had a total of 17 and more than 10 wins? <|assistant|> SELECT COUNT("losses") FROM "overall_results_in_the_ipl" WHERE "total"=17 AND "wins">10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall_results_in_the_ipl" ( "year" text, "total" real, "wins" real, "losses" real, "no_result" real, "pct_win" text ); Question: What is the win percentage when there's more than 16 totals and less than 7 losses? <|assistant|> SELECT "pct_win" FROM "overall_results_in_the_ipl" WHERE "total">16 AND "losses"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall_results_in_the_ipl" ( "year" text, "total" real, "wins" real, "losses" real, "no_result" real, "pct_win" text ); Question: What is the smallest no result when the year was 2012 and there were more than 10 wins? <|assistant|> SELECT MIN("no_result") FROM "overall_results_in_the_ipl" WHERE "year"='2012' AND "wins">10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1924_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "socialist_ticket" text, "workers_ticket" text ); Question: What is the name on the Socialist ticket when the Democratic ticket is george k. shuler? <|assistant|> SELECT "socialist_ticket" FROM "1924_state_election_results" WHERE "democratic_ticket"='george k. shuler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1924_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "socialist_ticket" text, "workers_ticket" text ); Question: What is the name on the Democratic ticket when the Workers ticket is franklin p. brill? <|assistant|> SELECT "democratic_ticket" FROM "1924_state_election_results" WHERE "workers_ticket"='franklin p. brill';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1924_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "socialist_ticket" text, "workers_ticket" text ); Question: What is the name on the Democratic ticket when the Workers ticket is james p. cannon? <|assistant|> SELECT "democratic_ticket" FROM "1924_state_election_results" WHERE "workers_ticket"='james p. cannon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1924_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "socialist_ticket" text, "workers_ticket" text ); Question: What is the Office when the Republican ticket shows seymour lowman? <|assistant|> SELECT "office" FROM "1924_state_election_results" WHERE "republican_ticket"='seymour lowman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1924_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "socialist_ticket" text, "workers_ticket" text ); Question: What is the name on the Republican ticket when the Socialist ticket was louis waldman? <|assistant|> SELECT "republican_ticket" FROM "1924_state_election_results" WHERE "socialist_ticket"='louis waldman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1924_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "socialist_ticket" text, "workers_ticket" text ); Question: What is the name on the Republican ticket when the Workers ticket is edward lindgren? <|assistant|> SELECT "republican_ticket" FROM "1924_state_election_results" WHERE "workers_ticket"='edward lindgren';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1930_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "law_preservation_ticket" text, "socialist_ticket" text, "socialist_labor_ticket" text ); Question: Who's the Democratic ticket with a Socialist Labor ticket of belle j. rosen? <|assistant|> SELECT "democratic_ticket" FROM "1930_state_election_results" WHERE "socialist_labor_ticket"='belle j. rosen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1930_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "law_preservation_ticket" text, "socialist_ticket" text, "socialist_labor_ticket" text ); Question: Who's the Socialist Labor ticket with a Republican ticket of cuthbert w. pound? <|assistant|> SELECT "socialist_labor_ticket" FROM "1930_state_election_results" WHERE "republican_ticket"='cuthbert w. pound';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1930_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "law_preservation_ticket" text, "socialist_ticket" text, "socialist_labor_ticket" text ); Question: Which Office has a Republican ticket of daniel h. conway? <|assistant|> SELECT "office" FROM "1930_state_election_results" WHERE "republican_ticket"='daniel h. conway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1930_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "law_preservation_ticket" text, "socialist_ticket" text, "socialist_labor_ticket" text ); Question: Who's the Socialist ticket with a Law Preservation ticket of (none), and a Socialist Labor ticket of belle j. rosen? <|assistant|> SELECT "socialist_ticket" FROM "1930_state_election_results" WHERE "law_preservation_ticket"='(none)' AND "socialist_labor_ticket"='belle j. rosen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1930_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "law_preservation_ticket" text, "socialist_ticket" text, "socialist_labor_ticket" text ); Question: Which Office has a Democratic ticket of herbert h. lehman? <|assistant|> SELECT "office" FROM "1930_state_election_results" WHERE "democratic_ticket"='herbert h. lehman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1930_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "law_preservation_ticket" text, "socialist_ticket" text, "socialist_labor_ticket" text ); Question: Who's the Socialist ticket with a Socialist Labor ticket of charles m. carlson? <|assistant|> SELECT "socialist_ticket" FROM "1930_state_election_results" WHERE "socialist_labor_ticket"='charles m. carlson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_table" ( "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); Question: Which bowl game has a season greater than 2008, with new orleans, Louisiana as the location? <|assistant|> SELECT "bowl_game" FROM "summary_table" WHERE "season">2008 AND "location"='new orleans, louisiana';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_table" ( "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); Question: What result has 1947 sun bowl as the bowl game? <|assistant|> SELECT "result" FROM "summary_table" WHERE "bowl_game"='1947 sun bowl';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_table" ( "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); Question: What result has texas longhorns as the opponent? <|assistant|> SELECT "result" FROM "summary_table" WHERE "opponent"='texas longhorns';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_table" ( "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); Question: What location has 51,212 as the attendance? <|assistant|> SELECT "location" FROM "summary_table" WHERE "attendance"='51,212';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" text, "1st_place" text, "2nd_place" text, "3rd_place" text, "4th_place" text ); Question: Who was the 3rd place team in the season in which Real Madrid finished 2nd? <|assistant|> SELECT "3rd_place" FROM "by_season" WHERE "2nd_place"='real madrid';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" text, "1st_place" text, "2nd_place" text, "3rd_place" text, "4th_place" text ); Question: Which season had a 3rd place of CSKA Moscow and 1st place of Panathinaikos? <|assistant|> SELECT "season" FROM "by_season" WHERE "3rd_place"='cska moscow' AND "1st_place"='panathinaikos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "afternoon" ( "time" text, "12_00_pm" text, "01_00_pm" text, "02_00_pm" text, "03_00_pm" text, "04_00_pm" text, "05_00_pm" text, "05_55_pm" text ); Question: Who preforms at 2:00PM on Monday? <|assistant|> SELECT "02_00_pm" FROM "afternoon" WHERE "time"='monday';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "afternoon" ( "time" text, "12_00_pm" text, "01_00_pm" text, "02_00_pm" text, "03_00_pm" text, "04_00_pm" text, "05_00_pm" text, "05_55_pm" text ); Question: Who preforms at 3:00PM on Tuesday? <|assistant|> SELECT "03_00_pm" FROM "afternoon" WHERE "time"='tuesday';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "afternoon" ( "time" text, "12_00_pm" text, "01_00_pm" text, "02_00_pm" text, "03_00_pm" text, "04_00_pm" text, "05_00_pm" text, "05_55_pm" text ); Question: Who preforms at 5:55PM on Monday? <|assistant|> SELECT "05_55_pm" FROM "afternoon" WHERE "time"='monday';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "cover_model" text, "centerfold_model" text, "20_questions" text, "pictorials" text ); Question: Which Pictorials is on 5-01? <|assistant|> SELECT "pictorials" FROM "2001" WHERE "date"='5-01';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "cover_model" text, "centerfold_model" text, "20_questions" text, "pictorials" text ); Question: Which Cover model has a Pictorials of brande roderick-pmoy, naked news? <|assistant|> SELECT "cover_model" FROM "2001" WHERE "pictorials"='brande roderick-pmoy, naked news';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "cover_model" text, "centerfold_model" text, "20_questions" text, "pictorials" text ); Question: which Cover model has a Centerfold model of jennifer walcott? <|assistant|> SELECT "cover_model" FROM "2001" WHERE "centerfold_model"='jennifer walcott';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "cover_model" text, "centerfold_model" text, "20_questions" text, "pictorials" text ); Question: Which over model has a 20 Questions of edward burns? <|assistant|> SELECT "cover_model" FROM "2001" WHERE "20_questions"='edward burns';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "cover_model" text, "centerfold_model" text, "20_questions" text, "pictorials" text ); Question: Which Centerfold model has a Cover model of irina voronina? <|assistant|> SELECT "centerfold_model" FROM "2001" WHERE "cover_model"='irina voronina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "cover_model" text, "centerfold_model" text, "20_questions" text, "pictorials" text ); Question: Which Centerfold model has a Date of 3-01? <|assistant|> SELECT "centerfold_model" FROM "2001" WHERE "date"='3-01';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_f" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text ); Question: What is the score on 15 Aug with a 17:30 time? <|assistant|> SELECT "score" FROM "pool_f" WHERE "date"='15 aug' AND "time"='17:30';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: What is the total number of round values that had opponents named Paul Sutherland? <|assistant|> SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "opponent"='paul sutherland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Which opponent led to a record of 10-6? <|assistant|> SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='10-6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Which method led to a record of 9-4? <|assistant|> SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='9-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episode_8_2_march_2008" ( "index" text, "name" text, "song" text, "group_song" text, "score" text ); Question: What song had an index of m6? <|assistant|> SELECT "song" FROM "episode_8_2_march_2008" WHERE "index"='m6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episode_8_2_march_2008" ( "index" text, "name" text, "song" text, "group_song" text, "score" text ); Question: For which song was the score 6.5 + 6.0 + 6.0 + 5.5 = 24.0? <|assistant|> SELECT "song" FROM "episode_8_2_march_2008" WHERE "score"='6.5 + 6.0 + 6.0 + 5.5 = 24.0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "against" real, "difference" text ); Question: When the played number is less than 8 and against is 23, what is the least amount of points? <|assistant|> SELECT MIN("points") FROM "torneio_rio_s_o_paulo" WHERE "against"=23 AND "played"<8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "against" real, "difference" text ); Question: When the corinthians have a position of less than 5, what is the average against? <|assistant|> SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "position"<5 AND "team"='corinthians';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "against" real, "difference" text ); Question: What position has less than 6 Points? <|assistant|> SELECT COUNT("position") FROM "torneio_rio_s_o_paulo" WHERE "points"<6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "against" real, "difference" text ); Question: What is the number of against when the difference is 10 and played is greater than 8? <|assistant|> SELECT COUNT("against") FROM "torneio_rio_s_o_paulo" WHERE "difference"='10' AND "played">8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_stakes_with_congregations_in_arkan" ( "stake" text, "organized" text, "number_of_wards_branches_in_arkansas" real, "stake_president" text, "occupation" text ); Question: What was the stake president when the organized date is April 18, 1965? <|assistant|> SELECT "stake_president" FROM "other_stakes_with_congregations_in_arkan" WHERE "organized"='april 18, 1965';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_stakes_with_congregations_in_arkan" ( "stake" text, "organized" text, "number_of_wards_branches_in_arkansas" real, "stake_president" text, "occupation" text ); Question: What is the organized section when the stake president was henry john platt? <|assistant|> SELECT "organized" FROM "other_stakes_with_congregations_in_arkan" WHERE "stake_president"='henry john platt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text ); Question: What is the name of the award given for the category Mercury Prize? <|assistant|> SELECT "award" FROM "awards_and_nominations" WHERE "category"='mercury prize';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text ); Question: How many years has the Mercury Prize award been given? <|assistant|> SELECT COUNT("year") FROM "awards_and_nominations" WHERE "award"='mercury prize';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text ); Question: For how many years has the Mercury Prize been awarded? <|assistant|> SELECT COUNT("year") FROM "awards_and_nominations" WHERE "award"='mercury prize';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text ); Question: In what year, prior to 2009, was the Mercury Prize awarded? <|assistant|> SELECT "result" FROM "awards_and_nominations" WHERE "year"<2009 AND "award"='mercury prize';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the lowest Points when against is 50, and there are less than 20 played? <|assistant|> SELECT MIN("points") FROM "campeonato_paulista" WHERE "against"=50 AND "played"<20;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the average Position with less than 57 against and the team is Juventus? <|assistant|> SELECT AVG("position") FROM "campeonato_paulista" WHERE "against"<57 AND "team"='juventus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the highest Position when the against is less than 41, and lost is more than 7? <|assistant|> SELECT MAX("position") FROM "campeonato_paulista" WHERE "against"<41 AND "lost">7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the average Lost when there are 57 against? <|assistant|> SELECT AVG("lost") FROM "campeonato_paulista" WHERE "against"=57;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the lowest Lost for são paulo railway, Points more than 21? <|assistant|> SELECT MIN("lost") FROM "campeonato_paulista" WHERE "team"='são paulo railway' AND "points">21;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newly_named_birds" ( "name" text, "status" text, "authors" text, "unit" text, "location" text, "notes" text ); Question: What unit is in Mongolia? <|assistant|> SELECT "unit" FROM "newly_named_birds" WHERE "location"='mongolia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newly_named_birds" ( "name" text, "status" text, "authors" text, "unit" text, "location" text, "notes" text ); Question: What unit is in Argentina? <|assistant|> SELECT "unit" FROM "newly_named_birds" WHERE "location"='argentina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newly_named_birds" ( "name" text, "status" text, "authors" text, "unit" text, "location" text, "notes" text ); Question: What name is located in China? <|assistant|> SELECT "name" FROM "newly_named_birds" WHERE "location"='china';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newly_named_birds" ( "name" text, "status" text, "authors" text, "unit" text, "location" text, "notes" text ); Question: What unit is located in China and has Zhou Zhang as an author? <|assistant|> SELECT "unit" FROM "newly_named_birds" WHERE "location"='china' AND "authors"='zhou zhang';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: What kind of Manufacturer has a Laps smaller than 20 and a Grid of 21 <|assistant|> SELECT "manufacturer" FROM "250cc_classification" WHERE "laps"<20 AND "grid"=21;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "commercial_airlines" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operations" real, "fleet_size" real, "headquarters" text ); Question: Which Airline has a Fleet size larger than 17, and a IATA of pr? <|assistant|> SELECT "airline" FROM "commercial_airlines" WHERE "fleet_size">17 AND "iata"='pr';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "commercial_airlines" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operations" real, "fleet_size" real, "headquarters" text ); Question: Which ICAO has a Fleet size of 2? <|assistant|> SELECT "icao" FROM "commercial_airlines" WHERE "fleet_size"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "commercial_airlines" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operations" real, "fleet_size" real, "headquarters" text ); Question: What is the of Fleet size with a IATA of pr, and a Commenced operations smaller than 1941? <|assistant|> SELECT SUM("fleet_size") FROM "commercial_airlines" WHERE "iata"='pr' AND "commenced_operations"<1941;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "commercial_airlines" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operations" real, "fleet_size" real, "headquarters" text ); Question: Which ICAO has a Commenced operations larger than 2011? <|assistant|> SELECT "icao" FROM "commercial_airlines" WHERE "commenced_operations">2011;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "insects" ( "name" text, "novelty" text, "status" text, "authors" text, "location" text ); Question: What is the Status with an Author that is woodruff? <|assistant|> SELECT "status" FROM "insects" WHERE "authors"='woodruff';<|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, "college" text ); Question: What is the highest Pick # when the CFL Team is the Toronto Argonauts? <|assistant|> SELECT MAX("pick_num") FROM "round_six" WHERE "cfl_team"='toronto argonauts';<|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, "college" text ); Question: What is the CFL Team with #48 as the pick number? <|assistant|> SELECT "cfl_team" FROM "round_six" WHERE "pick_num"=48;<|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, "college" text ); Question: What is the College with a Position of db, and the CFL Team was Winnipeg Blue Bombers? <|assistant|> SELECT "college" FROM "round_six" WHERE "position"='db' AND "cfl_team"='winnipeg blue bombers';<|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, "college" text ); Question: What is the CFL Team with Will Grant? <|assistant|> SELECT "cfl_team" FROM "round_six" WHERE "player"='will grant';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ry_ky_an_missions_to_edo" ( "year" real, "mission_type" text, "shogun" text, "ry_ky_an_king" text, "lead_envoy" text, "number_in_entourage" text ); Question: What is the latest year of a gratitude type mission with 99 in the entourage? <|assistant|> SELECT MAX("year") FROM "ry_ky_an_missions_to_edo" WHERE "number_in_entourage"='99' AND "mission_type"='gratitude';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ry_ky_an_missions_to_edo" ( "year" real, "mission_type" text, "shogun" text, "ry_ky_an_king" text, "lead_envoy" text, "number_in_entourage" text ); Question: Who was the lead envoy of the mission with the Ryūkyūan King shō eki? <|assistant|> SELECT "lead_envoy" FROM "ry_ky_an_missions_to_edo" WHERE "ry_ky_an_king"='shō eki';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ry_ky_an_missions_to_edo" ( "year" real, "mission_type" text, "shogun" text, "ry_ky_an_king" text, "lead_envoy" text, "number_in_entourage" text ); Question: Who was the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei? <|assistant|> SELECT "lead_envoy" FROM "ry_ky_an_missions_to_edo" WHERE "ry_ky_an_king"='shō kei' AND "mission_type"='congratulation' AND "year"=1718;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ry_ky_an_missions_to_edo" ( "year" real, "mission_type" text, "shogun" text, "ry_ky_an_king" text, "lead_envoy" text, "number_in_entourage" text ); Question: Who was the lead envoy with the Ryūkyūan King shō kō? <|assistant|> SELECT "lead_envoy" FROM "ry_ky_an_missions_to_edo" WHERE "ry_ky_an_king"='shō kō';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real ); Question: On 10/20/1979*, who was the Opponent? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "date"='10/20/1979*';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real ); Question: What is the average Attendance at a game with a Result of w 30-23? <|assistant|> SELECT AVG("attendance") FROM "schedule" WHERE "result"='w 30-23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real ); Question: What is the lowest Attendance at a game with the Result of w 25-17? <|assistant|> SELECT MIN("attendance") FROM "schedule" WHERE "result"='w 25-17';<|endoftext|>