text stringlengths 310 1.28k |
|---|
<|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: How many rounds did the match last when his ... |
<|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: How did the match end when his record was 15... |
<|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" text,
"grid" real
);
Question: How many laps did ben spies do on the grid less than 7?
<|assistant|>
SELECT COUN... |
<|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" text,
"grid" real
);
Question: which grid did less than 20 laps in a time of +58.353?
<|assistant|>
SELECT MIN("... |
<|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" text,
"grid" real
);
Question: what was valentino rossi's rider time?
<|assistant|>
SELECT "time" FROM "moto_gp_... |
<|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: Who manufactures Makoto Tamada's vehicle?
<|assistant|>
SELECT "manufactu... |
<|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 time/retired of the one with grid of 16?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_14_5_9" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What date did Namigata play against Wen-Hsin Hsu in t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances_on" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"result" text
);
Question: What was the result during the week # of top 8?
<|assistant|>
SELECT "re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances_on" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"result" text
);
Question: What was the theme during the week # of top 24 (12 men)
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances_on" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"result" text
);
Question: What was the result after the week # top 11?
<|assistant|>
SELECT "resul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" text,
"pick" real,
"player" text,
"position" text,
"shoots" text,
"nationality" text,
"league" text,
"birthplace_date" text,
"height_weight" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" text,
"pick" real,
"player" text,
"position" text,
"shoots" text,
"nationality" text,
"league" text,
"birthplace_date" text,
"height_weight" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" text,
"pick" real,
"player" text,
"position" text,
"shoots" text,
"nationality" text,
"league" text,
"birthplace_date" text,
"height_weight" text
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: Who is the Opponent on January 7?
<|assistant|>
SELECT "opponent" FROM "january" WHERE "date"='ja... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: Who is the Opponent on January 16?
<|assistant|>
SELECT "opponent" FROM "january" WHERE "date"='j... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: What is the Score of the game against Philadelphia 76ers?
<|assistant|>
SELECT "score" FROM "janu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: What is the Date of the game where the Cavaliers have a Record of 15-27?
<|assistant|>
SELECT "da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: What was the Opponent in the game with a Score of 102-125?
<|assistant|>
SELECT "opponent" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: What is the Cavaliers Record in the game with a Score of 98-99?
<|assistant|>
SELECT "record" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_selections" (
"year" real,
"pick" text,
"player" text,
"position" text,
"college" text
);
Question: What player has a no pick position in 1976?
<|assistant|>
SELECT "player" FROM "player... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_selections" (
"year" real,
"pick" text,
"player" text,
"position" text,
"college" text
);
Question: What pick number was the player that went to baylor college?
<|assistant|>
SELECT "pic... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_selections" (
"year" real,
"pick" text,
"player" text,
"position" text,
"college" text
);
Question: What year was the player pick number 15 picked?
<|assistant|>
SELECT "year" FROM "play... |
<|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" (
"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" (
"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" (
"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" (
"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 "leaders_in_the_northern_ireland_assembel" (
"leader" text,
"party" text,
"leader_s_seat" text,
"number_of_seats" real,
"leader_since" text
);
Question: Which leader has been a leader since 2007... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders_in_the_northern_ireland_assembel" (
"leader" text,
"party" text,
"leader_s_seat" text,
"number_of_seats" real,
"leader_since" text
);
Question: How many seats does leader Raymond McCart... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders_in_the_northern_ireland_assembel" (
"leader" text,
"party" text,
"leader_s_seat" text,
"number_of_seats" real,
"leader_since" text
);
Question: Which leader of the Democratic Unionist p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "accolades" (
"ceremony" text,
"award" text,
"category" text,
"name" text,
"outcome" text
);
Question: Anuya Bhagvath was nominated for what award?
<|assistant|>
SELECT "award" FROM "accolades" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "accolades" (
"ceremony" text,
"award" text,
"category" text,
"name" text,
"outcome" text
);
Question: Which award has film lyricist in the category?
<|assistant|>
SELECT "award" FROM "accolades... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "accolades" (
"ceremony" text,
"award" text,
"category" text,
"name" text,
"outcome" text
);
Question: What is the category Anuya Bhagvath was nominated for at vijay award?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "accolades" (
"ceremony" text,
"award" text,
"category" text,
"name" text,
"outcome" text
);
Question: Which ceremony has the best lyricist category?
<|assistant|>
SELECT "ceremony" FROM "accola... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moves_played_compared_with_computer_choi" (
"position" real,
"best_year" text,
"best_2_year_period" text,
"best_3_year_period" text,
"best_5_year_period" text,
"best_10_year_period" text,
"b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moves_played_compared_with_computer_choi" (
"position" real,
"best_year" text,
"best_2_year_period" text,
"best_3_year_period" text,
"best_5_year_period" text,
"best_10_year_period" text,
"b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moves_played_compared_with_computer_choi" (
"position" real,
"best_year" text,
"best_2_year_period" text,
"best_3_year_period" text,
"best_5_year_period" text,
"best_10_year_period" text,
"b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moves_played_compared_with_computer_choi" (
"position" real,
"best_year" text,
"best_2_year_period" text,
"best_3_year_period" text,
"best_5_year_period" text,
"best_10_year_period" text,
"b... |
<|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" (
"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" (
"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" (
"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 "race_1" (
"class" text,
"team" text,
"driver" text,
"chassis_engine" text,
"laps" real
);
Question: How many Laps did Bob Wollek have?
<|assistant|>
SELECT AVG("laps") FROM "race_1" WHERE "driv... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_1" (
"class" text,
"team" text,
"driver" text,
"chassis_engine" text,
"laps" real
);
Question: How many Laps did Team Primagaz Competition have?
<|assistant|>
SELECT "laps" FROM "race_1" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_1" (
"class" text,
"team" text,
"driver" text,
"chassis_engine" text,
"laps" real
);
Question: What Team had 40 Laps in C1 Class?
<|assistant|>
SELECT "team" FROM "race_1" WHERE "class"='c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_1" (
"class" text,
"team" text,
"driver" text,
"chassis_engine" text,
"laps" real
);
Question: What Team has Bob Wollek as a Driver with 76 Laps in C1 Class?
<|assistant|>
SELECT "team" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_1" (
"class" text,
"team" text,
"driver" text,
"chassis_engine" text,
"laps" real
);
Question: How many Laps does GP Motorsport Team have?
<|assistant|>
SELECT SUM("laps") FROM "race_1" WH... |
<|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 location when the score is w 105-99?
<|assistant|>
SELECT "locatio... |
<|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 location on november 23?
<|assistant|>
SELECT "location" FROM "gam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_robin" (
"country" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
Question: Name the highest Ends Lost which has an Sh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_robin" (
"country" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
Question: Name the Country which has Stolen Ends lar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_robin" (
"country" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
Question: Name the average Stolen Ends which has an ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_robin" (
"country" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
Question: Name the average Blank Ends which has a S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_grossing_films_of_2012" (
"rank" real,
"title" text,
"studio" text,
"director_s" text,
"worldwide_gross" text
);
Question: What rank has skyfall as the title?
<|assistant|>
SELECT "rank... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_grossing_films_of_2012" (
"rank" real,
"title" text,
"studio" text,
"director_s" text,
"worldwide_gross" text
);
Question: What director(s) have the intouchables as the title?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_grossing_films_of_2012" (
"rank" real,
"title" text,
"studio" text,
"director_s" text,
"worldwide_gross" text
);
Question: What studio has 6 as the rank?
<|assistant|>
SELECT "studio" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_grossing_films_of_2012" (
"rank" real,
"title" text,
"studio" text,
"director_s" text,
"worldwide_gross" text
);
Question: How many ranks have $1,084,439,099 as the worldwide gross?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "distribution" (
"macedonian_population_in_vojvodina" text,
"1961" real,
"number_1971" real,
"1981" real,
"1991" real,
"2002" real
);
Question: What is the 1981 value of the Macedonian populat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "distribution" (
"macedonian_population_in_vojvodina" text,
"1961" real,
"number_1971" real,
"1981" real,
"1991" real,
"2002" real
);
Question: What is the lowest 1971 number of the Macedonian... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "distribution" (
"macedonian_population_in_vojvodina" text,
"1961" real,
"number_1971" real,
"1981" real,
"1991" real,
"2002" real
);
Question: What is the total 1961 number of the plandište M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "distribution" (
"macedonian_population_in_vojvodina" text,
"1961" real,
"number_1971" real,
"1981" real,
"1991" real,
"2002" real
);
Question: What is the 1961 total of the Macedonian populat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What airport is in Muscat?
<|assistant|>
SELECT "airport" FROM "references" WHERE "city"='muscat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What country is Bandar Abbas in?
<|assistant|>
SELECT "country" FROM "references" WHERE "city"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is the city in India with an airport named Sardar Vallabhbhai Patel International Airport?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What airport is in China with an ICAO of zbaa?
<|assistant|>
SELECT "airport" FROM "references" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What airport is in Toronto?
<|assistant|>
SELECT "airport" FROM "references" WHERE "city"='toron... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What country has an ICAO of ypph?
<|assistant|>
SELECT "country" FROM "references" WHERE "icao"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "60_metres_hurdles" (
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real,
"points" real
);
Question: When the mark is 8.54, the reaction time was over 0.23800000000000002 seco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "60_metres_hurdles" (
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real,
"points" real
);
Question: Which country has a reaction time of under 0.242 seconds and over 1041 poi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "60_metres_hurdles" (
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real,
"points" real
);
Question: If a country has 1008 points what's their reaction time?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_class_record_partnerships_by_wicke" (
"wicket" text,
"runs" text,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
Question: Which wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_class_record_partnerships_by_wicke" (
"wicket" text,
"runs" text,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
Question: Who fiel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_class_record_partnerships_by_wicke" (
"wicket" text,
"runs" text,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
Question: How many... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_class_record_partnerships_by_wicke" (
"wicket" text,
"runs" text,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
Question: Who were... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_class_record_partnerships_by_wicke" (
"wicket" text,
"runs" text,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
Question: Who was ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_class_record_partnerships_by_wicke" (
"wicket" text,
"runs" text,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
Question: In what ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: What opposing team has 20 against?
<|assistant|>
SELECT "opposing_team" FROM "matches" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: Venue for Hawke's bay?
<|assistant|>
SELECT "venue" FROM "matches" WHERE "opposing_team"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the average December, when Game is "36"?
<|assistant|>
SELECT AVG("decemb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the lowest Game, when December is greater than 13, and when Score is "5 -... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the sum of December, when Game is greater than 31, and when Score is "5 -... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is Record, when Game is "36"?
<|assistant|>
SELECT "record" FROM "schedule_a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the away team that played against home team Leatherhead?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the score of the match played against away team Arsenal?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "election_results" (
"election" real,
"candidates_fielded" real,
"num_of_seats_won" real,
"total_votes" real,
"pct_of_popular_vote" text,
"place" text
);
Question: Can you tell me the highest ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "election_results" (
"election" real,
"candidates_fielded" real,
"num_of_seats_won" real,
"total_votes" real,
"pct_of_popular_vote" text,
"place" text
);
Question: Can you tell me the average ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "election_results" (
"election" real,
"candidates_fielded" real,
"num_of_seats_won" real,
"total_votes" real,
"pct_of_popular_vote" text,
"place" text
);
Question: Can you tell me the total nu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Which tournament did the opponent Guillermo Carry play?
<|assistant|>
SELECT "tourna... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Who was the opponent on April 21, 2008?
<|assistant|>
SELECT "opponent" FROM "single... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: Who is the opponent on November 22, 2009, clay surface?
<|assistant|>
SELECT "oppone... |
<|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" text,
"grid" real
);
Question: Which Laps have a Grid larger than 8, and a Rider of anthony west?
<|assistant|>
... |
<|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" text,
"grid" real
);
Question: Which time has a Rider of anthony west?
<|assistant|>
SELECT "time" FROM "moto_gp... |
<|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" text,
"grid" real
);
Question: Which Grid is the highest one that has a Rider of colin edwards, and Laps smaller... |
<|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" text,
"grid" real
);
Question: Which Laps have a Rider of andrea dovizioso?
<|assistant|>
SELECT MIN("laps") FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: What college/junior/club team had a player selected in round... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.