QIAN-ME/bird_schema_data huggingface dataset:
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 world
【Schema】
# Table: Country
[
(Code:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Name:TEXT, Examples: [Aruba, Afghanistan, Angola]),
(Continent:TEXT, Examples: [North America, Asia, Africa]),
(Region:TEXT, Examples: [Caribbean]),
(SurfaceArea:REAL, Examples: [193.0, 652090.0, 1246700.0]),
(IndepYear:INTEGER, Examples: [1919, 1975, 1912]),
(Population:INTEGER, Examples: [103000, 22720000, 12878000]),
(LifeExpectancy:REAL, Examples: [78.4, 45.9, 38.3]),
(GNP:REAL, Examples: [828.0, 5976.0, 6648.0]),
(GNPOld:REAL, Examples: [793.0, 7984.0, 2500.0]),
(LocalName:TEXT, Examples: [Aruba]),
(GovernmentForm:TEXT, Examples: [Nonmetropolitan Territory of The Netherlands]),
(HeadOfState:TEXT, Examples: [Beatrix]),
(Capital:INTEGER, Examples: [129, 1, 56]),
(Code2:TEXT, Examples: [AW, AF, AO])
]
# Table: CountryLanguage
[
(CountryCode:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Language:TEXT, Primary Key, Examples: [Dutch, English, Papiamento]),
(IsOfficial:TEXT, Examples: [T, F]),
(Percentage:REAL, Examples: [5.3, 9.5, 76.7])
]
# Table: City
[
(ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [Kabul, Qandahar, Herat]),
(CountryCode:TEXT, Examples: [AFG, NLD, ANT]),
(District:TEXT, Examples: [Kabol, Qandahar, Herat]),
(Population:INTEGER, Examples: [1780000, 237500, 186800])
]
【Foreign keys】
CountryLanguage.CountryCode=Country.Code
City.CountryCode=Country.Code

    【Question】
    Which country has the most crowded city in the world? most crowded city refers to MAX(Population);

    【Evidence】
    most crowded city refers to MAX(Population);

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.Name FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode ORDER BY T2.Population DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 world
【Schema】
# Table: Country
[
(Code:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Name:TEXT, Examples: [Aruba, Afghanistan, Angola]),
(Continent:TEXT, Examples: [North America, Asia, Africa]),
(Region:TEXT, Examples: [Caribbean]),
(SurfaceArea:REAL, Examples: [193.0, 652090.0, 1246700.0]),
(IndepYear:INTEGER, Examples: [1919, 1975, 1912]),
(Population:INTEGER, Examples: [103000, 22720000, 12878000]),
(LifeExpectancy:REAL, Examples: [78.4, 45.9, 38.3]),
(GNP:REAL, Examples: [828.0, 5976.0, 6648.0]),
(GNPOld:REAL, Examples: [793.0, 7984.0, 2500.0]),
(LocalName:TEXT, Examples: [Aruba]),
(GovernmentForm:TEXT, Examples: [Nonmetropolitan Territory of The Netherlands]),
(HeadOfState:TEXT, Examples: [Beatrix]),
(Capital:INTEGER, Examples: [129, 1, 56]),
(Code2:TEXT, Examples: [AW, AF, AO])
]
# Table: CountryLanguage
[
(CountryCode:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Language:TEXT, Primary Key, Examples: [Dutch, English, Papiamento]),
(IsOfficial:TEXT, Examples: [T, F]),
(Percentage:REAL, Examples: [5.3, 9.5, 76.7])
]
# Table: City
[
(ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [Kabul, Qandahar, Herat]),
(CountryCode:TEXT, Examples: [AFG, NLD, ANT]),
(District:TEXT, Examples: [Kabol, Qandahar, Herat]),
(Population:INTEGER, Examples: [1780000, 237500, 186800])
]
【Foreign keys】
CountryLanguage.CountryCode=Country.Code
City.CountryCode=Country.Code

    【Question】
    What is the life expectancy of residents in the most crowded city? most crowded city refers to MAX(Population);

    【Evidence】
    most crowded city refers to MAX(Population);

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.LifeExpectancy FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code ORDER BY T1.Population DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 world
【Schema】
# Table: Country
[
(Code:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Name:TEXT, Examples: [Aruba, Afghanistan, Angola]),
(Continent:TEXT, Examples: [North America, Asia, Africa]),
(Region:TEXT, Examples: [Caribbean]),
(SurfaceArea:REAL, Examples: [193.0, 652090.0, 1246700.0]),
(IndepYear:INTEGER, Examples: [1919, 1975, 1912]),
(Population:INTEGER, Examples: [103000, 22720000, 12878000]),
(LifeExpectancy:REAL, Examples: [78.4, 45.9, 38.3]),
(GNP:REAL, Examples: [828.0, 5976.0, 6648.0]),
(GNPOld:REAL, Examples: [793.0, 7984.0, 2500.0]),
(LocalName:TEXT, Examples: [Aruba]),
(GovernmentForm:TEXT, Examples: [Nonmetropolitan Territory of The Netherlands]),
(HeadOfState:TEXT, Examples: [Beatrix]),
(Capital:INTEGER, Examples: [129, 1, 56]),
(Code2:TEXT, Examples: [AW, AF, AO])
]
# Table: CountryLanguage
[
(CountryCode:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Language:TEXT, Primary Key, Examples: [Dutch, English, Papiamento]),
(IsOfficial:TEXT, Examples: [T, F]),
(Percentage:REAL, Examples: [5.3, 9.5, 76.7])
]
# Table: City
[
(ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [Kabul, Qandahar, Herat]),
(CountryCode:TEXT, Examples: [AFG, NLD, ANT]),
(District:TEXT, Examples: [Kabol, Qandahar, Herat]),
(Population:INTEGER, Examples: [1780000, 237500, 186800])
]
【Foreign keys】
CountryLanguage.CountryCode=Country.Code
City.CountryCode=Country.Code

    【Question】
    What is the GNP of the least crowded city in the world? least crowded city refers to MIN(Population);

    【Evidence】
    least crowded city refers to MIN(Population);

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.GNP FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code ORDER BY T1.Population ASC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 world
【Schema】
# Table: Country
[
(Code:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Name:TEXT, Examples: [Aruba, Afghanistan, Angola]),
(Continent:TEXT, Examples: [North America, Asia, Africa]),
(Region:TEXT, Examples: [Caribbean]),
(SurfaceArea:REAL, Examples: [193.0, 652090.0, 1246700.0]),
(IndepYear:INTEGER, Examples: [1919, 1975, 1912]),
(Population:INTEGER, Examples: [103000, 22720000, 12878000]),
(LifeExpectancy:REAL, Examples: [78.4, 45.9, 38.3]),
(GNP:REAL, Examples: [828.0, 5976.0, 6648.0]),
(GNPOld:REAL, Examples: [793.0, 7984.0, 2500.0]),
(LocalName:TEXT, Examples: [Aruba]),
(GovernmentForm:TEXT, Examples: [Nonmetropolitan Territory of The Netherlands]),
(HeadOfState:TEXT, Examples: [Beatrix]),
(Capital:INTEGER, Examples: [129, 1, 56]),
(Code2:TEXT, Examples: [AW, AF, AO])
]
# Table: CountryLanguage
[
(CountryCode:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Language:TEXT, Primary Key, Examples: [Dutch, English, Papiamento]),
(IsOfficial:TEXT, Examples: [T, F]),
(Percentage:REAL, Examples: [5.3, 9.5, 76.7])
]
# Table: City
[
(ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [Kabul, Qandahar, Herat]),
(CountryCode:TEXT, Examples: [AFG, NLD, ANT]),
(District:TEXT, Examples: [Kabol, Qandahar, Herat]),
(Population:INTEGER, Examples: [1780000, 237500, 186800])
]
【Foreign keys】
CountryLanguage.CountryCode=Country.Code
City.CountryCode=Country.Code

    【Question】
    Within the 5 most crowded cities in the world, which country has the most languages used? most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));

    【Evidence】
    most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT Name FROM ( SELECT T1.Name, T2.Language FROM City AS T1 INNER JOIN CountryLanguage AS T2 ON T1.CountryCode = T2.CountryCode GROUP BY T1.Name, T1.Population, T2.Language ORDER BY T1.Population DESC ) AS T3 GROUP BY t3.Name ORDER BY COUNT(Language) DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 world
【Schema】
# Table: Country
[
(Code:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Name:TEXT, Examples: [Aruba, Afghanistan, Angola]),
(Continent:TEXT, Examples: [North America, Asia, Africa]),
(Region:TEXT, Examples: [Caribbean]),
(SurfaceArea:REAL, Examples: [193.0, 652090.0, 1246700.0]),
(IndepYear:INTEGER, Examples: [1919, 1975, 1912]),
(Population:INTEGER, Examples: [103000, 22720000, 12878000]),
(LifeExpectancy:REAL, Examples: [78.4, 45.9, 38.3]),
(GNP:REAL, Examples: [828.0, 5976.0, 6648.0]),
(GNPOld:REAL, Examples: [793.0, 7984.0, 2500.0]),
(LocalName:TEXT, Examples: [Aruba]),
(GovernmentForm:TEXT, Examples: [Nonmetropolitan Territory of The Netherlands]),
(HeadOfState:TEXT, Examples: [Beatrix]),
(Capital:INTEGER, Examples: [129, 1, 56]),
(Code2:TEXT, Examples: [AW, AF, AO])
]
# Table: CountryLanguage
[
(CountryCode:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Language:TEXT, Primary Key, Examples: [Dutch, English, Papiamento]),
(IsOfficial:TEXT, Examples: [T, F]),
(Percentage:REAL, Examples: [5.3, 9.5, 76.7])
]
# Table: City
[
(ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [Kabul, Qandahar, Herat]),
(CountryCode:TEXT, Examples: [AFG, NLD, ANT]),
(District:TEXT, Examples: [Kabol, Qandahar, Herat]),
(Population:INTEGER, Examples: [1780000, 237500, 186800])
]
【Foreign keys】
CountryLanguage.CountryCode=Country.Code
City.CountryCode=Country.Code

    【Question】
    Which country has the smallest surface area and the most crowded city? smallest surface area refers to MIN(smallest surface area); most crowded city refers to MAX(Population);

    【Evidence】
    smallest surface area refers to MIN(smallest surface area); most crowded city refers to MAX(Population);

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code ORDER BY T1.Population DESC, T2.SurfaceArea DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 world
【Schema】
# Table: Country
[
(Code:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Name:TEXT, Examples: [Aruba, Afghanistan, Angola]),
(Continent:TEXT, Examples: [North America, Asia, Africa]),
(Region:TEXT, Examples: [Caribbean]),
(SurfaceArea:REAL, Examples: [193.0, 652090.0, 1246700.0]),
(IndepYear:INTEGER, Examples: [1919, 1975, 1912]),
(Population:INTEGER, Examples: [103000, 22720000, 12878000]),
(LifeExpectancy:REAL, Examples: [78.4, 45.9, 38.3]),
(GNP:REAL, Examples: [828.0, 5976.0, 6648.0]),
(GNPOld:REAL, Examples: [793.0, 7984.0, 2500.0]),
(LocalName:TEXT, Examples: [Aruba]),
(GovernmentForm:TEXT, Examples: [Nonmetropolitan Territory of The Netherlands]),
(HeadOfState:TEXT, Examples: [Beatrix]),
(Capital:INTEGER, Examples: [129, 1, 56]),
(Code2:TEXT, Examples: [AW, AF, AO])
]
# Table: CountryLanguage
[
(CountryCode:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Language:TEXT, Primary Key, Examples: [Dutch, English, Papiamento]),
(IsOfficial:TEXT, Examples: [T, F]),
(Percentage:REAL, Examples: [5.3, 9.5, 76.7])
]
# Table: City
[
(ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [Kabul, Qandahar, Herat]),
(CountryCode:TEXT, Examples: [AFG, NLD, ANT]),
(District:TEXT, Examples: [Kabol, Qandahar, Herat]),
(Population:INTEGER, Examples: [1780000, 237500, 186800])
]
【Foreign keys】
CountryLanguage.CountryCode=Country.Code
City.CountryCode=Country.Code

    【Question】
    List down all cities of China. China is a name of country;

    【Evidence】
    China is a name of country;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.Name = 'China'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 world
【Schema】
# Table: Country
[
(Code:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Name:TEXT, Examples: [Aruba, Afghanistan, Angola]),
(Continent:TEXT, Examples: [North America, Asia, Africa]),
(Region:TEXT, Examples: [Caribbean]),
(SurfaceArea:REAL, Examples: [193.0, 652090.0, 1246700.0]),
(IndepYear:INTEGER, Examples: [1919, 1975, 1912]),
(Population:INTEGER, Examples: [103000, 22720000, 12878000]),
(LifeExpectancy:REAL, Examples: [78.4, 45.9, 38.3]),
(GNP:REAL, Examples: [828.0, 5976.0, 6648.0]),
(GNPOld:REAL, Examples: [793.0, 7984.0, 2500.0]),
(LocalName:TEXT, Examples: [Aruba]),
(GovernmentForm:TEXT, Examples: [Nonmetropolitan Territory of The Netherlands]),
(HeadOfState:TEXT, Examples: [Beatrix]),
(Capital:INTEGER, Examples: [129, 1, 56]),
(Code2:TEXT, Examples: [AW, AF, AO])
]
# Table: CountryLanguage
[
(CountryCode:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Language:TEXT, Primary Key, Examples: [Dutch, English, Papiamento]),
(IsOfficial:TEXT, Examples: [T, F]),
(Percentage:REAL, Examples: [5.3, 9.5, 76.7])
]
# Table: City
[
(ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [Kabul, Qandahar, Herat]),
(CountryCode:TEXT, Examples: [AFG, NLD, ANT]),
(District:TEXT, Examples: [Kabol, Qandahar, Herat]),
(Population:INTEGER, Examples: [1780000, 237500, 186800])
]
【Foreign keys】
CountryLanguage.CountryCode=Country.Code
City.CountryCode=Country.Code

    【Question】
    What are the cities for country called "Â´Uman" in local name.

    【Evidence】
    

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.LocalName = 'Â´Uman'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 world
【Schema】
# Table: Country
[
(Code:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Name:TEXT, Examples: [Aruba, Afghanistan, Angola]),
(Continent:TEXT, Examples: [North America, Asia, Africa]),
(Region:TEXT, Examples: [Caribbean]),
(SurfaceArea:REAL, Examples: [193.0, 652090.0, 1246700.0]),
(IndepYear:INTEGER, Examples: [1919, 1975, 1912]),
(Population:INTEGER, Examples: [103000, 22720000, 12878000]),
(LifeExpectancy:REAL, Examples: [78.4, 45.9, 38.3]),
(GNP:REAL, Examples: [828.0, 5976.0, 6648.0]),
(GNPOld:REAL, Examples: [793.0, 7984.0, 2500.0]),
(LocalName:TEXT, Examples: [Aruba]),
(GovernmentForm:TEXT, Examples: [Nonmetropolitan Territory of The Netherlands]),
(HeadOfState:TEXT, Examples: [Beatrix]),
(Capital:INTEGER, Examples: [129, 1, 56]),
(Code2:TEXT, Examples: [AW, AF, AO])
]
# Table: CountryLanguage
[
(CountryCode:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Language:TEXT, Primary Key, Examples: [Dutch, English, Papiamento]),
(IsOfficial:TEXT, Examples: [T, F]),
(Percentage:REAL, Examples: [5.3, 9.5, 76.7])
]
# Table: City
[
(ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [Kabul, Qandahar, Herat]),
(CountryCode:TEXT, Examples: [AFG, NLD, ANT]),
(District:TEXT, Examples: [Kabol, Qandahar, Herat]),
(Population:INTEGER, Examples: [1780000, 237500, 186800])
]
【Foreign keys】
CountryLanguage.CountryCode=Country.Code
City.CountryCode=Country.Code

    【Question】
    What is the average life expentancy of countries that speak Arabic? average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';

    【Evidence】
    average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT AVG(T1.LifeExpectancy) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Arabic'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 world
【Schema】
# Table: Country
[
(Code:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Name:TEXT, Examples: [Aruba, Afghanistan, Angola]),
(Continent:TEXT, Examples: [North America, Asia, Africa]),
(Region:TEXT, Examples: [Caribbean]),
(SurfaceArea:REAL, Examples: [193.0, 652090.0, 1246700.0]),
(IndepYear:INTEGER, Examples: [1919, 1975, 1912]),
(Population:INTEGER, Examples: [103000, 22720000, 12878000]),
(LifeExpectancy:REAL, Examples: [78.4, 45.9, 38.3]),
(GNP:REAL, Examples: [828.0, 5976.0, 6648.0]),
(GNPOld:REAL, Examples: [793.0, 7984.0, 2500.0]),
(LocalName:TEXT, Examples: [Aruba]),
(GovernmentForm:TEXT, Examples: [Nonmetropolitan Territory of The Netherlands]),
(HeadOfState:TEXT, Examples: [Beatrix]),
(Capital:INTEGER, Examples: [129, 1, 56]),
(Code2:TEXT, Examples: [AW, AF, AO])
]
# Table: CountryLanguage
[
(CountryCode:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Language:TEXT, Primary Key, Examples: [Dutch, English, Papiamento]),
(IsOfficial:TEXT, Examples: [T, F]),
(Percentage:REAL, Examples: [5.3, 9.5, 76.7])
]
# Table: City
[
(ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [Kabul, Qandahar, Herat]),
(CountryCode:TEXT, Examples: [AFG, NLD, ANT]),
(District:TEXT, Examples: [Kabol, Qandahar, Herat]),
(Population:INTEGER, Examples: [1780000, 237500, 186800])
]
【Foreign keys】
CountryLanguage.CountryCode=Country.Code
City.CountryCode=Country.Code

    【Question】
    What is the GNP growth rate by the country of Shanghai? GNP growth rate = DIVIDE(SUBTRACT(GNP, GNPOld), GNPOld); Shanghai is a name of city;

    【Evidence】
    GNP growth rate = DIVIDE(SUBTRACT(GNP, GNPOld), GNPOld); Shanghai is a name of city;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT CAST((T1.GNP - T1.GNPOld) AS REAL) / T1.GNPOld FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Shanghai'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 world
【Schema】
# Table: Country
[
(Code:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Name:TEXT, Examples: [Aruba, Afghanistan, Angola]),
(Continent:TEXT, Examples: [North America, Asia, Africa]),
(Region:TEXT, Examples: [Caribbean]),
(SurfaceArea:REAL, Examples: [193.0, 652090.0, 1246700.0]),
(IndepYear:INTEGER, Examples: [1919, 1975, 1912]),
(Population:INTEGER, Examples: [103000, 22720000, 12878000]),
(LifeExpectancy:REAL, Examples: [78.4, 45.9, 38.3]),
(GNP:REAL, Examples: [828.0, 5976.0, 6648.0]),
(GNPOld:REAL, Examples: [793.0, 7984.0, 2500.0]),
(LocalName:TEXT, Examples: [Aruba]),
(GovernmentForm:TEXT, Examples: [Nonmetropolitan Territory of The Netherlands]),
(HeadOfState:TEXT, Examples: [Beatrix]),
(Capital:INTEGER, Examples: [129, 1, 56]),
(Code2:TEXT, Examples: [AW, AF, AO])
]
# Table: CountryLanguage
[
(CountryCode:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Language:TEXT, Primary Key, Examples: [Dutch, English, Papiamento]),
(IsOfficial:TEXT, Examples: [T, F]),
(Percentage:REAL, Examples: [5.3, 9.5, 76.7])
]
# Table: City
[
(ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [Kabul, Qandahar, Herat]),
(CountryCode:TEXT, Examples: [AFG, NLD, ANT]),
(District:TEXT, Examples: [Kabol, Qandahar, Herat]),
(Population:INTEGER, Examples: [1780000, 237500, 186800])
]
【Foreign keys】
CountryLanguage.CountryCode=Country.Code
City.CountryCode=Country.Code

    【Question】
    What is the district of Zaanstad? Zaanstad is a name of city;

    【Evidence】
    Zaanstad is a name of city;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT District FROM City WHERE name = 'Zaanstad'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 world
【Schema】
# Table: Country
[
(Code:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Name:TEXT, Examples: [Aruba, Afghanistan, Angola]),
(Continent:TEXT, Examples: [North America, Asia, Africa]),
(Region:TEXT, Examples: [Caribbean]),
(SurfaceArea:REAL, Examples: [193.0, 652090.0, 1246700.0]),
(IndepYear:INTEGER, Examples: [1919, 1975, 1912]),
(Population:INTEGER, Examples: [103000, 22720000, 12878000]),
(LifeExpectancy:REAL, Examples: [78.4, 45.9, 38.3]),
(GNP:REAL, Examples: [828.0, 5976.0, 6648.0]),
(GNPOld:REAL, Examples: [793.0, 7984.0, 2500.0]),
(LocalName:TEXT, Examples: [Aruba]),
(GovernmentForm:TEXT, Examples: [Nonmetropolitan Territory of The Netherlands]),
(HeadOfState:TEXT, Examples: [Beatrix]),
(Capital:INTEGER, Examples: [129, 1, 56]),
(Code2:TEXT, Examples: [AW, AF, AO])
]
# Table: CountryLanguage
[
(CountryCode:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Language:TEXT, Primary Key, Examples: [Dutch, English, Papiamento]),
(IsOfficial:TEXT, Examples: [T, F]),
(Percentage:REAL, Examples: [5.3, 9.5, 76.7])
]
# Table: City
[
(ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [Kabul, Qandahar, Herat]),
(CountryCode:TEXT, Examples: [AFG, NLD, ANT]),
(District:TEXT, Examples: [Kabol, Qandahar, Herat]),
(Population:INTEGER, Examples: [1780000, 237500, 186800])
]
【Foreign keys】
CountryLanguage.CountryCode=Country.Code
City.CountryCode=Country.Code

    【Question】
    What city has the highest population? highest population refers to MAX(Population);

    【Evidence】
    highest population refers to MAX(Population);

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT Name FROM City ORDER BY Population DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 world
【Schema】
# Table: Country
[
(Code:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Name:TEXT, Examples: [Aruba, Afghanistan, Angola]),
(Continent:TEXT, Examples: [North America, Asia, Africa]),
(Region:TEXT, Examples: [Caribbean]),
(SurfaceArea:REAL, Examples: [193.0, 652090.0, 1246700.0]),
(IndepYear:INTEGER, Examples: [1919, 1975, 1912]),
(Population:INTEGER, Examples: [103000, 22720000, 12878000]),
(LifeExpectancy:REAL, Examples: [78.4, 45.9, 38.3]),
(GNP:REAL, Examples: [828.0, 5976.0, 6648.0]),
(GNPOld:REAL, Examples: [793.0, 7984.0, 2500.0]),
(LocalName:TEXT, Examples: [Aruba]),
(GovernmentForm:TEXT, Examples: [Nonmetropolitan Territory of The Netherlands]),
(HeadOfState:TEXT, Examples: [Beatrix]),
(Capital:INTEGER, Examples: [129, 1, 56]),
(Code2:TEXT, Examples: [AW, AF, AO])
]
# Table: CountryLanguage
[
(CountryCode:TEXT, Primary Key, Examples: [ABW, AFG, AGO]),
(Language:TEXT, Primary Key, Examples: [Dutch, English, Papiamento]),
(IsOfficial:TEXT, Examples: [T, F]),
(Percentage:REAL, Examples: [5.3, 9.5, 76.7])
]
# Table: City
[
(ID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Name:TEXT, Examples: [Kabul, Qandahar, Herat]),
(CountryCode:TEXT, Examples: [AFG, NLD, ANT]),
(District:TEXT, Examples: [Kabol, Qandahar, Herat]),
(Population:INTEGER, Examples: [1780000, 237500, 186800])
]
【Foreign keys】
CountryLanguage.CountryCode=Country.Code
City.CountryCode=Country.Code

    【Question】
    Provide the district of the city with a population of 201843.

    【Evidence】
    

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT District FROM City WHERE population = 201843