text stringlengths 310 1.28k |
|---|
<|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: Which team has driven 134 laps?
<|assistant|... |
<|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: In what class is the laps greater than 134 a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What title did Mentuhotep IV have?
<|assistant|>
SELECT "title" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What is the title of Amenemhat II?
<|assistant|>
SELECT "title" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What is the title of Senusret I?
<|assistant|>
SELECT "title" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What is the title of Amenemhat I?
<|assistant|>
SELECT "title" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What is the type shown from 1991 bc?
<|assistant|>
SELECT "type"... |
<|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,
"round" real,
"time" text,
"location" text
);
Question: What is the Record when the round was 5, time... |
<|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,
"round" real,
"time" text,
"location" text
);
Question: What is the method when the time was 5:00, an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polls" (
"date_s_conducted" text,
"polling_organisation_client" text,
"conservatives" text,
"labour" text,
"liberal_democrats" text,
"others" text
);
Question: When the others had a v... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "d" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: What player plays the position of small forward?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tholi" (
"name" text,
"latitude" text,
"longitude" text,
"diameter_km" real,
"year_named" text
);
Question: What is the latitude of the 0 diameter?
<|assistant|>
SELECT "latitude" FROM "tholi" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tholi" (
"name" text,
"latitude" text,
"longitude" text,
"diameter_km" real,
"year_named" text
);
Question: What is the longitude of Angerona Tholus?
<|assistant|>
SELECT "longitude" FROM "thol... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tholi" (
"name" text,
"latitude" text,
"longitude" text,
"diameter_km" real,
"year_named" text
);
Question: What is the smallest diameter for Eirene Tholus?
<|assistant|>
SELECT MIN("diameter_k... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_record" (
"event" text,
"2006_07" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
Question: what is the event when 2011-12 is n/a?
<|assistant|>
SELECT "eve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_record" (
"event" text,
"2006_07" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
Question: what is the event when 2009-10 is dnp?
<|assistant|>
SELECT "eve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_record" (
"event" text,
"2006_07" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
Question: what is the event when 2006-07 is dnp?
<|assistant|>
SELECT "eve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_record" (
"event" text,
"2006_07" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
Question: what is 2012-13 when 2011-12 is dnp and event is autumn gold?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_record" (
"event" text,
"2006_07" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
Question: what is 2012-13 when 2011-12 is dnp and 2006-07 is dnp and 2010-... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "twenty20_internationals" (
"player" text,
"wkts" real,
"runs" real,
"econ" real,
"ovrs" real
);
Question: what is the sum of the wkts when the ovrs were bigger than 2 and econ was bigger than 7... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "twenty20_internationals" (
"player" text,
"wkts" real,
"runs" real,
"econ" real,
"ovrs" real
);
Question: What is the sum of the runs when the wkts were bigger than 0 and ovrs were smaller than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "twenty20_internationals" (
"player" text,
"wkts" real,
"runs" real,
"econ" real,
"ovrs" real
);
Question: What is the highest wkts for james hopes who had less than 26 runs and more than 2 ovrs... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
Questio... |
<|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 rider when the grid is 21?
<|assistant|>
SELECT "rider" FROM ... |
<|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 average laps when the manufacturer is yamaha, and the rider i... |
<|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 lowest laps for rider andrew pitt, with a grid smaller than 1... |
<|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 lowest laps that has a manufacturer of yamaha, and a time/ret... |
<|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,
"location" text
);
Question: What event had a tko (punches) method and ja... |
<|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,
"location" text
);
Question: What is the opponent after round number 1 wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_runner_ups_5" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_final" text,
"score_in_final" text
);
Question: Who is the partnering that had the opp... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_runner_ups_5" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_final" text,
"score_in_final" text
);
Question: What was the score on February 14, 199... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_runner_ups_5" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_final" text,
"score_in_final" text
);
Question: What date was the score 6–7(9), 6–2, (... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"episode_number_production_number" text,
"title" text,
"sydney" real,
"melbourne" real,
"brisbane" real,
"adelaide" real,
"perth" real,
"total" real,
"weekly_rank" real,
"ni... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"episode_number_production_number" text,
"title" text,
"sydney" real,
"melbourne" real,
"brisbane" real,
"adelaide" real,
"perth" real,
"total" real,
"weekly_rank" real,
"ni... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"episode_number_production_number" text,
"title" text,
"sydney" real,
"melbourne" real,
"brisbane" real,
"adelaide" real,
"perth" real,
"total" real,
"weekly_rank" real,
"ni... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"episode_number_production_number" text,
"title" text,
"sydney" real,
"melbourne" real,
"brisbane" real,
"adelaide" real,
"perth" real,
"total" real,
"weekly_rank" real,
"ni... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: How many rounds had a time of... |
<|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 event had a time of 2:3... |
<|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: Who was the opponent in the b... |
<|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 method of resolut... |
<|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 average number of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the Country of the Player with a Score of 69-71-66=206?
<|assistant|>
SELECT "countr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the Place of the Player from Scotland?
<|assistant|>
SELECT "place" FROM "third_roun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is Steve Lowery's Place?
<|assistant|>
SELECT "place" FROM "third_round" WHERE "player"... |
<|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: What was 1961's qual?
<|assistant|>
SELECT "qual" FROM "indy_500_results" WHER... |
<|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: What was 13's finish?
<|assistant|>
SELECT "finish" FROM "indy_500_results" WH... |
<|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: How many laps were in 1969?
<|assistant|>
SELECT "laps" FROM "indy_500_results... |
<|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: Which Rank has a Qual of 145.144?
<|assistant|>
SELECT "rank" FROM "indy_500_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "largest_urban_areas_ranked_by_2010_proje" (
"rank" real,
"city" text,
"country" text,
"population" real,
"area_km" real,
"sources_of_pop_area" text
);
Question: What is the sources for Bandun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"date" text,
"race" text,
"track" text,
"winner" text,
"reports" text
);
Question: What race happened at Iowa Speedway?
<|assistant|>
SELECT "race" FROM "results" WHERE "track"='iowa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"date" text,
"race" text,
"track" text,
"winner" text,
"reports" text
);
Question: Who won the Food World 250?
<|assistant|>
SELECT "winner" FROM "results" WHERE "race"='food world 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"date" text,
"race" text,
"track" text,
"winner" text,
"reports" text
);
Question: What race happened at pocono on 08-02-2008?
<|assistant|>
SELECT "race" FROM "results" WHERE "track... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"date" text,
"race" text,
"track" text,
"winner" text,
"reports" text
);
Question: What race happened on 04-25-2008?
<|assistant|>
SELECT "race" FROM "results" WHERE "date"='04-25-20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"date" text,
"race" text,
"track" text,
"winner" text,
"reports" text
);
Question: Where was the race on 09-13-2008?
<|assistant|>
SELECT "track" FROM "results" WHERE "date"='09-13-2... |
<|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: Which game number was played after March 11 and ended with a record of 26-30-10?
<|a... |
<|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: How many games total were played against @ Boston Bruins this season?
<|assistant|>
... |
<|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: When was the earliest game date in March where the match ended with a record of 25-2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mjhl_scoring_champions" (
"season" real,
"winner" text,
"team" text,
"goals" text,
"assists" text,
"points" text
);
Question: How many points when John Vopni won a season before 1977?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mjhl_scoring_champions" (
"season" real,
"winner" text,
"team" text,
"goals" text,
"assists" text,
"points" text
);
Question: How many points when Bill Benson was the winner?
<|assistant|>
SE... |
<|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: Ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_6" (
"year" real,
"championship" text,
"winning_score" text,
"margin" text,
"runner_up" text
);
Question: What was the winning score in 1980?
<|assistant|>
SELECT "winning_score" FROM "win... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_6" (
"year" real,
"championship" text,
"winning_score" text,
"margin" text,
"runner_up" text
);
Question: What was the winning score in 1985 for Championship of u.s. women's open?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_6" (
"year" real,
"championship" text,
"winning_score" text,
"margin" text,
"runner_up" text
);
Question: When was the runner-up Jane Geddes?
<|assistant|>
SELECT "year" FROM "wins_6" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_6" (
"year" real,
"championship" text,
"winning_score" text,
"margin" text,
"runner_up" text
);
Question: Which championship after 1985 had a winning score of –8 (68-72-69-71=280)?
<|assis... |
<|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
);
Question: What was the method of resolution for the fight against jake br... |
<|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,
"round_winner" text,
"team" text
);
Question: On what team did John Bowe round winner at Winton Motor Raceway belong to?
<|a... |
<|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,
"round_winner" text,
"team" text
);
Question: What was the team features at Oran Park Raceway?
<|assistant|>
SELECT "team" F... |
<|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,
"round_winner" text,
"team" text
);
Question: Where is the Eastern Creek Raceway located?
<|assistant|>
SELECT "location_sta... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: Which state was Dai from?
<|assistant|>
SELECT "state" FROM "vassal_states"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: What was Mu's title?
<|assistant|>
SELECT "title" FROM "vassal_states" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
);
Question: When was Xiong Xun a vassal?
<|assistant|>
SELECT "from" FROM "vassal_state... |
<|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 for week 3?
<|assistant|>
SELECT MAX("attendance") FROM "sche... |
<|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 for the week higher than 7 on november 4, 1979?
<|assistant|>
SELECT "res... |
<|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 lowest week when the date is september 16, 1979 and the attendance less than 54,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text,
"man_of_the_match" text
);
Question: Which competition has stuart potts as the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text,
"man_of_the_match" text
);
Question: Which venue had a lost 5-4 result?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text,
"man_of_the_match" text
);
Question: What is the venue of the match with the wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text,
"man_of_the_match" text
);
Question: What is the result of the league/cup compe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text,
"man_of_the_match" text
);
Question: What is the attendance of the match on the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_l" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: What was the score when the total was 75–53?
<|assistant|>
SELECT "score" FROM "pool_l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_l" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: What was the total when the set 3 was 25–14?
<|assistant|>
SELECT "total" FROM "pool_l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_l" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: What date was the set 1 25–23, and a Set 3 of 25–14?
<|assistant|>
SELECT "date" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_l" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: What date was the Set 3 of 12–25?
<|assistant|>
SELECT "date" FROM "pool_l" WHERE "set... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_l" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
Question: What is the Set 3 when the total was 53–75?
<|assistant|>
SELECT "set_3" FROM "pool_l"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_grossing_films_of_2002" (
"rank" real,
"title" text,
"studio" text,
"director_s" text,
"worldwide_gross" text
);
Question: Sum of m. night shyamalan ranks?
<|assistant|>
SELECT SUM("ran... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_grossing_films_of_2002" (
"rank" real,
"title" text,
"studio" text,
"director_s" text,
"worldwide_gross" text
);
Question: Director for Star Wars Episode II: attack of the clones?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the tie no when Oxford city was the away team?
<|assistant|>
SELECT "tie... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the tie no when Wrexham was the away team?
<|assistant|>
SELECT "tie_no"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the score when Spennymoor United as the away team?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What date was Grimsby Town the away team?
<|assistant|>
SELECT "date" FROM "first... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants_and_final_ranking" (
"name" text,
"category" text,
"eliminated" text,
"date" text,
"special_guest" text
);
Question: Who was eliminated on Banana Night?
<|assistant|>
SELECT "name" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants_and_final_ranking" (
"name" text,
"category" text,
"eliminated" text,
"date" text,
"special_guest" text
);
Question: Who was the special guest when the category was vocal groups and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants_and_final_ranking" (
"name" text,
"category" text,
"eliminated" text,
"date" text,
"special_guest" text
);
Question: On what date was elimination on final night?
<|assistant|>
SELEC... |
<|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 "tallest_buildings" (
"name" text,
"location" text,
"height_m" real,
"stories" real,
"year_of_completion" real
);
Question: How many stories have a height less than 138 meters with a completion ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.