text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What is team Yamaha with 3 points ranked? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: What years did the player ranked less than 8 and had 447 matches pl...
<|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 Time with a Recor...
<|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 Event with a Time...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many silvers did Turkey get? <|assistant|> SELECT "silver" FROM "medal_tabl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); Question: What position does Denard Walker play? <|assistant|> SELECT "position" FROM "nfl_draft...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); Question: What was the pick number for the wide receiver drafted from Michigan State? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); Question: Which player came from Kent State? <|assistant|> SELECT "player" FROM "nfl_draft" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of bronze medals, and 4 silver medals, and 2 gold medals? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_11_3_8" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: Which Tournament has a score of 2–...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_11_3_8" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: Which Tournament has a Score of 6(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_11_3_8" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What is the Score of the match whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "p_premier_r_runner_up_m_minor_premier_f_" ( "competition" text, "ladder_position" text, "coach" text, "captain_s" text, "details" text ); Question: Who is the coach of the 2012 Gold Coast Titan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "p_premier_r_runner_up_m_minor_premier_f_" ( "competition" text, "ladder_position" text, "coach" text, "captain_s" text, "details" text ); Question: Who is the coach of the 2010 Gold Coast Titan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "p_premier_r_runner_up_m_minor_premier_f_" ( "competition" text, "ladder_position" text, "coach" text, "captain_s" text, "details" text ); Question: Who is the captain of the 2012 NRL season com...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: How many wins were in the PGA Championship when there wer...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the smallest number of cuts when there were more ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: What is the total number of Rank for 1996–2007, when there are more...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: What is the lowest Rank when the goals are less than 124 for Jeff C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: What is the total number of Rank with 100 goals, and less than 300 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: What is the highest Rank for Jason Kreis, with less than 305 matche...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the least number of wins when the top 10 is more ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the sum of cuts made when the top-5 is 2, and the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the mean number in the top 5 when the top 25 is 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the mean number of events when top-5 is 1? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: How many top-25s are associated with more than 91 events?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the lowest Wins with a Top-10 that is larger than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the average Cuts that were made with a Top-10 tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "game_site" text, "final_score" text, "record" text, "attendance" text ); Question: Which record has 64,053 as the attendance? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "game_site" text, "final_score" text, "record" text, "attendance" text ); Question: Which date has rich stadium as the game site for w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "game_site" text, "final_score" text, "record" text, "attendance" text ); Question: Which date has 1 as the week? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "year" real, "title" text, "label" text, "riaa_sales_certification" text, "billboard_200_peak" real ); Question: Which Title was awarded the gold RIAA Sales Certification? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "year" real, "title" text, "label" text, "riaa_sales_certification" text, "billboard_200_peak" real ); Question: For how many years did the song "Lost Without Your Love" win th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "year" real, "title" text, "label" text, "riaa_sales_certification" text, "billboard_200_peak" real ); Question: Before the Year 1972, what RIAA Sales Certification was awarded...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "year" real, "title" text, "label" text, "riaa_sales_certification" text, "billboard_200_peak" real ); Question: What RIAA Sales Certification was awarded to the song that had ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "year" real, "title" text, "label" text, "riaa_sales_certification" text, "billboard_200_peak" real ); Question: What is the sum of the Billboard 200 Peak scores after the Year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "year" real, "title" text, "label" text, "riaa_sales_certification" text, "billboard_200_peak" real ); Question: What is the sum of the Billboard 200 Peak scores given to the s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the number of gold when the silver is 1, bronze is 1, and the nation i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What nation has 2 bronze and a rank of 9? <|assistant|> SELECT "nation" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the highest gold when bronze is 1, and rank is 5? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest gold when there are 0 bronze and the total is less than 2, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the sum of rank when total is 3 and the nation is Australia? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: What is the Rank with a Goal number smaller than 66? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010s" ( "spoofed_title" text, "actual_title" text, "writer" text, "artist" text, "issue" real ); Question: What is the spoofed title for Parks and Recreation with an issue larger than 509? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010s" ( "spoofed_title" text, "actual_title" text, "writer" text, "artist" text, "issue" real ); Question: What was the actual title of the show that had an issue number less than 508, was wri...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010s" ( "spoofed_title" text, "actual_title" text, "writer" text, "artist" text, "issue" real ); Question: What issue was the spoofed title Ho-Hum land? <|assistant|> SELECT SUM("issue") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010s" ( "spoofed_title" text, "actual_title" text, "writer" text, "artist" text, "issue" real ); Question: Game of Thrones was done by which artist? <|assistant|> SELECT "artist" FROM "2010s" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_9_2_7" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent" text, "score" text ); Question: What is the Surface when Todd Woodbridge was the runner-up, and a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_9_2_7" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent" text, "score" text ); Question: What is the Opponent when Todd Woodbridge was the runner-up, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_9_2_7" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent" text, "score" text ); Question: What is the Surface when the score was 4–6, 6–3, 6–7 (5–7)? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_9_2_7" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent" text, "score" text ); Question: What is the Score when there was a hard surface and the Champions...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "jersey_num" real, "name" text, "height_cm" real, "weight_kg" real, "birthdate" text, "birthplace" text, "2005_2006_team" text ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "jersey_num" real, "name" text, "height_cm" real, "weight_kg" real, "birthdate" text, "birthplace" text, "2005_2006_team" text ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_records" ( "competition" text, "appearances" real, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real ); Question: What is the total sum of the goals ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: For the teams that had more than 2 Byes, what was the highest number of W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: For the teams that had fewer than 4 Losses, and less than 16 Wins, what w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: For the teams that had less than 1 loss, what was the average number of W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: For the teams that had fewer than 1 Byes, what was the lowest number of D...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What was the highest number of Draws scored by Sebastapol when the value ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_incorporation" ( "season" text, "competition" text, "round" text, "opponent" text, "series" text ); Question: What is the Season when the Opponent was zenit st. petersburg? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_incorporation" ( "season" text, "competition" text, "round" text, "opponent" text, "series" text ); Question: What is the Opponent with a Round of q2, in the 2005–06 season? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_incorporation" ( "season" text, "competition" text, "round" text, "opponent" text, "series" text ); Question: What is the Competition for Season 2002–03, and the Opponent was zenit st. pe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_incorporation" ( "season" text, "competition" text, "round" text, "opponent" text, "series" text ); Question: What is the Round when the series shows 5th place, and a Season of 2006–07? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_incorporation" ( "season" text, "competition" text, "round" text, "opponent" text, "series" text ); Question: What is the Series for the uefa cup, in the 2006–07 season, and a Round of gr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_fleet" ( "ship" text, "built" real, "builder" text, "entered_service_for_aida" text, "gross_tonnage" text, "flag" text ); Question: Which Flag did the Ship Aidavita have? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What shows for Set 5 when the Total was 77 - 6...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What is the Set 3 when the Total was 98 - 92? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What is the Total when the Set 3 was 25-15? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What is the Set 3 when the Total was 62 - 75? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What is the Score when Set 2 shows 25-20, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appliances" ( "name" text, "processor" text, "hard_drive" text, "ethernet_ports" text, "dimensions" text ); Question: What is the ethernet ports of the m1500 appliance? <|assistant|> SELECT "et...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appliances" ( "name" text, "processor" text, "hard_drive" text, "ethernet_ports" text, "dimensions" text ); Question: What is the ethernet ports of the u150 appliance? <|assistant|> SELECT "eth...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appliances" ( "name" text, "processor" text, "hard_drive" text, "ethernet_ports" text, "dimensions" text ); Question: What is the dimensions of the u50 appliance? <|assistant|> SELECT "dimensio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appliances" ( "name" text, "processor" text, "hard_drive" text, "ethernet_ports" text, "dimensions" text ); Question: What is the ethernet ports of the u10 appliance? <|assistant|> SELECT "ethe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of Silver medals for the Nation with less than 1 Bron...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of Gold medals for the Nation with more than 1 Bronze...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of Gold medals for the Nation with more than 3 Bronze...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many Gold medals did Great Britain with a Total of more than 2 medals rece...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many Silver medals did the Nation with a Rank of less than 1 receive? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "topscorers" ( "player" text, "club" text, "league" real, "fa_cup" real, "fa_trophy" real, "league_cup" real, "total" real ); Question: What is the average total with 1 FA cup and more than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "topscorers" ( "player" text, "club" text, "league" real, "fa_cup" real, "fa_trophy" real, "league_cup" real, "total" real ); Question: Which club had more than 2 FA trophies and more than 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "number" real, "result" text, "date" text, "score" text, "opponent" text, "record" text ); Question: Who was the opponent when the Maroons record was 11–4–1? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "number" real, "result" text, "date" text, "score" text, "opponent" text, "record" text ); Question: What was the result of the game on January 5, 1926? <|assistant|> SELECT "resu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What date had a margin victory of 2 strokes? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the margin of victory in a semgroup championship? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the winning score with a margin victory of 2 strokes? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season_results" ( "season" text, "games" real, "lost" real, "points" real, "pct_pct" real, "goals_for" real, "goals_against" real, "playoffs" text ); Question: What is the highe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season_results" ( "season" text, "games" real, "lost" real, "points" real, "pct_pct" real, "goals_for" real, "goals_against" real, "playoffs" text ); Question: What is the avera...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season_results" ( "season" text, "games" real, "lost" real, "points" real, "pct_pct" real, "goals_for" real, "goals_against" real, "playoffs" text ); Question: What is the sum o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season_results" ( "season" text, "games" real, "lost" real, "points" real, "pct_pct" real, "goals_for" real, "goals_against" real, "playoffs" text ); Question: What is the avera...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fleet" ( "number" real, "class" real, "name" text, "livery" text, "notes" text ); Question: What is the Class when Wessex Trains Pink is the Livery? <|assistant|> SELECT "class" FROM "fleet" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fleet" ( "number" real, "class" real, "name" text, "livery" text, "notes" text ); Question: What is the Livery when the Number is 31468? <|assistant|> SELECT "livery" FROM "fleet" WHERE "number...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text, "alternate" text, "club" text ); Question: What was the Skip for Germany? <|assistant|> SELECT "skip" FROM "te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text, "alternate" text, "club" text ); Question: What was the club for Great Britain? <|assistant|> SELECT "club" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text, "alternate" text, "club" text ); Question: Who is the alternate for Magnus Swartling as Second? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text, "alternate" text, "club" text ); Question: Which club has Jamie Korab as Lead? <|assistant|> SELECT "club" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text, "alternate" text, "club" text ); Question: Which Lead has Hans Frauenlob as a Third? <|assistant|> SELECT "lea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "england_in_australia_1903_4" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: Who was the Home captain when the Result was Aus by 218 runs? <|as...