text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances" (
"name" text,
"years" text,
"league" text,
"fa_cup" text,
"league_cup" text,
"europe" text,
"other_a" text,
"total" text
);
Question: which fa cups had a total of 565 (7)?
<|assistant|>
SELECT "fa_cup" FROM "appearances" WHERE "total"='565 (7)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances" (
"name" text,
"years" text,
"league" text,
"fa_cup" text,
"league_cup" text,
"europe" text,
"other_a" text,
"total" text
);
Question: which leage had a league cup of 46 (1)
<|assistant|>
SELECT "league" FROM "appearances" WHERE "league_cup"='46 (1)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances" (
"name" text,
"years" text,
"league" text,
"fa_cup" text,
"league_cup" text,
"europe" text,
"other_a" text,
"total" text
);
Question: which years had other a of 8 (1)?
<|assistant|>
SELECT "years" FROM "appearances" WHERE "other_a"='8 (1)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overall_scorers" (
"name" text,
"years" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"europe" real,
"other_a" real,
"total" text
);
Question: What name is associated with League 142?
<|assistant|>
SELECT "name" FROM "overall_scorers" WHERE "league"=142;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overall_scorers" (
"name" text,
"years" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"europe" real,
"other_a" real,
"total" text
);
Question: How many values of Other A correspond to Tommy Johnson Category:Articles with hCards?
<|assistant|>
SELECT COUNT("other_a") FROM "overall_scorers" WHERE "name"='Tommy Johnson Category:Articles with hCards';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overall_scorers" (
"name" text,
"years" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"europe" real,
"other_a" real,
"total" text
);
Question: How many different Leagues are associated with Billy Meredith Category:Articles with hCards?
<|assistant|>
SELECT COUNT("league") FROM "overall_scorers" WHERE "name"='Billy Meredith Category:Articles with hCards';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overall_scorers" (
"name" text,
"years" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"europe" real,
"other_a" real,
"total" text
);
Question: How many separate values for Years are associated with FA Cup of 5?
<|assistant|>
SELECT COUNT("years") FROM "overall_scorers" WHERE "fa_cup"=5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overall_scorers" (
"name" text,
"years" text,
"league" real,
"fa_cup" real,
"league_cup" real,
"europe" real,
"other_a" real,
"total" text
);
Question: What years have a total of 139?
<|assistant|>
SELECT "years" FROM "overall_scorers" WHERE "total"='139';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_countries_and_territories_data" (
"country_territory" text,
"area_km" real,
"population" real,
"pop_density_km" real,
"gdp_millions_of_usd_2009" real,
"gdp_per_capita_usd_2009_2011" real,
"capital" text
);
Question: What was the GDP (in millions USD) of Indonesia in 2009?
<|assistant|>
SELECT COUNT("gdp_millions_of_usd_2009") FROM "main_countries_and_territories_data" WHERE "country_territory"='Indonesia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_countries_and_territories_data" (
"country_territory" text,
"area_km" real,
"population" real,
"pop_density_km" real,
"gdp_millions_of_usd_2009" real,
"gdp_per_capita_usd_2009_2011" real,
"capital" text
);
Question: What was the GDP (in millions USD) of Hong Kong in 2009?
<|assistant|>
SELECT MAX("gdp_millions_of_usd_2009") FROM "main_countries_and_territories_data" WHERE "country_territory"='Hong Kong';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"position" text,
"number" text,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
Question: How tall is Braxton Kelley?
<|assistant|>
SELECT "height" FROM "roster" WHERE "name"='Braxton Kelley';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"position" text,
"number" text,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
Question: what class is Braxton Kelley in?
<|assistant|>
SELECT COUNT("class") FROM "roster" WHERE "name"='Braxton Kelley';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"position" text,
"number" text,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
Question: how many hometowns use the position of fs?
<|assistant|>
SELECT COUNT("hometown") FROM "roster" WHERE "position"='FS';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"position" text,
"number" text,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
Question: who is number 98?
<|assistant|>
SELECT "name" FROM "roster" WHERE "number"='98';<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: How many games were played against the Chicago Bears?
<|assistant|>
SELECT COUNT("record") FROM "schedule" WHERE "opponent"='Chicago Bears';<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: What is the result of the game against the Chicago Bears?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "opponent"='Chicago Bears';<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: What was the final score of the game on October 4, 1970?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "date"='October 4, 1970';<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: Who was the team's opponent of October 25, 1970?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "date"='October 25, 1970';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1998" text,
"copa_mercosur_1998" text,
"copa_conmebol_1998" text,
"copa_interamericana_1998" text,
"recopa_sudamericana_1998" text,
"intercontinental_cup_1998" text
);
Question: Did Flamengo play in the Recopa Sudamericana in 1998
<|assistant|>
SELECT "recopa_sudamericana_1998" FROM "brazilian_clubs_in_international_competi" WHERE "team"='Flamengo';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1998" text,
"copa_mercosur_1998" text,
"copa_conmebol_1998" text,
"copa_interamericana_1998" text,
"recopa_sudamericana_1998" text,
"intercontinental_cup_1998" text
);
Question: What were Cruzeiro results in the Copa Mercosur in 1998
<|assistant|>
SELECT "copa_mercosur_1998" FROM "brazilian_clubs_in_international_competi" WHERE "team"='Cruzeiro';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"team_nickname" text,
"tenure" text,
"new_conference" text,
"new_classification" text
);
Question: Where is California Lutheran University located?
<|assistant|>
SELECT COUNT("location") FROM "former_members" WHERE "institution"='California Lutheran University';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"team_nickname" text,
"tenure" text,
"new_conference" text,
"new_classification" text
);
Question: What is the new classification for the University of Arizona Western in the Collegiate Lacrosse League?
<|assistant|>
SELECT "new_classification" FROM "former_members" WHERE "institution"='University of Arizona';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"team_nickname" text,
"tenure" text,
"new_conference" text,
"new_classification" text
);
Question: What is California State University, Hayward's new conference for Western Collegiate Lacrosse?
<|assistant|>
SELECT "new_conference" FROM "former_members" WHERE "institution"='California State University, Hayward';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"team_nickname" text,
"tenure" text,
"new_conference" text,
"new_classification" text
);
Question: Which new conference is the Toreros Western Collegiate Lacrosse team playing in?
<|assistant|>
SELECT "new_conference" FROM "former_members" WHERE "team_nickname"='Toreros';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_07_season_as_a_five_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
Question: In Ascot (UK), what was the result?
<|assistant|>
SELECT "result" FROM "2006_07_season_as_a_five_year_old" WHERE "venue"='Ascot (UK)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_07_season_as_a_five_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
Question: How many different jockeys ran on 17 Feb 2007?
<|assistant|>
SELECT COUNT("jockey") FROM "2006_07_season_as_a_five_year_old" WHERE "date"='17 Feb 2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_07_season_as_a_five_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
Question: How many venues were used on 10 Mar 2007?
<|assistant|>
SELECT "venue" FROM "2006_07_season_as_a_five_year_old" WHERE "date"='10 Mar 2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_07_season_as_a_five_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
Question: How many jockeys are listed running at the Sir Rupert Clarke Stakes?
<|assistant|>
SELECT COUNT("jockey") FROM "2006_07_season_as_a_five_year_old" WHERE "race"='Sir Rupert Clarke Stakes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_07_season_as_a_five_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
Question: How many venues had a race called the Australia Stakes?
<|assistant|>
SELECT COUNT("venue") FROM "2006_07_season_as_a_five_year_old" WHERE "race"='Australia Stakes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_05_season_as_a_three_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
Question: Where was the 1400 m held?
<|assistant|>
SELECT "venue" FROM "2004_05_season_as_a_three_year_old" WHERE "distance"='1400 m';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_05_season_as_a_three_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
Question: What is the group name when 3yo hcp restricted maiden was raced?
<|assistant|>
SELECT "group" FROM "2004_05_season_as_a_three_year_old" WHERE "race"='3yo Hcp Restricted Maiden';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2004_05_season_as_a_three_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"jockey" text,
"winner_2nd" text
);
Question: When did the 55 kg participant race?
<|assistant|>
SELECT "date" FROM "2004_05_season_as_a_three_year_old" WHERE "weight_kg"='55';<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: Name the number of weeks for 50073 attendance
<|assistant|>
SELECT COUNT("week") FROM "schedule" WHERE "attendance"=50073;<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: Name the result for milwaukee county stadium
<|assistant|>
SELECT "result" FROM "schedule" WHERE "game_site"='Milwaukee County Stadium';<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: What was the record when the game was played at Cleveland Municipal Stadium?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "game_site"='Cleveland Municipal Stadium';<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: What was the game date in week 13?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week"=13;<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: Where did the team play the Detroit Lions?
<|assistant|>
SELECT "game_site" FROM "schedule" WHERE "opponent"='Detroit Lions';<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: What week of the season did the date December 2, 1962 fall on?
<|assistant|>
SELECT "week" FROM "schedule" WHERE "date"='December 2, 1962';<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: what is the result for October 14, 1956?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "date"='October 14, 1956';<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: Name the game site for week 6
<|assistant|>
SELECT "game_site" FROM "schedule" WHERE "week"=6;<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: Name the number of weeks for san francisco 49ers
<|assistant|>
SELECT COUNT("week") FROM "schedule" WHERE "opponent"='San Francisco 49ers';<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: Name the most attendance for game site for los angeles memorial coliseum
<|assistant|>
SELECT MAX("attendance") FROM "schedule" WHERE "game_site"='Los Angeles Memorial Coliseum';<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: what's the result with record being 0–1
<|assistant|>
SELECT "result" FROM "schedule" WHERE "record"='0–1';<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: what's the game site with result being l 24–34
<|assistant|>
SELECT "game_site" FROM "schedule" WHERE "result"='L 24–34';<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: how many result with date being october 25, 1964
<|assistant|>
SELECT COUNT("result") FROM "schedule" WHERE "date"='October 25, 1964';<|endoftext|>
|
<|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,
"record" text,
"game_site" text,
"attendance" real
);
Question: how many opponent with date being october 25, 1964
<|assistant|>
SELECT COUNT("opponent") FROM "schedule" WHERE "date"='October 25, 1964';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "municipalities" (
"administrative_division" text,
"area_km" text,
"population_2000_census" real,
"population_2010_census" real,
"population_density_2010_km" real
);
Question: Name the population 2010 census for population 2000 census of 920599
<|assistant|>
SELECT "population_2010_census" FROM "municipalities" WHERE "population_2000_census"=920599;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "municipalities" (
"administrative_division" text,
"area_km" text,
"population_2000_census" real,
"population_2010_census" real,
"population_density_2010_km" real
);
Question: Name the total number of population 2000 census for mesquita
<|assistant|>
SELECT COUNT("population_2000_census") FROM "municipalities" WHERE "administrative_division"='Mesquita';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "municipalities" (
"administrative_division" text,
"area_km" text,
"population_2000_census" real,
"population_2010_census" real,
"population_density_2010_km" real
);
Question: Name the population 2000 census for 77 area
<|assistant|>
SELECT "population_2000_census" FROM "municipalities" WHERE "area_km"='77';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "municipalities" (
"administrative_division" text,
"area_km" text,
"population_2000_census" real,
"population_2010_census" real,
"population_density_2010_km" real
);
Question: Name the number of area where population density 2010 for 514
<|assistant|>
SELECT COUNT("area_km") FROM "municipalities" WHERE "population_density_2010_km"=514;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "municipalities" (
"administrative_division" text,
"area_km" text,
"population_2000_census" real,
"population_2010_census" real,
"population_density_2010_km" real
);
Question: Name the number of population density 2010 for duque de caxias
<|assistant|>
SELECT COUNT("population_density_2010_km") FROM "municipalities" WHERE "administrative_division"='Duque de Caxias';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "municipalities" (
"administrative_division" text,
"area_km" text,
"population_2000_census" real,
"population_2010_census" real,
"population_density_2010_km" real
);
Question: Name the administrative division for 95391
<|assistant|>
SELECT "administrative_division" FROM "municipalities" WHERE "population_2010_census"=95391;<|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" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: How many losses did 12 de Octubre have ?
<|assistant|>
SELECT MIN("losses") FROM "torneo_clausura" WHERE "team"='12 de Octubre';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1499791_2" (
"english_gloss" text,
"santee_sisseton" text,
"yankton_yanktonai" text,
"northern_lakota" text,
"southern_lakota" text
);
Question: Name the santee sisseton for morning
<|assistant|>
SELECT "santee_sisseton" FROM "table1_1499791_2" WHERE "english_gloss"='morning';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1499791_2" (
"english_gloss" text,
"santee_sisseton" text,
"yankton_yanktonai" text,
"northern_lakota" text,
"southern_lakota" text
);
Question: Name the southern lakota for morning
<|assistant|>
SELECT "southern_lakota" FROM "table1_1499791_2" WHERE "english_gloss"='morning';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1499791_2" (
"english_gloss" text,
"santee_sisseton" text,
"yankton_yanktonai" text,
"northern_lakota" text,
"southern_lakota" text
);
Question: Name the southern lakota for wakȟáŋyeža
<|assistant|>
SELECT "southern_lakota" FROM "table1_1499791_2" WHERE "yankton_yanktonai"='wakȟáŋyeža';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1499791_2" (
"english_gloss" text,
"santee_sisseton" text,
"yankton_yanktonai" text,
"northern_lakota" text,
"southern_lakota" text
);
Question: Name the english gloss for naháŋȟčiŋ
<|assistant|>
SELECT "english_gloss" FROM "table1_1499791_2" WHERE "southern_lakota"='naháŋȟčiŋ';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1499791_2" (
"english_gloss" text,
"santee_sisseton" text,
"yankton_yanktonai" text,
"northern_lakota" text,
"southern_lakota" text
);
Question: Name the santee sisseton for híŋhaŋna
<|assistant|>
SELECT COUNT("santee_sisseton") FROM "table1_1499791_2" WHERE "yankton_yanktonai"='híŋhaŋna';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1499791_2" (
"english_gloss" text,
"santee_sisseton" text,
"yankton_yanktonai" text,
"northern_lakota" text,
"southern_lakota" text
);
Question: Name the yankton yanktonai for wičháša
<|assistant|>
SELECT "yankton_yanktonai" FROM "table1_1499791_2" WHERE "southern_lakota"='wičháša';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_14999879_2" (
"round" real,
"choice" real,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text
);
Question: What was the last round the team drafted?
<|assistant|>
SELECT MAX("round") FROM "table1_14999879_2";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_14999879_2" (
"round" real,
"choice" real,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text
);
Question: What college did steve justice attend?
<|assistant|>
SELECT "college" FROM "table1_14999879_2" WHERE "player"='Steve Justice';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: How may women doubles winner were there when Philippe Aulner was mens singles winner?
<|assistant|>
SELECT COUNT("womens_doubles") FROM "past_winners" WHERE "mens_singles"='Philippe Aulner';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: How many mixed doubles were won in 1996?
<|assistant|>
SELECT COUNT("mixed_doubles") FROM "past_winners" WHERE "year"=1996;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: who is the the womens doubles with mens doubles being reinhold pum karl buchart and mixed doubles being hermann fröhlich lore voit
<|assistant|>
SELECT "womens_doubles" FROM "past_winners" WHERE "mens_doubles"='Reinhold Pum Karl Buchart' AND "mixed_doubles"='Hermann Fröhlich Lore Voit';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: who is the the womens doubles with mens doubles being leopold bauer alfred kohlhauser
<|assistant|>
SELECT "womens_doubles" FROM "past_winners" WHERE "mens_doubles"='Leopold Bauer Alfred Kohlhauser';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: who is the the mixed doubles with mens singles being peter moritz
<|assistant|>
SELECT "mixed_doubles" FROM "past_winners" WHERE "mens_singles"='Peter Moritz';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: who is the the mens doubles with mens singles being jürgen koch and womens singles being sabine ploner
<|assistant|>
SELECT "mens_doubles" FROM "past_winners" WHERE "mens_singles"='Jürgen Koch' AND "womens_singles"='Sabine Ploner';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: who is the the womens singles with mixed doubles being bernd frohnwieser hilde themel and year being smaller than 1959.0
<|assistant|>
SELECT "womens_singles" FROM "past_winners" WHERE "mixed_doubles"='Bernd Frohnwieser Hilde Themel' AND "year"<1959.0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
Question: How many mixed doubles were there in the year that Olga Koseli won the women's singles?
<|assistant|>
SELECT COUNT("mixed_doubles") FROM "past_winners" WHERE "womens_singles"='Olga Koseli';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15026994_5" (
"num" real,
"episode" text,
"writer" text,
"director" text,
"original_air_date" text,
"viewing_figure" text
);
Question: What is the # for the episode with viewing figures of 7.02 million ?
<|assistant|>
SELECT MAX("num") FROM "table1_15026994_5" WHERE "viewing_figure"='7.02 million';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_15_countries_by_tally" (
"rank" real,
"country" text,
"miss_universe" real,
"1st_runner_up" real,
"2nd_runner_up" real,
"3rd_runner_up" real,
"4th_runner_up" real,
"semifinalists" real,
"total" real
);
Question: What is the lowest rank for puerto rico?
<|assistant|>
SELECT MIN("rank") FROM "top_15_countries_by_tally" WHERE "country"='Puerto Rico';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_15_countries_by_tally" (
"rank" real,
"country" text,
"miss_universe" real,
"1st_runner_up" real,
"2nd_runner_up" real,
"3rd_runner_up" real,
"4th_runner_up" real,
"semifinalists" real,
"total" real
);
Question: What is the highest rank for the country with 6 2nd runner ups?
<|assistant|>
SELECT MAX("rank") FROM "top_15_countries_by_tally" WHERE "2nd_runner_up"=6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15026994_2" (
"num" real,
"episode" text,
"writer" text,
"director" text,
"original_air_date" text,
"viewing_figure" text
);
Question: How many different directors are associated with the writer Gaby Chiappe?
<|assistant|>
SELECT COUNT("director") FROM "table1_15026994_2" WHERE "writer"='Gaby Chiappe';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15026994_2" (
"num" real,
"episode" text,
"writer" text,
"director" text,
"original_air_date" text,
"viewing_figure" text
);
Question: What writers are associated with a viewing figure of 7.01 million?
<|assistant|>
SELECT "writer" FROM "table1_15026994_2" WHERE "viewing_figure"='7.01 million';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15026994_2" (
"num" real,
"episode" text,
"writer" text,
"director" text,
"original_air_date" text,
"viewing_figure" text
);
Question: What are all episodes with a viewing figure of 6.72 million?
<|assistant|>
SELECT "episode" FROM "table1_15026994_2" WHERE "viewing_figure"='6.72 million';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15026994_2" (
"num" real,
"episode" text,
"writer" text,
"director" text,
"original_air_date" text,
"viewing_figure" text
);
Question: What original air dates are associated with a viewing figure of 7.27 million?
<|assistant|>
SELECT "original_air_date" FROM "table1_15026994_2" WHERE "viewing_figure"='7.27 million';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15026994_3" (
"num" real,
"episode" text,
"writer" text,
"director" text,
"original_air_date" text,
"viewing_figure" text
);
Question: Who is the director of the episode at entry number 13?
<|assistant|>
SELECT "director" FROM "table1_15026994_3" WHERE "num"=13;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15026994_3" (
"num" real,
"episode" text,
"writer" text,
"director" text,
"original_air_date" text,
"viewing_figure" text
);
Question: Who wrote the episode that David Tucker directed?
<|assistant|>
SELECT COUNT("writer") FROM "table1_15026994_3" WHERE "director"='David Tucker';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15026994_3" (
"num" real,
"episode" text,
"writer" text,
"director" text,
"original_air_date" text,
"viewing_figure" text
);
Question: Which episode has been viewed 6.34 million times?
<|assistant|>
SELECT "episode" FROM "table1_15026994_3" WHERE "viewing_figure"='6.34 million';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15026994_3" (
"num" real,
"episode" text,
"writer" text,
"director" text,
"original_air_date" text,
"viewing_figure" text
);
Question: What is the original air date of the episode directed by Paul Marcus?
<|assistant|>
SELECT "original_air_date" FROM "table1_15026994_3" WHERE "director"='Paul Marcus';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_15026994_3" (
"num" real,
"episode" text,
"writer" text,
"director" text,
"original_air_date" text,
"viewing_figure" text
);
Question: Which numerical entry corresponds to "Episode 9"?
<|assistant|>
SELECT COUNT("num") FROM "table1_15026994_3" WHERE "episode"='\"Episode 9\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general" (
"software" text,
"version" text,
"operating_systems" text,
"developer" text,
"license" text
);
Question: How many licenses have version 1.2.2.0?
<|assistant|>
SELECT COUNT("license") FROM "general" WHERE "version"='1.2.2.0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general" (
"software" text,
"version" text,
"operating_systems" text,
"developer" text,
"license" text
);
Question: What is the version with sbagen software?
<|assistant|>
SELECT "version" FROM "general" WHERE "software"='SBaGen';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general" (
"software" text,
"version" text,
"operating_systems" text,
"developer" text,
"license" text
);
Question: How many licenses have mind workstation software?
<|assistant|>
SELECT COUNT("license") FROM "general" WHERE "software"='Mind WorkStation';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general" (
"software" text,
"version" text,
"operating_systems" text,
"developer" text,
"license" text
);
Question: What is the software with version 1.2.2.0?
<|assistant|>
SELECT "software" FROM "general" WHERE "version"='1.2.2.0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general" (
"software" text,
"version" text,
"operating_systems" text,
"developer" text,
"license" text
);
Question: What is hte license for beeone smod/hms software?
<|assistant|>
SELECT "license" FROM "general" WHERE "software"='BeeOne SMOD/HMS';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general" (
"software" text,
"version" text,
"operating_systems" text,
"developer" text,
"license" text
);
Question: What are all the operating systems for sbagen?
<|assistant|>
SELECT "operating_systems" FROM "general" WHERE "software"='SBaGen';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_ido_vocabulary_with_its_si" (
"ido" text,
"english" text,
"italian" text,
"french" text,
"german" text,
"russian" text,
"spanish" text
);
Question: What is the English word for the French word cheval?
<|assistant|>
SELECT "english" FROM "comparison_of_ido_vocabulary_with_its_si" WHERE "french"='cheval';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_ido_vocabulary_with_its_si" (
"ido" text,
"english" text,
"italian" text,
"french" text,
"german" text,
"russian" text,
"spanish" text
);
Question: What is the Spanish word for the French word filtrer?
<|assistant|>
SELECT "spanish" FROM "comparison_of_ido_vocabulary_with_its_si" WHERE "french"='filtrer';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_ido_vocabulary_with_its_si" (
"ido" text,
"english" text,
"italian" text,
"french" text,
"german" text,
"russian" text,
"spanish" text
);
Question: What is the French word where the German word is filtern?
<|assistant|>
SELECT "french" FROM "comparison_of_ido_vocabulary_with_its_si" WHERE "german"='filtern';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_ido_vocabulary_with_its_si" (
"ido" text,
"english" text,
"italian" text,
"french" text,
"german" text,
"russian" text,
"spanish" text
);
Question: What is the french word for the Russian word filtrovat (фильтровать)?
<|assistant|>
SELECT "french" FROM "comparison_of_ido_vocabulary_with_its_si" WHERE "russian"='filtrovat (фильтровать)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_ido_vocabulary_with_its_si" (
"ido" text,
"english" text,
"italian" text,
"french" text,
"german" text,
"russian" text,
"spanish" text
);
Question: What is the French word for the Italian word nazione?
<|assistant|>
SELECT "french" FROM "comparison_of_ido_vocabulary_with_its_si" WHERE "italian"='nazione';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_ido_vocabulary_with_its_si" (
"ido" text,
"english" text,
"italian" text,
"french" text,
"german" text,
"russian" text,
"spanish" text
);
Question: What is the English word for the Russian words loshad, kobyla (лошадь, кобыла)?
<|assistant|>
SELECT "english" FROM "comparison_of_ido_vocabulary_with_its_si" WHERE "russian"='loshad, kobyla (лошадь, кобыла)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "geography_of_students" (
"states" text,
"fall_05" real,
"fall_06" real,
"fall_07" real,
"fall_08" real,
"fall_09" real
);
Question: Which state had 3821 students in the fall of 06?
<|assistant|>
SELECT "states" FROM "geography_of_students" WHERE "fall_06"=3821;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "geography_of_students" (
"states" text,
"fall_05" real,
"fall_06" real,
"fall_07" real,
"fall_08" real,
"fall_09" real
);
Question: How man students were from Maryland in Fall 05?
<|assistant|>
SELECT "fall_05" FROM "geography_of_students" WHERE "states"='Maryland';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "geography_of_students" (
"states" text,
"fall_05" real,
"fall_06" real,
"fall_07" real,
"fall_08" real,
"fall_09" real
);
Question: What is the number of students in Fall 09 from the state that had 3940 in Fall 07?
<|assistant|>
SELECT MAX("fall_09") FROM "geography_of_students" WHERE "fall_07"=3940;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "geography_of_students" (
"states" text,
"fall_05" real,
"fall_06" real,
"fall_07" real,
"fall_08" real,
"fall_09" real
);
Question: What was the highest number of students in Fall 09 in the state that had 3821 in Fall 06?
<|assistant|>
SELECT MAX("fall_09") FROM "geography_of_students" WHERE "fall_06"=3821;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "geography_of_students" (
"states" text,
"fall_05" real,
"fall_06" real,
"fall_07" real,
"fall_08" real,
"fall_09" real
);
Question: What is the lowest number of students from a state during the Fall 06 semester?
<|assistant|>
SELECT MIN("fall_06") FROM "geography_of_students";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "immigration_by_state" (
"north_carolina" text,
"273_7pct" text,
"south_carolina" text,
"132_1pct" text,
"mississippi" text,
"95_8pct" text,
"wisconsin" text,
"59_4pct" text,
"vermont" text,
"32_5pct" text
);
Question: Name the 132.1% for where north carolina is colorado
<|assistant|>
SELECT "132_1pct" FROM "immigration_by_state" WHERE "north_carolina"='Colorado';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "immigration_by_state" (
"north_carolina" text,
"273_7pct" text,
"south_carolina" text,
"132_1pct" text,
"mississippi" text,
"95_8pct" text,
"wisconsin" text,
"59_4pct" text,
"vermont" text,
"32_5pct" text
);
Question: Name the vermont for where 95.8% is 60.6%
<|assistant|>
SELECT "vermont" FROM "immigration_by_state" WHERE "95_8pct"='60.6%';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.