text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "attendance_at_home_games" ( "round" text, "date" text, "opponent" text, "score_aufc_away" text, "attendance" real, "weekday" text ); Question: Which Attendance has an Opponent of perth glory,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_1_newcomers_race_c" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What is the lowest rank of rider darren gilpin? <|assistant|> SELECT MIN("rank") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_1_newcomers_race_c" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What is the highest rank of rider colin martin? <|assistant|> SELECT MAX("rank") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_regular_national_weekly_schedule" ( "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text ); Question: What is shown on Tuesday when Monday is showing Fox Spor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_regular_national_weekly_schedule" ( "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text ); Question: What is shown on Friday when Tuesday is Jay Mohr Sports?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_regular_national_weekly_schedule" ( "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text ); Question: What is shown on Friday when Monday is Fox Sports Primet...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_regular_national_weekly_schedule" ( "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text ); Question: What is shown on Tuesday when Thursday shows Fox Sports ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_regular_national_weekly_schedule" ( "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text ); Question: What is shown on Tuesday when Wednesday is Fox Sports To...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classic_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); Question: Which capacity has the class 4c3h? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classic_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); Question: What is the navigator for James? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classic_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); Question: How much time did Coad make when the mar...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classic_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); Question: What class has a capacity smaller than 3...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "figures_of_the_sports_associations_in_th" ( "1985" text, "1990" text, "2004" real, "2005" real, "2006" real, "2007" real ); Question: Which 1990 has a 2005 smaller than 5,361, and a 2007 smal...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real ); Question: What is the total number of places for a song with ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What is the lowest numbered game against Phoenix with a record of 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ireland" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: what is the soap opera when the duration is 18 years and the character is miley byrne? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ireland" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: what is the years when the duration is 13 years and the character is renee phelan? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ireland" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: what is the years when the soap opera is glenroe and the actor is mick lally? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ireland" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: who is the actor when the character is dinny byrne? <|assistant|> SELECT "actor" FROM "i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ireland" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: what is the soap opera when the actor is dave duffy? <|assistant|> SELECT "soap_opera" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the score for the game with an 11 tie number? <|assistant|> SELECT "scor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What date was Ipswich Town the away team? <|assistant|> SELECT "date" FROM "four...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text ); Question: Who is the owner with a Hot Adult Contemporary format? <|assistant|> SELECT "owner" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text ); Question: What's the call sign of The Q? <|assistant|> SELECT "call_sign" FROM "radio" WHERE "brandi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text ); Question: What's the call sign for Jack FM? <|assistant|> SELECT "call_sign" FROM "radio" WHERE "bra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1928_to_1933" ( "year" real, "main" text, "hessen" text, "rhein" text, "saar" text ); Question: What is the average year for a Saar of FK Pirmasens and Hessen of Wormatia Worms? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1928_to_1933" ( "year" real, "main" text, "hessen" text, "rhein" text, "saar" text ); Question: What is the smallest year for a Main of Eintracht Frankfurt, Rhein of Waldhof Mannheim, Sarr of F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1928_to_1933" ( "year" real, "main" text, "hessen" text, "rhein" text, "saar" text ); Question: Which year has a Main of Eintracht Frankfurt and Hessen of FSV Mainz 05? <|assistant|> SELECT "ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1928_to_1933" ( "year" real, "main" text, "hessen" text, "rhein" text, "saar" text ); Question: Who was the Hessen the year that Saar was FK Pirmasens? <|assistant|> SELECT "hessen" FROM "1928_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1934" ( "title" text, "series" text, "director" text, "production_num" real, "release_date" text ); Question: What's the series of Buddy The Woodsman by director Jack King? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1934" ( "title" text, "series" text, "director" text, "production_num" real, "release_date" text ); Question: Who was the director of the movie having a release date of 1934-09-15, an MM Series...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1934" ( "title" text, "series" text, "director" text, "production_num" real, "release_date" text ); Question: Who's the director of Buddy of the Apes? <|assistant|> SELECT "director" FROM "1934...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1934" ( "title" text, "series" text, "director" text, "production_num" real, "release_date" text ); Question: What's the title of the film directed by Friz Freleng with an MM Series, production...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "notes" text ); Question: What is the lowest time for Paulo Villar in lane 9? <|assistant|> SELECT MI...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "notes" text ); Question: What is the nationality of lane 4? <|assistant|> SELECT "nationality" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "notes" text ); Question: What is the nationality with a 13.21 time? <|assistant|> SELECT "nationalit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finances" ( "year" text, "total_support_and_revenue" text, "total_expenses" text, "increase_in_net_assets" text, "net_assets_at_end_of_year" text ); Question: With an increase in net assets of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finances" ( "year" text, "total_support_and_revenue" text, "total_expenses" text, "increase_in_net_assets" text, "net_assets_at_end_of_year" text ); Question: What increase in net assets also h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finances" ( "year" text, "total_support_and_revenue" text, "total_expenses" text, "increase_in_net_assets" text, "net_assets_at_end_of_year" text ); Question: With the net assets at end of year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finances" ( "year" text, "total_support_and_revenue" text, "total_expenses" text, "increase_in_net_assets" text, "net_assets_at_end_of_year" text ); Question: What net assets at end of year has...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finances" ( "year" text, "total_support_and_revenue" text, "total_expenses" text, "increase_in_net_assets" text, "net_assets_at_end_of_year" text ); Question: When the increase in net assets is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finances" ( "year" text, "total_support_and_revenue" text, "total_expenses" text, "increase_in_net_assets" text, "net_assets_at_end_of_year" text ); Question: What net assets at end of year als...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many Gold medals did Puerto Rico receive with 1 Silver and a Total of 1 or ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the Total number of medals for the Nation with 7 or less Bronze medals ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many Silver medals did the Nation with 10 or more Bronze receive? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1937_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: what is the average wins when draws is less than 0? <|assistant|> SELECT AVG("wins") FROM "1937...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1937_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: what is the average losses when the club is warrnambool and wins is less than 12? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1937_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: what is the most losses when the club is terang and draws is less than 0? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1937_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What is the sum of losses when wins is more than 6, club is camperdown and against is more than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_performance" ( "season" text, "competition" text, "round" text, "played" text, "drew" text, "lost" text ); Question: What is the drew for the 1999-2000 season when they were in t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_performance" ( "season" text, "competition" text, "round" text, "played" text, "drew" text, "lost" text ); Question: What competition did they have 1 lost, 3 draws, and played 9 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_performance" ( "season" text, "competition" text, "round" text, "played" text, "drew" text, "lost" text ); Question: What is the number of draws when the played 9 and lost 3? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television_stations" ( "call_sign" text, "broadcast_channel" real, "digital_psip" real, "cable_channel" real, "network" text ); Question: How many cable channels have callsign CBFT-DT? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television_stations" ( "call_sign" text, "broadcast_channel" real, "digital_psip" real, "cable_channel" real, "network" text ); Question: What is the lowest Digital PSIP for channels over 29 wi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television_stations" ( "call_sign" text, "broadcast_channel" real, "digital_psip" real, "cable_channel" real, "network" text ); Question: What is the Digital PSIP for channels over 15 with call...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "club" text, "league_division" text, "home_ground" text, "location" text, "position_in_2012_13" text ); Question: Where was the location of the Mong Kok Stadium? <|assistant|> SELECT "loca...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "club" text, "league_division" text, "home_ground" text, "location" text, "position_in_2012_13" text ); Question: Which club, had a home ground of n/a? <|assistant|> SELECT "club" FROM "s"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "club" text, "league_division" text, "home_ground" text, "location" text, "position_in_2012_13" text ); Question: What is the location for the first division, Sun Pegasus Club? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "club" text, "league_division" text, "home_ground" text, "location" text, "position_in_2012_13" text ); Question: What division is Sai Kung in? <|assistant|> SELECT "league_division" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "club" text, "league_division" text, "home_ground" text, "location" text, "position_in_2012_13" text ); Question: What league is Sun Source in? <|assistant|> SELECT "league_division" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "years" text, "type_code" text, "power_rpm" text, "torque_rpm" text ); Question: What was the model that had years 2004-? <|assistant|> SELECT "model" FROM "engines" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "years" text, "type_code" text, "power_rpm" text, "torque_rpm" text ); Question: What was the torque@rpm of the sl 65 amg? <|assistant|> SELECT "torque_rpm" FROM "engin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "years" text, "type_code" text, "power_rpm" text, "torque_rpm" text ); Question: What was the model that had years 2004-? <|assistant|> SELECT "model" FROM "engines" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "city" text, "team_name" text, "enrollment_08_09" real, "ihsaa_class" text, "ihsaa_class_football" text, "county" text, "year_joined" real ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "city" text, "team_name" text, "enrollment_08_09" real, "ihsaa_class" text, "ihsaa_class_football" text, "county" text, "year_joined" real ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_8" ( "rank" real, "lane" real, "athlete" text, "time_sec" real, "notes" text ); Question: What is the rank for the person with time 11.14? <|assistant|> SELECT AVG("rank") FROM "heat_8" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_8" ( "rank" real, "lane" real, "athlete" text, "time_sec" real, "notes" text ); Question: What is the rank when time is 11.15 and lane is bigger than 7 with notes Q, PB? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_8" ( "rank" real, "lane" real, "athlete" text, "time_sec" real, "notes" text ); Question: What is the lane for notes Q, SB and time less than 11.22? <|assistant|> SELECT SUM("lane") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_8" ( "rank" real, "lane" real, "athlete" text, "time_sec" real, "notes" text ); Question: Which athlete is ranked less than 5 with time over 11.22? <|assistant|> SELECT "athlete" FROM "hea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws_p_k_wins_p_k_losses" text, "losses" real, "scored" real, "conceded" real, "points" real ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "lane" real, "name" text, "nationality" text, "reaction" real, "time" real ); Question: How many lanes does Australia have with a reaction smaller than 0.138? <|assistant|> SELECT COUN...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "lane" real, "name" text, "nationality" text, "reaction" real, "time" real ); Question: Who had a reaction larger than 0.17400000000000002 and a lane larger than 6? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passenger_ships" ( "ship" text, "built" real, "in_service_for_nal" text, "type" text, "tonnage" text ); Question: The ship MS Vistafjord has what in service for NAL? <|assistant|> SELECT "in_se...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passenger_ships" ( "ship" text, "built" real, "in_service_for_nal" text, "type" text, "tonnage" text ); Question: The ship SSBergensfjord built before 1973 has what tonnage? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: Which nationality has a time of 50.92? <|assistant|> SELECT "nationality" FROM "semifinal_2" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What is the time with fewer than 5 lanes for the United States? <|assistant|> SELECT SUM("time...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "att_cmp" text, "td_int" text, "avg_g" real ); Question: Which Att-Cmp has a GP-GS of 7-1? <|assistant|> SELECT "att_cmp" FROM "passing" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "att_cmp" text, "td_int" text, "avg_g" real ); Question: Which Att-Cmp has a TD-INT of 7-8? <|assistant|> SELECT "att_cmp" FROM "passing" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "att_cmp" text, "td_int" text, "avg_g" real ); Question: Which TD-INT has an Effic larger than 111.4? <|assistant|> SELECT "td_int" FROM "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "wimmera_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the total number of losses with less than 6 wins and less than 0 d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "wimmera_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the average number of against with less than 10 losses, more than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "wimmera_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the total number of byes with more than 0 losses and 1526 against?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "wimmera_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the lowest number of draws with more than 2 byes? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "wimmera_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the lowest against of the wimmera fl warrack eagles, which have le...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_number_of_six_day_victories" ( "name" text, "nationality" text, "races_won" real, "races_ridden" real, "win_average" real ); Question: How many races did the German racer that won less ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_number_of_six_day_victories" ( "name" text, "nationality" text, "races_won" real, "races_ridden" real, "win_average" real ); Question: What is the average win as a percentage of German ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: what is the highest top-5 when cuts made is more than 39?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: what is the highest events when wins is more than 0 and c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: what is the highest top-5 when wins is more than 1? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: How many times is the tournament the masters tournament a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_5_senior_manx_grand_prix" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What ran has noel patterson as the rider? <|assistant|> SELECT "rank" FROM "race_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_5_senior_manx_grand_prix" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What time has jules croft as the rider? <|assistant|> SELECT "time" FROM "race_5_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_5_senior_manx_grand_prix" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What team has adam barclay as the rider? <|assistant|> SELECT "team" FROM "race_5...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "manchester_and_district_senior_cup" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text ); Question: What Round has h/a hurst <|assistant|> SELECT "round" FROM "manches...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "manchester_and_district_senior_cup" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text ); Question: what game ended f-a with a round of round 1 replay <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "manchester_and_district_senior_cup" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text ); Question: what is the h/a round of round 2 <|assistant|> SELECT "h_a" FROM "m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "miller_grand_am_cup_200_gs_class_only_re" ( "class" text, "class_pos" real, "driver" text, "team_car" text, "laps" real, "best_lap" text, "on_lap" real ); Question: What is the lowest laps ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "emmy_awards" ( "year" real, "category" text, "recipients_and_nominees" text, "role_episode" text, "result" text ); Question: What was the Role/Episode after 2006 with Ellen Burstyn as a recipie...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "emmy_awards" ( "year" real, "category" text, "recipients_and_nominees" text, "role_episode" text, "result" text ); Question: For which Category was Outstanding Main Title Design a Recipient and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "emmy_awards" ( "year" real, "category" text, "recipients_and_nominees" text, "role_episode" text, "result" text ); Question: Which Category was from before 2009 with a Role/Episode of Libby Gol...