text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: How many Games have a Drawn larger than 0, and a Lost of 1? <|assistant|> SELECT COU...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: Which Points have a Drawn larger than 0, and a Lost larger than 1? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: Which Drawn has a Lost larger than 0, and Points smaller than 11, and Games smaller ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "electoral_effect" ( "party" text, "votes_cast" real, "percentage" real, "seats_won" real, "percent_of_seats" real ); Question: What is the percentage of the liberal party with less than 25 perc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "electoral_effect" ( "party" text, "votes_cast" real, "percentage" real, "seats_won" real, "percent_of_seats" real ); Question: Which party won less than 21 seats, has 0 percent of seats, and 69...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); Question: Can you tell me the Date that has the Game of 2? <|assistant|> SELECT "date" FROM "playoffs" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: When the date is July 8, and the score is 8-12, who is the opponent? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: When the Loss is Johnson (4-12), what is the date? <|assistant|> SELECT "dat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What date is associated with the Loss of Farrell (6-13)? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Which opponent has the score of 0-3? <|assistant|> SELECT "opponent" FROM "g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the Total of kyrgyzstan with a Silver smaller than 0? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the Total that has a number of Nation and a Gold smaller than 16? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Rank has a Silver larger than 1 and a Total larger than 13? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many Silvers that have a Rank of 2? <|assistant|> SELECT COUNT("silver") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_schools" ( "school" text, "location" text, "mascot" text, "county" text, "2013_2014_size" real, "year_joined" real, "previous_conference" text ); Question: What was the previous conf...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "college" text ); Question: What is the name of the college that is from a round greater than 3 with Gillis Wilson playin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "college" text ); Question: What is average round of Auburn College? <|assistant|> SELECT AVG("round") FROM "nfl_draft" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "amateur_and_junior_clubs" ( "club" text, "league" text, "venue" text, "established" real, "championships" real ); Question: What is the Established date of the Ontario Provincial Junior A Hocke...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "amateur_and_junior_clubs" ( "club" text, "league" text, "venue" text, "established" real, "championships" real ); Question: What Venue has more than 1 Championship and was Established after 195...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "amateur_and_junior_clubs" ( "club" text, "league" text, "venue" text, "established" real, "championships" real ); Question: With less than 1 Championship, what es the Established date of the Ni...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "amateur_and_junior_clubs" ( "club" text, "league" text, "venue" text, "established" real, "championships" real ); Question: What is the Established date of the Brian Timmis Stadium? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "west" ( "name" text, "faith" text, "type" text, "intake" real, "dcsf_number" real, "ofsted_number" real ); Question: What is the junior type with an intake of 60 and a DCSF number less than 3...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Record has a Game smaller than 19, and Points smaller than 19, a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real ); Question: How many games have a Record of 7–6–3, and Points smaller than 17? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Points have an Opponent of vancouver canucks, and a November sma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text ); Question: which Record is on March of 12 <|assistant|> SELECT "record" FROM "schedule_and_resu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text ); Question: What is the number of March that has 25-10-9 record and a Game more than 44? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text ); Question: Which Game has a Record of 27-11-10? <|assistant|> SELECT AVG("game") FROM "schedule...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bulgaria" ( "line" text, "speed" text, "length" text, "construction_begun" text, "expected_start_of_revenue_services" real ); Question: What is the Speed when Construction begun in 2010, and an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bulgaria" ( "line" text, "speed" text, "length" text, "construction_begun" text, "expected_start_of_revenue_services" real ); Question: What is the length when the expected start of revenue is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "democratic_primary" ( "poll_source" text, "dates_administered" text, "roy_barnes" text, "thurbert_baker" text, "du_bose_porter" text, "david_poythress" text, "undecided" text ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "democratic_primary" ( "poll_source" text, "dates_administered" text, "roy_barnes" text, "thurbert_baker" text, "du_bose_porter" text, "david_poythress" text, "undecided" text ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_12_2008_2009" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What series episode has deli mea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_table" ( "model" text, "min_capacity_m_ah" text, "typ_capacity_m_ah" text, "capacity_after_first_day" text, "after_1_year" text, "after_2_years" text, "after_3_years" text, "aft...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What position does Alexei Lazarenko have? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What college did Jamie Butt go to? <|assistant|> SELECT "col...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What school did Alexander Korobolin go to? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: Who has a round less than 9 and a position of G? <|assistant...
<|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: Name the sum of cuts with wins less than 2, top-25 more t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "time" text, "att" text, "record" text ); Question: What was the score that led to an 11-16 record? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "time" text, "att" text, "record" text ); Question: Who took the loss on May 20? <|assistant|> SELECT "loss" FROM "game_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "time" text, "att" text, "record" text ); Question: What was the attendance of the game that lasted 3:55? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "time" text, "att" text, "record" text ); Question: What was the date of the game in which Holt (4-4) took the loss? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "barry_bonds_73_home_runs" ( "number" text, "date" text, "pitcher" text, "team" text, "inning" text, "length" text ); Question: What was the date when the pitcher was Jason Marquis and the len...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "barry_bonds_73_home_runs" ( "number" text, "date" text, "pitcher" text, "team" text, "inning" text, "length" text ); Question: What number home run was in the 8th inning and went 410'? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1940_north_atlantic_tropical_cyclone_sta" ( "storm_name" text, "dates_active" text, "max_1_min_wind_mph_km_h" text, "min_press_mbar" text, "damage_millions_usd" text, "deaths" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1940_north_atlantic_tropical_cyclone_sta" ( "storm_name" text, "dates_active" text, "max_1_min_wind_mph_km_h" text, "min_press_mbar" text, "damage_millions_usd" text, "deaths" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1940_north_atlantic_tropical_cyclone_sta" ( "storm_name" text, "dates_active" text, "max_1_min_wind_mph_km_h" text, "min_press_mbar" text, "damage_millions_usd" text, "deaths" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1940_north_atlantic_tropical_cyclone_sta" ( "storm_name" text, "dates_active" text, "max_1_min_wind_mph_km_h" text, "min_press_mbar" text, "damage_millions_usd" text, "deaths" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: What is the Class AA with a Class AAAA of Sulphur Springs and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: What is the Class AA in the 2010-11 school year with a class ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: What is the Class AA of the school year 2009-10 with a class ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: What is the class AAAAA of the school year 1993-94 with a cla...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: What is the school year with a class AA of Rosebud-Lott, a cl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: What is the class AAA of the 1993-94 school year with a class...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pittsburgh_penguins_4_boston_bruins_2" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who was the visiting team on May 7? <|assistant|> SELECT "visitor" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "annual_passenger_statistics_for_helsinki" ( "year" real, "domestic_passengers" real, "international_passengers" real, "total_passengers" real, "change" text ); Question: what year has 13,426,90...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "annual_passenger_statistics_for_helsinki" ( "year" real, "domestic_passengers" real, "international_passengers" real, "total_passengers" real, "change" text ); Question: what total number of pa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" real, "best" real ); Question: Who had a Qualifying 2 time over 58.669 for Team Australia? <|assistant|> SELECT "name" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" real, "best" real ); Question: Which qualifying 1 time has a best under 58.669 and a qualifying 2 time under 57.897? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" real, "best" real ); Question: Which team has a qualifying 2 time under 59.612 and a best of 59.14? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "gloss" text, "cholim" text, "lungchang" text, "rera" text, "tikhak" text, "yonguk" text, "muklom" text, "hakhun" text, "halang" text ); Question: Which Lungchang has a Hala...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "gloss" text, "cholim" text, "lungchang" text, "rera" text, "tikhak" text, "yonguk" text, "muklom" text, "hakhun" text, "halang" text ); Question: Which Tikhak has a Yonguk ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "gloss" text, "cholim" text, "lungchang" text, "rera" text, "tikhak" text, "yonguk" text, "muklom" text, "hakhun" text, "halang" text ); Question: Which Yonguk has a Halang ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "gloss" text, "cholim" text, "lungchang" text, "rera" text, "tikhak" text, "yonguk" text, "muklom" text, "hakhun" text, "halang" text ); Question: Which Halang has a Rera of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "gloss" text, "cholim" text, "lungchang" text, "rera" text, "tikhak" text, "yonguk" text, "muklom" text, "hakhun" text, "halang" text ); Question: Which Muklom has a Halang ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "gloss" text, "cholim" text, "lungchang" text, "rera" text, "tikhak" text, "yonguk" text, "muklom" text, "hakhun" text, "halang" text ); Question: Which Hakhun has a Tikhak ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "number" real, "station" text, "japanese" text, "distance_km" real, "stop" text, "location" text ); Question: What is the location of Tamagaki station with an l stop? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "number" real, "station" text, "japanese" text, "distance_km" real, "stop" text, "location" text ); Question: What is the station with a number greater than 9 and a distance of 16...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "number" real, "station" text, "japanese" text, "distance_km" real, "stop" text, "location" text ); Question: What is the Japanese name of the station with a number 3? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "number" real, "station" text, "japanese" text, "distance_km" real, "stop" text, "location" text ); Question: What is the number of the station in Suzuka that is smaller than 11.1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "number" real, "station" text, "japanese" text, "distance_km" real, "stop" text, "location" text ); Question: What is the distance of Kawage station? <|assistant|> SELECT SUM("dis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "number" real, "station" text, "japanese" text, "distance_km" real, "stop" text, "location" text ); Question: Which station has a number less than 5 and an l stop? <|assistant|> S...
<|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, "record" text ); Question: Name the visitor for detroit on february 24 <|assistant|> SELECT "visitor" FROM "february" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_5_3_titles_2_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What is the highest listed y...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_5_3_titles_2_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What is the listed surface f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "time_et" text, "result" text, "record" text ); Question: What time was the game during week 5? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spin_offs" ( "series" text, "premiere_date" text, "no_of_seasons" real, "city" text, "starring" text ); Question: Which City has a Series of Tamra's oc wedding? <|assistant|> SELECT "city" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_sherbrooke_boroughs" ( "borough" text, "components" text, "population" real, "number_of_borough_councilors" real, "number_of_municipal_councilors" real ); Question: What is the average ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_sherbrooke_boroughs" ( "borough" text, "components" text, "population" real, "number_of_borough_councilors" real, "number_of_municipal_councilors" real ); Question: Which components hav...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "constituents" ( "date" real, "2_january_2007" text, "19_october_2009" text, "5_november_2010" text, "16_december_2011" text, "30_march_2012" text ); Question: 5 November 2010 of dragon oil 4....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the average ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the highest ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "midlothian" ( "name" text, "type" text, "date" text, "condition" text, "ownership" text ); Question: What is the Name of the Historic House of the 18th Century? <|assistant|> SELECT "name" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "midlothian" ( "name" text, "type" text, "date" text, "condition" text, "ownership" text ); Question: What is the Type of castle from the 14th Century which Condition is preserved? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "midlothian" ( "name" text, "type" text, "date" text, "condition" text, "ownership" text ); Question: What is the Name of the private Castle of the 16th century which is occupied? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "midlothian" ( "name" text, "type" text, "date" text, "condition" text, "ownership" text ); Question: What is the Date of the castle with a Historic Scotland Ownership? <|assistant|> SELECT "dat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "midlothian" ( "name" text, "type" text, "date" text, "condition" text, "ownership" text ); Question: What is the Date of the Fortified House? <|assistant|> SELECT "date" FROM "midlothian" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "midlothian" ( "name" text, "type" text, "date" text, "condition" text, "ownership" text ); Question: What is the Date of the Courtyard Castle? <|assistant|> SELECT "date" FROM "midlothian" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_1" ( "games" real, "drawn" real, "lost" real, "goal_difference" text, "points" real ); Question: What is the highest lost that has 6 for points? <|assistant|> SELECT MAX("lost") FROM "gro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_1" ( "games" real, "drawn" real, "lost" real, "goal_difference" text, "points" real ); Question: How many losses have points less than 3, with a drawn greater than 0? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_15" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which Margin of victory has a Runner(s)-up of buddy gardner? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_15" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which Date has a Winning score of –14 (66-64-68-68=266)? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_15" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which Tournament has a Winning score of e (72-69-71-68=280)? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_15" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which Margin of victory has a Runner(s)-up of dave barr? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_15" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which Margin of victory has a Runner(s)-up of mark o'meara? <...