text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the grid average with a +1 lap time and more than 27 laps?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which lap has more than 17 grids with tetsuya harada?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year" real,
"english_title" text,
"danish_title" text,
"director" text,
"result" text
);
Question: Prior to 1978, what is the Danish of the Film directed by Bent Christensen?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year" real,
"english_title" text,
"danish_title" text,
"director" text,
"result" text
);
Question: Who is the Director of the Olsen Gang Sees Red?
<|assistant|>
SELECT "director... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year" real,
"english_title" text,
"danish_title" text,
"director" text,
"result" text
);
Question: What is the submission Year of the Film The Dark Side of the Moon directed by ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year" real,
"english_title" text,
"danish_title" text,
"director" text,
"result" text
);
Question: What is the Year of submission of the Film The Art of Crying?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text
);
Question: Which Home Town had the weight of 201?
<|assistant|>
SELECT "home_town" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text
);
Question: What Position did the sophomore Darnell Jackson play?
<|assistant|>
SELECT "po... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sales_and_production_figures" (
"model" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"200... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sales_and_production_figures" (
"model" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"200... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sales_and_production_figures" (
"model" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"200... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sales_and_production_figures" (
"model" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"200... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sales_and_production_figures" (
"model" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"200... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sales_and_production_figures" (
"model" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"200... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_2014_teams" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"nickname" text
);
Question: Who is affiliated with the Dukes?
<|assistant|>
SELECT "affiliation" FROM "20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_2014_teams" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"nickname" text
);
Question: What school is in Radford, Va?
<|assistant|>
SELECT "school" FROM "2013_2014_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_2014_teams" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"nickname" text
);
Question: What school has a public nickname, founded after 1838 in Harrisonburg, Va?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Lowest pick for mike flater?
<|assistant|>
SELECT MIN... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: Who was the home team on January 2 with 23 points?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
Question: What is the record when St. Louis is the visitor?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2008" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Where were the 2009 and 2011 Grand Slam Tournaments?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1928_1944" (
"first_vice_president" text,
"second_vice_president" text,
"third_vice_president" text,
"inaugurated" text,
"left_office" text
);
Question: What is Second Vice President, when Thir... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1928_1944" (
"first_vice_president" text,
"second_vice_president" text,
"third_vice_president" text,
"inaugurated" text,
"left_office" text
);
Question: What is Left Office, when Inaugurate is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1928_1944" (
"first_vice_president" text,
"second_vice_president" text,
"third_vice_president" text,
"inaugurated" text,
"left_office" text
);
Question: What is Second Vice President, when Inau... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1928_1944" (
"first_vice_president" text,
"second_vice_president" text,
"third_vice_president" text,
"inaugurated" text,
"left_office" text
);
Question: What is Second Vice President, when Inau... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1928_1944" (
"first_vice_president" text,
"second_vice_president" text,
"third_vice_president" text,
"inaugurated" text,
"left_office" text
);
Question: What is Third Vice President, when Inaug... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1928_1944" (
"first_vice_president" text,
"second_vice_president" text,
"third_vice_president" text,
"inaugurated" text,
"left_office" text
);
Question: What is Third Vice President, when Secon... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What was the Attendance on Week 9?
<|assistant|>
SELECT MAX("attendance") FROM "regula... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the Opponent of the game with a Result of w 13β0?
<|assistant|>
SELECT "oppone... |
<|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: What was the score in January that was less than 4?
<|assistant|>
SELECT "score" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_wins_11" (
"date" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Which date was the event that Yani won in a playoff over Yueh-Chyn H... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "faculae" (
"name" text,
"latitude" text,
"longitude" text,
"diameter" real,
"year_named" real
);
Question: What is the latitude of the point with a longitude of 147.1w?
<|assistant|>
SELECT "la... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_books" (
"title" text,
"author" text,
"isbn_uk" text,
"isbn_us" text,
"tv_companions_featured" text
);
Question: What is ISBN UK, when Author is "Dave Martin", and when ISBN US is "N/A"?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_books" (
"title" text,
"author" text,
"isbn_uk" text,
"isbn_us" text,
"tv_companions_featured" text
);
Question: What is ISBN US, when Title is "Crisis In Space"?
<|assistant|>
SELECT "isb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_books" (
"title" text,
"author" text,
"isbn_uk" text,
"isbn_us" text,
"tv_companions_featured" text
);
Question: What is Author, when TV Companions Featured is "Peri Brown", and when Title... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_books" (
"title" text,
"author" text,
"isbn_uk" text,
"isbn_us" text,
"tv_companions_featured" text
);
Question: What is Title, when TV Companions Featured is "K-9"?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_books" (
"title" text,
"author" text,
"isbn_uk" text,
"isbn_us" text,
"tv_companions_featured" text
);
Question: What is ISBN US, when Title is "Mission To Venus"?
<|assistant|>
SELECT "is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_books" (
"title" text,
"author" text,
"isbn_uk" text,
"isbn_us" text,
"tv_companions_featured" text
);
Question: What is TV Companions Featured, when Author is "William Emms"?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "uefa_champions_league" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
Question: Which Date has a Result of 2β2, and a Venue of H?
<|assistant|... |
<|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" real,
"finish" text
);
Question: Which player had a to par score larger than 7 and a total score of 29... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: In which location did he win the Superbrawl ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: What was his record when the method was tech... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: Who was the opponent in round 2 of the UFC 4... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: What was the round when he fought Joe Steven... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: On which date was the score 94-74 w?
<|assistant|>
SELECT "date" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: When they played at Chicago Bulls, what was the Location/Attendance... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: Who was the opponent in Game 44?
<|assistant|>
SELECT "opponent" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: Who was the opponent when they played at Delta Center with a record... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What was the date for Game 41?
<|assistant|>
SELECT "date" FROM "ga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_cup" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"round" text
);
Question: Which Opposing Team has an Against of 3, and a Date of 11 february 1950?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_cup" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"round" text
);
Question: Which Venue has an Opposing Team of manchester united, and a Round of 5th round replay?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_cup" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"round" text
);
Question: Which Against has a Date of 28 january 1950?
<|assistant|>
SELECT AVG("against") FROM "fa_cu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: What is the total number of years wehre anna thompson had a 3rd place result at edinburgh,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: What year did anna thompson have a 7th place result?
<|assistant|>
SELECT "year" FROM "ach... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: What is the average year that anna thompson had an 8th place result in team competition at... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "solheim_cup_record" (
"year" text,
"total_matches" real,
"total_w_l_h" text,
"singles_w_l_h" text,
"fourballs_w_l_h" text,
"points_won" real,
"points_pct" real
);
Question: What is the tota... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gp_gs" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
Question: WHAT IS THE LOSS WITH AN AVERAGE OF 89.9?
<|assistant|>
SELECT SUM("loss") FROM "rushing... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gp_gs" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
Question: WHAT IS THE NUMBER OF LOSSES WITH A LONG SMALLER THAN 24, AND GAIN BIGGER THAN 116?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: How many rounds did Brett go ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: How many rounds did Brett go ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table" (
"rank" text,
"july_1_2013_projection" real,
"pct_of_pop" real,
"average_relative_annual_growth_pct" real,
"average_absolute_annual_growth" real
);
Question: What is the Average relativ... |
<|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,
"result" text,
"record" text
);
Question: Which Opponent has a Record of 22-10?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "re... |
<|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,
"result" text,
"record" text
);
Question: Which Score has an Opponent of @ seattle?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "o... |
<|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,
"result" text,
"record" text
);
Question: Which Record has a Result of loss, and an Opponent of @ la clippers?
<|assistant|>
SELECT "reco... |
<|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,
"result" text,
"record" text
);
Question: Which Score has an Opponent of @ la lakers, and a Record of 8-6?
<|assistant|>
SELECT "score" F... |
<|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,
"result" text,
"record" text
);
Question: Which Opponent has a Result of win, and a Date of march 17?
<|assistant|>
SELECT "opponent" 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,
"result" text,
"record" text
);
Question: Which Score has a Date of may 4?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "date"='may... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_nbl_ladder_championship_round" (
"rank" real,
"team" text,
"played" real,
"loss" real,
"last_5" text,
"streak" text,
"pf_per_game" real,
"pa_per_game" real,
"pd_per_game" real,
"w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_nbl_ladder_championship_round" (
"rank" real,
"team" text,
"played" real,
"loss" real,
"last_5" text,
"streak" text,
"pf_per_game" real,
"pa_per_game" real,
"pd_per_game" real,
"w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_nbl_ladder_championship_round" (
"rank" real,
"team" text,
"played" real,
"loss" real,
"last_5" text,
"streak" text,
"pf_per_game" real,
"pa_per_game" real,
"pd_per_game" real,
"w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_nbl_ladder_championship_round" (
"rank" real,
"team" text,
"played" real,
"loss" real,
"last_5" text,
"streak" text,
"pf_per_game" real,
"pa_per_game" real,
"pd_per_game" real,
"w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_nbl_ladder_championship_round" (
"rank" real,
"team" text,
"played" real,
"loss" real,
"last_5" text,
"streak" text,
"pf_per_game" real,
"pa_per_game" real,
"pd_per_game" real,
"w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: What was the score in Round 3?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: What was the record for opponent Matt Serra?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: What was the event for round 1 against Lance... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "political_subdivision" (
"barangay" text,
"area_km" real,
"population_2007" real,
"population_2010" real,
"pop_density_per_km" real
);
Question: What is the total number of Area (kmΒ²), when Pop... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "political_subdivision" (
"barangay" text,
"area_km" real,
"population_2007" real,
"population_2010" real,
"pop_density_per_km" real
);
Question: What is the average Population (2010), when Popu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" text,
"team" text,
"laps" text,
"time_retired" text,
"grid" text,
"laps_led" text,
"points" text
);
Question: How many laps did... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" text,
"team" text,
"laps" text,
"time_retired" text,
"grid" text,
"laps_led" text,
"points" text
);
Question: How many laps did... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" text,
"team" text,
"laps" text,
"time_retired" text,
"grid" text,
"laps_led" text,
"points" text
);
Question: What grid did the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" text,
"team" text,
"laps" text,
"time_retired" text,
"grid" text,
"laps_led" text,
"points" text
);
Question: What car number h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" text,
"team" text,
"laps" text,
"time_retired" text,
"grid" text,
"laps_led" text,
"points" text
);
Question: How many points w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" text,
"team" text,
"laps" text,
"time_retired" text,
"grid" text,
"laps_led" text,
"points" text
);
Question: Who was the drive... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: what is the money ($) for player justin leonard?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: what is the place when the score is 76-69-71-70=286?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: what is the place for costantino rocca?
<|assistant|>
SELECT "place" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: what is the highest money ($) for bernhard langer?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"report" text
);
Question: What is the score of the FIFA report on October 13, 2007?
<|assistant|>
SELECT "sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"report" text
);
Question: What venue has a EAFF report on June 24, 2007?
<|assistant|>
SELECT "venue" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"report" text
);
Question: What is the venue on October 13, 2007?
<|assistant|>
SELECT "venue" FROM "men_s_na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
Question: At what Site was the Result W13-7?
<|assistant|>
SELECT "site" FROM "schedule" WHERE "result... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
Question: What was the Attendance on 11/09/1946?
<|assistant|>
SELECT "attendance" FROM "schedule" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
Question: What Site had an Attendance of 45,000?
<|assistant|>
SELECT "site" FROM "schedule" WHERE "at... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
Question: What was the Result on 11/02/1946?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "date... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "60_metres" (
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real,
"points" real
);
Question: What mark has over 813 points in the United States, and a 0.152 react?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
Question: What is the lowest Total, when Year(s) Won is "1968 , 1971", and when To Par is less... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
Question: What is the lowest To Par, when Player is "Johnny Miller"?
<|assistant|>
SELECT MIN(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.