text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"april" real,
"opponent" text,
"score" text,
"record" text
);
Question: Name the opponent with record of 38-34-10
<|assistant|>
SELECT "opponent" FROM "sche... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"april" real,
"opponent" text,
"score" text,
"record" text
);
Question: Name the total number of April for game more than 81 and reord of 38-33-10
<|assista... |
<|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: what series was on may 14
<|assistant|>
SELECT "series" FROM "playoffs" WHERE "date"='may 14';<|e... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What is the to par that has england as the country, with 66 as a score?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What country has a score less than 68, and paul casey as the player?
<|assistant|>
SELECT "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What is the lowest score that has alastair forsyth as the player?
<|assistant|>
SELECT MIN("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: How many scores have paul casey as a player?
<|assistant|>
SELECT COUNT("score") FROM "first... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"locomotive" text,
"pre_conversion" text,
"entered_service_t" text,
"re_entered_service_p" text,
"owner" text
);
Question: Who owns the item that was a T326 before conversion and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"locomotive" text,
"pre_conversion" text,
"entered_service_t" text,
"re_entered_service_p" text,
"owner" text
);
Question: What date did the T328 that entered service on 18 June ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"locomotive" text,
"pre_conversion" text,
"entered_service_t" text,
"re_entered_service_p" text,
"owner" text
);
Question: Which of V/Line Passenger's pre-conversions re-entered ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives" (
"locomotive" text,
"pre_conversion" text,
"entered_service_t" text,
"re_entered_service_p" text,
"owner" text
);
Question: Who owns the locomotive that entered service on 30 Octo... |
<|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" text,
"record" text
);
Question: What was the score of the game when the record was 50-85?
<|assistant|>
SELE... |
<|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" text,
"record" text
);
Question: What was the loss of the game when the record was 46-84?
<|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" text,
"record" text
);
Question: What was the record at the game with a loss of Cook (14–7)?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What album is 4:53 long?
<|assistant|>
SELECT "album" FROM "official_versions" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_performance_timeline" (
"tournament" text,
"1981" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_performance_timeline" (
"tournament" text,
"1981" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_performance_timeline" (
"tournament" text,
"1981" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_performance_timeline" (
"tournament" text,
"1981" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_performance_timeline" (
"tournament" text,
"1981" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_performance_timeline" (
"tournament" text,
"1981" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_intel_80579_processors" (
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"releas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_intel_80579_processors" (
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"releas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_intel_80579_processors" (
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"releas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_intel_80579_processors" (
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"releas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_intel_80579_processors" (
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"releas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_intel_80579_processors" (
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"releas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"new_zealand" real,
"hong_kong" real,
"singapore" real,
"london" real,
"brisbane" real,
"cardiff" real,
"durban" real,
"santiago" real,
"mar_del_plata" real,
"beijing" rea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"new_zealand" real,
"hong_kong" real,
"singapore" real,
"london" real,
"brisbane" real,
"cardiff" real,
"durban" real,
"santiago" real,
"mar_del_plata" real,
"beijing" rea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"new_zealand" real,
"hong_kong" real,
"singapore" real,
"london" real,
"brisbane" real,
"cardiff" real,
"durban" real,
"santiago" real,
"mar_del_plata" real,
"beijing" rea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"new_zealand" real,
"hong_kong" real,
"singapore" real,
"london" real,
"brisbane" real,
"cardiff" real,
"durban" real,
"santiago" real,
"mar_del_plata" real,
"beijing" rea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_history" (
"year" real,
"pick" text,
"player" text,
"position" text,
"country" text,
"previous_team_league" text
);
Question: What position was picked for Canada on Pick 8?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_history" (
"year" real,
"pick" text,
"player" text,
"position" text,
"country" text,
"previous_team_league" text
);
Question: What is the position that is shown for 2011?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "personal_life" (
"year" real,
"song_title" text,
"film_name" text,
"language" text,
"music_director" text
);
Question: what language is seethaiah in
<|assistant|>
SELECT "language" FROM "person... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_to_2002" (
"year" text,
"title" text,
"role" text,
"producer" text,
"director" text
);
Question: Which Producer has a Role of rizzette?
<|assistant|>
SELECT "producer" FROM "2000_to_2002" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_to_2002" (
"year" text,
"title" text,
"role" text,
"producer" text,
"director" text
);
Question: Which Title has a Director of rowell santiago?
<|assistant|>
SELECT "title" FROM "2000_to_2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_to_2002" (
"year" text,
"title" text,
"role" text,
"producer" text,
"director" text
);
Question: Which Year has a Producer of viva films, and a Title of magkapatid?
<|assistant|>
SELECT "y... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_to_2002" (
"year" text,
"title" text,
"role" text,
"producer" text,
"director" text
);
Question: Which Director has a Role of melissa?
<|assistant|>
SELECT "director" FROM "2000_to_2002" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1989_90" text,
"1990_91" text,
"1991_1992" real
);
Question: What is the total number of averages where the played ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1989_90" text,
"1990_91" text,
"1991_1992" real
);
Question: Which 1990-91 has an average number of 1.035?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1989_90" text,
"1990_91" text,
"1991_1992" real
);
Question: Which team has a 1990-91 number of 39 and a 1989-90 nu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" real,
"points" real,
"played" real,
"1989_90" text,
"1990_91" text,
"1991_1992" real
);
Question: Which played number has an average of 1.026 and a 1989... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "title_history" (
"wrestler" text,
"times" real,
"date" text,
"place" text,
"successful_defenses" real
);
Question: Who was the wrestler when there was over 1 time?
<|assistant|>
SELECT "wrestle... |
<|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,
"game_site" text,
"attendance" real
);
Question: What results has a week larger than 13?
<|assistant|>
SELECT "result" FR... |
<|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,
"game_site" text,
"attendance" real
);
Question: What results has a week smaller than 2?
<|assistant|>
SELECT "result" FR... |
<|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" text,
"record" text
);
Question: What was the score for game number 30?
<|assistant|>
SELECT "score" FROM "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" text,
"record" text
);
Question: What is the sum for the game with a score of 103–126?
<|assistant|>
SELECT SUM... |
<|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" text,
"record" text
);
Question: What is the lowest game number that has a Record of 3–33?
<|assistant|>
SELECT... |
<|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 score was on february 21
<|assistant|>
SELECT "score" FROM "regul... |
<|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 is the nationality of the player from the Ohio State Un... |
<|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 is the lowest round of the Kitchener Rangers (OHA)?
<|a... |
<|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 is the position of Pierre Daigneault?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "economic_profile" (
"geographic_unit" text,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
);
Question: What is the average 2006 value with a 2010 value of 417... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "economic_profile" (
"geographic_unit" text,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
);
Question: What is the 2011 total with a 2008 value greater than 3... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "economic_profile" (
"geographic_unit" text,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
);
Question: What is the total 2008 value with a 2006 value greater ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "economic_profile" (
"geographic_unit" text,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
);
Question: What is the highest 2009 value with a 2006 value smalle... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "economic_profile" (
"geographic_unit" text,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
);
Question: What is the average 2007 value with a 2009 value greate... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "economic_profile" (
"geographic_unit" text,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
);
Question: What is the 2006 total with a 2010 value greater than 4... |
<|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" text,
"record" text
);
Question: when has an Opponent of @ philadelphia phillies and an Attendance of 20,072?... |
<|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" text,
"record" text
);
Question: Which Opponent is on april 28?
<|assistant|>
SELECT "opponent" FROM "game_lo... |
<|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" text,
"record" text
);
Question: Which Record has an Attendance of 24,597?
<|assistant|>
SELECT "record" FROM... |
<|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" text,
"record" text
);
Question: Which Record has a Loss of o'connor (0-1)?
<|assistant|>
SELECT "record" FRO... |
<|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" text,
"record" text
);
Question: which attendance has a Loss of drese (0-2)?
<|assistant|>
SELECT "attendance... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sapporo" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_wc_points_rank" text
);
Question: Who is the person that has 119.5 m?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sapporo" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_wc_points_rank" text
);
Question: What is the highest 2nd in (m) that has a Rank... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sapporo" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_wc_points_rank" text
);
Question: Which 2nd (m) has a 1st (m) of 120.5 and Point... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
Question: What is the first date of election for the incumbent that was re-elected in t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
Question: Who was the incumbent who was first elected in 1876?
<|assistant|>
SELECT "in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
Question: Who was the Democratic incumbent in the South Carolina 5 District?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text
);
Question: What is the first elected date for the incumbent in the South Carolina 4 dist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administrative_divisions" (
"number" real,
"name_of_administrative_unit" text,
"telephone_052" text,
"area_km_2" real,
"population_people" real
);
Question: Which area has a telephone of (052) ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "administrative_divisions" (
"number" real,
"name_of_administrative_unit" text,
"telephone_052" text,
"area_km_2" real,
"population_people" real
);
Question: What is the sum of area with a popul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_championship_points_in_a_season" (
"driver" text,
"points" real,
"season" text,
"races" real,
"percentage_of_possible_points" text
);
Question: Which driver had points over 252 in the seas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_championship_points_in_a_season" (
"driver" text,
"points" real,
"season" text,
"races" real,
"percentage_of_possible_points" text
);
Question: What is the number of races that took place ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_championship_points_in_a_season" (
"driver" text,
"points" real,
"season" text,
"races" real,
"percentage_of_possible_points" text
);
Question: What is the number of points that driver fer... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_championship_points_in_a_season" (
"driver" text,
"points" real,
"season" text,
"races" real,
"percentage_of_possible_points" text
);
Question: What was the average Points of the season dr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"name" text,
"position" text,
"college" text
);
Question: What position has 217 as the pick?
<|assistant|>
SELECT "position" FROM "nfl_draft" WHERE "pick... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text
);
Question: Which score has a record of 18-21-7?
<|assistant|>
SELECT "score" FROM "schedule_a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"season" text,
"team" text,
"country" text,
"division" real,
"apps" real,
"goals" real
);
Question: What is the lowest value for apps in 2009 season in a division less th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"season" text,
"team" text,
"country" text,
"division" real,
"apps" real,
"goals" real
);
Question: What is the sum of goals for Torpedo Moscow in division 1 with an apps... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: Which Remixed by has a Version of album version, and an Album of les mots?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: How long was the instrumental version in 1986?
<|assistant|>
SELECT "length" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: Which long version was remixed in 1986?
<|assistant|>
SELECT "remixed_by" FROM "off... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Who was Canada's lead?
<|assistant|>
SELECT "lead" FROM "teams" WHERE "country"='canada';<|endoftext|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: What was Canada's skip?
<|assistant|>
SELECT "skip" FROM "teams" WHERE "country"='canada';<|endoftext... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which country has a Lead of sarah wazney?
<|assistant|>
SELECT "country" FROM "teams" WHERE "lead"='s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which Lead has a Third of jeanne ellegaard?
<|assistant|>
SELECT "lead" FROM "teams" WHERE "third"='j... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which Skip has a Third of sara carlsson?
<|assistant|>
SELECT "skip" FROM "teams" WHERE "third"='sara... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Which Skip has a Second of vicki adams?
<|assistant|>
SELECT "skip" FROM "teams" WHERE "second"='vick... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"city" text,
"mascot" text,
"enrollment" real,
"county" text
);
Question: Enrollment that has a School of south central (union mills) ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"city" text,
"mascot" text,
"enrollment" real,
"county" text
);
Question: Mascot of blazers involves what city?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"city" text,
"mascot" text,
"enrollment" real,
"county" text
);
Question: County of 46 laporte is what school?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sprint_race" (
"team" text,
"driver" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the average Laps that shows spun off for time?
<|assistant|>
SELECT AVG("laps") FROM "sprin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sprint_race" (
"team" text,
"driver" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the average Laps for the Mexico team with a grid number of more than 1?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sprint_race" (
"team" text,
"driver" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is name of the drive with a Time of +13.315?
<|assistant|>
SELECT "driver" FROM "sprint_race" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sprint_race" (
"team" text,
"driver" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the total grid number that has 14 laps and a time of +29.483?
<|assistant|>
SELECT COUNT("g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sprint_race" (
"team" text,
"driver" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the total number of Laps when collision shows for time for Switzerland and less than 11 for... |
<|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 is the time of the game after week 4 against the Balti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"nominated_work" text,
"category" text,
"result" text
);
Question: What nominated work has seattle international film festival as the award?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"nominated_work" text,
"category" text,
"result" text
);
Question: What award has breakthrough performance as the category?
<|assistant|>
SE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.