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 ...
<|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|> SE...
<|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 Col...
<|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 Pi...
<|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|> SELEC...
<|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 Na...
<|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 "opp...
<|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? <|assistan...
<|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 5...
<|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 un...
<|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...
<|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...
<|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 P...
<|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 P...
<|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 ...
<|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 ); Quest...
<|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 ); Quest...
<|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 ); Quest...
<|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 2...
<|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...
<|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...
<|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,...
<|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, a...
<|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" FR...
<|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 att...
<|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...
<|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: Wh...
<|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...
<|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? <|a...
<|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 ...
<|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 th...
<|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 t...
<|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 ...
<|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 ...
<|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 Republi...
<|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 ...
<|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 ...
<|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 ); Que...
<|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 ); Que...
<|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 ); Que...
<|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 ); Que...
<|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 ); Que...
<|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 ); Que...
<|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 2...
<|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 g...
<|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 oppo...
<|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?...
<|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? <|ass...
<|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? <|ass...
<|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 Mond...
<|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 Tues...
<|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 Mond...
<|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" ...
<|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? <|a...
<|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|>...
<|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 "...
<|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|> S...
<|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...
<|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? <|assis...
<|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 r...
<|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 recor...
<|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 ...
<|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_...
<|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 "s...
<|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, wh...
<|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 i...
<|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 ...
<|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...
<|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 stak...
<|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 organ...
<|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? <|ass...
<|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|> SELE...
<|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|> SELE...
<|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|>...
<|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...
<|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 w...
<|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 w...
<|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 ...
<|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ã...
<|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_name...
<|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_nam...
<|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...
<|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? <|assis...
<|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 <|as...
<|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 ...
<|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 siz...
<|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 ...
<|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...
<|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 "insec...
<|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|> S...
<|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...
<|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?...
<|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"...
<|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 grat...
<|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 mis...
<|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 con...
<|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 R...
<|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" WH...
<|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 ...
<|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...