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】
    What is the local name of Ukraine that they are also known for? Ukraine is a name of country;

    【Evidence】
    Ukraine 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 LocalName FROM Country WHERE Name = 'Ukraine'
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】
    How many countries have Socialistic Republic form of government? Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';

    【Evidence】
    Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';

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

SQL: SELECT COUNT(Code) FROM Country WHERE GovernmentForm = 'Socialistic Republic'
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 official language of China? official language refers to IsOfficial = 'T'; China is a name of country;

    【Evidence】
    official language refers to IsOfficial = 'T'; 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 T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'China' AND T2.IsOfficial = 'T'
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】
    How many percent of the population of China used Chinese as their language? percent refers to Percentage; China is a name of country; use Chinese as their language refers to Language = 'Chinese';

    【Evidence】
    percent refers to Percentage; China is a name of country; use Chinese as their language refers to Language = 'Chinese';

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

SQL: SELECT T2.Percentage FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'China' AND T2.Language = 'Chinese'
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 form of government that the city of Manila has? form of government refers to GovernmentForm;

    【Evidence】
    form of government refers to GovernmentForm;

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

SQL: SELECT T1.GovernmentForm FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Manila'
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 capital city of the Philippines? capital city refers to Capital; Philippines is a name of country;

    【Evidence】
    capital city refers to Capital; Philippines 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.Capital FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Philipiines'
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 all the languages used in Europe. Europe refers to Continent = 'Europe';

    【Evidence】
    Europe refers to Continent = 'Europe';

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

SQL: SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Europe'
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】
    Who is the head of state of the country where the city of Pyongyang is under?

    【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.HeadOfState FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Pyongyang'
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】
    How many unofficial languages are used in Italy? unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;

    【Evidence】
    unofficial languages refers to IsOfficial = 'F'; Italy 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 SUM(CASE WHEN T2.IsOfficial = 'F' THEN 1 ELSE 0 END) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Italy'
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 in Russia has the least population? Russia is a name of country; least population refers to MIN(Population);

    【Evidence】
    Russia is a name of country; least population 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.Name FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Russian Federation' ORDER BY T2.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】
    List all the cities in the country where there is high life expectancy at birth. high life expectancy at birth refers to MAX(LifeExpectancy);

    【Evidence】
    high life expectancy at birth refers to MAX(LifeExpectancy);

    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 Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode ORDER BY T1.LifeExpectancy 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 all the official and unofficial languages used by the country that declared its independence in 1830. official language refers to IsOfficial = 'T'; unofficial language refers to IsOfficial = 'F'; declared independence in 1830 refers to IndepYear = 1830;

    【Evidence】
    official language refers to IsOfficial = 'T'; unofficial language refers to IsOfficial = 'F'; declared independence in 1830 refers to IndepYear = 1830;

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

SQL: SELECT T2.Language, T2.IsOfficial FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.IndepYear = 1830 GROUP BY T2.Language, T2.IsOfficial