Chinastark/bird_dataset huggingface dataset:
Database: world
Question: List any five countries which use English as an official language.
Evidence: English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';
SQL: SELECT T1.Name FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' LIMIT 5
Database: world
Question: Calculate the average population per city in Karnataka district.
Evidence: average population = AVG(Population);
SQL: SELECT AVG(Population) FROM City WHERE District = 'Karnataka' GROUP BY ID
Database: world
Question: List the languages used in the USA.
Evidence: USA refers to CountryCode = 'USA';
SQL: SELECT Language FROM CountryLanguage WHERE CountryCode = 'USA'
Database: world
Question: How many countries use Portuguese?
Evidence: Portuguese refers to `Language` = 'Portuguese';
SQL: SELECT SUM(CASE WHEN Language = 'Portuguese' THEN 1 ELSE 0 END) FROM CountryLanguage
Database: world
Question: How many cities are there in England?
Evidence: England refers to District = 'England';
SQL: SELECT COUNT(ID) FROM City WHERE District = 'England'
Database: world
Question: How many cities are there in the country with the largest surface area?
Evidence: largest surface area refers to MAX(SurfaceArea);
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 )
Database: world
Question: What is the capital city and population of San Marino?
Evidence: capital city refers to Capital; San Marino is a name of country;
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'
Database: world
Question: List the languages used in Turkmenistan.
Evidence: Turkmenistan is a name of country;
SQL: SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Turkmenistan'
Database: world
Question: Provide the name, capital city and its official language of the country with the highest life expectancy.
Evidence: capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);
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
Database: world
Question: List the countries and their official languages in Antarctica.
Evidence: official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';
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'
Database: world
Question: Among the languages used in Baltic Countries, provide the languages which are used by over 80%.


Evidence: Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;
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
Database: world
Question: Among the languages used in Baltic Countries, provide the languages which are used by over 80%.
Evidence: Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;
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
Database: world
Question: Provide the name, located country, and life expectancy of the most populated city
Evidence: most populated city refers to MAX(Population);
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
Database: world
Question: Describe the capital city and languages used in the country with the shortest life expectancy.
Evidence: capital city refers to Capital; shortest life expectancy refers to MIN(LifeExpectancy);
SQL: SELECT 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 ORDER BY T1.LifeExpectancy LIMIT 1
Database: world
Question: Provide the country, population, capital city, and official language of the country with the smallest surface area.
Evidence: capital city refers to Capital; official language refers to IsOfficial = 'T'; smallest surface area refers to MIN(SurfaceArea);
SQL: SELECT T1.Name, T1.Population, 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.SurfaceArea LIMIT 1
Database: world
Question: How many percent of countries in North America use English?
Evidence: percentage = MULTIPLY(DIVIDE(COUNT(Language = 'English' WHERE Continent = 'North America'), COUNT(Language WHERE Continent = 'North America')), 1.0); North America refers to Continent = 'North America'; use English refers to Language = 'English';
SQL: SELECT CAST(SUM(IIF(T2.Language = 'English', 1, 0)) AS REAL) * 100 / COUNT(T1.Code) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode
Database: world
Question: List the district name of the city with the smallest population.
Evidence: smallest population refers to MIN(Population);
SQL: SELECT District FROM City ORDER BY Population LIMIT 1
Database: world
Question: In which continent does the country with the smallest surface area belongs?
Evidence: smallest surface area refers to MIN(smallest surface area);
SQL: SELECT Continent FROM Country ORDER BY SurfaceArea LIMIT 1
Database: world
Question: Who is the head of the state where the most crowded city belongs?
Evidence: head of the state refers to HeadOfState; most crowded city refers to MAX(Population);
SQL: SELECT T1.HeadOfState FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode ORDER BY T2.Population DESC LIMIT 1
Database: world
Question: Among the countries that officially use the English language, what country has the highest capital?
Evidence: officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);
SQL: SELECT T1.Code FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' ORDER BY T1.Capital DESC LIMIT 1
Database: world
Question: List down the cities that belong to the country with a life expectancy of 66.4.
SQL: SELECT T2.Name FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.LifeExpectancy = 66.4
Database: world
Question: Give the head of the state of the country with the lowest percentage use of English as their language.
Evidence: head of the state refers to HeadOfState; lowest percentage use of English as their language refers to MIN(Percentage WHERE `Language` = 'English');
SQL: SELECT T1.HeadOfState FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' ORDER BY T2.Percentage LIMIT 1
Database: world
Question: What is the surface area of the country where Sutton Coldfield city belongs?
SQL: SELECT T1.SurfaceArea FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Sutton Coldfield'
Database: world
Question: List down the languages of the countries that have population below 8000.
Evidence: population below 8000 refers to Population < 8000;
SQL: SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Population < 8000
Database: world
Question: What are the official languages used in Belgium?
Evidence: official languages refers to IsOfficial = 'T'; Belgium is a name of country;
SQL: SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Belgium' AND T2.IsOfficial = 'T'
Database: world
Question: Give the cities and district names that belong to the country with Hajastan as its local name.
SQL: SELECT T2.Name, T2.District FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.LocalName = 'Hajastan'
Database: world
Question: How many languages are used in Cyprus?
Evidence: Cyprus is a name of Country;
SQL: SELECT SUM(CASE WHEN T1.Name = 'Cyprus' THEN 1 ELSE 0 END) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode
Database: world
Question: Provide the language used by the people of Belize.
Evidence: Belize is a name of country;
SQL: SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Belize'
Database: world
Question: List down the districts belong to the country headed by Adolf Ogi.
Evidence: headed by Adolf Ogi refers to HeadOfState = 'Adolf Ogi';
SQL: SELECT T2.District FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = 'Adolf Ogi'
Database: world
Question: Who is the head of the country where Santa Catarina district belongs?
Evidence: head of the country refers to HeadOfState;
SQL: SELECT T1.HeadOfState FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T2.District = 'Santa Catarina'
Database: world
Question: Among the countries that have GNP greater than 1500, what is the percentage of the countries have English as its language?
Evidence: GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';
SQL: SELECT CAST(SUM(IIF(T2.Language = 'English', 1, 0)) AS REAL) * 100 / COUNT(T1.Code) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GNP > 1500
Database: world
Question: In English speaking countries, provide the difference between the number of countries with republic and constitutional monarchy as its government form.
Evidence: English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));
SQL: SELECT COUNT(T1.GovernmentForm = 'Republic') - COUNT(T1.GovernmentForm = 'ConstitutionalMonarchy') FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English'
Database: world
Question: What country declared its independence in 1994?
Evidence: declared independence in 1994 refers to IndepYear = 1994;
SQL: SELECT Name FROM Country WHERE IndepYear = 1994
Database: world
Question: List all the countries in Asia.
Evidence: Asia refers to Continent = 'Asia';
SQL: SELECT Name FROM Country WHERE Continent = 'Asia'
Database: world
Question: What country in Asia has the largest gross national product(GNP)?
Evidence: Asia refers to Continent = 'Asia'; largest gross national product refers to MAX(GNP);
SQL: SELECT Name FROM Country WHERE Continent = 'Asia' ORDER BY GNP DESC LIMIT 1
Database: world
Question: How many cities are in the Philippines?
Evidence: Philippines refers to CountryCode = 'PHL';
SQL: SELECT COUNT(ID) FROM City WHERE Name = 'PHL'
Database: world
Question: What is the local name of Ukraine that they are also known for?
Evidence: Ukraine is a name of country;
SQL: SELECT LocalName FROM Country WHERE Name = 'Ukraine'
Database: world
Question: How many countries have Socialistic Republic form of government?
Evidence: Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';
SQL: SELECT COUNT(Code) FROM Country WHERE GovernmentForm = 'Socialistic Republic'
Database: world
Question: What is the official language of China?
Evidence: official language refers to IsOfficial = 'T'; China is a name of country;
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'
Database: world
Question: How many percent of the population of China used Chinese as their language?
Evidence: percent refers to Percentage; China is a name of country; use Chinese as their language refers to Language = 'Chinese';
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'
Database: world
Question: What is the form of government that the city of Manila has?
Evidence: form of government refers to GovernmentForm;
SQL: SELECT T1.GovernmentForm FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Manila'
Database: world
Question: What is the capital city of the Philippines?
Evidence: capital city refers to Capital; Philippines is a name of country;
SQL: SELECT T1.Capital FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Philipiines'
Database: world
Question: List all the languages used in Europe.
Evidence: Europe refers to Continent = 'Europe';
SQL: SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Europe'
Database: world
Question: Who is the head of state of the country where the city of Pyongyang is under?
SQL: SELECT T1.HeadOfState FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Pyongyang'
Database: world
Question: How many unofficial languages are used in Italy?
Evidence: unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;
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'
Database: world
Question: What city in Russia has the least population?
Evidence: Russia is a name of country; least population refers to MIN(Population);
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
Database: world
Question: List all the cities in the country where there is high life expectancy at birth.
Evidence: high life expectancy at birth refers to MAX(LifeExpectancy);
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
Database: world
Question: List all the official and unofficial languages used by the country that declared its independence in 1830.
Evidence: official language refers to IsOfficial = 'T'; unofficial language refers to IsOfficial = 'F'; declared independence in 1830 refers to IndepYear = 1830;
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
Database: world
Question: What is the capital city of the country with largest population?
Evidence: capital city refers to Capital; largest population refers to MAX(Population);
SQL: SELECT T1.Capital FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode ORDER BY T1.Population DESC LIMIT 1
Database: world
Question: List all the countries in the continent of Asia that use English as their unofficial language.
Evidence: use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F';
SQL: SELECT T1.Name FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Asia' AND T2.IsOfficial = 'F' GROUP BY T1.Name
Database: world
Question: Calculate the average GNP of all countries that use Arabic language.
Evidence: average GNP = AVG(GNP); use Arabic language refers to Language = 'Arabic';
SQL: SELECT AVG(T1.GNP) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Arabic'
Database: world
Question: Calculate the percentage of the surface area of all countries that uses Chinese as one of their languages.
Evidence: percentage = DIVIDE(MULTIPLY(SUM(SurfaceArea WHERE Language = 'Chinese'), SUM(SurfaceArea)), 1.0); Chinese as one of the languages refers to Language = 'Chinese';
SQL: SELECT CAST(SUM(IIF(T2.Language = 'Chinese', T1.SurfaceArea, 0)) AS REAL) * 100 / SUM(T1.SurfaceArea) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode
Database: world
Question: Which country has the smallest surface area?
Evidence: smallest surface area refers to MIN(smallest surface area);
SQL: SELECT Name FROM Country ORDER BY SurfaceArea ASC LIMIT 1
Database: world
Question: Write down the name of the largest population country.
Evidence: largest population refers to MAX(Population);
SQL: SELECT Name FROM Country ORDER BY Population DESC LIMIT 1
Database: world
Question: What is the language of the smallest population country?
Evidence: smallest population refers to MIN(Population);
SQL: SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode ORDER BY T1.Population ASC LIMIT 1
Database: world
Question: List down the name of countries whereby English is their official language.
Evidence: English is the official language refers to Language = 'English' AND IsOfficial = 'T';
SQL: SELECT T1.Name FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T'
Database: world
Question: List down the official language of the countries which declared independence after 1990,
Evidence: official lanaguage refers to IsOfficial = 'T'; declared independence after 1990 refers to IndepYear > 1990;
SQL: SELECT T1.Name, T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.IndepYear > 1990 AND T2.IsOfficial = 'T'
Database: world
Question: What is the percentage of English used in Australia?
Evidence: English refers to Language = 'English'; Australia is a name of country;
SQL: SELECT T2.Percentage FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Australia' AND T2.Language = 'English'
Database: world
Question: List down languages used in Malaysia.
Evidence: Malaysia is a name of country;
SQL: SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Malaysia'
Database: world
Question: Which country has the most crowded city in the world?
Evidence: most crowded city refers to MAX(Population);
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
Database: world
Question: What is the life expectancy of residents in the most crowded city?
Evidence: most crowded city refers to MAX(Population);
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
Database: world
Question: What is the GNP of the least crowded city in the world?
Evidence: least crowded city refers to MIN(Population);
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
Database: world
Question: Within the 5 most crowded cities in the world, which country has the most languages used?
Evidence: most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));
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
Database: world
Question: Which country has the smallest surface area and the most crowded city?
Evidence: smallest surface area refers to MIN(smallest surface area); most crowded city refers to MAX(Population);
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
Database: world
Question: List down all cities of China.
Evidence: China is a name of country;
SQL: SELECT T1.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.Name = 'China'
Database: world
Question: What are the cities for country called "Â´Uman" in local name.
SQL: SELECT T1.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.LocalName = 'Â´Uman'
Database: world
Question: What is the average life expentancy of countries that speak Arabic?
Evidence: average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';
SQL: SELECT AVG(T1.LifeExpectancy) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Arabic'
Database: world
Question: What is the GNP growth rate by the country of Shanghai?
Evidence: GNP growth rate = DIVIDE(SUBTRACT(GNP, GNPOld), GNPOld); Shanghai is a name of city;
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'
Database: world
Question: What is the district of Zaanstad?
Evidence: Zaanstad is a name of city;
SQL: SELECT District FROM City WHERE name = 'Zaanstad'
Database: world
Question: What city has the highest population?
Evidence: highest population refers to MAX(Population);
SQL: SELECT Name FROM City ORDER BY Population DESC LIMIT 1
Database: world
Question: Provide the district of the city with a population of 201843.
SQL: SELECT District FROM City WHERE population = 201843
Database: world
Question: What country has the largest surface area?
Evidence: largest surface area refers to MAX(SurfaceArea);
SQL: SELECT Name FROM Country ORDER BY SurfaceArea DESC LIMIT 1
Database: world
Question: How many countries have a life expectancy of 75.1?
SQL: SELECT COUNT(*) FROM Country WHERE LifeExpectancy = 75.1
Database: world
Question: What is the year of independence of Brunei?
Evidence: year of independence refers to IndepYear; Brunei is a name of country;
SQL: SELECT IndepYear FROM Country WHERE Name = 'Brunei'
Database: world
Question: How many countries have no GNP?
Evidence: no GNP refers to GNP = 0;
SQL: SELECT COUNT(*) FROM Country WHERE GNP = 0
Database: world
Question: What is the average surface area of all countries?
Evidence: average surface area = AVG(SurfaceArea);
SQL: SELECT AVG(SurfaceArea) FROM Country
Database: world
Question: How many languages are there in the country where Tocantins district belongs?
SQL: SELECT COUNT(DISTINCT T2.Language) FROM City AS T1 INNER JOIN CountryLanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.District = 'Tocantins'
Database: world
Question: What are the districts that belong to the country with the largest surface area?
Evidence: largest surface area refers to MAX(SurfaceArea);
SQL: SELECT T1.District FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.Name = ( SELECT Name FROM Country ORDER BY SurfaceArea DESC LIMIT 1 )
Database: world
Question: How many cities are there in the country ruled by Kostis Stefanopoulos?
Evidence: ruled by Kostis Stefanopoulos refers to HeadOfState = 'Kostis Stefanopoulos';
SQL: SELECT COUNT(DISTINCT T1.Name) FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.HeadOfState = 'Kostis Stefanopoulos'
Database: world
Question: What are the official languages used in Greece?
Evidence: official language refers to IsOfficial = 'T'; Greece is a name of country;
SQL: SELECT T1.Language FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.IsOfficial = 'T' AND T2.name = 'Greece'
Database: world
Question: Give the population of the country where Queimados city belongs.
SQL: SELECT T2.Population FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.Name = 'Queimados'