text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: With a To par of –2, what is Johnny Miller's Place?
<|assistant|>
SELECT "place" FROM "seco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: From what Country is Gene Borek?
<|assistant|>
SELECT "country" FROM "second_round" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the Country of the Player with a To par of –5?
<|assistant|>
SELECT "country" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the Place of the Player from New Zealand?
<|assistant|>
SELECT "place" FROM "second... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the Place of the Player with a Score of 70-68=138?
<|assistant|>
SELECT "place" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "championship_game_results_by_team" (
"appearances" real,
"school" text,
"wins" real,
"losses" real,
"percent" text,
"last_appearance" text
);
Question: What is the highest Losses, when Wins i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "championship_game_results_by_team" (
"appearances" real,
"school" text,
"wins" real,
"losses" real,
"percent" text,
"last_appearance" text
);
Question: What is the highest Wins, when Percent ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "championship_game_results_by_team" (
"appearances" real,
"school" text,
"wins" real,
"losses" real,
"percent" text,
"last_appearance" text
);
Question: What is the total number of Losses, whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "championship_game_results_by_team" (
"appearances" real,
"school" text,
"wins" real,
"losses" real,
"percent" text,
"last_appearance" text
);
Question: What is Last Appearance, when Wins is l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
Question: What is College, when Pick is less than 145, and when Player is Jeff Wilkins?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
Question: What is Nationality, and when College is Illinois State?
<|assistant|>
SELECT "nationali... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
Question: What is Nationality, when Round is 6?
<|assistant|>
SELECT "nationality" FROM "draft_pic... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
Question: What is the total number of Round, when College is Northern Illinois?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average bronze when the total is 2, silver is less than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: what is the average silver when the total is more than 20?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: what is the highest rank when the nation is united states (usa) and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: what is the average total when bronze is more than 0, gold is 0, the... |
<|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
);
Question: What was the resolution for the fight against enrique guzman?
<... |
<|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
);
Question: What was the resolution of the fight when Nate Mohr's record wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_by_team" (
"rank" real,
"club" text,
"winners" real,
"runners_up" real,
"third" real
);
Question: What is the smallest number of third place earned for the Es Sahel at a rank less than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_by_team" (
"rank" real,
"club" text,
"winners" real,
"runners_up" real,
"third" real
);
Question: Which club has 1 runners-up with 0 winners and 2 third place earned?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m_etropolitan_r_ailway_p_assenger_t_rans" (
"line" text,
"operator" text,
"line_length_kilometres" real,
"number_of_stations" real,
"annual_ridership_1998" real,
"annual_ridership_2008" real
)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kabaddi_world_cup" (
"name" text,
"only_point" real,
"bonus" real,
"catch_taken" real,
"total_point" real
);
Question: What is Name, when Bonus is greater than 1, when Only Point is greater tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kabaddi_world_cup" (
"name" text,
"only_point" real,
"bonus" real,
"catch_taken" real,
"total_point" real
);
Question: What is Name, when Only Point is greater than 1, when Catch Taken is great... |
<|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 grids does Ducati have with Casey Stoner as a rider with fewer than 27 l... |
<|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 manufacturer has a time of +10.142?
<|assistant|>
SELECT "manufacturer" FRO... |
<|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 is Loris Capirossi's time?
<|assistant|>
SELECT "time" FROM "moto_gp_classif... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What were the highest laps when the grid was larger than 19 and the time/retired was fuel?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which team did Scott Pruett drive for when the grid was smaller than 20 and there were 65 laps?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "construction_details" (
"br_no" text,
"lot_no" real,
"date" real,
"built_at" text,
"boiler_type" text
);
Question: What year is the date when the boiler type is forward topfeed, the built at is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the date of the game where Esteban Paredes scored 2 goals?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the highest attendance when the opponent is the Los Angeles Rams and the week is les... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the result when the week is greater than 7 and the Houston Oilers were the opponent?... |
<|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 "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What catalog had an Epic Records label in CD format?
<|assistant|>
SELECT "catalog" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: Which label is in Australia?
<|assistant|>
SELECT "label" FROM "release_history" WHERE "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boxing_record" (
"date" text,
"result" text,
"opponent" text,
"venue" text,
"location" text,
"method" text,
"round" real,
"time" text,
"record" text
);
Question: The match that lasted 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boxing_record" (
"date" text,
"result" text,
"opponent" text,
"venue" text,
"location" text,
"method" text,
"round" real,
"time" text,
"record" text
);
Question: The match that was held... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boxing_record" (
"date" text,
"result" text,
"opponent" text,
"venue" text,
"location" text,
"method" text,
"round" real,
"time" text,
"record" text
);
Question: The match of at Michael... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boxing_record" (
"date" text,
"result" text,
"opponent" text,
"venue" text,
"location" text,
"method" text,
"round" real,
"time" text,
"record" text
);
Question: What method did the mat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the Label of the release with Catalog number LPM-2899?
<|assistant|>
SELECT "labe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the Date of the RCA release with Catalog number SF-7635?
<|assistant|>
SELECT "da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the Catalog of the RCA release?
<|assistant|>
SELECT "catalog" FROM "release_hist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the Catalog number of the CD Reissue Universal release?
<|assistant|>
SELECT "cat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the Label of the release on Stereo vinyl LP with Catalog number SF-7635?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "taiwan" (
"2010_arwu_rankings" text,
"2010_qs_world_rankings" text,
"2010_qs_asian_rankings" text,
"2010_eduniversal_rankings" text,
"2009_qs_asian_rankings_int_l_faculty_review" text,
"2009_q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "taiwan" (
"2010_arwu_rankings" text,
"2010_qs_world_rankings" text,
"2010_qs_asian_rankings" text,
"2010_eduniversal_rankings" text,
"2009_qs_asian_rankings_int_l_faculty_review" text,
"2009_q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "taiwan" (
"2010_arwu_rankings" text,
"2010_qs_world_rankings" text,
"2010_qs_asian_rankings" text,
"2010_eduniversal_rankings" text,
"2009_qs_asian_rankings_int_l_faculty_review" text,
"2009_q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "taiwan" (
"2010_arwu_rankings" text,
"2010_qs_world_rankings" text,
"2010_qs_asian_rankings" text,
"2010_eduniversal_rankings" text,
"2009_qs_asian_rankings_int_l_faculty_review" text,
"2009_q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "taiwan" (
"2010_arwu_rankings" text,
"2010_qs_world_rankings" text,
"2010_qs_asian_rankings" text,
"2010_eduniversal_rankings" text,
"2009_qs_asian_rankings_int_l_faculty_review" text,
"2009_q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"poll_source" text,
"date_s_administered" text,
"sample_size" real,
"margin_of_error" text,
"joe_sestak_d" text,
"pat_toomey_r" text,
"other" text,
"undecided" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"poll_source" text,
"date_s_administered" text,
"sample_size" real,
"margin_of_error" text,
"joe_sestak_d" text,
"pat_toomey_r" text,
"other" text,
"undecided" text
);
Question... |
<|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,
"points_won" real,
"points_pct" text
);
Question: WHAT IS THE POINTS PERCENTAGE WITH A TOTAL... |
<|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,
"points_won" real,
"points_pct" text
);
Question: WHAT YEAR HAD 5 TOTAL MATCHES?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "class_f_2_8_0" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
);
Question: What is t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "class_f_2_8_0" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
);
Question: What flee... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "class_f_2_8_0" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
);
Question: What clas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "class_f_2_8_0" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
);
Question: What clas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "largest_cities_proper_by_population" (
"rank" real,
"city" text,
"population" text,
"definition" text,
"country" text
);
Question: What rank has a population of 4839400?
<|assistant|>
SELECT MI... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "largest_cities_proper_by_population" (
"rank" real,
"city" text,
"population" text,
"definition" text,
"country" text
);
Question: What's the rank of the Province-Level Municipality?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "largest_cities_proper_by_population" (
"rank" real,
"city" text,
"population" text,
"definition" text,
"country" text
);
Question: What rank was Core Districts + Inner Suburbs and had a populat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_ii" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Question: What is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_ii" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Question: What is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_ii" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Question: What is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_ii" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Question: What is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_ii" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Question: What is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_ii" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
Question: What is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_2008_2009_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
);
Question: How many viewed the episode gary gets boundaries?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_2008_2009_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
);
Question: What episode had 6.71 viewers?
<|assistant|>
SELECT "episode" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_2008_2009_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
);
Question: When did the episode air that had 7.3 viewers?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text
);
Question: What day in March is the game with a 48-13-11 record and a game number less than 72?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text
);
Question: Who is the opponent of game 75?
<|assistant|>
SELECT "opponent" FROM "schedule_and_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the lowest game number of the game after March 2 with the minnesota north st... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"circuit" text,
"location_state" text,
"date" text,
"winner" text,
"team" text
);
Question: The winner, Craig Lowndes, was in what location/state?
<|assistant|>
SELECT "locatio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"circuit" text,
"location_state" text,
"date" text,
"winner" text,
"team" text
);
Question: The Eastern Creek Raceway circuit is on what date?
<|assistant|>
SELECT "date" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar" (
"circuit" text,
"location_state" text,
"date" text,
"winner" text,
"team" text
);
Question: Castrol Perkins Motorsport and the winner Russell Ingall was in what location/state?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
... |
<|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: Which Location has a Record o... |
<|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: What is Record, when Method i... |
<|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: What is the sum of Round(s), ... |
<|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: What is Time, when Event is "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partial_discography" (
"year" real,
"title" text,
"performer" text,
"label" text,
"cat_no" real
);
Question: Which year was "the 12 year old boy" performed?
<|assistant|>
SELECT "year" FROM "pa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "canadian_records" (
"event" text,
"long_course_short_course" text,
"year_set" real,
"time" text,
"meet" text
);
Question: What year had a 100m freestyle event?
<|assistant|>
SELECT COUNT("year_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "canadian_records" (
"event" text,
"long_course_short_course" text,
"year_set" real,
"time" text,
"meet" text
);
Question: What event had a short course in 2010?
<|assistant|>
SELECT "event" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "canadian_records" (
"event" text,
"long_course_short_course" text,
"year_set" real,
"time" text,
"meet" text
);
Question: What year did a short course have a time of 7:51.80?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "canadian_records" (
"event" text,
"long_course_short_course" text,
"year_set" real,
"time" text,
"meet" text
);
Question: What was the latest year that had a 100m freestyle?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final_29_march_1992" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
);
Question: In what place was the song that had a draw of 3?
<|assistant|>
SELECT "place" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final_29_march_1992" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
);
Question: What is the number of points for the 7th placed song with a draw greater than 8... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final_29_march_1992" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
);
Question: How many points did Joe O'Meara have?
<|assistant|>
SELECT COUNT("points") FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final_29_march_1992" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
);
Question: What was the draw for "Feel The Pain" which placed in 2nd and had more than 79 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final_29_march_1992" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
);
Question: How many points did Linda Martin have?
<|assistant|>
SELECT COUNT("points") FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final_29_march_1992" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
);
Question: In what place did "feel the pain" come in?
<|assistant|>
SELECT "place" FROM "n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" text,
"record" text
);
Question: WHAT IS THE SCORE WITH A WEEK LARGER THAN 13, AND VISIT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" text,
"record" text
);
Question: WHAT IS THE AVERAGE WEEK WITH A DATE OF JULY 25?
<|assi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.