text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominees" (
"year_ceremony" text,
"actor_actress" text,
"category" text,
"film_title_used_in_nomination" text,
"result" text
);
Question: Who was nominated for best supporting actor in the movie Going My Way?
<|assistant|>
SELECT "actor_actress" FROM "nominees" WHERE "film_title_used_in_nomination"='Going My Way' AND "category"='Best Supporting Actor';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "duration" (
"term_abroad" text,
"2000_01" text,
"2001_02" text,
"2002_03" text,
"2003_04" text,
"2004_05" text,
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text
);
Question: When in 2003 to 2004 the January team is 5.7 what is it through 2001 through 2002?
<|assistant|>
SELECT "2001_02" FROM "duration" WHERE "2003_04"='5.7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "duration" (
"term_abroad" text,
"2000_01" text,
"2001_02" text,
"2002_03" text,
"2003_04" text,
"2004_05" text,
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text
);
Question: When through 2005 to 2006 it is 5.4 what team is it?
<|assistant|>
SELECT "term_abroad" FROM "duration" WHERE "2005_06"='5.4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "duration" (
"term_abroad" text,
"2000_01" text,
"2001_02" text,
"2002_03" text,
"2003_04" text,
"2004_05" text,
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text
);
Question: When through 2006 to 2007 the duration of one quarter is 3.4 what is it through 2007 to 2008?
<|assistant|>
SELECT "2007_08" FROM "duration" WHERE "2006_07"='3.4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "duration" (
"term_abroad" text,
"2000_01" text,
"2001_02" text,
"2002_03" text,
"2003_04" text,
"2004_05" text,
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text
);
Question: When through 2005 to 2006 the duration of the academic year is 5.3 what is it through 2000 to 2001?
<|assistant|>
SELECT "2000_01" FROM "duration" WHERE "2005_06"='5.3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "duration" (
"term_abroad" text,
"2000_01" text,
"2001_02" text,
"2002_03" text,
"2003_04" text,
"2004_05" text,
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text
);
Question: When through 2001 to 2002 the duration is 0.5 what is the term abroad?
<|assistant|>
SELECT "term_abroad" FROM "duration" WHERE "2001_02"='0.5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18646432_1" (
"series_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
Question: Name the series number that aired on november 11, 1996
<|assistant|>
SELECT "series_num" FROM "table1_18646432_1" WHERE "original_air_date"='November 11, 1996';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18646432_4" (
"series_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
Question: Who wrote the episode originally aired on September 29, 1999?
<|assistant|>
SELECT "written_by" FROM "table1_18646432_4" WHERE "original_air_date"='September 29, 1999';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18646432_4" (
"series_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
Question: What is the name of the episode originally aired on September 29, 1999?
<|assistant|>
SELECT "title" FROM "table1_18646432_4" WHERE "original_air_date"='September 29, 1999';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18646432_4" (
"series_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
Question: What is the production code number for episode named "chilly scenes of winter golf"?
<|assistant|>
SELECT MIN("prod_code") FROM "table1_18646432_4" WHERE "title"='\"Chilly Scenes of Winter Golf\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18660332_2" (
"ethnic_group" text,
"2001_pct" text,
"2001_people" text,
"2006_pct" text,
"2006_people" real
);
Question: How many percentages were recorded under 2006 when in 2001 was 14.6%?
<|assistant|>
SELECT COUNT("2006_pct") FROM "table1_18660332_2" WHERE "2001_pct"='14.6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18660332_2" (
"ethnic_group" text,
"2001_pct" text,
"2001_people" text,
"2006_pct" text,
"2006_people" real
);
Question: What is the ethnic group that in 2001 had 117,513?
<|assistant|>
SELECT "ethnic_group" FROM "table1_18660332_2" WHERE "2001_people"='117,513';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18660332_2" (
"ethnic_group" text,
"2001_pct" text,
"2001_people" text,
"2006_pct" text,
"2006_people" real
);
Question: How many numbers were recorded under 2001 when 2006 was 18.9?
<|assistant|>
SELECT COUNT("2001_pct") FROM "table1_18660332_2" WHERE "2006_pct"='18.9';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18660332_2" (
"ethnic_group" text,
"2001_pct" text,
"2001_people" text,
"2006_pct" text,
"2006_people" real
);
Question: What was the percentage in 2006 when in 2001 was 66.9 %?
<|assistant|>
SELECT "2006_pct" FROM "table1_18660332_2" WHERE "2001_pct"='66.9';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_8_teams_qualified_for_team_finals" (
"position" text,
"country" text,
"floor" text,
"pommel_horse" text,
"rings" text,
"vault" text,
"parallel_bars" text,
"horizontal_bar" text,
"team_total" text
);
Question: If the rings is 58.975, what is the number for the horizontal bar?
<|assistant|>
SELECT "horizontal_bar" FROM "top_8_teams_qualified_for_team_finals" WHERE "rings"='58.975';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_8_teams_qualified_for_team_finals" (
"position" text,
"country" text,
"floor" text,
"pommel_horse" text,
"rings" text,
"vault" text,
"parallel_bars" text,
"horizontal_bar" text,
"team_total" text
);
Question: How many positions was the United States in?
<|assistant|>
SELECT COUNT("position") FROM "top_8_teams_qualified_for_team_finals" WHERE "country"='United States';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_8_teams_qualified_for_team_finals" (
"position" text,
"country" text,
"floor" text,
"pommel_horse" text,
"rings" text,
"vault" text,
"parallel_bars" text,
"horizontal_bar" text,
"team_total" text
);
Question: If the rings are 60.500, what is the parallel bars number?
<|assistant|>
SELECT "parallel_bars" FROM "top_8_teams_qualified_for_team_finals" WHERE "rings"='60.500';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_8_teams_qualified_for_team_finals" (
"position" text,
"country" text,
"floor" text,
"pommel_horse" text,
"rings" text,
"vault" text,
"parallel_bars" text,
"horizontal_bar" text,
"team_total" text
);
Question: If the rings number is 60.000, what is the number for the vault?
<|assistant|>
SELECT COUNT("vault") FROM "top_8_teams_qualified_for_team_finals" WHERE "rings"='60.000';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_8_teams_qualified_for_team_finals" (
"position" text,
"country" text,
"floor" text,
"pommel_horse" text,
"rings" text,
"vault" text,
"parallel_bars" text,
"horizontal_bar" text,
"team_total" text
);
Question: If the parallel bars numbers is 61.500, what is the total number for the flood?
<|assistant|>
SELECT COUNT("floor") FROM "top_8_teams_qualified_for_team_finals" WHERE "parallel_bars"='61.500';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "per_country" (
"rank" text,
"country" text,
"jerseys" real,
"vuelta_wins" real,
"points" real,
"ko_m" real,
"combo" real,
"most_recent_cyclist" text,
"most_recent_date" text,
"different_holders" real
);
Question: When united kingdom is the country what is the most recent date?
<|assistant|>
SELECT "most_recent_date" FROM "per_country" WHERE "country"='United Kingdom';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "per_country" (
"rank" text,
"country" text,
"jerseys" real,
"vuelta_wins" real,
"points" real,
"ko_m" real,
"combo" real,
"most_recent_cyclist" text,
"most_recent_date" text,
"different_holders" real
);
Question: When 3 is the rank what is the highest combo?
<|assistant|>
SELECT MAX("combo") FROM "per_country" WHERE "rank"='3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "per_country" (
"rank" text,
"country" text,
"jerseys" real,
"vuelta_wins" real,
"points" real,
"ko_m" real,
"combo" real,
"most_recent_cyclist" text,
"most_recent_date" text,
"different_holders" real
);
Question: When 12 is the rank who is the most recent cyclist?
<|assistant|>
SELECT "most_recent_cyclist" FROM "per_country" WHERE "rank"='12';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "per_country" (
"rank" text,
"country" text,
"jerseys" real,
"vuelta_wins" real,
"points" real,
"ko_m" real,
"combo" real,
"most_recent_cyclist" text,
"most_recent_date" text,
"different_holders" real
);
Question: When 155 is the jersey what is the highest amount of different holders?
<|assistant|>
SELECT MAX("different_holders") FROM "per_country" WHERE "jerseys"=155;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wobbe_index_of_common_fuel_gases" (
"fuel_gas" text,
"upper_index_kcal_nm_3" real,
"lower_index_kcal_nm_3" real,
"upper_index_mj_nm_3" text,
"lower_index_mj_nm_3" text
);
Question: Name the upper index kcal/nm3 for 62.47
<|assistant|>
SELECT "upper_index_kcal_nm_3" FROM "wobbe_index_of_common_fuel_gases" WHERE "lower_index_mj_nm_3"='62.47';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wobbe_index_of_common_fuel_gases" (
"fuel_gas" text,
"upper_index_kcal_nm_3" real,
"lower_index_kcal_nm_3" real,
"upper_index_mj_nm_3" text,
"lower_index_mj_nm_3" text
);
Question: Name the fuel gas for upper index mj/nm3 for 92.32
<|assistant|>
SELECT "fuel_gas" FROM "wobbe_index_of_common_fuel_gases" WHERE "upper_index_mj_nm_3"='92.32';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wobbe_index_of_common_fuel_gases" (
"fuel_gas" text,
"upper_index_kcal_nm_3" real,
"lower_index_kcal_nm_3" real,
"upper_index_mj_nm_3" text,
"lower_index_mj_nm_3" text
);
Question: Name the lower index kcal/ nm3 for 61.32
<|assistant|>
SELECT "lower_index_kcal_nm_3" FROM "wobbe_index_of_common_fuel_gases" WHERE "upper_index_mj_nm_3"='61.32';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_professional_quarterback_passin" (
"rank" real,
"name" text,
"tenure" text,
"leagues" text,
"attempts" real,
"completions" real,
"comp_pct" text,
"touchdowns" real,
"interceptions" real,
"yardage" real,
"qb_rating" text
);
Question: What is the Quarterback rating of the player who got a comp percentage of 62.0?
<|assistant|>
SELECT "qb_rating" FROM "all_time_professional_quarterback_passin" WHERE "comp_pct"='62.0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_professional_quarterback_passin" (
"rank" real,
"name" text,
"tenure" text,
"leagues" text,
"attempts" real,
"completions" real,
"comp_pct" text,
"touchdowns" real,
"interceptions" real,
"yardage" real,
"qb_rating" text
);
Question: What is the rank of the player who got 58179 in yardage?
<|assistant|>
SELECT "rank" FROM "all_time_professional_quarterback_passin" WHERE "yardage"=58179;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_professional_quarterback_passin" (
"rank" real,
"name" text,
"tenure" text,
"leagues" text,
"attempts" real,
"completions" real,
"comp_pct" text,
"touchdowns" real,
"interceptions" real,
"yardage" real,
"qb_rating" text
);
Question: In which league would you find the player with a comp percentage of 54.0?
<|assistant|>
SELECT "leagues" FROM "all_time_professional_quarterback_passin" WHERE "comp_pct"='54.0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18666752_3" (
"nation" text,
"rider" text,
"horse" text,
"cross_country_penalties" text,
"total_penalties" text,
"total_team_penalties" text,
"team_rank" real
);
Question: Which nation is where rider phillip dutton from?
<|assistant|>
SELECT "nation" FROM "table1_18666752_3" WHERE "rider"='Phillip Dutton';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18666752_3" (
"nation" text,
"rider" text,
"horse" text,
"cross_country_penalties" text,
"total_penalties" text,
"total_team_penalties" text,
"team_rank" real
);
Question: Which nation is where the horse parkmore ed is?
<|assistant|>
SELECT "nation" FROM "table1_18666752_3" WHERE "horse"='Parkmore Ed';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18666752_3" (
"nation" text,
"rider" text,
"horse" text,
"cross_country_penalties" text,
"total_penalties" text,
"total_team_penalties" text,
"team_rank" real
);
Question: How many total team penalties are there when cross country penalties is 30.40?
<|assistant|>
SELECT "total_team_penalties" FROM "table1_18666752_3" WHERE "cross_country_penalties"='30.40';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18666752_3" (
"nation" text,
"rider" text,
"horse" text,
"cross_country_penalties" text,
"total_penalties" text,
"total_team_penalties" text,
"team_rank" real
);
Question: Who is the rider where the horse is galan de sauvagere?
<|assistant|>
SELECT "rider" FROM "table1_18666752_3" WHERE "horse"='Galan De Sauvagere';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18666752_3" (
"nation" text,
"rider" text,
"horse" text,
"cross_country_penalties" text,
"total_penalties" text,
"total_team_penalties" text,
"team_rank" real
);
Question: How many penalties are there when Eric Vigeanel is the rider?
<|assistant|>
SELECT COUNT("total_penalties") FROM "table1_18666752_3" WHERE "rider"='Eric Vigeanel';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" real,
"single" text,
"backed_with" text,
"record_label" text,
"format" text,
"other_details" text
);
Question: What record label corresponds to the single "I can't stay"?
<|assistant|>
SELECT "record_label" FROM "singles" WHERE "single"='I Can''t Stay';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" real,
"single" text,
"backed_with" text,
"record_label" text,
"format" text,
"other_details" text
);
Question: What format for the release that had 2000 copies?
<|assistant|>
SELECT "format" FROM "singles" WHERE "other_details"='2000 copies';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" real,
"single" text,
"backed_with" text,
"record_label" text,
"format" text,
"other_details" text
);
Question: What single(s) released in 2008 and had 4000 copies?
<|assistant|>
SELECT "single" FROM "singles" WHERE "date"=2008 AND "other_details"='4000 copies';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" real,
"single" text,
"backed_with" text,
"record_label" text,
"format" text,
"other_details" text
);
Question: What were the "other details" (number released) for "is my love will follow me"?
<|assistant|>
SELECT "other_details" FROM "singles" WHERE "single"='My Love Will Follow Me';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" real,
"single" text,
"backed_with" text,
"record_label" text,
"format" text,
"other_details" text
);
Question: What year was "moped girls" released?
<|assistant|>
SELECT "date" FROM "singles" WHERE "single"='Moped Girls';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" real,
"single" text,
"backed_with" text,
"record_label" text,
"format" text,
"other_details" text
);
Question: What were the "other details" (number released) for "is my love will follow me"?
<|assistant|>
SELECT "other_details" FROM "singles" WHERE "single"='My Love Will Follow Me';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: Name the least amount of losses for 23 points
<|assistant|>
SELECT MIN("losses") FROM "torneo_apertura" WHERE "points"=23;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: Name the most wins for sport colombia
<|assistant|>
SELECT MAX("wins") FROM "torneo_apertura" WHERE "team"='Sport Colombia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: Namr the total number of played for 5 losses
<|assistant|>
SELECT COUNT("played") FROM "torneo_apertura" WHERE "losses"=5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: Name the wins for draws pk is 3/0
<|assistant|>
SELECT "wins" FROM "torneo_apertura" WHERE "draws_p_k_wins_p_k_losses"='3/0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: What is scored with the position of 6?
<|assistant|>
SELECT MIN("scored") FROM "torneo_clausura" WHERE "position"=6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: How many losses are there for team tembetary?
<|assistant|>
SELECT "losses" FROM "torneo_clausura" WHERE "team"='Tembetary';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: How many wins have 24 points?
<|assistant|>
SELECT "wins" FROM "torneo_clausura" WHERE "points"=24;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: How many wins?
<|assistant|>
SELECT MAX("wins") FROM "torneo_clausura";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18712423_3" (
"series_episode" real,
"season_episode" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"viewers_millions" text
);
Question: What is the original air date of the episode directed by Ian Barry and written by Philip Dalkin?
<|assistant|>
SELECT "original_air_date" FROM "table1_18712423_3" WHERE "directed_by"='Ian Barry' AND "written_by"='Philip Dalkin';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18712423_3" (
"series_episode" real,
"season_episode" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"viewers_millions" text
);
Question: What is the show episode number of the episode that reached 1.215 millions views?
<|assistant|>
SELECT MIN("series_episode") FROM "table1_18712423_3" WHERE "viewers_millions"='1.215';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18712423_3" (
"series_episode" real,
"season_episode" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"viewers_millions" text
);
Question: Who directed the episode written by Matt Ford?
<|assistant|>
SELECT "directed_by" FROM "table1_18712423_3" WHERE "written_by"='Matt Ford';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18733480_1" (
"episode_num" real,
"air_date" text,
"team_1" text,
"players_left_after_round_1" text,
"team_2" text
);
Question: How many times was team 1 the wykeham wonderers?
<|assistant|>
SELECT COUNT("players_left_after_round_1") FROM "table1_18733480_1" WHERE "team_1"='Wykeham Wonderers';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18733480_1" (
"episode_num" real,
"air_date" text,
"team_1" text,
"players_left_after_round_1" text,
"team_2" text
);
Question: What is the original air date that had the wykeham wonderers as team 1?
<|assistant|>
SELECT "air_date" FROM "table1_18733480_1" WHERE "team_1"='Wykeham Wonderers';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18733480_1" (
"episode_num" real,
"air_date" text,
"team_1" text,
"players_left_after_round_1" text,
"team_2" text
);
Question: Who was team 1 when the chalkheads were team 2?
<|assistant|>
SELECT "team_1" FROM "table1_18733480_1" WHERE "team_2"='Chalkheads';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18734298_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the title of the production code 1acx09?
<|assistant|>
SELECT "title" FROM "table1_18734298_1" WHERE "production_code"='1ACX09';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18734298_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: How many series were directed by Rob Renzetti?
<|assistant|>
SELECT COUNT("no_in_series") FROM "table1_18734298_1" WHERE "directed_by"='Rob Renzetti';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18734298_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who wrote the series number 14?
<|assistant|>
SELECT "written_by" FROM "table1_18734298_1" WHERE "no_in_series"=14;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: Did this driver have any winnings the season he had 32 starts
<|assistant|>
SELECT COUNT("winnings") FROM "nascar_sprint_cup_series" WHERE "starts"=32;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: How many wins in the season he finished 33rd
<|assistant|>
SELECT "winnings" FROM "nascar_sprint_cup_series" WHERE "position"='33rd';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: What is the lowest number of top 10 finishes
<|assistant|>
SELECT MIN("top_10") FROM "nascar_sprint_cup_series";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: How many poles in the year 2000
<|assistant|>
SELECT MAX("poles") FROM "nascar_sprint_cup_series" WHERE "year"=2000;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: What is the average finish for winnings of $1,400?
<|assistant|>
SELECT "avg_finish" FROM "nascar_nationwide_series" WHERE "winnings"='$1,400';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: What is the maximum starts that result in an average finish of 16.5?
<|assistant|>
SELECT MAX("starts") FROM "nascar_nationwide_series" WHERE "avg_finish"='16.5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: How many starts were there when the winnings are $690,321?
<|assistant|>
SELECT MIN("starts") FROM "nascar_nationwide_series" WHERE "winnings"='$690,321';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "usage_share_data_from_wikimedia_visitor_" (
"period" text,
"internet_explorer" text,
"firefox" text,
"chrome" text,
"safari" text,
"opera" text,
"other_mozilla" text,
"mobile" text
);
Question: If Safari is 3.76%, what is the other Mozilla amount?
<|assistant|>
SELECT "other_mozilla" FROM "usage_share_data_from_wikimedia_visitor_" WHERE "safari"='3.76%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "usage_share_data_from_wikimedia_visitor_" (
"period" text,
"internet_explorer" text,
"firefox" text,
"chrome" text,
"safari" text,
"opera" text,
"other_mozilla" text,
"mobile" text
);
Question: If Firefox is 30.45%, what is the other Mozilla amount?
<|assistant|>
SELECT "other_mozilla" FROM "usage_share_data_from_wikimedia_visitor_" WHERE "firefox"='30.45%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "usage_share_data_from_wikimedia_visitor_" (
"period" text,
"internet_explorer" text,
"firefox" text,
"chrome" text,
"safari" text,
"opera" text,
"other_mozilla" text,
"mobile" text
);
Question: If Internet Explorer is 47.22%, what is the Safari total?
<|assistant|>
SELECT "safari" FROM "usage_share_data_from_wikimedia_visitor_" WHERE "internet_explorer"='47.22%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "usage_share_data_from_wikimedia_visitor_" (
"period" text,
"internet_explorer" text,
"firefox" text,
"chrome" text,
"safari" text,
"opera" text,
"other_mozilla" text,
"mobile" text
);
Question: For period September 2009, what is the other Mozilla total number?
<|assistant|>
SELECT COUNT("other_mozilla") FROM "usage_share_data_from_wikimedia_visitor_" WHERE "period"='September 2009';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1876825_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Name the total number of production code by david richardson and todd holland
<|assistant|>
SELECT COUNT("production_code") FROM "table1_1876825_2" WHERE "written_by"='David Richardson' AND "directed_by"='Todd Holland';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1876825_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Name the total number of series for march 19, 2000
<|assistant|>
SELECT COUNT("no_in_series") FROM "table1_1876825_2" WHERE "original_air_date"='March 19, 2000';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1876825_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the production code for episode "surgery"?
<|assistant|>
SELECT "production_code" FROM "table1_1876825_3" WHERE "title"='\"Surgery\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1876825_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What episode number in the series originally aired on February 25, 2001?
<|assistant|>
SELECT "no_in_series" FROM "table1_1876825_3" WHERE "original_air_date"='February 25, 2001';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1876825_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the name of the episode with the production code of 06-00-218?
<|assistant|>
SELECT "title" FROM "table1_1876825_3" WHERE "production_code"='06-00-218';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1876825_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the production code for episode 26 in the series?
<|assistant|>
SELECT "production_code" FROM "table1_1876825_3" WHERE "no_in_series"=26;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1876825_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the production code for episode 6 in the season?
<|assistant|>
SELECT "production_code" FROM "table1_1876825_3" WHERE "no_in_season"=6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1876825_8" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: what is the title no in season 2?
<|assistant|>
SELECT "title" FROM "table1_1876825_8" WHERE "no_in_season"=2;<|endoftext|>
|
<|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,
"position_in_table" text
);
Question: What date did Micky Adams vacate his position?
<|assistant|>
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='Micky Adams';<|endoftext|>
|
<|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,
"position_in_table" text
);
Question: Which vacancy happened on 4 November 2008?
<|assistant|>
SELECT "position_in_table" FROM "managerial_changes" WHERE "date_of_vacancy"='4 November 2008';<|endoftext|>
|
<|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,
"position_in_table" text
);
Question: How many times did Keith Downing depart a position?
<|assistant|>
SELECT COUNT("position_in_table") FROM "managerial_changes" WHERE "outgoing_manager"='Keith Downing';<|endoftext|>
|
<|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,
"position_in_table" text
);
Question: Which team appointed a person on 23 December 2008?
<|assistant|>
SELECT "team" FROM "managerial_changes" WHERE "date_of_appointment"='23 December 2008';<|endoftext|>
|
<|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,
"position_in_table" text
);
Question: What date did the Milton Keynes Dons appoint?
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='Milton Keynes Dons';<|endoftext|>
|
<|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,
"position_in_table" text
);
Question: Which vacancy occurred on 16 February 2009?
<|assistant|>
SELECT "position_in_table" FROM "managerial_changes" WHERE "date_of_vacancy"='16 February 2009';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1876825_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is title of episode 06-02-407?
<|assistant|>
SELECT "title" FROM "table1_1876825_5" WHERE "production_code"='06-02-407';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1876825_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is title of episode 06-02-406?
<|assistant|>
SELECT "title" FROM "table1_1876825_5" WHERE "production_code"='06-02-406';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1876825_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is title of episode aired on March 2, 2003?
<|assistant|>
SELECT "title" FROM "table1_1876825_5" WHERE "original_air_date"='March 2, 2003';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1876825_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who wrote episode 74?
<|assistant|>
SELECT "written_by" FROM "table1_1876825_5" WHERE "no_in_series"=74;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1876825_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who wrote "Academic Octathalon"?
<|assistant|>
SELECT "written_by" FROM "table1_1876825_5" WHERE "title"='\"Academic Octathalon\"';<|endoftext|>
|
<|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,
"position_in_table" text
);
Question: Which position in the table is the team watford?
<|assistant|>
SELECT "position_in_table" FROM "managerial_changes" WHERE "team"='Watford';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1876825_7" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Name the number of number in series for production code of 06-04-621
<|assistant|>
SELECT COUNT("no_in_series") FROM "table1_1876825_7" WHERE "production_code"='06-04-621';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1876825_7" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Name the total number of written by for original air date for may 8, 2005
<|assistant|>
SELECT COUNT("written_by") FROM "table1_1876825_7" WHERE "original_air_date"='May 8, 2005';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What was the place and how many people attended the game on July 11?
<|assistant|>
SELECT "location_attendance" FROM "regular_season" WHERE "date"='July 11';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Who had the most assist and how many on July 26?
<|assistant|>
SELECT "high_assists" FROM "regular_season" WHERE "date"='July 26';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Who had the high assist in the game where the record is 13-11?
<|assistant|>
SELECT "high_assists" FROM "regular_season" WHERE "record"='13-11';<|endoftext|>
|
<|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,
"position_in_table" text
);
Question: At what date did the 23rd manager vacate the position?
<|assistant|>
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "position_in_table"='23rd';<|endoftext|>
|
<|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,
"position_in_table" text
);
Question: What was the date of appointment for the manager that replaced Simon Davies?
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Simon Davies';<|endoftext|>
|
<|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,
"position_in_table" text
);
Question: What was the date of appointment for the manager of the 23rd team?
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "position_in_table"='23rd';<|endoftext|>
|
<|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,
"position_in_table" text
);
Question: How many categories for, replaced by, exist when the outgoing manager is Alan Buckley?
<|assistant|>
SELECT COUNT("replaced_by") FROM "managerial_changes" WHERE "outgoing_manager"='Alan Buckley';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers" (
"pos" real,
"driver" text,
"starts" real,
"finishes" real,
"wins" real,
"podiums" real,
"stage_wins" real,
"points" real
);
Question: Which driver starts 3?
<|assistant|>
SELECT "driver" FROM "drivers" WHERE "starts"=3;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers" (
"pos" real,
"driver" text,
"starts" real,
"finishes" real,
"wins" real,
"podiums" real,
"stage_wins" real,
"points" real
);
Question: How many podiums for the driver with 18 stage wins?
<|assistant|>
SELECT COUNT("podiums") FROM "drivers" WHERE "stage_wins"=18;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers" (
"pos" real,
"driver" text,
"starts" real,
"finishes" real,
"wins" real,
"podiums" real,
"stage_wins" real,
"points" real
);
Question: What is the highest pos for a driver with 1 podium?
<|assistant|>
SELECT MAX("pos") FROM "drivers" WHERE "podiums"=1;<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.