text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_singles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text ); Question: Who won the runner-up in 1999? <|assistant|> SELECT "runner_up" FROM "women_s_singl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_singles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text ); Question: What was the score when Flavia Pennetta won the championship? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runs" ( "player" text, "team" text, "matches" real, "inns" real, "runs" real, "balls" real, "s_rate" real, "100s" real, "average" real ); Question: How many Matches have an S/Rate small...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runs" ( "player" text, "team" text, "matches" real, "inns" real, "runs" real, "balls" real, "s_rate" real, "100s" real, "average" real ); Question: Which Team has Balls smaller than 258...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runs" ( "player" text, "team" text, "matches" real, "inns" real, "runs" real, "balls" real, "s_rate" real, "100s" real, "average" real ); Question: How many Matches have Balls smaller t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runs" ( "player" text, "team" text, "matches" real, "inns" real, "runs" real, "balls" real, "s_rate" real, "100s" real, "average" real ); Question: How many Matches have an Average larg...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "pole_position" text, "fastest_lap" text, "race_winner" text ); Question: What was the fastest lap for Grand Prix d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "pole_position" text, "fastest_lap" text, "race_winner" text ); Question: Who won the race circuit of sachsenring? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "pole_position" text, "fastest_lap" text, "race_winner" text ); Question: Who won with the fastest lap of daijiro h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ground_history" ( "name_of_ground" text, "location" text, "year" text, "fc_matches" text, "la_matches" text, "t20_matches" text, "total" text ); Question: What year had a total of 2 and LA ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ground_history" ( "name_of_ground" text, "location" text, "year" text, "fc_matches" text, "la_matches" text, "t20_matches" text, "total" text ); Question: What year was the total 9? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); Question: Who is in week 4 if week 5 is [month ended] and week 2 is April Ireland? <|assistant|> SELECT "wee...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); Question: Who is week 3 if week 2 is Nikki Fiction? <|assistant|> SELECT "week_3" FROM "2007" WHERE "week_2"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); Question: Who is week 1 if week 3 is Natasha Budhi? <|assistant|> SELECT "week_1" FROM "2007" WHERE "week_3"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); Question: Who is week 5 if week 2 is Jenna Jordan? <|assistant|> SELECT "week_5" FROM "2007" WHERE "week_2"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); Question: Who is week 2 if week 3 is Sara Stokes? <|assistant|> SELECT "week_2" FROM "2007" WHERE "week_3"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); Question: Who is week 3 if week 1 is Amanda Batt? <|assistant|> SELECT "week_3" FROM "2007" WHERE "week_1"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ugdsb_secondary_schools" ( "name" text, "location" text, "enrollment" real, "1_year_ranking_of_727" real, "5_year_ranking_of_693" real ); Question: How many enrollments have a location of Guelp...
<|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: What average bronze has a total less than 1? <|assistant|> SELECT AVG("bronze")...
<|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: What average gold has China (chn) as the nation with a bronze greater than 1? <...
<|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: Which is the highest gold that has a bronze greater than 4? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1984" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What date has fewer than 32 against and the opposing team of Australia? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1984" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the average against for a test match? <|assistant|> SELECT AVG("against") FROM "1984...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1984" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: Which venue has more than 9 against and a status of second test? <|assistant|> SELECT "venue...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1984" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: Which status has an against of 35? <|assistant|> SELECT "status" FROM "1984" WHERE "against"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "2003_04_pts" text, "2004_05_pts" text, "2005_06_pts" real, "total_pts" real, "total_pld" real ); Question: Which Total Pld has a Total Pts smaller than 153, and a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "2003_04_pts" text, "2004_05_pts" text, "2005_06_pts" real, "total_pts" real, "total_pld" real ); Question: Which Total Pld has a 2004–05 Pts of 43, and a Team of o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "2003_04_pts" text, "2004_05_pts" text, "2005_06_pts" real, "total_pts" real, "total_pld" real ); Question: Which Total Pld has a 2005–06 Pts of 27? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "2003_04_pts" text, "2004_05_pts" text, "2005_06_pts" real, "total_pts" real, "total_pld" real ); Question: Which 2005–06 Pts has a 2004–05 Pts of 48? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "po_prostu_taniec_just_dance" ( "team" text, "dance" text, "music" text, "points_jury" text, "place" text ); Question: What was the music for the modern dance? <|assistant|> SELECT "music" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "po_prostu_taniec_just_dance" ( "team" text, "dance" text, "music" text, "points_jury" text, "place" text ); Question: What was the place for the tango dance when the points was jury of 24 (7,5,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_1950" ( "player" text, "club" text, "qualifying_goals" real, "finals_goals" real, "total_goals" real ); Question: What is the Average Qualifying Goals for Jack Froggatt where the Final G...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_1950" ( "player" text, "club" text, "qualifying_goals" real, "finals_goals" real, "total_goals" real ); Question: Which Player has a Total Goals greater than 1 and Qualifying Goals small...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_1950" ( "player" text, "club" text, "qualifying_goals" real, "finals_goals" real, "total_goals" real ); Question: What is the total number of Total Goals scored by Stan Mortensen where t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_1950" ( "player" text, "club" text, "qualifying_goals" real, "finals_goals" real, "total_goals" real ); Question: What is the Average Finals Goals if the Total Goals is less than 1? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What was Adam Scott's total score when playing in Australia with a to par of e? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What was Fredrik Jacobson's score? <|assistant|> SELECT "score" FROM "first_round" WHERE "pl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: WHAT IS THE HOME TEAM WITH AN AWAY OF LEYTON ORIENT? <|assistant|> SELECT "home_t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: WHAT IS NO TIE FROM brighton & hove albion? <|assistant|> SELECT "tie_no" FROM "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); Question: What was the result for the game on October 5? <|assistant|> SELECT "result" FROM "schedu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode" text, "18_49" text, "viewers_m" real, "rating" text, "share" text ); Question: What Viewers (m) has an Episode of school council? <|assistant|> SELECT AVG("viewers_m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode" text, "18_49" text, "viewers_m" real, "rating" text, "share" text ); Question: What Viewers (m) has a Rating of 1.7, and an Episode of the game of life? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode" text, "18_49" text, "viewers_m" real, "rating" text, "share" text ); Question: What Viewers (m) has an Episode of 40 days? <|assistant|> SELECT "viewers_m" FROM "wee...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode" text, "18_49" text, "viewers_m" real, "rating" text, "share" text ); Question: What Episode has a Rating of 1.8, and Viewers (m) smaller than 2.73? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode" text, "18_49" text, "viewers_m" real, "rating" text, "share" text ); Question: What Rating has Viewers (m) of 2.73? <|assistant|> SELECT "rating" FROM "weekly_rating...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode" text, "18_49" text, "viewers_m" real, "rating" text, "share" text ); Question: What Episode has a Share of tba? <|assistant|> SELECT "episode" FROM "weekly_ratings" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_60" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Name the Partner which is in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_60" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: which Surface has Opponents ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_60" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Name the date of Tournament ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_60" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Name the Outcome has a Surfa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_60" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Name the Surface which has a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Which Res has a Time of 11:58...
<|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 was jerry bohlander's ti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goal_scorers" ( "name" text, "serie_a" real, "champions_league" real, "coppa_italia" real, "total" real ); Question: What was the total of Mauro Camoranesi when coppa italia was 0, champions le...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goal_scorers" ( "name" text, "serie_a" real, "champions_league" real, "coppa_italia" real, "total" real ); Question: What's the Serie A when the coppa italia was 5? <|assistant|> SELECT AVG("se...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goal_scorers" ( "name" text, "serie_a" real, "champions_league" real, "coppa_italia" real, "total" real ); Question: What's the total when the champions league was 0, the coppa italia was less ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goal_scorers" ( "name" text, "serie_a" real, "champions_league" real, "coppa_italia" real, "total" real ); Question: What is the championsleague when the total was greater than 1, the coppa ita...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_race_wins_in_a_single_season" ( "women" text, "country" text, "season" text, "victories" real, "downhill" text, "super_g" text, "giant_slalom" text, "slalom" text, "combined" text )...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_race_wins_in_a_single_season" ( "women" text, "country" text, "season" text, "victories" real, "downhill" text, "super_g" text, "giant_slalom" text, "slalom" text, "combined" text )...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What is Bob Charles' To par? <|assistant|> SELECT "to_par" FROM "ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What is the Total for the Player with a To par of +11? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What is the Total of the Player with a To par of –13? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_roster" ( "name" text, "number" real, "position" text, "height" text, "year" text, "hometown" text ); Question: What is Guard Kerri Shields Hometown? <|assistant|> SELECT "hometown" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_roster" ( "name" text, "number" real, "position" text, "height" text, "year" text, "hometown" text ); Question: What is the Name of the Player from Albuquerque, New Mexico? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "knockout_stages" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Question: What was the score of the 2nd leg when Newell's Old Boys played at hom...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "knockout_stages" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Question: Who played at home for the second leg, with a score of 1-1 on the firs...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "knockout_stages" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Question: Which team played at home for the second leg and has aggregate score o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "knockout_stages" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Question: What was the score on the first leg when gimnasia de mendoza played at...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "knockout_stages" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Question: Which team played at home for the second leg and has an aggregate scor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "knockout_stages" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Question: What was the 2nd leg score when atlético tucumán played at home? <|ass...
<|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 record of the mat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: What is the method of opponen...
<|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 location of fight...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Who is the opponent with a ti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Who is the opponent with a 0-...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" real ); Question: What is the total rank with more than 392...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" real ); Question: What is the highest average with less tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" real ); Question: What is the total average with 54 total p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" real ); Question: What is the total rank by average for 2 d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_40_20_20" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What Championship has an Opponent in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_40_20_20" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What Score in the final has a Surfac...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "clubs" ( "club" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "first_season_of_current_spell_in_top_division" text, "number_of_seasons_in_liga_mx" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "clubs" ( "club" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "first_season_of_current_spell_in_top_division" text, "number_of_seasons_in_liga_mx" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "clubs" ( "club" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "first_season_of_current_spell_in_top_division" text, "number_of_seasons_in_liga_mx" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "clubs" ( "club" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "first_season_of_current_spell_in_top_division" text, "number_of_seasons_in_liga_mx" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "clubs" ( "club" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "first_season_of_current_spell_in_top_division" text, "number_of_seasons_in_liga_mx" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "verified_aerial_victories" ( "number" real, "time" real, "aircraft" text, "opponent" text, "location" text ); Question: What number is in Bois de Warville with a time less than 810? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "verified_aerial_victories" ( "number" real, "time" real, "aircraft" text, "opponent" text, "location" text ); Question: What is number 21's highest time? <|assistant|> SELECT MAX("time") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "verified_aerial_victories" ( "number" real, "time" real, "aircraft" text, "opponent" text, "location" text ); Question: What number with the opponent Fokker D.vii have with a time of 1655? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "verified_aerial_victories" ( "number" real, "time" real, "aircraft" text, "opponent" text, "location" text ); Question: Who is the opponent with a time higher than 1040, a Spad xiii aircraft in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "verified_aerial_victories" ( "number" real, "time" real, "aircraft" text, "opponent" text, "location" text ); Question: What number has the opponent Fokker d.vii with a time of 600? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); Question: What is the Name of the Building with 36 or more Flo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); Question: What is the Years as tallest of the Building with a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); Question: What is the Street Address of the Building with 17 F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); Question: What is the Name of the Building at 100 North Tampa ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_record" ( "round" text, "opponents" text, "home" text, "away" text, "aggregate" text ); Question: What away is there for the q3 round? <|assistant|> SELECT "away" FROM "european_record...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_record" ( "round" text, "opponents" text, "home" text, "away" text, "aggregate" text ); Question: What is the Aggregate of Bayer Leverkusen opponents? <|assistant|> SELECT "aggregate" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the competition that was at serravalle, san marino? <|assistant|> SELECT "...