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】
    Calculate the average population per city in Karnataka district. average population = AVG(Population);

    【Evidence】
    average population = AVG(Population);

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

SQL: SELECT AVG(Population) FROM City WHERE District = 'Karnataka' GROUP BY ID
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 the languages used in the USA. USA refers to CountryCode = 'USA';

    【Evidence】
    USA refers to CountryCode = 'USA';

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

SQL: SELECT Language FROM CountryLanguage WHERE CountryCode = 'USA'
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 use Portuguese? Portuguese refers to `Language` = 'Portuguese';

    【Evidence】
    Portuguese refers to `Language` = 'Portuguese';

    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 Language = 'Portuguese' THEN 1 ELSE 0 END) FROM CountryLanguage
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 cities are there in England? England refers to District = 'England';

    【Evidence】
    England refers to District = 'England';

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

SQL: SELECT COUNT(ID) FROM City WHERE District = 'England'
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 cities are there in the country with the largest surface area? largest surface area refers to MAX(SurfaceArea);

    【Evidence】
    largest surface area refers to MAX(SurfaceArea);

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

SQL: SELECT T2.ID FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.SurfaceArea = ( SELECT MAX(SurfaceArea) FROM Country )
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 and population of San Marino? capital city refers to Capital; San Marino is a name of country;

    【Evidence】
    capital city refers to Capital; San Marino 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, T2.Population FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'San Marino'
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 the languages used in Turkmenistan. Turkmenistan is a name of country;

    【Evidence】
    Turkmenistan 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 = 'Turkmenistan'
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 name, capital city and its official language of the country with the highest life expectancy. capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);

    【Evidence】
    capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy 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 T1.Name, T1.Capital, T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode INNER JOIN City AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' 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 the countries and their official languages in Antarctica. official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';

    【Evidence】
    official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';

    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, T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Antarctica' 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】
    Among the languages used in Baltic Countries, provide the languages which are used by over 80%.

 Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;

    【Evidence】
    Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;

    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.Region = 'Baltic Countries' AND T2.Percentage > 80
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】
    Among the languages used in Baltic Countries, provide the languages which are used by over 80%. Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;

    【Evidence】
    Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;

    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.Region = 'Baltic Countries' AND T2.Percentage > 80
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 name, located country, and life expectancy of the most populated city most populated city refers to MAX(Population);

    【Evidence】
    most populated 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, T1.Code, T1.LifeExpectancy FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode ORDER BY T2.Population DESC LIMIT 1