text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"film" text,
"director_s" text,
"producer_s" text,
"recipient" text,
"date" text,
"award" text
);
Question: Who directed the film Antonio's Breakfast?
<|assistant|>
SELECT "director_s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"film" text,
"director_s" text,
"producer_s" text,
"recipient" text,
"date" text,
"award" text
);
Question: Who was the director of the film that Sister Films received an award for on... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"municipality" text,
"number" real,
"population" real,
"area" real,
"density" real
);
Question: Name the least number with density more than 262 with population more than 22,415 a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: What is the score of the game on June 9?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "date... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What is the usual attendance for july 2?
<|assistant|>
SELECT AVG("attendanc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Which loss has Attendance more than 47,712, an Opponent of white sox, and a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"county" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text,
"deleted" text
);
Question: What was the value for deleted for CER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superfund_sites" (
"cerclis_id" text,
"county" text,
"listed" text,
"construction_completed" text,
"partially_deleted" text,
"deleted" text
);
Question: What is the date construction is compl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio_and_cd_audio_drama" (
"year" real,
"role" text,
"author" text,
"radio_station_production_company" text,
"release_air_date" text
);
Question: Role of narrator, and a Year larger than 2009,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio_and_cd_audio_drama" (
"year" real,
"role" text,
"author" text,
"radio_station_production_company" text,
"release_air_date" text
);
Question: Role of narrator, and a Radio Station/Producti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio_and_cd_audio_drama" (
"year" real,
"role" text,
"author" text,
"radio_station_production_company" text,
"release_air_date" text
);
Question: Radio Station/Production Company that has a Ro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: What was the position of the Racing Organisa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: Who were the co-drivers for the Racing Organ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: Who were the co-drivers in years after 2010?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "londonderry_and_lough_swilly_railway" (
"type" text,
"fleet_numbers" text,
"quantity_made" real,
"manufacturer" text,
"date_made" text,
"date_withdrawn" text
);
Question: What is the date mad... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "londonderry_and_lough_swilly_railway" (
"type" text,
"fleet_numbers" text,
"quantity_made" real,
"manufacturer" text,
"date_made" text,
"date_withdrawn" text
);
Question: What is the withdraw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: Name the game site with result of l 7-38
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: Name the result for arrowhead stadium
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: Name the least attendance for opponent of new orleans s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_career_summary" (
"year" text,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"top_10s" real,
"best_finish" text,
"earnings" text,
"money_list_rank" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_career_summary" (
"year" text,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"top_10s" real,
"best_finish" text,
"earnings" text,
"money_list_rank" text
);
Question: ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: Tell me the year with Laps less than 197 and start of 2
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: Name the qual with start of totals
<|assistant|>
SELECT "qual" FROM "indy_500_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: Name the total number of laps with rank of 8
<|assistant|>
SELECT COUNT("laps"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: Name the start with Laps of 199 with qual of 224.838
<|assistant|>
SELECT "sta... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"match_report" text
);
Question: On what date was the score 1-2 at Athens Olympic Stadium?
<|assistant|>
SELECT "da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"match_report" text
);
Question: What was the Match Report for the Euro2008q at the Athens Olympic Stadium on Novem... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"match_report" text
);
Question: What was the Match Report for the Euro2008q at the Athens Olympic Stadium and a sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"match_report" text
);
Question: On what date was the score 2-1?
<|assistant|>
SELECT "date" FROM "national_team" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"match_report" text
);
Question: On what date was the Competition of Friendly held?
<|assistant|>
SELECT "date" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"match_report" text
);
Question: What was the score at Pankritio Stadium on June 6, 2007?
<|assistant|>
SELECT "sco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "west_indies_in_australia" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: On what date was there a draw at Sydney Cricket Ground?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "west_indies_in_australia" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: In what venue was the result a draw?
<|assistant|>
SELECT "venue" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "west_indies_in_australia" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: On what date was the result Wi by 1 run?
<|assistant|>
SELECT "date" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "west_indies_in_australia" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
Question: What venue had a draw?
<|assistant|>
SELECT "venue" FROM "west_indies... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
Question: What is the total number of points for entrants with a Jordan 192 chassis?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
Question: Which entrant had a chassis of March CG891?
<|assistant|>
SELECT "entrant" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
Question: What is the lowest number of points for an entrant with a Jordan 192 chassis?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: What Opponent has the Attendance of 14,029?
<|assistant|>
SELECT "opponent" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: Can you tell me the Attendance that has the Date of april 12?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: Can you tell me the Score that has the Opponent of brewers, and the Attendan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: Can you tell me the Score that has the Attendance of 4,567?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
Question: What is the date with the distance of km (mi) at the course of roccaraso to san giorgio del... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Name the engine with entrant of larrousse f1
<|assistant|>
SELECT "engine"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Name the average yeara for engine of renault v10 with points more than 4
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Name the sumof points for year less than 1994 and chassis of lola lc89b
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Name the entrant for year more than 1991 and chassis of lotus 109
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: Name the sum of points for 1991
<|assistant|>
SELECT SUM("points") FROM "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
Question: Which type has turin to monza as a course?
<|assistant|>
SELECT "type" FROM "stage_results"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
Question: Which course has km (mi) as a type?
<|assistant|>
SELECT "course" FROM "stage_results" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
Question: What winner has the sanremo to cuneo as the course?
<|assistant|>
SELECT "winner" FROM "sta... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"stage" text,
"route" text,
"distance" text,
"date" text,
"winner" text
);
Question: Name the distance for stage of 2
<|assistant|>
SELECT "distance" FROM "schedule" WHERE "stage"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"stage" text,
"route" text,
"distance" text,
"date" text,
"winner" text
);
Question: Name the route with winner of sébastien rosseler
<|assistant|>
SELECT "route" FROM "schedule" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"stage" text,
"route" text,
"distance" text,
"date" text,
"winner" text
);
Question: Name the route for 170.8km distance
<|assistant|>
SELECT "route" FROM "schedule" WHERE "distance... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"stage" text,
"route" text,
"distance" text,
"date" text,
"winner" text
);
Question: Name the date for luciano pagliarini
<|assistant|>
SELECT "date" FROM "schedule" WHERE "winner"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"stage" text,
"route" text,
"distance" text,
"date" text,
"winner" text
);
Question: Name the date for mark cavendish
<|assistant|>
SELECT "date" FROM "schedule" WHERE "winner"='mar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: Name the laps for qual of 144.665
<|assistant|>
SELECT SUM("laps") FROM "indy_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: Name the total number of Laps for year of 1961
<|assistant|>
SELECT COUNT("lap... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: Name the finish for start of 28
<|assistant|>
SELECT "finish" FROM "indy_500_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: Name the laps for rank of 14 and start of 16
<|assistant|>
SELECT "laps" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
Question: Name the qual for year of 1960
<|assistant|>
SELECT "qual" FROM "indy_500_resu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980_raiders_draft_selections" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: What is the name of the player in position lb and an overall of 128?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980_raiders_draft_selections" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: What is the total overall when Kenny Lewis is the player in a round af... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980_raiders_draft_selections" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: What is the college when the over is larger than 15 in round 7?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1980_raiders_draft_selections" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: What is the position with an overall less than 128 for Brigham Young c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premier_league" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"league_position" text
);
Question: How many attended the game on 4 February 2003?
<|assistant|>
SELECT AV... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
);
Question: yes or no for the auckland with a yes for sydney, no for perth, yes for... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
);
Question: yes or no for the adelaide with no for auckland, yes for melbourne, yes... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
);
Question: yes or no for the gold coast with yes for melbourne, yes for adelaide, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
);
Question: yes or no for the melbourne with yes for gold coast, yes for adelaide, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
);
Question: yes or no for the sydney with yes for melbourne, no for perth, no for a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
);
Question: yes or no for the melbourne that has no for adelaide, no for gold coast... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_a" (
"rank" real,
"team" text,
"wins" real,
"losses" real,
"runs_allowed" real,
"run_ratio" real
);
Question: How many losses did the team with 0 wins and more than 72 runs allowed have?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_a" (
"rank" real,
"team" text,
"wins" real,
"losses" real,
"runs_allowed" real,
"run_ratio" real
);
Question: What is the lowest amount of losses the United States, ranked higher than 3 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_a" (
"rank" real,
"team" text,
"wins" real,
"losses" real,
"runs_allowed" real,
"run_ratio" real
);
Question: How many runs allowed did the team ranked 2 with more than 2 losses have?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_a" (
"rank" real,
"team" text,
"wins" real,
"losses" real,
"runs_allowed" real,
"run_ratio" real
);
Question: How many total wins did the team ranked lower than 1 with a run ratio less t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_a" (
"rank" real,
"team" text,
"wins" real,
"losses" real,
"runs_allowed" real,
"run_ratio" real
);
Question: What is the highest run ratio Japan, which has less than 58 runs and 5 wins,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_a" (
"rank" real,
"team" text,
"wins" real,
"losses" real,
"runs_allowed" real,
"run_ratio" real
);
Question: What is the average number of losses the team with less than 25 runs allowed... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: Which date has tigers as the opponent?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "opponen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: What loss has october 1 as the date?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "date"='oc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"chassis" text,
"engine" text,
"tyres" text,
"points" real
);
Question: What year is listed that has points greater than 0 with a chassis labeled AG... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"chassis" text,
"engine" text,
"tyres" text,
"points" real
);
Question: What is the total points listed that includes P listed Tyres after 1986?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"chassis" text,
"engine" text,
"tyres" text,
"points" real
);
Question: What point is the lowest for listings of chassis labeled AGS JH23 before 198... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_results" (
"year" real,
"chassis" text,
"engine" text,
"tyres" text,
"points" real
);
Question: What is the total point for the year listed in 1988?
<|assistant|>
SELECT SU... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What was the attendance on August 2?
<|assistant|>
SELECT MAX("attendance") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Which opponent lost with pitcher Kinney (0-1)?
<|assistant|>
SELECT "opponen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What was the attendance on August 23?
<|assistant|>
SELECT COUNT("attendance... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"events" real,
"cuts_made" real
);
Question: What is the highest wins a tournament with 3 cuts and more than 4 events has?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"events" real,
"cuts_made" real
);
Question: What is the lowest number of events a tournament with more than 1 top-10 and more than 0 w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: How many laps did the 6th placed in 1998 com... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: What position did the 5th place team after 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: What team was c1 class, had over 331 laps af... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: What class did eddie cheever raul boesel rac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_over_top_10_players_per_season" (
"player" text,
"rank" real,
"event" text,
"surface" text,
"score" text
);
Question: What's the lowest rank of a player who played in 2012?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_over_top_10_players_per_season" (
"player" text,
"rank" real,
"event" text,
"surface" text,
"score" text
);
Question: What player has the rank 2011?
<|assistant|>
SELECT "player" FROM "win... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_over_top_10_players_per_season" (
"player" text,
"rank" real,
"event" text,
"surface" text,
"score" text
);
Question: What was the score of the match played on hard with a person ranked 10... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: What females speak Romanian?
<|assistant|>
SELECT "females" FROM "language" WHERE "l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: What females have males of 1 234?
<|assistant|>
SELECT "females" FROM "language" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: What males speak Polish?
<|assistant|>
SELECT "males" FROM "language" WHERE "languag... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: What is the number of males 977 948?
<|assistant|>
SELECT "number" FROM "language" W... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.