text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successor_s_formal_installation" text
);
Question: Who is the vacator for the February 1, 1971... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successor_s_formal_installation" text
);
Question: What is the state of the senator with a Nov... |
<|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 team did the Red Sox play against on June 3?
<|assistant|>
SELECT "oppo... |
<|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 was the Record at the game that had an attendance of 21,191?
<|assistan... |
<|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 was the final score of the game on June 17?
<|assistant|>
SELECT "score... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yards_on_the_west_coast" (
"yard_name" text,
"location_city_state" text,
"1st_ship_delivery_date" text,
"total_number_of_ways" text,
"total_vessels_built" text
);
Question: What is the 1st ship... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yards_on_the_west_coast" (
"yard_name" text,
"location_city_state" text,
"1st_ship_delivery_date" text,
"total_number_of_ways" text,
"total_vessels_built" text
);
Question: What is the total ve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boxing" (
"athlete" text,
"event" text,
"quarterfinal" text,
"semifinal" text,
"final" text
);
Question: What was the final round result of Mohammad Reza Samadi?
<|assistant|>
SELECT "final" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: If the Home team score was 19.15 (129), ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When the Home team of footscray is playi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: If the Away team scored 18.8 (116), what... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disc_four" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"chart_peak" text,
"song_title" text,
"time" text
);
Question: What was the title of the song that peaked ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disc_four" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"chart_peak" text,
"song_title" text,
"time" text
);
Question: What is the time from the song called Treat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_callanetics_books" (
"year" real,
"title" text,
"publisher" text,
"release_date" text,
"copyright_information" text,
"isbn" real
);
Question: What was Random House's copyright inform... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_callanetics_books" (
"year" real,
"title" text,
"publisher" text,
"release_date" text,
"copyright_information" text,
"isbn" real
);
Question: What was release date in 1992 with the I... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1996_draft_picks" (
"round" real,
"overall" real,
"player" text,
"nationality" text,
"club_team" text
);
Question: What club team has 216 overall?
<|assistant|>
SELECT "club_team" FROM "1996_dr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1996_draft_picks" (
"round" real,
"overall" real,
"player" text,
"nationality" text,
"club_team" text
);
Question: What is the highest round played by Chris Phillips?
<|assistant|>
SELECT MAX("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What player attended Graceland College?
<|assistant|>
SELECT "player" FROM "round_fou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the highest pick number of the CFL's Toronto Argonauts?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Which pick number attended McMaster College?
<|assistant|>
SELECT "pick_num" FROM "ro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Who was the visiting team at the game where Edmonton was th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disc_three" (
"track" real,
"recorded" text,
"release_date" text,
"song_title" text,
"writer_s" text,
"time" text
);
Question: What is the date recorded for I Want to Be Free with a length of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disc_three" (
"track" real,
"recorded" text,
"release_date" text,
"song_title" text,
"writer_s" text,
"time" text
);
Question: What is the highest track with a length of 1:54 written by Gene ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disc_three" (
"track" real,
"recorded" text,
"release_date" text,
"song_title" text,
"writer_s" text,
"time" text
);
Question: What is the title of the song with a track less than 8 released ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disc_three" (
"track" real,
"recorded" text,
"release_date" text,
"song_title" text,
"writer_s" text,
"time" text
);
Question: What song title was written by Kal Mann and Bernie Lowe?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the Home team score for Geelong, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What date did the Away team, North Melbou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What Venue had an Away team score of 7.15... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: The driver Jacky Ickx had what time/retired?
<|assistant|>
SELECT "time_retired" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the least number of laps for the driver Jo Siffert?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the least number of laps for the constructor Ferrari and where the grid n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the total amount of grid when the laps amount was smaller than 68 and the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pregnancies" (
"congresswoman" text,
"state" text,
"date_of_delivery" text,
"mother_s_age" real,
"baby_gender" text
);
Question: What is the gender of Congresswoman Jaime Herrera Beutler's baby... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pregnancies" (
"congresswoman" text,
"state" text,
"date_of_delivery" text,
"mother_s_age" real,
"baby_gender" text
);
Question: How old was the mother who delivered on December 15, 2008?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pregnancies" (
"congresswoman" text,
"state" text,
"date_of_delivery" text,
"mother_s_age" real,
"baby_gender" text
);
Question: What was the delivery date of Congresswoman Kirsten Gillibrand's... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: Which player on the Bulls has a 6 May 1978 birthday?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: Which player has a 1 February 1982 birthday and more than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Which tournament has a 2011 of 1r?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: Which 2009 tournament was french open?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When the home team score was 8.12 (60), w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When the away team was collingwood, what ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was Richmond's home team opponent?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where did Essendon play as the away team?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_characters" (
"character" text,
"portrayed_by" text,
"first_appearance" text,
"last_appearance" text,
"duration" text,
"episodes" text
);
Question: Where did the character of Aiden Burn ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"csa_5_14_09" text,
"viavoice_5_15_09" text,
"ifop_la_croix_5_15_09" text,
"ipsos_5_16_09" text,
"opinion_way_5_18_09" text,
"csa_5_20_09" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"csa_5_14_09" text,
"viavoice_5_15_09" text,
"ifop_la_croix_5_15_09" text,
"ipsos_5_16_09" text,
"opinion_way_5_18_09" text,
"csa_5_20_09" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"csa_5_14_09" text,
"viavoice_5_15_09" text,
"ifop_la_croix_5_15_09" text,
"ipsos_5_16_09" text,
"opinion_way_5_18_09" text,
"csa_5_20_09" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"csa_5_14_09" text,
"viavoice_5_15_09" text,
"ifop_la_croix_5_15_09" text,
"ipsos_5_16_09" text,
"opinion_way_5_18_09" text,
"csa_5_20_09" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"csa_5_14_09" text,
"viavoice_5_15_09" text,
"ifop_la_croix_5_15_09" text,
"ipsos_5_16_09" text,
"opinion_way_5_18_09" text,
"csa_5_20_09" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"csa_5_14_09" text,
"viavoice_5_15_09" text,
"ifop_la_croix_5_15_09" text,
"ipsos_5_16_09" text,
"opinion_way_5_18_09" text,
"csa_5_20_09" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What driver has 44 laps?
<|assistant|>
SELECT "driver" FROM "classification" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the average laps for a grid larger than 2, for a ferrari that got in an a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_league_position" (
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real,
"points" real
);
Question: Name the average ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_league_position" (
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real,
"points" real
);
Question: Tell me the totla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_league_position" (
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real,
"points" real
);
Question: Name the total nu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: Where is the player with a pick smaller than 12 and a college of UV from?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: What PBA team is the player from Ateneo college and a pick of 17?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: What is Mark Joseph Kong's pick?
<|assistant|>
SELECT AVG("pick") FROM "round_2" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: What PBA team is the player from Ateneo college with a pick number smaller than 15 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
Question: What pick number is Larry Fonacier?
<|assistant|>
SELECT "pick" FROM "round_2" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_nielsen_ratings" (
"episode" text,
"rating" real,
"share" real,
"rating_share_18_49" text,
"viewers_millions" real,
"rank_timeslot" real,
"rank_night" real,
"rank_week" text
);
Questi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_nielsen_ratings" (
"episode" text,
"rating" real,
"share" real,
"rating_share_18_49" text,
"viewers_millions" real,
"rank_timeslot" real,
"rank_night" real,
"rank_week" text
);
Questi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When was Windy Hill used as a venue?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which home team plays at VFL Park?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which team plays against Footscray as th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vs_2" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: What is the total audience on may 28?
<|assistant|>
SELECT SUM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vs_2" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
Question: What was the the total top attendance with a score of 0 – 4?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "honoured_clubs" (
"club" text,
"swedish_championship_titles" real,
"allsvenskan_titles" real,
"introduced" real,
"stars_symbolizes" text
);
Question: How many allsvenskan titles did club aik ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "honoured_clubs" (
"club" text,
"swedish_championship_titles" real,
"allsvenskan_titles" real,
"introduced" real,
"stars_symbolizes" text
);
Question: What is the highest amount of swedish champ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"td_s" real
);
Question: What is the average reception of the player with 4 touchdowns and less than 171 yards?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"td_s" real
);
Question: What is the average that has more than 0 touchdowns and more than 135 yards?
<|assistant|>
SELECT... |
<|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,
"streak" text
);
Question: What is the record loss of R. Springer?
<|assistant|>
SELEC... |
<|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,
"streak" text
);
Question: What was the streak on April 12?
<|assistant|>
SELECT "stre... |
<|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,
"streak" text
);
Question: What was the date of A. Benes loss to the Rockies?
<|assist... |
<|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,
"streak" text
);
Question: Which streak had an attendance of 33,013?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partnership_records" (
"wicket_partnership" text,
"runs" text,
"batsmen" text,
"opponents" text,
"venue" text,
"season" text
);
Question: What was the partnership in the season of 1928
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: What are the earnings for jim colbert with under 4 wins?
<|assistant|>
SELECT C... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: What is the ranking for the player with under 34 events and earnings of $1,444,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: How many events for bob murphy?
<|assistant|>
SELECT MAX("events") FROM "leader... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: What is the rank for bob murphy with under 4 wins?
<|assistant|>
SELECT COUNT("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_career" (
"national_team" text,
"club" text,
"season" text,
"apps" real,
"goals" real
);
Question: When the club is flamengo in the 2009 season, and they scored more than 0 goals,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_career" (
"national_team" text,
"club" text,
"season" text,
"apps" real,
"goals" real
);
Question: In the 2010 season what club has 0 goals and more than 0 Apps?
<|assistant|>
SEL... |
<|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,
"time" text,
"location" text
);
Question: What Round is the Event cage ... |
<|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,
"time" text,
"location" text
);
Question: What Event is at the Time 1:1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"track" real,
"title" text,
"performer" text,
"length" text,
"original_album" text
);
Question: What is the title of the track after 11?
<|assistant|>
SELECT "title" FROM "trac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"track" real,
"title" text,
"performer" text,
"length" text,
"original_album" text
);
Question: On the title feature brad mehldau as the performer, what is the original album?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"track" real,
"title" text,
"performer" text,
"length" text,
"original_album" text
);
Question: Which track has the original album turbulent indigo?
<|assistant|>
SELECT AVG("t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What Utah Jazz player played Center?
<|assistant|>
SELECT "player" FROM "t" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the nationality of all Utah Jazz Players, that played 1987-88?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the nationality of all Utah Jazz Players, that played 2011-present?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What Utah Jazz Forward played for Southern Methodist?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What years did the Utah Jazz Player from Southern Methodist, Play?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team at MCG?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was Carlton's away team opponents?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was home team South Melbourne's oppo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"player" text,
"pos" text,
"from" text,
"school_country" text,
"rebs" real,
"asts" real
);
Question: What player has under 357 assists and is from 2001?
<|assistant|>
SELECT "player" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: When the Attendance was 4,516, what was the Record?
<|assistant|>
SELECT "re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: When the Score was 4-10, what was the Attendance?
<|assistant|>
SELECT "atte... |
<|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: With a Record of 9-24, what was the Score?
<|assistant|>
SELECT "score" FROM... |
<|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: When the Score was 6-2, which Opponent was played?
<|assistant|>
SELECT "opp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.