text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "replaced_pageants" (
"country_territory" text,
"former_pageant" text,
"last_competed" real,
"new_pageant" text,
"franchise_since" real
);
Question: How many new pageants does Aruba have?
<|assistant|>
SELECT COUNT("new_pageant") FROM "replaced_pageants" WHERE "country_territory"='Aruba';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "replaced_pageants" (
"country_territory" text,
"former_pageant" text,
"last_competed" real,
"new_pageant" text,
"franchise_since" real
);
Question: which is the new pageant from spain?
<|assistant|>
SELECT "new_pageant" FROM "replaced_pageants" WHERE "country_territory"='Spain';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: Who was the away team when Carlton was the home team?
<|assistant|>
SELECT "away_team" FROM "round_16" WHERE "home_team"='Carlton';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"intercontinental" text,
"recopa_1996" text,
"supercopa_1996" text,
"conmebol_1996" text,
"copa_libertadores_1997" text
);
Question: what is the number of teams where conmebol 1996 did not qualify?
<|assistant|>
SELECT COUNT("team") FROM "argentine_clubs_in_international_competi" WHERE "conmebol_1996"='did not qualify';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"intercontinental" text,
"recopa_1996" text,
"supercopa_1996" text,
"conmebol_1996" text,
"copa_libertadores_1997" text
);
Question: what is the racing club where copa libertadores 1997?
<|assistant|>
SELECT "copa_libertadores_1997" FROM "argentine_clubs_in_international_competi" WHERE "team"='Racing Club';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"intercontinental" text,
"recopa_1996" text,
"supercopa_1996" text,
"conmebol_1996" text,
"copa_libertadores_1997" text
);
Question: what is th copa libertadores 1997 is qf?
<|assistant|>
SELECT "copa_libertadores_1997" FROM "argentine_clubs_in_international_competi" WHERE "supercopa_1996"='QF';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: What's the maximum crowd when scg is the ground?
<|assistant|>
SELECT MAX("crowd") FROM "round_19" WHERE "ground"='SCG';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: What are the away teams when they scored 5.11 (41)?
<|assistant|>
SELECT "away_team" FROM "round_19" WHERE "away_team_score"='5.11 (41)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: What are the ground when the away team scored 6.9 (45)?
<|assistant|>
SELECT "ground" FROM "round_19" WHERE "away_team_score"='6.9 (45)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: What are the ground where the crowd totals 19929?
<|assistant|>
SELECT "ground" FROM "round_19" WHERE "crowd"=19929;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: Name the home team for manuka oval
<|assistant|>
SELECT "home_team" FROM "round_18" WHERE "ground"='Manuka Oval';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: Name the away team score for richmond
<|assistant|>
SELECT "away_team_score" FROM "round_18" WHERE "away_team"='Richmond';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_22" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: Who made the report when the home team is north Melbourne?
<|assistant|>
SELECT "report" FROM "round_22" WHERE "home_team"='North Melbourne';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_22" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: Who played Richmond at home?
<|assistant|>
SELECT "home_team" FROM "round_22" WHERE "away_team"='Richmond';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_22" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: Who has the home ground Aami stadium?
<|assistant|>
SELECT "home_team" FROM "round_22" WHERE "ground"='AAMI Stadium';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Who were all candidate when incumbent was D. Wyatt Aiken?
<|assistant|>
SELECT "candidates" FROM "south_carolina" WHERE "incumbent"='D. Wyatt Aiken';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: How many incumbents for the district of South Carolina 5?
<|assistant|>
SELECT COUNT("incumbent") FROM "south_carolina" WHERE "district"='South Carolina 5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Who was everyone first elected when incumbent was John J. Hemphill?
<|assistant|>
SELECT "first_elected" FROM "south_carolina" WHERE "incumbent"='John J. Hemphill';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "juniors" (
"year" real,
"boys_singles" text,
"girls_singles" text,
"boys_doubles" text,
"girls_doubles" text,
"mixed_doubles" text
);
Question: When the girls singles is lindaweni fanetri what is the mixed doubled?
<|assistant|>
SELECT "mixed_doubles" FROM "juniors" WHERE "girls_singles"='Lindaweni Fanetri';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "juniors" (
"year" real,
"boys_singles" text,
"girls_singles" text,
"boys_doubles" text,
"girls_doubles" text,
"mixed_doubles" text
);
Question: When the girls doubles is ayu pratiwi anggi widia what is the boys doubles?
<|assistant|>
SELECT "boys_doubles" FROM "juniors" WHERE "girls_doubles"='Ayu Pratiwi Anggi Widia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "juniors" (
"year" real,
"boys_singles" text,
"girls_singles" text,
"boys_doubles" text,
"girls_doubles" text,
"mixed_doubles" text
);
Question: When mixed doubles is didit juang indrianto yayu rahayu what is the most current year?
<|assistant|>
SELECT MAX("year") FROM "juniors" WHERE "mixed_doubles"='Didit Juang Indrianto Yayu Rahayu';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "juniors" (
"year" real,
"boys_singles" text,
"girls_singles" text,
"boys_doubles" text,
"girls_doubles" text,
"mixed_doubles" text
);
Question: When mixed doubles is danny bawa chrisnanta debby susanto what is the boys singles?
<|assistant|>
SELECT "boys_singles" FROM "juniors" WHERE "mixed_doubles"='Danny Bawa Chrisnanta Debby Susanto';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "juniors" (
"year" real,
"boys_singles" text,
"girls_singles" text,
"boys_doubles" text,
"girls_doubles" text,
"mixed_doubles" text
);
Question: When girls doubles is anneke feinya agustin wenny setiawati what is the mixed doubles?
<|assistant|>
SELECT "mixed_doubles" FROM "juniors" WHERE "girls_doubles"='Anneke Feinya Agustin Wenny Setiawati';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_14325653_2" (
"year_ceremony" text,
"video_game" text,
"publisher_s" text,
"platform_s_a" text,
"result" text
);
Question: Name the total number of publishers for flushed away
<|assistant|>
SELECT COUNT("publisher_s") FROM "table1_14325653_2" WHERE "video_game"='Flushed Away';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_14325653_2" (
"year_ceremony" text,
"video_game" text,
"publisher_s" text,
"platform_s_a" text,
"result" text
);
Question: Name the publisher for resident evil 4
<|assistant|>
SELECT "publisher_s" FROM "table1_14325653_2" WHERE "video_game"='Resident Evil 4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_14330096_4" (
"totalnum" real,
"seriesnum" real,
"title" text,
"writer" text,
"director" text,
"original_air_date" text
);
Question: What is the highest total number?
<|assistant|>
SELECT MAX("totalnum") FROM "table1_14330096_4";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_14330096_4" (
"totalnum" real,
"seriesnum" real,
"title" text,
"writer" text,
"director" text,
"original_air_date" text
);
Question: How many of the episodes have Roger Goldby as the director?
<|assistant|>
SELECT "totalnum" FROM "table1_14330096_4" WHERE "director"='Roger Goldby';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_14330096_4" (
"totalnum" real,
"seriesnum" real,
"title" text,
"writer" text,
"director" text,
"original_air_date" text
);
Question: Which episodes have Patrick Lau as the director and Lisa Holdsworth as the writer?
<|assistant|>
SELECT "title" FROM "table1_14330096_4" WHERE "director"='Patrick Lau' AND "writer"='Lisa Holdsworth';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_agr_reactors" (
"agr_power_station" text,
"net_m_we" real,
"construction_started" real,
"connected_to_grid" real,
"commercial_operation" real,
"accounting_closure_date" real
);
Question: What is the Closure date of Hunterston B
<|assistant|>
SELECT MIN("accounting_closure_date") FROM "current_agr_reactors" WHERE "agr_power_station"='Hunterston B';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_agr_reactors" (
"agr_power_station" text,
"net_m_we" real,
"construction_started" real,
"connected_to_grid" real,
"commercial_operation" real,
"accounting_closure_date" real
);
Question: How many power stations are connected to grid at Heysham 2
<|assistant|>
SELECT COUNT("connected_to_grid") FROM "current_agr_reactors" WHERE "agr_power_station"='Heysham 2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_agr_reactors" (
"agr_power_station" text,
"net_m_we" real,
"construction_started" real,
"connected_to_grid" real,
"commercial_operation" real,
"accounting_closure_date" real
);
Question: What year did construction start at Heysham 1
<|assistant|>
SELECT "construction_started" FROM "current_agr_reactors" WHERE "agr_power_station"='Heysham 1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_agr_reactors" (
"agr_power_station" text,
"net_m_we" real,
"construction_started" real,
"connected_to_grid" real,
"commercial_operation" real,
"accounting_closure_date" real
);
Question: When did construction start on the Power station with a net MWE of 1190
<|assistant|>
SELECT MIN("construction_started") FROM "current_agr_reactors" WHERE "net_m_we"=1190;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: Name the most extra points for john heston
<|assistant|>
SELECT MAX("extra_points") FROM "scoring_leaders" WHERE "player"='John Heston';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_63_oberlin_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: Who scored the most points?
<|assistant|>
SELECT MAX("points") FROM "michigan_63_oberlin_0";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_63_oberlin_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: What position did Joe Maddock play?
<|assistant|>
SELECT "position" FROM "michigan_63_oberlin_0" WHERE "player"='Joe Maddock';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_63_oberlin_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: How many extra points did Paul Jones score?
<|assistant|>
SELECT COUNT("extra_points") FROM "michigan_63_oberlin_0" WHERE "player"='Paul Jones';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_86_ohio_state_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: How many points did Albert Herrnstein make?
<|assistant|>
SELECT "points" FROM "michigan_86_ohio_state_0" WHERE "player"='Albert Herrnstein';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_86_ohio_state_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: What positions did Paul Jones play?
<|assistant|>
SELECT "position" FROM "michigan_86_ohio_state_0" WHERE "player"='Paul Jones';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_86_ohio_state_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: What is the least amount of field goals made by a player?
<|assistant|>
SELECT MIN("field_goals") FROM "michigan_86_ohio_state_0";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_summary" (
"player" text,
"touchdowns_5_points" real,
"extra_points_1_point" real,
"field_goals_5_points" real,
"safeties_2_points" real,
"total_points" real
);
Question: How many extra points did Paul Dickey received
<|assistant|>
SELECT MAX("extra_points_1_point") FROM "scoring_summary" WHERE "player"='Paul Dickey';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_summary" (
"player" text,
"touchdowns_5_points" real,
"extra_points_1_point" real,
"field_goals_5_points" real,
"safeties_2_points" real,
"total_points" real
);
Question: How many 5 points field goals is minimum
<|assistant|>
SELECT MIN("field_goals_5_points") FROM "scoring_summary";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scoring_summary" (
"player" text,
"touchdowns_5_points" real,
"extra_points_1_point" real,
"field_goals_5_points" real,
"safeties_2_points" real,
"total_points" real
);
Question: How many player with total points of 75
<|assistant|>
SELECT COUNT("player") FROM "scoring_summary" WHERE "total_points"=75;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_65_ohio_normal_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: Name the most field goals
<|assistant|>
SELECT MAX("field_goals") FROM "michigan_65_ohio_normal_0";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_65_ohio_normal_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: Name the number of points for right halfback and starter being yes
<|assistant|>
SELECT COUNT("points") FROM "michigan_65_ohio_normal_0" WHERE "position"='Right halfback' AND "starter"='yes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_65_ohio_normal_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: Na,e the number of field goals for right tackle
<|assistant|>
SELECT COUNT("field_goals") FROM "michigan_65_ohio_normal_0" WHERE "position"='Right tackle';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_65_ohio_normal_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: Name the most extra points for right halfback
<|assistant|>
SELECT MAX("extra_points") FROM "michigan_65_ohio_normal_0" WHERE "position"='Right halfback';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_48_ohio_northern_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: What positions does Tom Hammond play?
<|assistant|>
SELECT "position" FROM "michigan_48_ohio_northern_0" WHERE "player"='Tom Hammond';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_48_ohio_northern_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: What positions does Hal Weeks play?
<|assistant|>
SELECT "position" FROM "michigan_48_ohio_northern_0" WHERE "player"='Hal Weeks';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_48_ohio_northern_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: How many points does Clark have?
<|assistant|>
SELECT "points" FROM "michigan_48_ohio_northern_0" WHERE "player"='Clark';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_72_american_medical_school_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: How many points did the player who was right guard score?
<|assistant|>
SELECT COUNT("points") FROM "michigan_72_american_medical_school_0" WHERE "position"='Right guard';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_72_american_medical_school_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: Was there a starter when 3 touchdowns were scored?
<|assistant|>
SELECT "starter" FROM "michigan_72_american_medical_school_0" WHERE "touchdowns"=3;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_72_american_medical_school_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: How many touchdowns were there when Heston was in play?
<|assistant|>
SELECT MAX("touchdowns") FROM "michigan_72_american_medical_school_0" WHERE "player"='Heston';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_72_american_medical_school_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: How many maximum points were there when the left tackle was played and there were 5 extra points?
<|assistant|>
SELECT MAX("points") FROM "michigan_72_american_medical_school_0" WHERE "position"='Left tackle' AND "extra_points"=5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "presenters" (
"series" text,
"main_presenter" text,
"co_presenter" text,
"comedian" text,
"uk_co_presenter" text
);
Question: Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian?
<|assistant|>
SELECT COUNT("uk_co_presenter") FROM "presenters" WHERE "co_presenter"='Joe Swash' AND "comedian"='Russell Kane';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "presenters" (
"series" text,
"main_presenter" text,
"co_presenter" text,
"comedian" text,
"uk_co_presenter" text
);
Question: What series have Caroline Flack as a main presenter?
<|assistant|>
SELECT "series" FROM "presenters" WHERE "main_presenter"='Caroline Flack';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "presenters" (
"series" text,
"main_presenter" text,
"co_presenter" text,
"comedian" text,
"uk_co_presenter" text
);
Question: Who is the co-presenter of the series Seven (2007)?
<|assistant|>
SELECT "co_presenter" FROM "presenters" WHERE "series"='Seven (2007)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "presenters" (
"series" text,
"main_presenter" text,
"co_presenter" text,
"comedian" text,
"uk_co_presenter" text
);
Question: Who is the main presenter of the series Twelve (2012)?
<|assistant|>
SELECT "main_presenter" FROM "presenters" WHERE "series"='Twelve (2012)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "presenters" (
"series" text,
"main_presenter" text,
"co_presenter" text,
"comedian" text,
"uk_co_presenter" text
);
Question: Who is the UK co-presenters that have Joe Swash as a co-presenter of the series Eleven (2011)?
<|assistant|>
SELECT "uk_co_presenter" FROM "presenters" WHERE "co_presenter"='Joe Swash' AND "series"='Eleven (2011)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_1_2002" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: What position did Nell McAndrew finish?
<|assistant|>
SELECT "finished" FROM "series_1_2002" WHERE "celebrity"='Nell McAndrew';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_1_2002" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: Who was the champion boxer?
<|assistant|>
SELECT "celebrity" FROM "series_1_2002" WHERE "famous_for"='Champion boxer';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_1_2002" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: When did Darren Day enter?
<|assistant|>
SELECT "entered" FROM "series_1_2002" WHERE "celebrity"='Darren Day';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_1_2002" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: What position did Tara Palmer-Tomkinson finish?
<|assistant|>
SELECT "finished" FROM "series_1_2002" WHERE "celebrity"='Tara Palmer-Tomkinson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_1_2002" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: When did the 4th finisher enter?
<|assistant|>
SELECT "entered" FROM "series_1_2002" WHERE "finished"='4th';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_1_2002" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: When did Darren Day enter?
<|assistant|>
SELECT "entered" FROM "series_1_2002" WHERE "celebrity"='Darren Day';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2_2003" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: How many people finished 9th?
<|assistant|>
SELECT COUNT("exited") FROM "series_2_2003" WHERE "finished"='9th';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_details" (
"series" text,
"presenters" text,
"start_date" text,
"end_date" text,
"days_in_camp" real,
"camp_mates" real,
"winner" text,
"highest_viewers_millions" text,
"lowest_viewers_millions" text,
"average_viewers_millions" text
);
Question: What was the least amount of camp mates?
<|assistant|>
SELECT MIN("camp_mates") FROM "series_details";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_14346353_1" (
"series_num" real,
"title" text,
"story_by" text,
"teleplay_by" text,
"directed_by" text,
"original_air_date" text
);
Question: Who directed series #4 that was teleplayed by David Simon?
<|assistant|>
SELECT COUNT("directed_by") FROM "table1_14346353_1" WHERE "teleplay_by"='David Simon' AND "series_num"=4;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_14346353_1" (
"series_num" real,
"title" text,
"story_by" text,
"teleplay_by" text,
"directed_by" text,
"original_air_date" text
);
Question: What is the title of series #1?
<|assistant|>
SELECT "title" FROM "table1_14346353_1" WHERE "series_num"=1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_14345690_5" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: What is the finished place where exited is day 11?
<|assistant|>
SELECT "finished" FROM "table1_14345690_5" WHERE "exited"='Day 11';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_14345690_5" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: Who is the famous for that finished 2nd?
<|assistant|>
SELECT "famous_for" FROM "table1_14345690_5" WHERE "finished"='2nd';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_14345690_5" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: What is the famous for where the finished is 5th?
<|assistant|>
SELECT "famous_for" FROM "table1_14345690_5" WHERE "finished"='5th';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_14345690_5" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: What is the exited day where the celebrity is vic reeves?
<|assistant|>
SELECT "exited" FROM "table1_14345690_5" WHERE "celebrity"='Vic Reeves';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_14345690_5" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: what is the celebrity where the finished is 5th?
<|assistant|>
SELECT "celebrity" FROM "table1_14345690_5" WHERE "finished"='5th';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
Question: When was incumbent John Thomas Wilson first elected?
<|assistant|>
SELECT "first_elected" FROM "ohio" WHERE "incumbent"='John Thomas Wilson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
Question: Who were the candidates in the election where John Beatty was the incumbent?
<|assistant|>
SELECT "candidates" FROM "ohio" WHERE "incumbent"='John Beatty';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
Question: Who was the incumbent in the Ohio 16 district?
<|assistant|>
SELECT "incumbent" FROM "ohio" WHERE "district"='Ohio 16';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
Question: What is the average for the team with n/a in 1992 and 37 in 1992-93?
<|assistant|>
SELECT "average" FROM "relegation" WHERE "1991_92"='N/A' AND "1992_93"='37';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
Question: What is the result in 91-92 for the team with a 1.053 average?
<|assistant|>
SELECT "1991_92" FROM "relegation" WHERE "average"='1.053';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
Question: What is the 92'-93 result for the team with 55 in 91'-92?
<|assistant|>
SELECT "1992_93" FROM "relegation" WHERE "1991_92"='55';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
Question: What is the average for the team with 39 in 1991-92?
<|assistant|>
SELECT "average" FROM "relegation" WHERE "1991_92"='39';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_roster_season_2012_13" (
"shirt_no" real,
"nationality" text,
"player" text,
"birth_date" text,
"height" real,
"position" text
);
Question: Name the birth date for shirt number 7
<|assistant|>
SELECT "birth_date" FROM "team_roster_season_2012_13" WHERE "shirt_no"=7;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_roster_season_2012_13" (
"shirt_no" real,
"nationality" text,
"player" text,
"birth_date" text,
"height" real,
"position" text
);
Question: Name the maximum height for yury berezhko
<|assistant|>
SELECT MAX("height") FROM "team_roster_season_2012_13" WHERE "player"='Yury Berezhko';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1989_90" text,
"1990_91" text,
"1991_1992" real
);
Question: Name the least points where 1989-90 is 31
<|assistant|>
SELECT MIN("points") FROM "relegation" WHERE "1989_90"='31';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1989_90" text,
"1990_91" text,
"1991_1992" real
);
Question: Name the 1991-1992 for river plate
<|assistant|>
SELECT "1991_1992" FROM "relegation" WHERE "team"='River Plate';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1439045_5" (
"model" text,
"year" text,
"die_size_mm_2_1" text,
"config_core_2" text,
"m_triangles_s_1" real,
"m_pixel_s_1" real,
"bus_width_bit" text,
"direct_x" text,
"open_gl" text,
"open_gl_es" text,
"gflops_200_m_hz" text,
"frequency" real
);
Question: Which models can perform flops(@ 200mhz) is 3.2
<|assistant|>
SELECT "model" FROM "table1_1439045_5" WHERE "gflops_200_m_hz"='3.2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1439045_5" (
"model" text,
"year" text,
"die_size_mm_2_1" text,
"config_core_2" text,
"m_triangles_s_1" real,
"m_pixel_s_1" real,
"bus_width_bit" text,
"direct_x" text,
"open_gl" text,
"open_gl_es" text,
"gflops_200_m_hz" text,
"frequency" real
);
Question: Which version of opengl is used by model sgx520?
<|assistant|>
SELECT "open_gl_es" FROM "table1_1439045_5" WHERE "model"='SGX520';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1439045_5" (
"model" text,
"year" text,
"die_size_mm_2_1" text,
"config_core_2" text,
"m_triangles_s_1" real,
"m_pixel_s_1" real,
"bus_width_bit" text,
"direct_x" text,
"open_gl" text,
"open_gl_es" text,
"gflops_200_m_hz" text,
"frequency" real
);
Question: What is the die size(mm 2) for model sgx531?
<|assistant|>
SELECT "die_size_mm_2_1" FROM "table1_1439045_5" WHERE "model"='SGX531';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
Question: Name the total number of 1991-92 for 1992-93 for 44
<|assistant|>
SELECT COUNT("1991_92") FROM "relegation" WHERE "1992_93"='44';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
Question: Name the team for average 1.026 for 1991-92 being 40
<|assistant|>
SELECT "team" FROM "relegation" WHERE "average"='1.026' AND "1991_92"='40';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "barangays" (
"barangay" text,
"population_2010" real,
"economic_class" text,
"land_area_in_sqm" real,
"punong_barangay_term_2010_2013" text
);
Question: Name the economic class for punong barangay being antonio b. gangan
<|assistant|>
SELECT "economic_class" FROM "barangays" WHERE "punong_barangay_term_2010_2013"='Antonio B. Gangan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "barangays" (
"barangay" text,
"population_2010" real,
"economic_class" text,
"land_area_in_sqm" real,
"punong_barangay_term_2010_2013" text
);
Question: Name the economic class for arnold g. apalla
<|assistant|>
SELECT "economic_class" FROM "barangays" WHERE "punong_barangay_term_2010_2013"='Arnold G. Apalla';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "barangays" (
"barangay" text,
"population_2010" real,
"economic_class" text,
"land_area_in_sqm" real,
"punong_barangay_term_2010_2013" text
);
Question: Name the economic class for artemoio m. baymosa
<|assistant|>
SELECT "economic_class" FROM "barangays" WHERE "punong_barangay_term_2010_2013"='Artemoio M. Baymosa';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kuopio" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
Question: Name the total number of 1stm when 2nd m is 125.5
<|assistant|>
SELECT COUNT("1st_m") FROM "kuopio" WHERE "2nd_m"='125.5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kuopio" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
Question: Name the overall wc points rank for 2nd m for 122.5
<|assistant|>
SELECT "overall_wc_points_rank" FROM "kuopio" WHERE "2nd_m"='122.5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kuopio" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
Question: Name the number of nationality is tom hilde
<|assistant|>
SELECT COUNT("nationality") FROM "kuopio" WHERE "name"='Tom Hilde';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1439096_1" (
"episode_no" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date_atv" text,
"production_no" real
);
Question: What was the original air date (atv) of the episode "Recall to Service"?
<|assistant|>
SELECT "original_air_date_atv" FROM "table1_1439096_1" WHERE "title"='\"Recall to Service\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1439096_1" (
"episode_no" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date_atv" text,
"production_no" real
);
Question: Who was the director of the episode originally aired on 26 October 1969?
<|assistant|>
SELECT "director" FROM "table1_1439096_1" WHERE "original_air_date_atv"='26 October 1969';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1439096_1" (
"episode_no" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date_atv" text,
"production_no" real
);
Question: What is the lowest production number?
<|assistant|>
SELECT MIN("production_no") FROM "table1_1439096_1";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1439096_1" (
"episode_no" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date_atv" text,
"production_no" real
);
Question: What is the title of the episode with the original air date of 28 September 1969?
<|assistant|>
SELECT "title" FROM "table1_1439096_1" WHERE "original_air_date_atv"='28 September 1969';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1439096_1" (
"episode_no" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date_atv" text,
"production_no" real
);
Question: What was the original air date (atv) of episode 1?
<|assistant|>
SELECT "original_air_date_atv" FROM "table1_1439096_1" WHERE "episode_no"=1;<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.