text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which year has a total of 0 points and a chassis of Toleman tg181? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the latest year that has more than 5 points and a renault ef15 1.5...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which year had a toleman tg183 chassis? <|assistant|> SELECT COUNT("year")...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What is the time for tony myres? <|assistant|> SELECT "time" FROM "junior_classic_race" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: Name the speed for andy reynolds <|assistant|> SELECT "speed" FROM "junior_classic_race" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: Name the total number of rank for 348cc petty manx <|assistant|> SELECT COUNT("rank") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: Name the speed for 1:36.46.93 <|assistant|> SELECT "speed" FROM "junior_classic_race" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the away team score of Melbourne?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the away team score for South Mel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What away team has a score of 12.10 (82)?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c_liners" ( "model" text, "build_year" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: What is Prime Mover of Model FM CFA-16-4? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" real ); Question: with a 1st prize larger than 315,000 what was...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" real ); Question: what was the purse ($) in illinois? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" real ); Question: who won with a score of 199 (-14) on oct 31? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spanish_national_championship" ( "city" text, "position" real, "event" text, "year" real, "score" text ); Question: How many years did he play in santiago de compostela? <|assistant|> SELECT SU...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2006" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2006" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2006" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2006" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2006" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which away team has a score of 17.4 (106)...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the average crowd size for corio ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the average crowd size for Brunsw...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990_1999" ( "year" real, "competition" text, "date" text, "location" text, "score" text, "result" text ); Question: What day did the team play in murcia with a score of 0-3 after 1992? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990_1999" ( "year" real, "competition" text, "date" text, "location" text, "score" text, "result" text ); Question: What location did the team win before 1998 in the europe/africa zone, grou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990_1999" ( "year" real, "competition" text, "date" text, "location" text, "score" text, "result" text ); Question: What day did they record a score of 1-2 in 1994? <|assistant|> SELECT "dat...
<|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: Who was the opponent on November 5, 1944 with more than 24,123 people to watch? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_matches" ( "rank" real, "name" text, "country" text, "years" text, "matches" real, "goals" real ); Question: When the country is austria germany and the rank is kept under 5, what's the a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_matches" ( "rank" real, "name" text, "country" text, "years" text, "matches" real, "goals" real ); Question: Which country does the player pele belong to? <|assistant|> SELECT "country" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real ); Question: What is the earliest game that had 42,707 attending? <|assistant|> SELECT MIN("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ladies" ( "rank" real, "name" text, "nation" text, "placings" text, "figures" real, "free" real, "total" real ); Question: What is the sum of the figure skating scores whose total is less t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ladies" ( "rank" real, "name" text, "nation" text, "placings" text, "figures" real, "free" real, "total" real ); Question: What is the lowest total score among skaters from West Germany wit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ladies" ( "rank" real, "name" text, "nation" text, "placings" text, "figures" real, "free" real, "total" real ); Question: How many placings did Jacqueline du Bief earn where her total scor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "rank" real, "name" text, "nation" text, "placings" real, "figures" real, "free" real, "total" real ); Question: Can you tell me the Placings that hasthe Free smaller than 524.3, and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "rank" real, "name" text, "nation" text, "placings" real, "figures" real, "free" real, "total" real ); Question: Can you tell me the average Figures that has the Placings of 34, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season_schedule" ( "week" real, "date" text, "opponent" text, "home_away_game" text, "result" text ); Question: What is the result where the opponent is Columbus Destroyers? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season_schedule" ( "week" real, "date" text, "opponent" text, "home_away_game" text, "result" text ); Question: What is the date of the away game in week 8? <|assistant|> SELECT "date" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: Which grand prix had ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "councils" ( "council" text, "2003_result" text, "notional_control_based_on_2003_results" text, "2007_result" text, "details" text ); Question: Which council has a notional control of noc and a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "councils" ( "council" text, "2003_result" text, "notional_control_based_on_2003_results" text, "2007_result" text, "details" text ); Question: What's the 2007 result when the notional control i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "councils" ( "council" text, "2003_result" text, "notional_control_based_on_2003_results" text, "2007_result" text, "details" text ); Question: What's the 2003 result for the falkirk council? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "councils" ( "council" text, "2003_result" text, "notional_control_based_on_2003_results" text, "2007_result" text, "details" text ); Question: What council has a 2007 result of no overall contr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "councils" ( "council" text, "2003_result" text, "notional_control_based_on_2003_results" text, "2007_result" text, "details" text ); Question: What's the 2007 result when the notional control i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: On which date was t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: What was the manner...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: What was the manner...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: Who was the replace...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: What was the date o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_ladder" ( "tallangatta_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the Tallangatta DFL losses greater than 2 and an against grea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_ladder" ( "tallangatta_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What are the average byes that are greater than 1479, wins greater th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "height_m_ft" text, "floors" real, "year" real ); Question: Tell me the average year for rank more than 3 and 28 floors <|assistant|> SELECT AVG("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "height_m_ft" text, "floors" real, "year" real ); Question: I want the name for rank less than 6 and year more than 1974 <|assistant|> SELECT "nam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nations" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average rank of Great Britain when their total is over 4? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nations" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of Silvers held by France when their rank was over 14? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the home team at the game held a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the home team when the away team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the home team when Hawthorn was ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: What was the Rockies record at their game that had a loss of Hernandez (3–5)? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_and_constructors" ( "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text ); Question: What engine has g tyres and is driven by elio de angelis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_and_constructors" ( "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text ); Question: What rounds does elio de angelis drive? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_and_constructors" ( "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text ); Question: Who is the constructor for driver alan jones using a cha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_and_constructors" ( "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text ); Question: What engine does driver james hunt have? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_and_constructors" ( "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text ); Question: What's the engine used for rounds 5-6? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the home team at Princes Park? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text ); Question: Tell me the city/state for the holden racing team with winner of mark s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engine_specifications" ( "engine_name" text, "engine_configuration" text, "displacement" text, "max_power_at_rpm" text, "max_torque_at_rpm" text ); Question: What is the engine configuration of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engine_specifications" ( "engine_name" text, "engine_configuration" text, "displacement" text, "max_power_at_rpm" text, "max_torque_at_rpm" text ); Question: What is the max torque of the 1.2 m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "player" text, "car" real, "yards" text, "avg" text, "td_s" real, "long" text ); Question: Tell me the long for TD's of 4 <|assistant|> SELECT "long" FROM "rushing" WHERE "td_s"=4;...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "player" text, "car" real, "yards" text, "avg" text, "td_s" real, "long" text ); Question: Tell me the long for charles frederick <|assistant|> SELECT "long" FROM "rushing" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "player" text, "car" real, "yards" text, "avg" text, "td_s" real, "long" text ); Question: Tell me the average for 1 yards <|assistant|> SELECT "avg" FROM "rushing" WHERE "yards"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "player" text, "car" real, "yards" text, "avg" text, "td_s" real, "long" text ); Question: Tell me the sum of TD's for 4 avg. <|assistant|> SELECT SUM("td_s") FROM "rushing" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Which time/retired had 75 laps and Pedro de la Rosa as a driver? <|assistant|> SELECT "time...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: What is the total number in the season for the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: When did Julie gets Validated originally air? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: Who was the number 24 series written by? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: When did Boyd Hale's Julie gets Validated orig...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "1973_democratic_run_off_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real ); Question: What was the Queens ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "1973_democratic_run_off_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real ); Question: Which Queens number ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "1973_democratic_run_off_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real ); Question: Which Manhattan numb...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "1973_democratic_run_off_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real ); Question: Which Manhattan numb...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What did the home team score against Fitz...
<|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 listed opponent in Week 2? <|assistant|> SELECT "opponent" FROM "schedule" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What date has attendance listed as 45,024? <|assistant|> SELECT "date" FROM "schedule" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); Question: What numbered pick was mattias ohlund, wit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); Question: How many reg GP for mattias ohlund? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What is the average attendance against the expos? <|assistant|> SELECT AVG("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What is the team's record on april 12? <|assistant|> SELECT "record" FROM "g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Who did the team play on april 19? <|assistant|> SELECT "opponent" FROM "gam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "channel_lineup" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); Question: What is the Aspect of Channel 26.5? <|assistant|> SELECT "aspect" FROM "ch...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "channel_lineup" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); Question: Which Programming is on Channel 26.5? <|assistant|> SELECT "programming" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "channel_lineup" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); Question: Which Programming is on a channel less than 26.5, has a Video of 480i and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What number of laps were done by driver Ronnie Peterson? <|assistant|> SELECT "la...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Which driver had a time/retired of fuel system? <|assistant|> SELECT "driver" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the sum of grids with an engine in Time/Retired with less than 45 laps fo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: I want the Grid for Laps of 35 <|assistant|> SELECT "grid" FROM "race" WHERE "laps"=35;<|en...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_africa" ( "player" text, "date_of_birth" text, "batting_style" text, "bowling_style" text, "first_class_team" text ); Question: What is Jonty Rhodes's batting style? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_africa" ( "player" text, "date_of_birth" text, "batting_style" text, "bowling_style" text, "first_class_team" text ); Question: What bowling style does First Class Team, Griqualand West h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_africa" ( "player" text, "date_of_birth" text, "batting_style" text, "bowling_style" text, "first_class_team" text ); Question: What is the batting style of Makhaya Ntini? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); Question: What region is the host university of southern california located? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); Question: In which state is the city of knoxville? <|assistant|> SELECT "state" FROM "first_and...