text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polling" ( "source" text, "date" text, "clinton" text, "obama" text, "undecided" text ); Question: When has a Source of surveyusa and a Obama of 54%? <|assistant|> SELECT "date" FROM "polling" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polling" ( "source" text, "date" text, "clinton" text, "obama" text, "undecided" text ); Question: When has a Source of rasmussen reports? <|assistant|> SELECT "date" FROM "polling" WHERE "sour...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polling" ( "source" text, "date" text, "clinton" text, "obama" text, "undecided" text ); Question: Which Source has a Clinton of 39% and a Undecided of 7%? <|assistant|> SELECT "source" FROM "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" ( "name" text, "date_of_birth" text, "height" real, "weight" real, "spike" real, "block" real ); Question: What is the Date of Birth with a Block tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_viewed_channels" ( "position" real, "channel" text, "launch_date" real, "owner" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_viewed_channels" ( "position" real, "channel" text, "launch_date" real, "owner" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_viewed_channels" ( "position" real, "channel" text, "launch_date" real, "owner" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_viewed_channels" ( "position" real, "channel" text, "launch_date" real, "owner" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "city" text, "state" text, "aam_accredited" text, "aam_member" text, "astc_member" text ); Question: What is ASTC Member, when State is Arkansas, when AAM Member is No, and when AAM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "city" text, "state" text, "aam_accredited" text, "aam_member" text, "astc_member" text ); Question: What is City, when State is Florida, when AAM Member is No, and when AAM Accredi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "city" text, "state" text, "aam_accredited" text, "aam_member" text, "astc_member" text ); Question: What is City, when ASTC Member is No, when State is California, and when AAM Mem...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "city" text, "state" text, "aam_accredited" text, "aam_member" text, "astc_member" text ); Question: What is State, when AAM Accredited is No, when ASTC Member is No, and when City ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "city" text, "state" text, "aam_accredited" text, "aam_member" text, "astc_member" text ); Question: What is City, when State is California, when AAM Accredited is No, when ASTC Mem...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "city" text, "state" text, "aam_accredited" text, "aam_member" text, "astc_member" text ); Question: What is AAM Member, when AAM Accredited is No, when State is California, when AS...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "country" text, "team" text, "individual" text, "location" text, "runners_up" text ); Question: Who were the runners-up when the individual winner was Tiger Woods? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "country" text, "team" text, "individual" text, "location" text, "runners_up" text ); Question: How many years was the individual winner from the United States was Tig...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "country" text, "team" text, "individual" text, "location" text, "runners_up" text ); Question: What is the earliest year that the tournament was played in Cape Town, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "topscorers_in_order_of_league_goals" ( "player" text, "club" text, "league" real, "fa_cup" real, "fa_trophy" real, "league_cup" real, "total" real ); Question: What is the highest league fo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "season" real, "date" text, "location" text, "driver" text, "chassis" text, "engine" text, "team" text ); Question: Who is the Driver, when the Date is October 6? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "season" real, "date" text, "location" text, "driver" text, "chassis" text, "engine" text, "team" text ); Question: What is the total number of Seasons, when the Engine is Coswor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "season" real, "date" text, "location" text, "driver" text, "chassis" text, "engine" text, "team" text ); Question: Who is the Driver, when the Engine is Chevrolet, and when the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "season" real, "date" text, "location" text, "driver" text, "chassis" text, "engine" text, "team" text ); Question: What is the sum of Seasons, when the Team is Penske Racing, an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bridges_under_construction" ( "name" text, "main_span_metres" text, "main_span_feet" text, "year_to_open" real, "country" text ); Question: What was the Year to Open for the Dandeung Bridge? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bridges_under_construction" ( "name" text, "main_span_metres" text, "main_span_feet" text, "year_to_open" real, "country" text ); Question: What is the Main span of the Qincaobei Bridge <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bridges_under_construction" ( "name" text, "main_span_metres" text, "main_span_feet" text, "year_to_open" real, "country" text ); Question: What is the Main span of the bridge from China with a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1966_state_election_results" ( "office" text, "republican_ticket" text, "democratic_ticket" text, "conservative_ticket" text, "liberal_ticket" text, "socialist_labor_ticket" text, "socialist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1966_state_election_results" ( "office" text, "republican_ticket" text, "democratic_ticket" text, "conservative_ticket" text, "liberal_ticket" text, "socialist_labor_ticket" text, "socialist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1966_state_election_results" ( "office" text, "republican_ticket" text, "democratic_ticket" text, "conservative_ticket" text, "liberal_ticket" text, "socialist_labor_ticket" text, "socialist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1966_state_election_results" ( "office" text, "republican_ticket" text, "democratic_ticket" text, "conservative_ticket" text, "liberal_ticket" text, "socialist_labor_ticket" text, "socialist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1966_state_election_results" ( "office" text, "republican_ticket" text, "democratic_ticket" text, "conservative_ticket" text, "liberal_ticket" text, "socialist_labor_ticket" text, "socialist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: If the call sign is w291ch what's the ERP W correspond...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: For the call sign w242at what's the city the license p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: What's the Class for the city the license plate was is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many gold have a bronze of 1, a rank smaller than 6, and a total less than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many France bronze have a gold of more than 1 and a rank of 0? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many gold have a silver of 1 and a bronze of 0? <|assistant|> SELECT SUM("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "accidents_and_incidents" ( "location" text, "aircraft" text, "tail_number" text, "aircraft_damage" text, "fatalities" text ); Question: What is the Aircraft when Kabul was the location, unknown...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "accidents_and_incidents" ( "location" text, "aircraft" text, "tail_number" text, "aircraft_damage" text, "fatalities" text ); Question: What is the Fatalities when the tail number was unknown a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "accidents_and_incidents" ( "location" text, "aircraft" text, "tail_number" text, "aircraft_damage" text, "fatalities" text ); Question: What is the location for the an-12b aircraft? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "accidents_and_incidents" ( "location" text, "aircraft" text, "tail_number" text, "aircraft_damage" text, "fatalities" text ); Question: What location had 25/25 fatalities? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "accidents_and_incidents" ( "location" text, "aircraft" text, "tail_number" text, "aircraft_damage" text, "fatalities" text ); Question: What tail number was on the an-26, with 25/25 fatalities?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "accidents_and_incidents" ( "location" text, "aircraft" text, "tail_number" text, "aircraft_damage" text, "fatalities" text ); Question: What type of aircraft was the plane with a tail number of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_league" ( "team" text, "match" real, "points" real, "draw" real, "lost" real ); Question: What is the total number of Points from a Match that is larger than 18? <|assistant|> SELECT COUN...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "racing_record" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "points" text, "position" text ); Question: In what Season was the Series Formula Renault 3.5 series w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "racing_record" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "points" text, "position" text ); Question: What was the Series in 2009? <|assistant|> SELECT "series"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "racing_record" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "points" text, "position" text ); Question: How many Wins in the Year with more than 16 Races? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "racing_record" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "points" text, "position" text ); Question: In what Season were then less than 3 Races with less than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eighth_finals" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Which 1st leg has a Team #1 of ummc ekaterinburg? <|assistant|> SELECT "1st_leg" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eighth_finals" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Which Team #2 has a 2nd leg of 79 - 74 (ot)? <|assistant|> SELECT "team_num2" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eighth_finals" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Which Team #2 has a 1st leg of 70 - 44? <|assistant|> SELECT "team_num2" FROM "eight...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eighth_finals" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Which Team #2 has a Team #1 of gambrinus sika brno? <|assistant|> SELECT "team_num2"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the Goal number in Råsunda, Stockholm with a Result of 2–2?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the Result of Goal number 3? <|assistant|> SELECT "result" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "date" text, "opponent" text, "score" text, "site_stadium" text, "record" text ); Question: On what day was a game played at Reese Smith Field, with a score of 4-3? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "date" text, "opponent" text, "score" text, "site_stadium" text, "record" text ); Question: What was the score for the game played on May 10 at Alex Box Stadium? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "date" text, "opponent" text, "score" text, "site_stadium" text, "record" text ); Question: What was the score for the game played at Sarge Frye Field? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "date" text, "opponent" text, "score" text, "site_stadium" text, "record" text ); Question: On what date was a game played, which left the team with a record of 5-7? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "date" text, "opponent" text, "score" text, "site_stadium" text, "record" text ); Question: What was the score of the game played at Harmon Stadium on February 24? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "date" text, "opponent" text, "score" text, "site_stadium" text, "record" text ); Question: Where was the game on May 9 played? <|assistant|> SELECT "site_stadium" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the greatest position ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the fewest lost with a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Team Estudantes Paulista with ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the margin of victory on Apr 8, 1979? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the winning score when the margin of victory was 2 s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the margin of victory when the winning score was −5 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which tournament had a winning score of −5 (69-69-73=211)? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: When was the winning score −6 (69-69-73-71=282)? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Who is the opponent of the game played on November 20, 1995? <|assistant|> SELECT "opponent"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_2_results" ( "name" text, "team" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the highest Grid with a Name that is jamie whincup? <|assistant|> SELECT MAX("grid...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_2_results" ( "name" text, "team" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the Team with a Lap that is 5? <|assistant|> SELECT "team" FROM "race_2_results" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_nfl_draft_selections" ( "round" real, "pick" real, "name" text, "position" text, "college" text ); Question: What's the lowest round Justin Forsett was drafted in, with a draft pick larger...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_nfl_draft_selections" ( "round" real, "pick" real, "name" text, "position" text, "college" text ); Question: What's the average round the position of RB was drafted? <|assistant|> SELECT A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_nfl_draft_selections" ( "round" real, "pick" real, "name" text, "position" text, "college" text ); Question: What's the average round Red Bryant was drafted with a pick larger than 121? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "home_team" text, "away_team" text, "overall_record" text, "divisional_record" text ); Question: Can you tell me the Overall Record that has the Away Team of miami? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "home_team" text, "away_team" text, "overall_record" text, "divisional_record" text ); Question: Can you tell me the Overall Record that has the Week of 3? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "home_team" text, "away_team" text, "overall_record" text, "divisional_record" text ); Question: Can you tell me the Divisional Record that has the Away Team of dallas?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "home_team" text, "away_team" text, "overall_record" text, "divisional_record" text ); Question: Can you tell me the Overall Record that has the Week smaller than 16, a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "home_team" text, "away_team" text, "overall_record" text, "divisional_record" text ); Question: Can you tell me the Week that has the Home Team of detroit, and the Div...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_6_july_16_2008" ( "couple" text, "style" text, "music" text, "choreographer_s" text, "results" text ); Question: Who is the choreographer with the style pas de deux? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "autocephalous_church_since_1967" ( "name" text, "start_of_reign" real, "end_of_reign" text, "birth_name" text, "title" text ); Question: What is the end of reign for Dimitar Stojkovski? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "autocephalous_church_since_1967" ( "name" text, "start_of_reign" real, "end_of_reign" text, "birth_name" text, "title" text ); Question: What is the title of the person who started their reign ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "autocephalous_church_since_1967" ( "name" text, "start_of_reign" real, "end_of_reign" text, "birth_name" text, "title" text ); Question: What is the date of birth of the person who started thei...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalscorers" ( "name" text, "career" text, "apps" real, "goals" real, "average" real ); Question: What is the average number for goals less than 73? <|assistant|> SELECT COUNT("average") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalscorers" ( "name" text, "career" text, "apps" real, "goals" real, "average" real ); Question: What is the total average for 1990-1995, and goals less than 90? <|assistant|> SELECT COUNT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What was the lowest Position...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the sum of games Pla...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What was the Difference of t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Which attendance number was taken on november 21, 2004? <|assistant|> SELECT "attendance" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Which attendance number was taken in a week less than 16 when the Washington Redskins were t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: How many weeks had the Green Bay packers as opponents? <|assistant|> SELECT SUM("week") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_friday_saturday" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What Country had a Score of 71-67=138? <|assistant|> SELECT "country" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_friday_saturday" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What Country had a Score of 75-68=143? <|assistant|> SELECT "country" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sri_lanka" ( "name" text, "innings" real, "runs_scored" real, "balls_faced" real, "average" real, "s_r" real ); Question: How many total innings have an average under 6.33, strike rate under ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sri_lanka" ( "name" text, "innings" real, "runs_scored" real, "balls_faced" real, "average" real, "s_r" real ); Question: What is the number of averages having a balls faced over 297 and more...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sri_lanka" ( "name" text, "innings" real, "runs_scored" real, "balls_faced" real, "average" real, "s_r" real ); Question: What is the smallest number of innings with a strike rate of 72.05 an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sri_lanka" ( "name" text, "innings" real, "runs_scored" real, "balls_faced" real, "average" real, "s_r" real ); Question: What is the sum of balls faced associated with a strike rate over 48....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_progression" ( "record" text, "athlete" text, "nation" text, "venue" text, "date" text ); Question: What is the Nation with a Date that is may 6, 1991? <|assistant|> SELECT "nation" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_progression" ( "record" text, "athlete" text, "nation" text, "venue" text, "date" text ); Question: What is the Record with a Date that is may 20, 1961? <|assistant|> SELECT "record" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_5_1_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponent_in_final" text, "score_in_final" text ); Question: Who was the partner of the winn...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" real, "song" text, "artist" text ); Question: What is the Volume:Issue for the song " stars on 45 medley "? <|assistant|> SE...