text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "honour_board" ( "year" real, "coach" text, "captain" text, "club_champion" text, "leading_goalkicker" text, "player_s_player" text, "iron_man_award" text, "community_award" text, "most_p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "honour_board" ( "year" real, "coach" text, "captain" text, "club_champion" text, "leading_goalkicker" text, "player_s_player" text, "iron_man_award" text, "community_award" text, "most_p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "honour_board" ( "year" real, "coach" text, "captain" text, "club_champion" text, "leading_goalkicker" text, "player_s_player" text, "iron_man_award" text, "community_award" text, "most_p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summaries" ( "team" text, "manager" text, "home_city" text, "stadium" text, "capacity" real ); Question: what is the capacity for the team šibenik? <|assistant|> SELECT MIN("capacity") FROM "su...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summaries" ( "team" text, "manager" text, "home_city" text, "stadium" text, "capacity" real ); Question: what is the stadium for čakovec? <|assistant|> SELECT "stadium" FROM "summaries" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summaries" ( "team" text, "manager" text, "home_city" text, "stadium" text, "capacity" real ); Question: what is the capacity when the home city is zagreb and the manager is zlatko kranjčar? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summaries" ( "team" text, "manager" text, "home_city" text, "stadium" text, "capacity" real ); Question: what is the home city for the stadion src mladost? <|assistant|> SELECT "home_city" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the grid for the driver with an electrical time/retired and 51 laps? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real ); Question: Who is the driver with 1 grid? <|assistant|> SELECT "driver" FROM "race" WHERE "grid"=1;<|endoftex...
<|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 place was Mark Carnevale in? <|assistant|> SELECT "place" FROM "first_round" WHERE "pla...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "date" text, "home" text, "score" text, "away" text, "attendance" real ); Question: What was the highest attendance against Real Juventud? <|assistant|> SELECT MAX("attendance") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "test_matches" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: Who is the away captain for the matches dated 7,8,10,11 feb 1908? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "test_matches" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: Who is the home captain at the Adelaide Oval? <|assistant|> SELECT "home_captain"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "test_matches" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: Who is the home captain that won AUS by 245 runs? <|assistant|> SELECT "home_capt...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "test_matches" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: What was the venue for the dates 1,2,3,4,6,7 jan 1908? <|assistant|> SELECT "venu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "test_matches" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: What was the venue for the dates 7,8,10,11 Feb 1908? <|assistant|> SELECT "venue"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technology_comparison_for_grid_level_app" ( "technology" text, "moving_parts" text, "room_temperature" text, "flammable" text, "toxic_materials" text, "in_production" text, "rare_metals" tex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technology_comparison_for_grid_level_app" ( "technology" text, "moving_parts" text, "room_temperature" text, "flammable" text, "toxic_materials" text, "in_production" text, "rare_metals" tex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technology_comparison_for_grid_level_app" ( "technology" text, "moving_parts" text, "room_temperature" text, "flammable" text, "toxic_materials" text, "in_production" text, "rare_metals" tex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technology_comparison_for_grid_level_app" ( "technology" text, "moving_parts" text, "room_temperature" text, "flammable" text, "toxic_materials" text, "in_production" text, "rare_metals" tex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What was the Score for T9 United States Player Kirk Triplett? <|assistant|> SELECT "score" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What country is Tiger Woods from? <|assistant|> SELECT "country" FROM "second_round" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "season" text, "club" text, "country" text, "apps" real, "goals" real, "assists" real ); Question: what is the assists when the club is chicago fire and goals is more than 2? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "season" text, "club" text, "country" text, "apps" real, "goals" real, "assists" real ); Question: what is the most assists when the goals is less than 0? <|assistant|> SELECT M...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_finals_5_0_5" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What is Score in The Final, when...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_finals_5_0_5" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What is Opponent in The Final, w...
<|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_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is Location Attenda...
<|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_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is Date, when High ...
<|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_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is Score, when Loca...
<|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_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is Score, when Game...
<|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_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is Location Attenda...
<|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_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is Record, when Dat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "box_office_charts" ( "date" text, "rank" real, "weekend_gross" text, "theaters" real, "gross_to_date" text ); Question: Name the Theaters that has a Rank larger than 7? <|assistant|> SELECT MAX...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "box_office_charts" ( "date" text, "rank" real, "weekend_gross" text, "theaters" real, "gross_to_date" text ); Question: Name the Gross-to-date which has a Date of august 23–25? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: Name the Round which has a Position of defensive back and a Pick of 226? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: Name the Round which has a Player of zack walz? <|assistant|> SELECT "round" FROM "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: Name the Round which has a Position of defensive back and corey chavous? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: Name all Pick that has a Round of 7, and a School/Club Team of arizona st.? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "the_year" real, "division" real, "league" text, "regular_season" text, "playoffs" text ); Question: Which Year has a Regular Season of 7th? <|assistant|> SELECT MAX("the_year")...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "the_year" real, "division" real, "league" text, "regular_season" text, "playoffs" text ); Question: Which Year has a Division larger than 3? <|assistant|> SELECT MAX("the_year"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "the_year" real, "division" real, "league" text, "regular_season" text, "playoffs" text ); Question: Which Year did not qualify for Playoffs, and had a Division smaller than 3? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "the_year" real, "division" real, "league" text, "regular_season" text, "playoffs" text ); Question: Which league did not qualify for the Playoffs, and had a Year larger than 20...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_a" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What is Home Team, when Away Team Score ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_a" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What is Lowest Crowd, when Home Team is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_a" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What is Date, when Away Team is Kangaroo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_a" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What is Ground, when Home Team Score is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_a" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What is Away Team, when Home Team is Kan...
<|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 smallest round wi...
<|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: How long was the time for the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: WHAT COUNTRY HAS A TO PAR OF +1, WITH WOODY AUSTIN? <|assistant|> SELECT "country" FROM "thi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: WHAT IS THE TO PAR FOR ERNIE ELS? <|assistant|> SELECT "to_par" FROM "third_round" WHERE "pl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: WHAT PLACE DOES TOM LEHMAN HAVE? <|assistant|> SELECT "place" FROM "third_round" WHERE "play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: WHAT IS THE TO PAR FOR NUMBER 1? <|assistant|> SELECT "to_par" FROM "third_round" WHERE "pla...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: WHAT IS TEH PLAYER WITH A TO PAR OF +1 FOR SCOTLAND? <|assistant|> SELECT "player" FROM "thi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "year" real, "e3_harelbeke_bel" text, "gent_wevelgem_bel" text, "tour_of_flanders_bel" text, "paris_roubaix_fra" text ); Question: Who won the Paris-Roubaix in 2006? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text, "county" text ); Question: Who built the conant creek pegram truss railroad bridge? <|assistant|> SELECT "built" FROM "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text, "county" text ); Question: Where is the historic place that was built in 1910? <|assistant|> SELECT "location" FROM "ref...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text, "county" text ); Question: What is the list date of the historic place that was built 1896, 1914? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text, "county" text ); Question: When was the historic place listed that's in canyon county? <|assistant|> SELECT "listed" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standards" ( "pollutant" text, "type" text, "standard" text, "averaging_time" text, "regulatory_citation" text ); Question: what is the averaging time when the regulatory citation is 40 cfr 50....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standards" ( "pollutant" text, "type" text, "standard" text, "averaging_time" text, "regulatory_citation" text ); Question: what is the regulatory citation when the standard is 15 μg/m³? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standards" ( "pollutant" text, "type" text, "standard" text, "averaging_time" text, "regulatory_citation" text ); Question: what is the standard when the pollutant is o 3 and averaging time is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standards" ( "pollutant" text, "type" text, "standard" text, "averaging_time" text, "regulatory_citation" text ); Question: what is the polluntant when the regulatory citation is 40 cfr 50.7(a)...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standards" ( "pollutant" text, "type" text, "standard" text, "averaging_time" text, "regulatory_citation" text ); Question: what is the type when the averaging time is 1-hour and the standard i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standards" ( "pollutant" text, "type" text, "standard" text, "averaging_time" text, "regulatory_citation" text ); Question: what is the type when the regulatory citation is 40 cfr 50.9(a)? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "per_competition" ( "player" text, "league" real, "title_playoff" real, "super_cup" real, "total" real ); Question: What is the highest League, when Title Playoff is greater than 0? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "per_competition" ( "player" text, "league" real, "title_playoff" real, "super_cup" real, "total" real ); Question: What is the lowest Title Playoff, when Total is less than 3, and when League i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "per_competition" ( "player" text, "league" real, "title_playoff" real, "super_cup" real, "total" real ); Question: What is the lowest Title Playoff, when League is greater than 3, and when Supe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "per_competition" ( "player" text, "league" real, "title_playoff" real, "super_cup" real, "total" real ); Question: What is the total number of Super Cup, when Title Playoff is "0", when Total i...
<|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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Who was the Opponent in Week 7? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "week"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What was the Attendance on November 7, 1999? <|assistant|> SELECT "attendance" FROM "schedul...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Who was the Opponent of the Game with a Result of l 23-41? <|assistant|> SELECT "opponent" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What was the Attendance in Week 1? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "planitia" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: Which Diameter (km) has a Name of alma-merghen planitia, and a Year named smaller ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "planitia" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: Which Longitude has a Latitude of 73.0s, and a Name of aibarchin planitia? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "planitia" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: Which Year named has a Name of nuptadi planitia, and a Diameter (km) larger than 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "planitia" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: Which Latitude has a Year named smaller than 1997, and a Name of aino planitia? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: In what tournament did Cipolla face Sergio Roitman? <|assistant|> SELECT "tournament" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "us_nielsen_ratings" ( "rating" real, "share" real, "rating_share_18_49" text, "viewers_millions" real, "rank_overall" text ); Question: What is the Rating/Share (18-49) that also has a Share gr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" real ); Question: Which Week has a Record of 2-9? <|assistant|> SELECT MIN("week") FROM "sche...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" real ); Question: Which Week has an Attendance smaller than 70,056, and an Opponent of at min...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What is the to par score from Brad Faxon of the United States with a score of 73-68=141? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What's the to par score in T8 place from Zimbabwe and has a score of 73-68=141? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What's the score of Lee Janzen in T4 place? <|assistant|> SELECT "score" FROM "second_round...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What's the score of Jeff Maggert in T2 place? <|assistant|> SELECT "score" FROM "second_rou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What's the to par when the score was 68-73=141? <|assistant|> SELECT "to_par" FROM "second_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What's the total number of game that has 377 points? <|assistant|> SELECT SUM("games") FROM "points" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What's the total number of points that the rank is less than 5 and has Tiago Splitter? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What is the total number of games that has Juan Carlos Navarro and more than 266 points? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What's the rank of Igor Rakočević of Tau Cerámica with more than 377 points? <|assistant|> SELECT SUM("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What's the rank of the Tau Cerámica that has 377 points and more than 21 games? <|assistant|> SELECT CO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "aircraft" ( "aircraft" text, "origin" text, "squadron" text, "display_aircraft" real, "dates" text ); Question: What are the dates of squadron 33? <|assistant|> SELECT "dates" FROM "aircraft" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_a_star_talent_search_winners" ( "year" real, "award" text, "name" text, "institution" text, "chief_judge" text ); Question: What institution won 2nd more recently than 2007 with Peter A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_a_star_talent_search_winners" ( "year" real, "award" text, "name" text, "institution" text, "chief_judge" text ); Question: What student won 3rd with Peter Agre as Chief Judge? <|assist...