text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" real, "finish" real, "team" text ); Question: What is the lowest Year, when Finish is "29", and when Start is less than 24? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" real, "finish" real, "team" text ); Question: What is the highest Year, when Finish is "51", and when Start is less than 64? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" real, "finish" real, "team" text ); Question: What is Manufacturer, when Finish is greater than 29, when Start is less than 23, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the opposing team with 11 against? <|assistant|> SELECT "opposing_teams" FROM "2009"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the venue where Argentina was the opposing team in a test match? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the status of the game against France with more than 16 against? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: On what date is there a status of Five Nations and an against of 23? <|assistant|> SELECT "d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "w109" ( "model" text, "chassis_code" text, "production_time" text, "number_built" real, "engine" text ); Question: What model has a number built smaller than 6.526, and the Chassis code w109.01...
<|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" real ); Question: What was the record at Tiger Stadium? <|assistant|> SEL...
<|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" real ); Question: What was the attendance on September 19, 1971, after week 1? <|assistant|> SELECT AVG("atten...
<|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: How many Bronze medals did the team ranked 1 win? <|assistant|> SELECT "bronze"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loan_in" ( "date_from" text, "date_to" text, "position" text, "name" text, "from" text ); Question: What is the name of the person who plays the GK position and is from the Wolverhampton Wander...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loan_in" ( "date_from" text, "date_to" text, "position" text, "name" text, "from" text ); Question: What is the date for Liverpool, and player Robbie Threlfall? <|assistant|> SELECT "date_from"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loan_in" ( "date_from" text, "date_to" text, "position" text, "name" text, "from" text ); Question: What is the date for Watford and player Lionel Ainsworth? <|assistant|> SELECT "date_to" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loan_in" ( "date_from" text, "date_to" text, "position" text, "name" text, "from" text ); Question: What is the date for the MF position and player Jennison Myrie-Williams? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loan_in" ( "date_from" text, "date_to" text, "position" text, "name" text, "from" text ); Question: What is the position of the player from Leicester City? <|assistant|> SELECT "position" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); Question: What Goals has a Team of zamora, and Average larger than 0.89? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); Question: What is the sum of Goals win an Average larger than 1? <|assistant|> SELECT COUNT("g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); Question: What is the smallest Matches with a Goalkeeper of josé bermúdez, and Goals larger th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); Question: What is the total of Matches with Goals of 18, and an Average larger than 0.55? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); Question: What is the largest Average with Goals smaller than 34, Matches larger than 30, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); Question: Which To par has a Score of 78-74-71-75=298? <|assistant|> SELECT AVG(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); Question: How much To par has a Country of united states, and a Money ($) of 90?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, "new_entries_this_round" text, "prize_money" text ); Question: What is are the highest matches with £5,000 in prize money?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, "new_entries_this_round" text, "prize_money" text ); Question: What is the prize money amount after match 1, with 102 new ...
<|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: In what place did Darren Clarke finish? <|assistant|> SELECT "place" FROM "third_round" WHER...
<|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 was Ernie Els's score? <|assistant|> SELECT "score" FROM "third_round" WHERE "player"='...
<|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: In what place did Tom Lehman finish? <|assistant|> SELECT "place" FROM "third_round" WHERE "...
<|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: In what place did the golfer that scored 68-70-69=207 finish? <|assistant|> SELECT "place" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "pos" text, "class" text, "entrant" text, "drivers" text, "laps" real ); Question: What were the highest laps for glenn seton gregg hansford? <|assistant|> SELECT MAX("laps") FROM "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "pos" text, "class" text, "entrant" text, "drivers" text, "laps" real ); Question: What driver had 101 laps? <|assistant|> SELECT "drivers" FROM "results" WHERE "laps"=101;<|endoftex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); Question: Who was the opponent when the attendance was 87,453? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); Question: What was the attendance when they had a ranking of #4? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "pos" real, "club" text, "points" real, "played" real, "wins" real, "draw" real, "lost" real ); Question: What's the average Played for a draw of 5 and more than 43 points? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "undersecretaries" ( "romanised_name" text, "chinese_name" text, "age_at_appointment" real, "foreign_nationality" text, "portfolio_attachment" text, "govt_salary" text ); Question: What is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "undersecretaries" ( "romanised_name" text, "chinese_name" text, "age_at_appointment" real, "foreign_nationality" text, "portfolio_attachment" text, "govt_salary" text ); Question: What is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "undersecretaries" ( "romanised_name" text, "chinese_name" text, "age_at_appointment" real, "foreign_nationality" text, "portfolio_attachment" text, "govt_salary" text ); Question: What is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" text, "tournaments_played" real, "cuts_made" real, "wins" real, "top_10s" real, "best_finish" text, "earnings" text, "money_list_rank" text, "scoring_a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); Question: Where did naylor move from? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); Question: What type ends in 2011, has a free...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); Question: What is the type of sco country? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); Question: What is the type that ends in 2009...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); Question: What is the transfer fee of assoum...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); Question: What is the ends with a free trans...
<|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, "result" text, "attendance" real ); Question: Which Week has Attendance of 51,558? <|assistant|> SELECT MIN("week") FROM "regular_se...
<|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, "result" text, "attendance" real ); Question: Which Attendance has a Result of w 24-14, and a Week smaller than 7? <|assistant|> SEL...
<|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, "result" text, "attendance" real ); Question: Which Attendance has an Opponent of at los angeles rams, and a Week larger than 12? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text ); Question: Which method has a record of 4-0? <|assistant|> SELECT "method" FROM "kickboxing_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text ); Question: What is the record when the method is decision and the location is Martigues, Fra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text ); Question: Which location has a method of decision and Nikos Tsoukalas for an opponent? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text ); Question: What is the method when the location is Auckland, New Zealand, Darren Berry as th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text ); Question: What is the location when the record is 9-7? <|assistant|> SELECT "location" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text ); Question: What is the location when KO is the method, the result is a win, and the record i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fall_1998" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fall_1998" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fall_1998" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fall_1998" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fall_1998" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fall_1998" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "arab_violence" ( "conflicts_prior_to_israel_s_independence" text, "military_deaths" text, "civilian_deaths" text, "total_deaths" text, "military_and_or_civilian_wounded" text, "total_casualtie...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "arab_violence" ( "conflicts_prior_to_israel_s_independence" text, "military_deaths" text, "civilian_deaths" text, "total_deaths" text, "military_and_or_civilian_wounded" text, "total_casualtie...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "arab_violence" ( "conflicts_prior_to_israel_s_independence" text, "military_deaths" text, "civilian_deaths" text, "total_deaths" text, "military_and_or_civilian_wounded" text, "total_casualtie...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "arab_violence" ( "conflicts_prior_to_israel_s_independence" text, "military_deaths" text, "civilian_deaths" text, "total_deaths" text, "military_and_or_civilian_wounded" text, "total_casualtie...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "arab_violence" ( "conflicts_prior_to_israel_s_independence" text, "military_deaths" text, "civilian_deaths" text, "total_deaths" text, "military_and_or_civilian_wounded" text, "total_casualtie...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: Which country scored 70-68-71-71=280? <|assistant|> SELECT "country" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_by_team" ( "champions" text, "runners_up" text, "third_place" text, "fourth_place" text, "semi_finalists" text ); Question: What champions have 1 (2009) as the semi-finalists? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_by_team" ( "champions" text, "runners_up" text, "third_place" text, "fourth_place" text, "semi_finalists" text ); Question: What fourth-place has 2 (1999, 2005) as the runner(s)-up?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_by_team" ( "champions" text, "runners_up" text, "third_place" text, "fourth_place" text, "semi_finalists" text ); Question: What semi-finalists has 2 (1993, 2003) as the fourth-plac...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_by_team" ( "champions" text, "runners_up" text, "third_place" text, "fourth_place" text, "semi_finalists" text ); Question: What runner(s)-up has 1 (2013) as the champions? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manage" text, "manner" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text ); Question: What was the day of vacancy ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manage" text, "manner" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text ); Question: Who was the outgoing manager...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); Question: How many matches did Atlético Ciudad have with an average higher than 0.61? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); Question: Who is the goalkeeper with fewer than 24 goals? <|assistant|> SELECT "goalkeeper" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: What is the to par for the player with fewer than 148 total points? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spring_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spring_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spring_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spring_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spring_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "v" ( "school" text, "suburb_town" text, "years" text, "founded" real, "website" text ); Question: What school year is vaucluse public school? <|assistant|> SELECT "years" FROM "v" WHERE "school...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "v" ( "school" text, "suburb_town" text, "years" text, "founded" real, "website" text ); Question: What are the websites of schools that were founded in 1872? <|assistant|> SELECT "website" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "v" ( "school" text, "suburb_town" text, "years" text, "founded" real, "website" text ); Question: On average, when were vineyard schools founded? <|assistant|> SELECT AVG("founded") FROM "v" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_55_25_30" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent" text, "score" text ); Question: What was the surface later than 1979, for the Melbourne Indoor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_55_25_30" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent" text, "score" text ); Question: What is the earliest date when the championship was Monterrey ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_55_25_30" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent" text, "score" text ); Question: What is the score when the outcome was runner-up, earlier than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "geelong_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: How many Losses have a Geelong FL of newtown & chilwell, and more than 11 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "show" text, "date" text, "official_ratings_millions" real, "weekly_rank" text, "share" text ); Question: When were the shares 39.1%? <|assistant|> SELECT "date" FROM "ratings" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "show" text, "date" text, "official_ratings_millions" real, "weekly_rank" text, "share" text ); Question: Which show aired on 19 april? <|assistant|> SELECT "show" FROM "ratings" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_e_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "main_language_s" text, "result" text ); Question: What was the original t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_e_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "main_language_s" text, "result" text ); Question: What was the original t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "not_all_data_are_listed_only_select_date" ( "date_s" text, "city_state" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text ); Question: How much were tickets for ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "not_all_data_are_listed_only_select_date" ( "date_s" text, "city_state" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text ); Question: How many tickets were sold...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "not_all_data_are_listed_only_select_date" ( "date_s" text, "city_state" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text ); Question: How much were tickets for ...