text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_15th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is Team 1 when Team 2 is Jac Port-Gentil? <|assistant|> SELECT "team_1" FROM "second_r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What was Team 2 with a 2nd leg of 0-0? <|assistant|> SELECT "team_2" FROM "second_round" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the 1st leg of the Round that has a 2nd leg of 1-3 and Team 1 Es Tunis? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Winning Score, when Tournament is Joburg Open 1, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Date, when Tournament is Alfred Dunhill Champions...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Tournament, when Margin is Victory of 6 Strokes? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Winning Score, when Date is 17 Jan 2010? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Tournament, when Runner(s)-Up is Garth Mulroy? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Runner(s)-Up, when Margin of Victory is 1 Stroke,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text ); Question: What is the points sum ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text ); Question: What is the sum of the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text ); Question: What is the sum of the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text ); Question: What is the average num...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_class" ( "class" text, "season" text, "race" real, "podiums" real, "pole" real ); Question: How many poles had a moto2 class? <|assistant|> SELECT "pole" FROM "by_class" WHERE "class"='moto2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_7th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_7th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_7th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_7th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players" ( "player" text, "position" text, "gp_gs" text, "minutes" real, "goals" real, "assists" real ); Question: What was the highest number of goals when 2428 minutes were played? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players" ( "player" text, "position" text, "gp_gs" text, "minutes" real, "goals" real, "assists" real ); Question: What is the number of minutes when there are more than 4 goals and 3 assists...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players" ( "player" text, "position" text, "gp_gs" text, "minutes" real, "goals" real, "assists" real ); Question: What is the total number of assists when Edmundo Rodriguez is playing the po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text ); Question: What is the least ERP W when the freguency MHz is 89.3 fm? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text ); Question: Call sign k216fo has what average ERP W? <|assistant|> SELECT AVG("erp...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text ); Question: What city does call sign K248am have its license in? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text ); Question: What call sign has ERP W greater than 197? <|assistant|> SELECT "call_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: How ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: Which ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: How ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many Points have an ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many Drawn have a Po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many Against have a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Points is the aver...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How much Played has an A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "spoofed_title" text, "actual_title" text, "writer" text, "artist" text, "issue" real, "date" text ); Question: Which artist has the Spoofed title Miscue 911? <|assistant|> SELECT "a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "spoofed_title" text, "actual_title" text, "writer" text, "artist" text, "issue" real, "date" text ); Question: Which Spoofed title is from February 1998? <|assistant|> SELECT "spoof...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "spoofed_title" text, "actual_title" text, "writer" text, "artist" text, "issue" real, "date" text ); Question: Which artist has a Spoofed title in June 1992? <|assistant|> SELECT "a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: What was the average number of laps completed by KTM riders, with times of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: What was the highest grid value for riders with manufacturer of Aprilia and...
<|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 Round against Aleksander...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_games" ( "season" real, "date" text, "venue" text, "city" text, "visitor" text, "score" text, "home" text, "attendance" real ); Question: In 1958, what has the IRFU All-Stars Home...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_games" ( "season" real, "date" text, "venue" text, "city" text, "visitor" text, "score" text, "home" text, "attendance" real ); Question: On what Date was the Venue at Exhibition ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_games" ( "season" real, "date" text, "venue" text, "city" text, "visitor" text, "score" text, "home" text, "attendance" real ); Question: Before 1957, what was the largest in Atte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text ); Question: What is the Time with a Score that is 65-19? <|assistant|> SELECT "time" FROM "roun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text ); Question: What is the Time with an Away that is broadview hawks? <|assistant|> SELECT "time" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Position has an Against ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Position has an Against ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Played has a Drawn of 5,...
<|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 "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text ); Question: What is the comp when the ryds is 2? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text ); Question: What is the RAtt when the comp is 48? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text ); Question: What is the RAtt when the long is 73? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text ); Question: What is the RYds when the RAtt was 2, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text ); Question: What is the Long when the ryds is 18? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text ); Question: What is the RAvg when the ratt is 3? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Who was the Runner-up for the merrill lynch/golf digest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the margin of victory when the winning score w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Who were the runner(s)-up when the winning score was –1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Who was the runner-up for the mazda senior tournament p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "team_name_sponsored_name" text, "home_ground_a" text, "first_season" text, "last_title" text, "titles" real ); Question: When was the last title of the team with a home ground of Sydn...
<|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: How many people were in attendance for the game week 15? <|assistant|> SELECT COUNT("attenda...
<|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 number of people in attendance in the game against the Buffalo Bills in ...
<|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 average Week when there were more than 63,866 people in attendance on September ...
<|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 average Attendance for the game on November 1, 1981? <|assistant|> SELECT AVG("a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); Question: What position is played by the player from the Chicago Cubs? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); Question: What is the name of the Outfielder that was picked prior to Pick 42? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text ); Question: What is the Week when anke huber chanda rubin shows for Semi finalists, and the Runne...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text ); Question: What is the Semi finalists when the Runner-up was katrina adams zina garrison-jackson...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text ); Question: What is the Winner when anke huber chanda rubin was semi finalist? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text ); Question: What is the Tier when the runner-up is chanda rubin caroline vis? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text ); Question: What is the Week when the winner was mary joe fernández 6–4, 7–5? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text ); Question: What is the Runner-up with the tier was tier ii, and a Winner of gigi fernández natal...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" real, "result" text ); Question: Which week had safe as the result and Dolly Parton as t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" real, "result" text ); Question: On which week was the beatles the original artist and t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" real, "result" text ); Question: On which week was the result safe and the song choice "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" real, "result" text ); Question: Which original artist had 5 as their order #? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1997_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: Which nominee was nominated in the Outstanding Director of a Musical category? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1997_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: What is the result for Brent Spiner? <|assistant|> SELECT "result" FROM "1997_bro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); Question: What is the number of games for Shaun Stonerook? <|assistant|> SELECT MIN("games") FROM "rebounds" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_leaders" ( "nation" text, "sport" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the highest total number of medals of the nation with less than 1 br...
<|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: Total weeks of 49,980 attendance? <|assistant|> SELECT SUM("week") FROM "schedule" WHERE "at...
<|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: Mean attendance for December 22, 1980? <|assistant|> SELECT AVG("attendance") FROM "schedule...
<|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: Overall attendance for week 4? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "week...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "result" text, "category" text, "film" text ); Question: Who was awarded after 1947 in the category of, the best actor in a leading role? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text, "round" real, "record" text ); Question: Which Opponent has a Method of tko, and a Location...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text, "round" real, "record" text ); Question: Which Round has a Location of auckland, new zealan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text, "round" real, "record" text ); Question: Which highest Round has a Result of loss? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text, "round" real, "record" text ); Question: Which Location has a Method of decision? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2010" text, "2011" text, "2012" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2010" text, "2011" text, "2012" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2010" text, "2011" text, "2012" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2010" text, "2011" text, "2012" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2010" text, "2011" text, "2012" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "conference" text, "division" text, "finish" text, "wins" text, "losses" text, "winpct" text, "awards" text ); Question: What are the losses where the award is M...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "conference" text, "division" text, "finish" text, "wins" text, "losses" text, "winpct" text, "awards" text ); Question: Where the wins are 46, what is the win%?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "conference" text, "division" text, "finish" text, "wins" text, "losses" text, "winpct" text, "awards" text ); Question: Where the Vancouver Grizzlies is the awa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elections_to_the_legislative_assembly_of" ( "party" text, "1985" real, "1987" real, "1990" real, "1995" real, "1999" real, "2003" real, "2007" real, "2011" real ); Question: What is the...