text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
Question: What was the weight for the player in Zhejiang in 2008?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prevalence_by_state" (
"state_and_district_of_columbia" text,
"obese_adults" text,
"overweight_incl_obese_adults" text,
"obese_children_and_adolescents" text,
"obesity_rank" real
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prevalence_by_state" (
"state_and_district_of_columbia" text,
"obese_adults" text,
"overweight_incl_obese_adults" text,
"obese_children_and_adolescents" text,
"obesity_rank" real
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prevalence_by_state" (
"state_and_district_of_columbia" text,
"obese_adults" text,
"overweight_incl_obese_adults" text,
"obese_children_and_adolescents" text,
"obesity_rank" real
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
Question: What is reserved for Jawad?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
Question: What is reserved for the constituen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
Question: Whi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
Question: Whi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
Question: Whi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "siena_college_research_institute_survey" (
"seq" text,
"name" text,
"background" real,
"party_leadership" real,
"communication_ability" real,
"relations_with_congress" real,
"court_appointme... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "siena_college_research_institute_survey" (
"seq" text,
"name" text,
"background" real,
"party_leadership" real,
"communication_ability" real,
"relations_with_congress" real,
"court_appointme... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text
);
Question: What was the record at the game with a score of 21-16?
<|assistant|>
SELECT "rec... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text
);
Question: Who was the opponent at the game with a score of 42-28 after week 4?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_cad_cam_cae_file_viewers" (
"latest_stable_release" text,
"developer" text,
"3_d_support" text,
"runs_on_posix_style_systems" text,
"runs_on_windows" text,
"user_interface_langua... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_cad_cam_cae_file_viewers" (
"latest_stable_release" text,
"developer" text,
"3_d_support" text,
"runs_on_posix_style_systems" text,
"runs_on_windows" text,
"user_interface_langua... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: what is the result when the opponent is at dallas cowboys?
<|assistant|>
SELECT "result" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text,
"year_joined" real
);
Question: what is the enrollement for the year j... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text,
"year_joined" real
);
Question: what is the #/county that is ihsaa cla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l_ps_c_ds" (
"title" text,
"label" text,
"year_of_release" real,
"country_of_release" text,
"peaches" text
);
Question: What's the Peaches: that was released in USA with 2 hot as a Title?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l_ps_c_ds" (
"title" text,
"label" text,
"year_of_release" real,
"country_of_release" text,
"peaches" text
);
Question: What's the Peaches: for Sayin' Something?
<|assistant|>
SELECT "peaches" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l_ps_c_ds" (
"title" text,
"label" text,
"year_of_release" real,
"country_of_release" text,
"peaches" text
);
Question: Where was the title released in 1977?
<|assistant|>
SELECT "country_of_re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l_ps_c_ds" (
"title" text,
"label" text,
"year_of_release" real,
"country_of_release" text,
"peaches" text
);
Question: What was the last year MCA had a Release?
<|assistant|>
SELECT MAX("year_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nineteenth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the lowest pick for the Buffalo Bills?
<|assistant|>
SELECT MIN("pick") FROM "n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nineteenth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: Which player played for the Boston Patriots?
<|assistant|>
SELECT "player" FROM "ninete... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"round" real,
"date" text,
"home" text,
"result" text,
"visitor" text,
"venue" text,
"attendance" real
);
Question: How much Attendance has a Result of 2–4, and a Visitor of bry... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"round" real,
"date" text,
"home" text,
"result" text,
"visitor" text,
"venue" text,
"attendance" real
);
Question: Which Result has a Round larger than 17?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wards" (
"name" text,
"labour" real,
"conservative" real,
"political_party" text,
"electorate" real,
"constituency" text
);
Question: What is the smallest electorate for the Conservative part... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_populous_cities" (
"rank" real,
"city" text,
"population" real,
"year_of_census_or_estimate" real,
"country" text
);
Question: In what Year of Census or Estimate is the Toronto Population ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "athletics" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
);
Question: What event was in a year later than 2007 and in the 88th position?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "athletics" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
);
Question: What are the notes for 2005?
<|assistant|>
SELECT "notes" FROM "athletics"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio_stations" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: Who is the owner of CKLF-FM?
<|assistant|>
SELECT "owner" FROM "radio_stations" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio_stations" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What frequency is First Nations Community?
<|assistant|>
SELECT "frequency" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio_stations" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What format is CBC Radio 2?
<|assistant|>
SELECT "format" FROM "radio_stations" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio_stations" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: Who owns CKSB-8-FM?
<|assistant|>
SELECT "owner" FROM "radio_stations" WHERE "cal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio_stations" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What format is Première Chaîne?
<|assistant|>
SELECT "format" FROM "radio_station... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaching_titles" (
"year" real,
"championship" text,
"event" text,
"nation" text,
"result" text
);
Question: What year was olympics, Canada and the Men's Eight Event ended with a silver medal?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaching_titles" (
"year" real,
"championship" text,
"event" text,
"nation" text,
"result" text
);
Question: What event was in 2006?
<|assistant|>
SELECT "event" FROM "coaching_titles" WHERE "y... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaching_titles" (
"year" real,
"championship" text,
"event" text,
"nation" text,
"result" text
);
Question: What championship was in the USA after 1994, and resulted in 5th place?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaching_titles" (
"year" real,
"championship" text,
"event" text,
"nation" text,
"result" text
);
Question: What year did Canada get a silver in the olympics in the Men's Coxless Pair event?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
Question: Where is the lacrosse school locat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
Question: Which IHSAA Class has a Mascot of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
Question: Which Location has an Enrollment l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
Question: Which County has an Enrollment of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"county" text
);
Question: Which School has an Enrollment lar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championships_total_medals" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the number of silver medals when there are more th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championships_total_medals" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total when the Yugoslavia number of silver won... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the total attendance before week 1?
<|assistant|>
SELECT SUM("attendance") FROM "sch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1939" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
Question: When was sniffles and the bookworm released?
<|assistant|>
SELECT "release_date" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1939" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
Question: When was land of the midnight fun in the mm series released?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1939" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
Question: Which series had a release on 1939-07-15 with the 8863 production number?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1939" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
Question: Who directed hamateur night?
<|assistant|>
SELECT "director" FROM "1939" WHERE "tit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1939" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
Question: When was Production Number 9105 released?
<|assistant|>
SELECT "release_date" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbfx_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What Class has a Frequency of 90.1 FM?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbfx_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What is listed for the RECNet that also has ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbfx_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What Class has the Identifier fo CBFX-FM-2?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbfx_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What is the RECNet with a Class of B and the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbfx_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What Class has the Identifier of CBFX-FM-6?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_rebroadcaster_of_cbfx_fm" (
"city_of_license" text,
"identifier" text,
"frequency" text,
"power" text,
"class" text,
"rec_net" text
);
Question: What Frequency has the Identifier of CBFX-FM... |
<|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 number of gold with less than 1 silver, from Belgium?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: Which Lost has Points smaller than 15, and a Name of sc forst, and Drawn smal... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: How much Position has a Lost of 8, and a Played larger than 14?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: Which Drawn has a Lost larger than 8, and Points smaller than 7?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: How much Drawn has a Name of erc lechbruck, and Points smaller than 17?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "towns" (
"town" text,
"population_2001" real,
"population_rank" real,
"county" text,
"municipality" text
);
Question: What town is from the molėtai district municipality and has a population ra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "towns" (
"town" text,
"population_2001" real,
"population_rank" real,
"county" text,
"municipality" text
);
Question: What county is the town with a rank of 205 located in?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_heat_6" (
"draw" real,
"artist" text,
"song" text,
"percentage" text,
"place" real
);
Question: What is the fewest draws for percentages of 5.02%?
<|assistant|>
SELECT MIN("draw") FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_heat_6" (
"draw" real,
"artist" text,
"song" text,
"percentage" text,
"place" real
);
Question: What is the average draws for the song "Europe is My Home!"?
<|assistant|>
SELECT AVG(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ninth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the position of the player from the denver broncos?
<|assistant|>
SELECT "position" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ninth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the average pick of the kansas city chiefs?
<|assistant|>
SELECT AVG("pick") FROM "n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ninth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the pick of wiley college?
<|assistant|>
SELECT "pick" FROM "ninth_round" WHERE "col... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What was the attendance for the game with alfreton town as the home team?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What was the score of the game where stafford rangers was the away team?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Who was the home team that has a tie no of 1?
<|assistant|>
SELECT "home_team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What is the tie no that has southport as the away team?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What was the attendance for the game that had the king's lynn as the home tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: What was the score for the game with a tie no of 1?
<|assistant|>
SELECT "sco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the game number on December 21?
<|assistant|>
SELECT COUNT(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the Game with a Record of 19-15?
<|assistant|>
SELECT "game... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the Date of the game against Detroit in game 31 or after?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: During which years did the golfer with the total of 289 win?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: What was the To par for the player who finished t56?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: Which county did the player with a total of 294 represent?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: What was the total for united states player phil mickelson?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: With a less than 4 rank, and a time less than 24.42 what is the smallest lane?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: The swimmer from the United States in a lane less than 5, had what as the average time?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: What nationality is the swimmer that is in the lane that is less than 2?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: Which Losses have Draws smaller than 0?
<|assistant|>
SELECT MAX("losses")... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: Which Losses have Draws larger than 0?
<|assistant|>
SELECT MAX("losses") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: How much Against has Losses smaller than 7, and a Wimmera FL of horsham?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: How many Draws have Wins larger than 7, and a Wimmera FL of nhill, and Los... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_finals_10" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the outcome of the match with a score of 3-6, 2-6?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_finals_10" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the tournament that had byron black playing against ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_finals_10" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What tournament had a game with a score of 6-7, 4-6?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" real,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"round" real,
"opponent" text,
"result" text,
"opp" real,
"venue" text
);
Question: what is the result when the round is less than 7 and the opponent is melbourne storm?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"round" real,
"opponent" text,
"result" text,
"opp" real,
"venue" text
);
Question: what is the venue when the result is loss and the opponent is st george-illawarra dragons?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championships_men" (
"year" real,
"place" text,
"gold" text,
"silver" text,
"bronze" text
);
Question: Who won silver in 1982?
<|assistant|>
SELECT "silver" FROM "world_championships_men"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "repechage" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the Time of the Rowers in Rank 1?
<|assistant|>
SELECT "time" FROM "repechage" WHERE "ran... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "repechage" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
Question: What is the Time of the Rowers from Belgium?
<|assistant|>
SELECT "time" FROM "repechage" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_3" (
"rank" real,
"lane" real,
"athlete" text,
"country" text,
"time" text
);
Question: What time does lane 7 have?
<|assistant|>
SELECT "time" FROM "semifinal_3" WHERE "lane"=7;<|end... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.