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