text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text ); Question: Who was the opponent in the game with save ||33,389||87–62? <|assistant|> SELECT "opponent" FROM "g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text ); Question: Who was the opponent in the game with save ||33,723||93–64? <|assistant|> SELECT "opponent" FROM "g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text ); Question: What was the score on September 8? <|assistant|> SELECT "score" FROM "game_log" WHERE "date"='septe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: Which nationality has Years for Jazz of 1984-85? <|assistant|> SELECT "natio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: Which position has a Nationality of united states, and a Player of roger pow...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: What years does milt palacio play? <|assistant|> SELECT "years_for_jazz" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: Which years have a School/Club Team of colorado state? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "years" text, "engine_code" text, "power" text, "torque" text ); Question: During which years was the Model 318td (diesel) with the Engine code of m47d20 manufactured? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "years" text, "engine_code" text, "power" text, "torque" text ); Question: What is the Torque of the model with the engine code of M54B25? <|assistant|> SELECT "torque"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "years" text, "engine_code" text, "power" text, "torque" text ); Question: What is the Torque of the Model 320td (diesel)? <|assistant|> SELECT "torque" FROM "engines" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "years" text, "engine_code" text, "power" text, "torque" text ); Question: During which years was the model with the Engine code of m54b25 manufactured? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "years" text, "engine_code" text, "power" text, "torque" text ); Question: Which model was made from 2001–2004, with a Torque of n·m (lb·ft) @ 3750, and an Engine code ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the date of the Mariners game that had a score of 1-12? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the date of the Mariners game that had an attendance of 6,707? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the date of the Mariners game that had a loss of Segui (0-5)? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the loss of the Mariners game that had an attendance of 9,065? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: Who was the Mariners opponent at the game attended by 7,893? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_9" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What is the tournament surface at Aptos? <|assistant|> SELECT "surface" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_9" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What was the final score of the Paul Goldstein match? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_9" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Who played the final match on November 23, 1998? <|assistant|> SELECT "oppon...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_9" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What date did Paul Goldstein play the final? <|assistant|> SELECT "date" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_9" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What was the surface type at Takao Suzuki? <|assistant|> SELECT "surface" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_9" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What were the scores on September 11, 2006? <|assistant|> SELECT "score" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Who did they lose to on may 9? <|assistant|> SELECT "loss" FROM "game_log" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is Pedro De La Rosa's total number of Grid? <|assistant|> SELECT COUNT("grid") FROM "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Which constructor has a Time/Retired of +37.311? <|assistant|> SELECT "constructor" FROM "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the time/retired for mika häkkinen <|assistant|> SELECT "time_retired" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes_and_audiences" ( "episode" text, "title" text, "date_of_emission" text, "audience" text, "share" text ); Question: Which title had an audience of 4.629.000? <|assistant|> SELECT "title...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes_and_audiences" ( "episode" text, "title" text, "date_of_emission" text, "audience" text, "share" text ); Question: What was the audience for Episode 21? <|assistant|> SELECT "audience"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes_and_audiences" ( "episode" text, "title" text, "date_of_emission" text, "audience" text, "share" text ); Question: What was the share when the audience was 3.944.000? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes_and_audiences" ( "episode" text, "title" text, "date_of_emission" text, "audience" text, "share" text ); Question: What was the audience for Mi Amigo el Monstruo? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes_and_audiences" ( "episode" text, "title" text, "date_of_emission" text, "audience" text, "share" text ); Question: Which title has a share of 19,9% <|assistant|> SELECT "title" FROM "e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes_and_audiences" ( "episode" text, "title" text, "date_of_emission" text, "audience" text, "share" text ); Question: Which share had an audience of 4.693.000? <|assistant|> SELECT "share...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: what was the venue that hosted Carlton as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the date of the Collingwood away...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft" ( "round" text, "pick" text, "player" text, "position" text, "nationality" text, "team" text, "college" text ); Question: Who is the player that plays position c on the New York Knic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft" ( "round" text, "pick" text, "player" text, "position" text, "nationality" text, "team" text, "college" text ); Question: What is the position of the pick 1 player? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft" ( "round" text, "pick" text, "player" text, "position" text, "nationality" text, "team" text, "college" text ); Question: Who is the player that plays position f from Fort Wayne Pist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft" ( "round" text, "pick" text, "player" text, "position" text, "nationality" text, "team" text, "college" text ); Question: Which round is the player from Oregon from? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: How many goals for occurred when the goals a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: What is the smallest number of wins with 7 g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: What is the average number of ties when goal...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: How many losses occurred with less than 8 ga...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: How many goals against were scored when the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "school_club_team_country" text ); Question: Name the position for the player that is from valparaiso <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "school_club_team_country" text ); Question: Name the height in feet for the guard from north carolina-charlotte <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "school_club_team_country" text ); Question: Name the height in feet for the player from valparaiso <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "school_club_team_country" text ); Question: Name the school/club team/country for the player that is 6-5 ft <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "school_club_team_country" text ); Question: Name the numbers for the player with a height in ft of 6-7 for the guard <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "school_club_team_country" text ); Question: Name the height in ft for the player from wyoming <|assistant|> SELECT "heigh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" text, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Which college did the Calgary Stampeders recruit from? <|assistant|> SELECT "college...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s" ( "year" real, "film_name" text, "co_singer" text, "music_director" text, "language" text ); Question: Which year has the Co-singer solo and a Film name of bhagya debata? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: What date...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: Which win...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: What is t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: On what date did a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What race had Jody...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: Who held pole posi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: Who won the South ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: Who had the fastes...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text ); Question: W...
<|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 was the result of the 1948 og competition? <|assistant|> SELECT "result" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: I want the lowest Grid for Rolf Stommelen <|assistant|> SELECT MIN("grid") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: I want the constructor for grid less than 20 and Laps of 6 <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "development_of_population" ( "year" real, "total" real, "german" text, "romanian" text, "hungarian" text, "other" text, "of_which_romanies_gypsies" text ); Question: What is the german tota...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "competition_record" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What year did Naoki Tsukahara finish 3rd in the 200 m race? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "western_conference_finals" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real ); Question: What is the attendance at the Dallas home game on may 12? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: What nationality is the player ranked 2? <|assistant|> SELECT "country" FROM "leaders" WHERE "ra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: How many wins for mike hill ranked below 4? <|assistant|> SELECT COUNT("wins") FROM "leaders" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What is Trevor Cann's nationality? <|assistant|> SELECT "nat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What is Kent Patterson's nationality? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "patrol" ( "class" text, "ships_in_class" text, "pennant_number" real, "unit" text, "builder" text, "commissioned" text ); Question: Which unit has a Pennant Number of 82? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "patrol" ( "class" text, "ships_in_class" text, "pennant_number" real, "unit" text, "builder" text, "commissioned" text ); Question: What is the highest pennant number with ships in raahe clas...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "patrol" ( "class" text, "ships_in_class" text, "pennant_number" real, "unit" text, "builder" text, "commissioned" text ); Question: What is the highest pennant number with ships in pori class...
<|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 name of the competition that ended with a score of 2-1? <|assistant|> ...
<|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 name of the competition that ended with a score of 1-3? <|assistant|> ...
<|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: At which venue did the game on 28 october 2013 take place? <|assistant|> SELECT "v...
<|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 name of the competition that ended with a score of 2-1? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); Question: In what year did a car have a yamaha v12 engine and a brabham bt60y chassis <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); Question: waht is the last year with a mclaren mp4/10b chassis <|assistant|> SELECT MAX...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); Question: before 1995 waht is the aveage pts for a mclaren mp4/10b chassis <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); Question: what is the most recent year for a ligier gitanes blondes <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "swimsuit" real, "evening_gown" real, "interview" real, "average" real ); Question: What is the total number of averages with an interview of 8.75 when ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "swimsuit" real, "evening_gown" real, "interview" real, "average" real ); Question: What is the total number of interviews where the evening gown number...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "swimsuit" real, "evening_gown" real, "interview" real, "average" real ); Question: How many averages had a swimsuit number of 8.42 and an evening gown ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "swimsuit" real, "evening_gown" real, "interview" real, "average" real ); Question: Which state had an average of less than 8.67, a swimsuit score of 8....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What is the record when the visitor was Nashville? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the score when there were more than 14,381 in att...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_bowling" ( "bowling_figures_wickets_runs_overs" text, "bowler" text, "versus" text, "venue" text, "date" text ); Question: When was a competition held at Pietermaritzburg? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_bowling" ( "bowling_figures_wickets_runs_overs" text, "bowler" text, "versus" text, "venue" text, "date" text ); Question: What were the bowling figures for the competition at Pietermaritz...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_bowling" ( "bowling_figures_wickets_runs_overs" text, "bowler" text, "versus" text, "venue" text, "date" text ); Question: Who was the opponent during the competition in which the bowling ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_bowling" ( "bowling_figures_wickets_runs_overs" text, "bowler" text, "versus" text, "venue" text, "date" text ); Question: What were GD Mcgrath's bowling figures? <|assistant|> SELECT "bow...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_bowling" ( "bowling_figures_wickets_runs_overs" text, "bowler" text, "versus" text, "venue" text, "date" text ); Question: During the competition at Port Elizabeth, where the opponent was ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "buildings_completed_as_of_february_2011" ( "rank" real, "building" text, "height" text, "floors" real, "completed" real ); Question: What is the lowest amount of floors after rank 1 in the Tril...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "buildings_completed_as_of_february_2011" ( "rank" real, "building" text, "height" text, "floors" real, "completed" real ); Question: What is the lowest amount of floors in the building complete...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "buildings_completed_as_of_february_2011" ( "rank" real, "building" text, "height" text, "floors" real, "completed" real ); Question: What is the largest amount of floors in the 70m (233ft) Tupp...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" text ); Question: Which manufacturer has 23 laps and a time of +45.195? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" text ); Question: What is the sum of Sylvain Guintoli's laps? <|assistant|> SELECT SUM("lap...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_individual_scores" ( "runs" text, "balls" text, "batsman" text, "versus" text, "venue" text, "date" text, "strike_rate" text ); Question: How many runs were scored when the strike r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "port_statistics" ( "product" text, "2004" text, "2003" text, "2002" text, "2001" text ); Question: What was the amount of grain in 2001? <|assistant|> SELECT "2001" FROM "port_statistics" WHERE...