text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "title" text, "label" text, "format" text, "album" text ); Question: What title has a Label of warp records / paper bag records? <|assistant|> SELECT "title" FROM "singles" WHERE "label"='warp records / paper bag records';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1986_87" text, "1987_88" text, "1988_89" real ); Question: What's the highest Average that has a 1987-88 of 55 and a Played that's larger than 114? <|assistant|> SELECT MAX("average") FROM "relegation" WHERE "1987_88"='55' AND "played">114;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1986_87" text, "1987_88" text, "1988_89" real ); Question: What's the lowest Points for the Team of San Martín De Tucumán, and a Played that's smaller than 38? <|assistant|> SELECT MIN("points") FROM "relegation" WHERE "team"='san martín de tucumán' AND "played"<38;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1986_87" text, "1987_88" text, "1988_89" real ); Question: What's the 1986-87 that's got a 1988-89 that's larger than 42, and Points of 109? <|assistant|> SELECT "1986_87" FROM "relegation" WHERE "1988_89">42 AND "points"=109;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1986_87" text, "1987_88" text, "1988_89" real ); Question: What's the total of 1988-89 that has a 1986-87 of 38, and Points that's smaller than 109? <|assistant|> SELECT SUM("1988_89") FROM "relegation" WHERE "1986_87"='38' AND "points"<109;<|endoftext|>
<|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 nation has a total more than 3, with more than 5 for bronze, and less than 4 for the silver? <|assistant|> SELECT "nation" FROM "medal_table" WHERE "total">3 AND "bronze">5 AND "silver"<4;<|endoftext|>
<|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 is the largest number for bronze with a rank of 19? <|assistant|> SELECT MAX("bronze") FROM "medal_table" WHERE "rank"='19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "last_encounters_since_2006" ( "season" text, "home" text, "score" text, "away" text, "date" text ); Question: what season had a score of 1:0 <|assistant|> SELECT "season" FROM "last_encounters_since_2006" WHERE "score"='1:0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nasl_indoor_soccer" ( "indoor_year" text, "record" text, "regular_season_finish" text, "playoffs" text, "avg_attend" real ); Question: indoor year is 1978, what is the record? <|assistant|> SELECT "record" FROM "nasl_indoor_soccer" WHERE "indoor_year"='1978';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); Question: Record of 11-10-3 is what sum of game #? <|assistant|> SELECT SUM("game_num") FROM "december" WHERE "record"='11-10-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); Question: Points of 31, and a Score of 1 - 5 is what home? <|assistant|> SELECT "home" FROM "december" WHERE "points"=31 AND "score"='1 - 5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); Question: Visitor of calgary has what record? <|assistant|> SELECT "record" FROM "december" WHERE "visitor"='calgary';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); Question: Score of 2 - 2 had what points? <|assistant|> SELECT "points" FROM "december" WHERE "score"='2 - 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_division" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); Question: On what Date was Gainsborough Trinity the Opponents with H/A of H? <|assistant|> SELECT "date" FROM "second_division" WHERE "opponents"='gainsborough trinity' AND "h_a"='h';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_division" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); Question: What H/A had more than 15,000 in Attendance and Blackpool as Opponents? <|assistant|> SELECT "h_a" FROM "second_division" WHERE "attendance">'15,000' AND "opponents"='blackpool';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_division" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); Question: What was the Attendance when Lincoln City was the Opponents with H/A of A? <|assistant|> SELECT COUNT("attendance") FROM "second_division" WHERE "opponents"='lincoln city' AND "h_a"='a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "frequency" text, "band" text, "on_air_id" text, "purpose" text ); Question: what Area has the frequency of 100.3 and an On-air ID of yass fm? <|assistant|> SELECT "area_served" FROM "defunct_callsigns" WHERE "frequency"='100.3' AND "on_air_id"='yass fm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "frequency" text, "band" text, "on_air_id" text, "purpose" text ); Question: What is the Callsign with an Area of tamworth and frequency of 0 88.9? <|assistant|> SELECT "callsign" FROM "defunct_callsigns" WHERE "area_served"='tamworth' AND "frequency"='0 88.9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "frequency" text, "band" text, "on_air_id" text, "purpose" text ); Question: What is the Purpose of the Area Braidwood? <|assistant|> SELECT "purpose" FROM "defunct_callsigns" WHERE "area_served"='braidwood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "frequency" text, "band" text, "on_air_id" text, "purpose" text ); Question: What Band has a Frequency of 0 99.7 in the Area of Newcastle? <|assistant|> SELECT "band" FROM "defunct_callsigns" WHERE "frequency"='0 99.7' AND "area_served"='newcastle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "frequency" text, "band" text, "on_air_id" text, "purpose" text ); Question: What is the Frequency of Gosford when the Callsign of 2cfm? <|assistant|> SELECT "frequency" FROM "defunct_callsigns" WHERE "area_served"='gosford' AND "callsign"='2cfm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "frequency" text, "band" text, "on_air_id" text, "purpose" text ); Question: What is the On-air ID with the frequency of 105.9, and purpose of commercial? <|assistant|> SELECT "on_air_id" FROM "defunct_callsigns" WHERE "frequency"='105.9' AND "purpose"='commercial';<|endoftext|>
<|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, "points" real ); Question: What Time/Retired has a Points that's smaller than 11 and has a Laps of 74? <|assistant|> SELECT "time_retired" FROM "race" WHERE "points"<11 AND "laps"=74;<|endoftext|>
<|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, "points" real ); Question: What Time/Retired has a Laps of 86 and the Team of HVM Racing? <|assistant|> SELECT "time_retired" FROM "race" WHERE "laps"=86 AND "team"='hvm racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); Question: What is the Catalog number in France? <|assistant|> SELECT "catalog" FROM "release_history" WHERE "region"='france';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); Question: What is the Format o Catalog F4 87199? <|assistant|> SELECT "format" FROM "release_history" WHERE "catalog"='f4 87199';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); Question: What is the Region of Catalog 885 973-4? <|assistant|> SELECT "region" FROM "release_history" WHERE "catalog"='885 973-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); Question: What is the Catalog number in the Region of France? <|assistant|> SELECT "catalog" FROM "release_history" WHERE "region"='france';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); Question: What Label has a Catalog number of 885 572-7 in 7" single Format? <|assistant|> SELECT "label" FROM "release_history" WHERE "format"='7\" single' AND "catalog"='885 572-7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march_may" ( "date" text, "opponents" text, "result_f_a" text, "attendance" real, "league_position" text ); Question: How many people in total attended the game on 1 november 1997? <|assistant|> SELECT COUNT("attendance") FROM "march_may" WHERE "date"='1 november 1997';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_b_b_blingen" ( "pos" real, "matches" real, "wins" real, "loses" real, "results" text, "points" real, "diff" text ); Question: Wins of 3, and a Pos. larger than 3 is what average loses? <|assistant|> SELECT AVG("loses") FROM "group_b_b_blingen" WHERE "wins"=3 AND "pos">3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_b_b_blingen" ( "pos" real, "matches" real, "wins" real, "loses" real, "results" text, "points" real, "diff" text ); Question: Matches larger than 5 is the sum of what position? <|assistant|> SELECT SUM("pos") FROM "group_b_b_blingen" WHERE "matches">5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_coaches_results" ( "name" text, "years" text, "seasons" real, "lost" real, "pct" real ); Question: What years did Dwane Morrison had a pct less than 0.389 and losses less than 12? <|assistant|> SELECT "years" FROM "head_coaches_results" WHERE "pct"<0.389 AND "lost"<12 AND "name"='dwane morrison';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_coaches_results" ( "name" text, "years" text, "seasons" real, "lost" real, "pct" real ); Question: How many seasons did Charles C. Farrell coach? <|assistant|> SELECT COUNT("seasons") FROM "head_coaches_results" WHERE "name"='charles c. farrell';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_coaches_results" ( "name" text, "years" text, "seasons" real, "lost" real, "pct" real ); Question: What's the average pct for George Felton when he had losses greater than 7? <|assistant|> SELECT AVG("pct") FROM "head_coaches_results" WHERE "lost">7 AND "name"='george felton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which Margin of victory has a Runner(s)-up of josé maria cañizares? <|assistant|> SELECT "margin_of_victory" FROM "european_tour_wins_8" WHERE "runner_s_up"='josé maria cañizares';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which Tournament has a Runner(s)-up of bob charles? <|assistant|> SELECT "tournament" FROM "european_tour_wins_8" WHERE "runner_s_up"='bob charles';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the winning score on 7 jun 1976? <|assistant|> SELECT "winning_score" FROM "european_tour_wins_8" WHERE "date"='7 jun 1976';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which Winning score has a Margin of victory of 1 stroke, and a Date of 21 jun 1981? <|assistant|> SELECT "winning_score" FROM "european_tour_wins_8" WHERE "margin_of_victory"='1 stroke' AND "date"='21 jun 1981';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: On which date was the Winning score –5 (70-65-69-75=279)? <|assistant|> SELECT "date" FROM "european_tour_wins_8" WHERE "winning_score"='–5 (70-65-69-75=279)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which Runner(s)-up has a Winning score of –9 (71-68-72-68=279)? <|assistant|> SELECT "runner_s_up" FROM "european_tour_wins_8" WHERE "winning_score"='–9 (71-68-72-68=279)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: What is the leading scorer of the game with an attendance of 14,096? <|assistant|> SELECT "leading_scorer" FROM "december" WHERE "attendance"='14,096';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: What is the leading scorer of the game with the Celtics as the visiting team? <|assistant|> SELECT "leading_scorer" FROM "december" WHERE "visitor"='celtics';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: What is the date of the game with an attendance of 19,183? <|assistant|> SELECT "date" FROM "december" WHERE "attendance"='19,183';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "track_number" real, "song_title" text, "songwriter_s" text, "orchestra" text, "time" text ); Question: Name the time with track number less than 4 for you're my everything <|assistant|> SELECT "time" FROM "track_listing" WHERE "track_number"<4 AND "song_title"='you''re my everything';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "track_number" real, "song_title" text, "songwriter_s" text, "orchestra" text, "time" text ); Question: Name the orchestra for ted varnick <|assistant|> SELECT "orchestra" FROM "track_listing" WHERE "songwriter_s"='ted varnick';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "track_number" real, "song_title" text, "songwriter_s" text, "orchestra" text, "time" text ); Question: Name the songwriter for track number 12 <|assistant|> SELECT "songwriter_s" FROM "track_listing" WHERE "track_number"=12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nba_draft" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); Question: Player of dan federman, and a Pick larger than 114 involves which highest round? <|assistant|> SELECT MAX("round") FROM "nba_draft" WHERE "player"='dan federman' AND "pick">114;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nba_draft" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); Question: College of villanova has what round? <|assistant|> SELECT "round" FROM "nba_draft" WHERE "college"='villanova';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nba_draft" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); Question: College of boston college has what pick? <|assistant|> SELECT "pick" FROM "nba_draft" WHERE "college"='boston college';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_by_nation" ( "nation" text, "finalists" real, "winners" real, "runners_up" real, "pct_won" real, "years_won" text ); Question: How many finalists were there when the years won was 2008 and the won % was greater than 33? <|assistant|> SELECT SUM("finalists") FROM "performance_by_nation" WHERE "years_won"='2008' AND "pct_won">33;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "time_time_zone" text, "game_site" text, "final_score" text, "record" text, "match_report" text ); Question: Where was the game site for the game that had a packers record of 2-2? <|assistant|> SELECT "game_site" FROM "regular_season" WHERE "record"='2-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "time_time_zone" text, "game_site" text, "final_score" text, "record" text, "match_report" text ); Question: What is the final score of the game that was at raymond james stadium? <|assistant|> SELECT "final_score" FROM "regular_season" WHERE "game_site"='raymond james stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "time_time_zone" text, "game_site" text, "final_score" text, "record" text, "match_report" text ); Question: What is the match report for the game that was against Houston? <|assistant|> SELECT "match_report" FROM "regular_season" WHERE "opponent"='houston';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "time_time_zone" text, "game_site" text, "final_score" text, "record" text, "match_report" text ); Question: Where is the game site for the game that had a packers record of 2-3? <|assistant|> SELECT "game_site" FROM "regular_season" WHERE "record"='2-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "streak" text ); Question: What was the Record of the game with a Score of 118–105? <|assistant|> SELECT "record" FROM "season_schedule" WHERE "score"='118–105';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "streak" text ); Question: What is the Record of the game with a Score of 107–108? <|assistant|> SELECT "record" FROM "season_schedule" WHERE "score"='107–108';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "streak" text ); Question: What was the Record during the game with a Score of 113–103? <|assistant|> SELECT "record" FROM "season_schedule" WHERE "score"='113–103';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_championship_points_in_a_season_up_" ( "driver" text, "points" real, "season" real, "races" real, "percentage_of_possible_points" text ); Question: How many points have a percentage of possible points of 67.22%? <|assistant|> SELECT SUM("points") FROM "most_championship_points_in_a_season_up_" WHERE "percentage_of_possible_points"='67.22%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_championship_points_in_a_season_up_" ( "driver" text, "points" real, "season" real, "races" real, "percentage_of_possible_points" text ); Question: Which races have points greater than 123, fernando alonso as the driver and a percentage of possible points of 74.44%? <|assistant|> SELECT "races" FROM "most_championship_points_in_a_season_up_" WHERE "points">123 AND "driver"='fernando alonso' AND "percentage_of_possible_points"='74.44%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_championship_points_in_a_season_up_" ( "driver" text, "points" real, "season" real, "races" real, "percentage_of_possible_points" text ); Question: How many seasons have fernando alonso as the driver, and a percentage of possible points of 64.12% and points less than 109? <|assistant|> SELECT SUM("season") FROM "most_championship_points_in_a_season_up_" WHERE "driver"='fernando alonso' AND "percentage_of_possible_points"='64.12%' AND "points"<109;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); Question: Who remixed the version after 1999? <|assistant|> SELECT "remixed_by" FROM "official_versions" WHERE "year">1999;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); Question: Who remixed the version with a length of 3:58? <|assistant|> SELECT "remixed_by" FROM "official_versions" WHERE "length"='3:58';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); Question: Which album is the royal g's club mix version, which is remixed by royal garden sound, from? <|assistant|> SELECT "album" FROM "official_versions" WHERE "remixed_by"='royal garden sound' AND "version"='royal g''s club mix';<|endoftext|>
<|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, "game_site" text, "record" text, "attendance" text ); Question: How many were in attendance in a week less than 4 with a record of 2–1? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "week"<4 AND "record"='2–1';<|endoftext|>
<|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, "game_site" text, "record" text, "attendance" text ); Question: How many were in attendance at Griffith Stadium with Philadelphia Eagles as an opponent? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "game_site"='griffith stadium' AND "opponent"='philadelphia eagles';<|endoftext|>
<|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, "game_site" text, "record" text, "attendance" text ); Question: In what week was the attendance 25,000? <|assistant|> SELECT "week" FROM "schedule" WHERE "attendance"='25,000';<|endoftext|>
<|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, "game_site" text, "record" text, "attendance" text ); Question: What game site had a result at l 21–13? <|assistant|> SELECT "game_site" FROM "schedule" WHERE "result"='l 21–13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); Question: What score has 34-19-6 as the record? <|assistant|> SELECT "score" FROM "schedule_and_results" WHERE "record"='34-19-6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); Question: What is the average February that has 56 as the game? <|assistant|> SELECT AVG("february") FROM "schedule_and_results" WHERE "game"=56;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "track" text, "date" text, "pole_position" text, "fastest_race_lap" text, "winner" text, "team" text ); Question: What is the sum of team impul with the date of 8 july <|assistant|> SELECT SUM("round") FROM "race_calendar_and_results" WHERE "team"='team impul' AND "date"='8 july';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "track" text, "date" text, "pole_position" text, "fastest_race_lap" text, "winner" text, "team" text ); Question: what is the pole position of Round 9 <|assistant|> SELECT "pole_position" FROM "race_calendar_and_results" WHERE "round"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "track" text, "date" text, "pole_position" text, "fastest_race_lap" text, "winner" text, "team" text ); Question: what is the lowest round pole position of satoshi motoyama <|assistant|> SELECT MIN("round") FROM "race_calendar_and_results" WHERE "pole_position"='satoshi motoyama';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What was the home team with the away team of rushden & diamonds? <|assistant|> SELECT "home_team" FROM "third_round" WHERE "away_team"='rushden & diamonds';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: For the attendance of 2 january 1999 with a home team of plymouth argyle what is the tie no. ? <|assistant|> SELECT "tie_no" FROM "third_round" WHERE "attendance"='2 january 1999' AND "home_team"='plymouth argyle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_b_austria" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: Which Lost has a Drawn larger than 1, and Games smaller than 7? <|assistant|> SELECT MIN("lost") FROM "world_championship_group_b_austria" WHERE "drawn">1 AND "games"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_b_austria" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: Which Drawn has Games smaller than 7? <|assistant|> SELECT SUM("drawn") FROM "world_championship_group_b_austria" WHERE "games"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_b_austria" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: How many Games have a Drawn smaller than 1, and a Lost larger than 4? <|assistant|> SELECT COUNT("games") FROM "world_championship_group_b_austria" WHERE "drawn"<1 AND "lost">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: what is the winning driver in taunus <|assistant|> SELECT "winning_driver" FROM "other_grands_prix" WHERE "circuit"='taunus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "montreal_canadiens_4_quebec_nordiques_2" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Which Record has a Home of Montreal Canadiens and a Date of April 22? <|assistant|> SELECT "record" FROM "montreal_canadiens_4_quebec_nordiques_2" WHERE "home"='montreal canadiens' AND "date"='april 22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "montreal_canadiens_4_quebec_nordiques_2" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What Score has a Home of Montreal Canadiens and a Date of April 22? <|assistant|> SELECT "score" FROM "montreal_canadiens_4_quebec_nordiques_2" WHERE "home"='montreal canadiens' AND "date"='april 22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medallists_by_nation" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest number of bronze medals received by a nation with fewer than 0 gold medals? <|assistant|> SELECT MIN("bronze") FROM "medallists_by_nation" WHERE "gold"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medallists_by_nation" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest number of silver medals for a nation with fewer than 1 total medals? <|assistant|> SELECT MIN("silver") FROM "medallists_by_nation" WHERE "total"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total_all_around_medals_by_country_1963_" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Rank has a Total larger than 17, and a Silver smaller than 13? <|assistant|> SELECT "rank" FROM "total_all_around_medals_by_country_1963_" WHERE "total">17 AND "silver"<13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total_all_around_medals_by_country_1963_" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Total is the highest one that has a Gold of 1, and a Nation of czechoslovakia? <|assistant|> SELECT MAX("total") FROM "total_all_around_medals_by_country_1963_" WHERE "gold"=1 AND "nation"='czechoslovakia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total_all_around_medals_by_country_1963_" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How much Total has a Silver smaller than 0? <|assistant|> SELECT COUNT("total") FROM "total_all_around_medals_by_country_1963_" WHERE "silver"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total_all_around_medals_by_country_1963_" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Total has a Rank of 4, and a Silver smaller than 4? <|assistant|> SELECT AVG("total") FROM "total_all_around_medals_by_country_1963_" WHERE "rank"='4' AND "silver"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total_all_around_medals_by_country_1963_" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Silver is the lowest one that has a Bronze smaller than 1, and a Gold larger than 0? <|assistant|> SELECT MIN("silver") FROM "total_all_around_medals_by_country_1963_" WHERE "bronze"<1 AND "gold">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "filmfare_awards" ( "year" real, "song" text, "film" text, "music_director_s" text, "lyricist" text ); Question: WHich Year has a Music director(s) of anu malik? <|assistant|> SELECT SUM("year") FROM "filmfare_awards" WHERE "music_director_s"='anu malik';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "filmfare_awards" ( "year" real, "song" text, "film" text, "music_director_s" text, "lyricist" text ); Question: Which Year has a Film of baazigar? <|assistant|> SELECT MAX("year") FROM "filmfare_awards" WHERE "film"='baazigar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "filmfare_awards" ( "year" real, "song" text, "film" text, "music_director_s" text, "lyricist" text ); Question: Which Film has a Song of "ek ladki ko dekha"? <|assistant|> SELECT "film" FROM "filmfare_awards" WHERE "song"='\"ek ladki ko dekha\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "bulls_score" real, "opponent_score" real, "record" text, "streak" text ); Question: Which Record has an Opponent score smaller than 100, and a Date of december 6? <|assistant|> SELECT "record" FROM "schedule" WHERE "opponent_score"<100 AND "date"='december 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "bulls_score" real, "opponent_score" real, "record" text, "streak" text ); Question: Which Record has an Opponent of detroit, and an Opponent score smaller than 87? <|assistant|> SELECT "record" FROM "schedule" WHERE "opponent"='detroit' AND "opponent_score"<87;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "bulls_score" real, "opponent_score" real, "record" text, "streak" text ); Question: Which Opponent has a Streak of lost 1, and a Date of april 30? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "streak"='lost 1' AND "date"='april 30';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nc_rna_gene_prediction_software" ( "name" text, "number_of_sequences_number_of_sequences" text, "alignment_alignment_predicts_an_alignment" text, "structure_structure_predicts_structure" text, "link" text ); Question: What is the number of sequences for the name Alifoldz? <|assistant|> SELECT "number_of_sequences_number_of_sequences" FROM "nc_rna_gene_prediction_software" WHERE "name"='alifoldz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nc_rna_gene_prediction_software" ( "name" text, "number_of_sequences_number_of_sequences" text, "alignment_alignment_predicts_an_alignment" text, "structure_structure_predicts_structure" text, "link" text ); Question: What is the link with an alignment input and any number of sequences? <|assistant|> SELECT "link" FROM "nc_rna_gene_prediction_software" WHERE "alignment_alignment_predicts_an_alignment"='input' AND "number_of_sequences_number_of_sequences"='any';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nc_rna_gene_prediction_software" ( "name" text, "number_of_sequences_number_of_sequences" text, "alignment_alignment_predicts_an_alignment" text, "structure_structure_predicts_structure" text, "link" text ); Question: What is the alignment that predicts an alignment of the linuxbinary link? <|assistant|> SELECT "alignment_alignment_predicts_an_alignment" FROM "nc_rna_gene_prediction_software" WHERE "link"='linuxbinary';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nc_rna_gene_prediction_software" ( "name" text, "number_of_sequences_number_of_sequences" text, "alignment_alignment_predicts_an_alignment" text, "structure_structure_predicts_structure" text, "link" text ); Question: What is the link of rnaz that predicts an alignment of input? <|assistant|> SELECT "link" FROM "nc_rna_gene_prediction_software" WHERE "alignment_alignment_predicts_an_alignment"='input' AND "name"='rnaz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: Which Playoffs have a Year smaller than 2012, and an Open Cup of did not enter? <|assistant|> SELECT "playoffs" FROM "year_by_year" WHERE "year"<2012 AND "open_cup"='did not enter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: Which Year is the lowest one that has a Regular Season of 5th, atlantic, and a Division larger than 4? <|assistant|> SELECT MIN("year") FROM "year_by_year" WHERE "regular_season"='5th, atlantic' AND "division">4;<|endoftext|>