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】
    List the names of the country that officially uses English as their language. officially uses English as their language refers to `Language` = 'English' AND IsOfficial = 'T';

    【Evidence】
    officially uses English as their language refers to `Language` = 'English' AND IsOfficial = 'T';

    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 CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.IsOfficial = 'T' AND T1.Language = 'English'
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 districts that belong to the country with the lowest surface area? lowest surface area refers to MIN(SurfaceArea);

    【Evidence】
    lowest surface area refers to MIN(SurfaceArea);

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

SQL: SELECT T1.District FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code ORDER BY T2.SurfaceArea 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 down the country names of countries that have a GNP lower than 1000 and have Dutch as their language. GNP lower than 1000 refers to GNP < 1000; Dutch as their language refers to `Language` = 'Dutch';

    【Evidence】
    GNP lower than 1000 refers to GNP < 1000; Dutch as their language refers to `Language` = 'Dutch';

    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 CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.GNP < 1000 AND T1.IsOfficial = 'T' AND T1.Language = 'Dutch'
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 country where district "Entre Rios" belongs?

    【Evidence】
    

    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 WHERE T1.District = 'Entre Rios' 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 local name of the country where "The Valley" city belongs?

    【Evidence】
    

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

SQL: SELECT T2.LocalName FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.Name = 'The Valley'
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 the cities belongs to the country that has surface area greater than 7000000. surface area greater than 7000000 refers to SurfaceArea > 7000000;

    【Evidence】
    surface area greater than 7000000 refers to SurfaceArea > 7000000;

    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.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.SurfaceArea > 7000000
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 the countries that uses Japanese as their language? uses Japanese as their language refers to `Language` = 'Japanese';

    【Evidence】
    uses Japanese as their language refers to `Language` = 'Japanese';

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

SQL: SELECT AVG(T2.LifeExpectancy) FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.Language = 'Japanese'
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 surface area of 652090?

    【Evidence】
    

    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, COUNT(T1.Name) FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.SurfaceArea = 652090 GROUP BY T2.Name
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 the languages of countries with an independence year between 1980 to 1995. independence year between 1980 to 1995 refers to IndepYear BETWEEN 1980 AND 1995;

    【Evidence】
    independence year between 1980 to 1995 refers to IndepYear BETWEEN 1980 AND 1995;

    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.Language FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.IndepYear BETWEEN 1980 AND 1995
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 the people living in Calama city?

    【Evidence】
    

    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 WHERE T1.Name = 'Calama'
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 language used in the country ruled by Pierre Buyoya. ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';

    【Evidence】
    ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';

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

SQL: SELECT T1.Language FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.HeadOfState = 'Pierre Buyoya'