cnatale/presto-athena-txt-2-sql huggingface dataset:
find id of the tv channels that from the countries where have more than two tv channels.
Additional table information: table: tvshow
SQL: SELECT id FROM tv_channel GROUP BY country HAVING COUNT(*) > 2
What are the ids of all tv channels that have more than 2 TV channels?
Additional table information: table: tvshow
SQL: SELECT id FROM tv_channel GROUP BY country HAVING COUNT(*) > 2
find the id of tv channels that do not play any cartoon directed by Ben Jones.
Additional table information: table: tvshow
SQL: SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'
What are the ids of the TV channels that do not have any cartoons directed by Ben Jones?
Additional table information: table: tvshow
SQL: SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'
find the package option of the tv channel that do not have any cartoon directed by Ben Jones.
Additional table information: table: tvshow
SQL: SELECT package_option FROM TV_Channel WHERE NOT id IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')
What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?
Additional table information: table: tvshow
SQL: SELECT package_option FROM TV_Channel WHERE NOT id IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')
How many poker players are there?
Additional table information: table: poker_player
SQL: SELECT COUNT(*) FROM poker_player
Count the number of poker players.
Additional table information: table: poker_player
SQL: SELECT COUNT(*) FROM poker_player
List the earnings of poker players in descending order.
Additional table information: table: poker_player
SQL: SELECT Earnings FROM poker_player ORDER BY Earnings DESC
What are the earnings of poker players, ordered descending by value?
Additional table information: table: poker_player
SQL: SELECT Earnings FROM poker_player ORDER BY Earnings DESC
List the final tables made and the best finishes of poker players.
Additional table information: table: poker_player
SQL: SELECT Final_Table_Made, Best_Finish FROM poker_player
What are the final tables made and best finishes for all poker players?
Additional table information: table: poker_player
SQL: SELECT Final_Table_Made, Best_Finish FROM poker_player
What is the average earnings of poker players?
Additional table information: table: poker_player
SQL: SELECT AVG(Earnings) FROM poker_player
Return the average earnings across all poker players.
Additional table information: table: poker_player
SQL: SELECT AVG(Earnings) FROM poker_player
What is the money rank of the poker player with the highest earnings?
Additional table information: table: poker_player
SQL: SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1
Return the money rank of the player with the greatest earnings.
Additional table information: table: poker_player
SQL: SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1
What is the maximum number of final tables made among poker players with earnings less than 200000?
Additional table information: table: poker_player
SQL: SELECT MAX(Final_Table_Made) FROM poker_player WHERE Earnings < 200000
Return the maximum final tables made across all poker players who have earnings below 200000.
Additional table information: table: poker_player
SQL: SELECT MAX(Final_Table_Made) FROM poker_player WHERE Earnings < 200000
What are the names of poker players?
Additional table information: table: poker_player
SQL: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID
Return the names of all the poker players.
Additional table information: table: poker_player
SQL: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID
What are the names of poker players whose earnings is higher than 300000?
Additional table information: table: poker_player
SQL: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000
Give the names of poker players who have earnings above 300000.
Additional table information: table: poker_player
SQL: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000
List the names of poker players ordered by the final tables made in ascending order.
Additional table information: table: poker_player
SQL: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made NULLS FIRST
What are the names of poker players, ordered ascending by the number of final tables they have made?
Additional table information: table: poker_player
SQL: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made NULLS FIRST
What is the birth date of the poker player with the lowest earnings?
Additional table information: table: poker_player
SQL: SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC NULLS FIRST LIMIT 1
Return the birth date of the poker player with the lowest earnings.
Additional table information: table: poker_player
SQL: SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC NULLS FIRST LIMIT 1
What is the money rank of the tallest poker player?
Additional table information: table: poker_player
SQL: SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1
Return the money rank of the poker player with the greatest height.
Additional table information: table: poker_player
SQL: SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1
What is the average earnings of poker players with height higher than 200?
Additional table information: table: poker_player
SQL: SELECT AVG(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200
Give average earnings of poker players who are taller than 200.
Additional table information: table: poker_player
SQL: SELECT AVG(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200
What are the names of poker players in descending order of earnings?
Additional table information: table: poker_player
SQL: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC
Return the names of poker players sorted by their earnings descending.
Additional table information: table: poker_player
SQL: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC
What are different nationalities of people and the corresponding number of people from each nation?
Additional table information: table: poker_player
SQL: SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality
How many people are there of each nationality?
Additional table information: table: poker_player
SQL: SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality
What is the most common nationality of people?
Additional table information: table: poker_player
SQL: SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Give the nationality that is most common across all people.
Additional table information: table: poker_player
SQL: SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
What are the nationalities that are shared by at least two people?
Additional table information: table: poker_player
SQL: SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2
Return the nationalities for which there are two or more people.
Additional table information: table: poker_player
SQL: SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2
List the names and birth dates of people in ascending alphabetical order of name.
Additional table information: table: poker_player
SQL: SELECT Name, Birth_Date FROM people ORDER BY Name ASC NULLS FIRST
What are the names and birth dates of people, ordered by their names in alphabetical order?
Additional table information: table: poker_player
SQL: SELECT Name, Birth_Date FROM people ORDER BY Name ASC NULLS FIRST
Show names of people whose nationality is not 'Russia'.
Additional table information: table: poker_player
SQL: SELECT Name FROM people WHERE Nationality <> 'Russia'
What are the names of people who are not from Russia?
Additional table information: table: poker_player
SQL: SELECT Name FROM people WHERE Nationality <> 'Russia'
List the names of people that are not poker players.
Additional table information: table: poker_player
SQL: SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM poker_player)
What are the names of people who do not play poker?
Additional table information: table: poker_player
SQL: SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM poker_player)
How many distinct nationalities are there?
Additional table information: table: poker_player
SQL: SELECT COUNT(DISTINCT Nationality) FROM people
Count the number of different nationalities.
Additional table information: table: poker_player
SQL: SELECT COUNT(DISTINCT Nationality) FROM people
How many states are there?
Additional table information: table: voter_1
SQL: SELECT COUNT(*) FROM area_code_state
List the contestant numbers and names, ordered by contestant name descending.
Additional table information: table: voter_1
SQL: SELECT contestant_number, contestant_name FROM contestants ORDER BY contestant_name DESC
List the vote ids, phone numbers and states of all votes.
Additional table information: table: voter_1
SQL: SELECT vote_id, phone_number, state FROM votes
What are the maximum and minimum values of area codes?
Additional table information: table: voter_1
SQL: SELECT MAX(area_code), MIN(area_code) FROM area_code_state
What is last date created of votes from the state 'CA'?
Additional table information: table: voter_1
SQL: SELECT MAX(created) FROM votes WHERE state = 'CA'
What are the names of the contestants whose names are not 'Jessie Alloway'
Additional table information: table: voter_1
SQL: SELECT contestant_name FROM contestants WHERE contestant_name <> 'Jessie Alloway'
What are the distinct states and create time of all votes?
Additional table information: table: voter_1
SQL: SELECT DISTINCT state, created FROM votes
What are the contestant numbers and names of the contestants who had at least two votes?
Additional table information: table: voter_1
SQL: SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number HAVING COUNT(*) >= 2
Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?
Additional table information: table: voter_1
SQL: SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1
What are the number of votes from state 'NY' or 'CA'?
Additional table information: table: voter_1
SQL: SELECT COUNT(*) FROM votes WHERE state = 'NY' OR state = 'CA'
How many contestants did not get voted?
Additional table information: table: voter_1
SQL: SELECT COUNT(*) FROM contestants WHERE NOT contestant_number IN (SELECT contestant_number FROM votes)
What is the area code in which the most voters voted?
Additional table information: table: voter_1
SQL: SELECT T1.area_code FROM area_code_state AS T1 JOIN votes AS T2 ON T1.state = T2.state GROUP BY T1.area_code ORDER BY COUNT(*) DESC LIMIT 1
What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?
Additional table information: table: voter_1
SQL: SELECT T2.created, T2.state, T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number WHERE T1.contestant_name = 'Tabatha Gehling'
List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.
Additional table information: table: voter_1
SQL: SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Kelly Clauss'
Return the names of the contestants whose names contain the substring 'Al' .
Additional table information: table: voter_1
SQL: SELECT contestant_name FROM contestants WHERE contestant_name LIKE '%al%'
What are the names of all the countries that became independent after 1950?
Additional table information: table: world_1
SQL: SELECT Name FROM country WHERE IndepYear > 1950
Give the names of the nations that were founded after 1950.
Additional table information: table: world_1
SQL: SELECT Name FROM country WHERE IndepYear > 1950
How many countries have a republic as their form of government?
Additional table information: table: world_1
SQL: SELECT COUNT(*) FROM country WHERE GovernmentForm = 'Republic'
How many countries have governments that are republics?
Additional table information: table: world_1
SQL: SELECT COUNT(*) FROM country WHERE GovernmentForm = 'Republic'
What is the total surface area of the countries in the Caribbean region?
Additional table information: table: world_1
SQL: SELECT SUM(SurfaceArea) FROM country WHERE Region = 'Caribbean'
How much surface area do the countires in the Carribean cover together?
Additional table information: table: world_1
SQL: SELECT SUM(SurfaceArea) FROM country WHERE Region = 'Caribbean'
Which continent is Anguilla in?
Additional table information: table: world_1
SQL: SELECT Continent FROM country WHERE Name = 'Anguilla'
What is the continent name which Anguilla belongs to?
Additional table information: table: world_1
SQL: SELECT Continent FROM country WHERE Name = 'Anguilla'
Which region is the city Kabul located in?
Additional table information: table: world_1
SQL: SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Kabul'
What region is Kabul in?
Additional table information: table: world_1
SQL: SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Kabul'
Which language is the most popular in Aruba?
Additional table information: table: world_1
SQL: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba' ORDER BY Percentage DESC LIMIT 1
What language is predominantly spoken in Aruba?
Additional table information: table: world_1
SQL: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba' ORDER BY Percentage DESC LIMIT 1
What are the population and life expectancies in Brazil?
Additional table information: table: world_1
SQL: SELECT Population, LifeExpectancy FROM country WHERE Name = 'Brazil'
Give me Brazil’s population and life expectancies.
Additional table information: table: world_1
SQL: SELECT Population, LifeExpectancy FROM country WHERE Name = 'Brazil'
What are the region and population of Angola?
Additional table information: table: world_1
SQL: SELECT Population, Region FROM country WHERE Name = 'Angola'
What region does Angola belong to and what is its population?
Additional table information: table: world_1
SQL: SELECT Population, Region FROM country WHERE Name = 'Angola'
What is the average expected life expectancy for countries in the region of Central Africa?
Additional table information: table: world_1
SQL: SELECT AVG(LifeExpectancy) FROM country WHERE Region = 'Central Africa'
How long is the people’s average life expectancy in Central Africa?
Additional table information: table: world_1
SQL: SELECT AVG(LifeExpectancy) FROM country WHERE Region = 'Central Africa'
What is the name of country that has the shortest life expectancy in Asia?
Additional table information: table: world_1
SQL: SELECT Name FROM country WHERE Continent = 'Asia' ORDER BY LifeExpectancy NULLS FIRST LIMIT 1
Give the name of the country in Asia with the lowest life expectancy.
Additional table information: table: world_1
SQL: SELECT Name FROM country WHERE Continent = 'Asia' ORDER BY LifeExpectancy NULLS FIRST LIMIT 1
What is the total population and maximum GNP in Asia?
Additional table information: table: world_1
SQL: SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent = 'Asia'
How many people live in Asia, and what is the largest GNP among them?
Additional table information: table: world_1
SQL: SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent = 'Asia'
What is the average life expectancy in African countries that are republics?
Additional table information: table: world_1
SQL: SELECT AVG(LifeExpectancy) FROM country WHERE Continent = 'Africa' AND GovernmentForm = 'Republic'
Give the average life expectancy for countries in Africa which are republics?
Additional table information: table: world_1
SQL: SELECT AVG(LifeExpectancy) FROM country WHERE Continent = 'Africa' AND GovernmentForm = 'Republic'
What is the total surface area of the continents Asia and Europe?
Additional table information: table: world_1
SQL: SELECT SUM(SurfaceArea) FROM country WHERE Continent = 'Asia' OR Continent = 'Europe'
Give the total surface area covered by countries in Asia or Europe.
Additional table information: table: world_1
SQL: SELECT SUM(SurfaceArea) FROM country WHERE Continent = 'Asia' OR Continent = 'Europe'
How many people live in Gelderland district?
Additional table information: table: world_1
SQL: SELECT SUM(Population) FROM city WHERE District = 'Gelderland'
What is the total population of Gelderland district?
Additional table information: table: world_1
SQL: SELECT SUM(Population) FROM city WHERE District = 'Gelderland'
What is the average GNP and total population in all nations whose government is US territory?
Additional table information: table: world_1
SQL: SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm = 'US Territory'
Give the mean GNP and total population of nations which are considered US territory.
Additional table information: table: world_1
SQL: SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm = 'US Territory'
How many unique languages are spoken in the world?
Additional table information: table: world_1
SQL: SELECT COUNT(DISTINCT LANGUAGE) FROM countrylanguage
What is the number of distinct languages used around the world?
Additional table information: table: world_1
SQL: SELECT COUNT(DISTINCT LANGUAGE) FROM countrylanguage
How many type of governments are in Africa?
Additional table information: table: world_1
SQL: SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent = 'Africa'
How many different forms of governments are there in Africa?
Additional table information: table: world_1
SQL: SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent = 'Africa'
What is the total number of languages used in Aruba?
Additional table information: table: world_1
SQL: SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba'
How many languages are spoken in Aruba?
Additional table information: table: world_1
SQL: SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba'
How many official languages does Afghanistan have?
Additional table information: table: world_1
SQL: SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Afghanistan' AND IsOfficial = 'T'
How many official languages are spoken in Afghanistan?
Additional table information: table: world_1
SQL: SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Afghanistan' AND IsOfficial = 'T'
What is name of the country that speaks the largest number of languages?
Additional table information: table: world_1
SQL: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1
Give the name of the nation that uses the greatest amount of languages.
Additional table information: table: world_1
SQL: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1
Which continent has the most diverse languages?
Additional table information: table: world_1
SQL: SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1
Which continent speaks the most languages?
Additional table information: table: world_1
SQL: SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1
How many countries speak both English and Dutch?
Additional table information: table: world_1
SQL: SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Dutch')
What is the number of nations that use English and Dutch?
Additional table information: table: world_1
SQL: SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Dutch')
What are the names of nations speak both English and French?
Additional table information: table: world_1
SQL: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French'
Give the names of nations that speak both English and French.
Additional table information: table: world_1
SQL: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French'
What are the names of nations where both English and French are official languages?
Additional table information: table: world_1
SQL: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French' AND T2.IsOfficial = 'T'
Give the names of countries with English and French as official languages.
Additional table information: table: world_1
SQL: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French' AND T2.IsOfficial = 'T'
What is the number of distinct continents where Chinese is spoken?
Additional table information: table: world_1
SQL: SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Chinese'
How many continents speak Chinese?
Additional table information: table: world_1
SQL: SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Chinese'
What are the regions that use English or Dutch?
Additional table information: table: world_1
SQL: SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' OR T2.Language = 'Dutch'
Which regions speak Dutch or English?
Additional table information: table: world_1
SQL: SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' OR T2.Language = 'Dutch'
What are the countries where either English or Dutch is the official language ?
Additional table information: table: world_1
SQL: SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = 'english' AND isofficial = 't' UNION SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = 'dutch' AND isofficial = 't'
Which countries have either English or Dutch as an official language?
Additional table information: table: world_1
SQL: SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND IsOfficial = 'T' UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Dutch' AND IsOfficial = 'T'
Which language is the most popular on the Asian continent?
Additional table information: table: world_1
SQL: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Asia' GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1
What is the language that is used by the largest number of Asian nations?
Additional table information: table: world_1
SQL: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Asia' GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1
Which languages are spoken by only one country in republic governments?
Additional table information: table: world_1
SQL: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = 'Republic' GROUP BY T2.Language HAVING COUNT(*) = 1
What languages are only used by a single country with a republic government?
Additional table information: table: world_1
SQL: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = 'Republic' GROUP BY T2.Language HAVING COUNT(*) = 1
Find the city with the largest population that uses English.
Additional table information: table: world_1
SQL: SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = 'English' ORDER BY T1.Population DESC LIMIT 1
What is the most populace city that speaks English?
Additional table information: table: world_1
SQL: SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = 'English' ORDER BY T1.Population DESC LIMIT 1
Find the name, population and expected life length of asian country with the largest area?
Additional table information: table: world_1
SQL: SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = 'Asia' ORDER BY SurfaceArea DESC LIMIT 1
What are the name, population, and life expectancy of the largest Asian country by land?
Additional table information: table: world_1
SQL: SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = 'Asia' ORDER BY SurfaceArea DESC LIMIT 1
What is average life expectancy in the countries where English is not the official language?
Additional table information: table: world_1
SQL: SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T')
Give the mean life expectancy of countries in which English is not the official language.
Additional table information: table: world_1
SQL: SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T')
What is the total number of people living in the nations that do not use English?
Additional table information: table: world_1
SQL: SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English')
How many people live in countries that do not speak English?
Additional table information: table: world_1
SQL: SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English')
What is the official language spoken in the country whose head of state is Beatrix?
Additional table information: table: world_1
SQL: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = 'Beatrix' AND T2.IsOfficial = 'T'
What is the official language used in the country the name of whose head of state is Beatrix.
Additional table information: table: world_1
SQL: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = 'Beatrix' AND T2.IsOfficial = 'T'
What is the total number of unique official languages spoken in the countries that are founded before 1930?
Additional table information: table: world_1
SQL: SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = 'T'
For the countries founded before 1930, what is the total number of distinct official languages?
Additional table information: table: world_1
SQL: SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = 'T'
What are the countries that have greater surface area than any country in Europe?
Additional table information: table: world_1
SQL: SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = 'Europe')
Which countries have greater area than that of any country in Europe?
Additional table information: table: world_1
SQL: SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = 'Europe')
What are the African countries that have a  population less than any country in Asia?
Additional table information: table: world_1
SQL: SELECT Name FROM country WHERE Continent = 'Africa' AND population < (SELECT MAX(population) FROM country WHERE Continent = 'Asia')
Which African countries have a smaller population than that of any country in Asia?
Additional table information: table: world_1
SQL: SELECT Name FROM country WHERE Continent = 'Africa' AND population < (SELECT MIN(population) FROM country WHERE Continent = 'Asia')
Which Asian countries have a population that is larger than any country in Africa?
Additional table information: table: world_1
SQL: SELECT Name FROM country WHERE Continent = 'Asia' AND population > (SELECT MAX(population) FROM country WHERE Continent = 'Africa')
What are the Asian countries which have a population larger than that of any country in Africa?
Additional table information: table: world_1
SQL: SELECT Name FROM country WHERE Continent = 'Asia' AND population > (SELECT MIN(population) FROM country WHERE Continent = 'Africa')
What are the country codes for countries that do not speak English?
Additional table information: table: world_1
SQL: SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English'
Return the country codes for countries that do not speak English.
Additional table information: table: world_1
SQL: SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English'
What are the country codes of countries where people use languages other than English?
Additional table information: table: world_1
SQL: SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE <> 'English'
Give the country codes for countries in which people speak langauges that are not English.
Additional table information: table: world_1
SQL: SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE <> 'English'
What are the codes of the countries that do not speak English and whose government forms are not Republic?
Additional table information: table: world_1
SQL: SELECT Code FROM country WHERE GovernmentForm <> 'Republic' EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English'
Return the codes of countries that do not speak English and do not have Republics for governments.
Additional table information: table: world_1
SQL: SELECT Code FROM country WHERE GovernmentForm <> 'Republic' EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English'
Which cities are in European countries where English is not the official language?
Additional table information: table: world_1
SQL: SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND NOT T1.Name IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')
What are the names of cities in Europe for which English is not the official language?
Additional table information: table: world_1
SQL: SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND NOT T1.Name IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')
Which unique cities are in Asian countries where Chinese is the official language ?
Additional table information: table: world_1
SQL: SELECT DISTINCT t3.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode JOIN city AS t3 ON t1.code = t3.countrycode WHERE t2.isofficial = 't' AND t2.language = 'chinese' AND t1.continent = 'asia'
Return the different names of cities that are in Asia and for which Chinese is the official language.
Additional table information: table: world_1
SQL: SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = 'Asia'
What are the name, independence year, and surface area of the country with the smallest population?
Additional table information: table: world_1
SQL: SELECT Name, SurfaceArea, IndepYear FROM country ORDER BY Population NULLS FIRST LIMIT 1
Give the name, year of independence, and surface area of the country that has the lowest population.
Additional table information: table: world_1
SQL: SELECT Name, SurfaceArea, IndepYear FROM country ORDER BY Population NULLS FIRST LIMIT 1
What are the population, name and leader of the country with the largest area?
Additional table information: table: world_1
SQL: SELECT Name, population, HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1
Give the name, population, and head of state for the country that has the largest area.
Additional table information: table: world_1
SQL: SELECT Name, population, HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1
Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.
Additional table information: table: world_1
SQL: SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2
What are the names of countries that speak more than 2 languages, as well as how many languages they speak?
Additional table information: table: world_1
SQL: SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2
Find the number of cities in each district whose population is greater than the average population of cities?
Additional table information: table: world_1
SQL: SELECT COUNT(*), District FROM city WHERE Population > (SELECT AVG(Population) FROM city) GROUP BY District
How many cities in each district have a population that is above the average population across all cities?
Additional table information: table: world_1
SQL: SELECT COUNT(*), District FROM city WHERE Population > (SELECT AVG(Population) FROM city) GROUP BY District
Find the government form name and total population for each government form whose average life expectancy is longer than 72.
Additional table information: table: world_1
SQL: SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72
What are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72?
Additional table information: table: world_1
SQL: SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72
Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?
Additional table information: table: world_1
SQL: SELECT SUM(Population), AVG(LifeExpectancy), Continent FROM country GROUP BY Continent HAVING AVG(LifeExpectancy) < 72
What are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72?
Additional table information: table: world_1
SQL: SELECT SUM(Population), AVG(LifeExpectancy), Continent FROM country GROUP BY Continent HAVING AVG(LifeExpectancy) < 72
What are the names and areas of countries with the top 5 largest area?
Additional table information: table: world_1
SQL: SELECT Name, SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5
Return the names and surface areas of the 5 largest countries.
Additional table information: table: world_1
SQL: SELECT Name, SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5
What are names of countries with the top 3 largest population?
Additional table information: table: world_1
SQL: SELECT Name FROM country ORDER BY Population DESC LIMIT 3
Return the names of the 3 most populated countries.
Additional table information: table: world_1
SQL: SELECT Name FROM country ORDER BY Population DESC LIMIT 3
What are the names of the nations with the 3 lowest populations?
Additional table information: table: world_1
SQL: SELECT Name FROM country ORDER BY Population ASC NULLS FIRST LIMIT 3
Return the names of the 3 countries with the fewest people.
Additional table information: table: world_1
SQL: SELECT Name FROM country ORDER BY Population ASC NULLS FIRST LIMIT 3
how many countries are in Asia?
Additional table information: table: world_1
SQL: SELECT COUNT(*) FROM country WHERE continent = 'Asia'
Count the number of countries in Asia.
Additional table information: table: world_1
SQL: SELECT COUNT(*) FROM country WHERE continent = 'Asia'
What are the names of the countries that are in the continent of Europe and have a population of 80000?
Additional table information: table: world_1
SQL: SELECT Name FROM country WHERE continent = 'Europe' AND Population = '80000'
Give the names of countries that are in Europe and have a population equal to 80000.
Additional table information: table: world_1
SQL: SELECT Name FROM country WHERE continent = 'Europe' AND Population = '80000'
What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?
Additional table information: table: world_1
SQL: SELECT SUM(population), AVG(surfacearea) FROM country WHERE continent = 'north america' AND surfacearea > 3000
Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .
Additional table information: table: world_1
SQL: SELECT SUM(population), AVG(surfacearea) FROM country WHERE continent = 'north america' AND surfacearea > 3000
What are the cities whose population is between 160000 and 900000?
Additional table information: table: world_1
SQL: SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000
Return the names of cities that have a population between 160000 and 900000 .
Additional table information: table: world_1
SQL: SELECT name FROM city WHERE population BETWEEN 160000 AND 900000
Which language is spoken by the largest number of countries?
Additional table information: table: world_1
SQL: SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY COUNT(*) DESC LIMIT 1
Give the language that is spoken in the most countries.
Additional table information: table: world_1
SQL: SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY COUNT(*) DESC LIMIT 1
What is the language spoken by the largest percentage of people in each country?
Additional table information: table: world_1
SQL: SELECT LANGUAGE, CountryCode, MAX(Percentage) FROM countrylanguage GROUP BY CountryCode
What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?
Additional table information: table: world_1
SQL: SELECT LANGUAGE, CountryCode, MAX(Percentage) FROM countrylanguage GROUP BY CountryCode
What is the total number of countries where Spanish is spoken by the largest percentage of people?
Additional table information: table: world_1
SQL: SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode
Count the number of countries for which Spanish is the predominantly spoken language.
Additional table information: table: world_1
SQL: SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode
What are the codes of countries where Spanish is spoken by the largest percentage of people?
Additional table information: table: world_1
SQL: SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode
Return the codes of countries for which Spanish is the predominantly spoken language.
Additional table information: table: world_1
SQL: SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode
How many conductors are there?
Additional table information: table: orchestra
SQL: SELECT COUNT(*) FROM conductor
Count the number of conductors.
Additional table information: table: orchestra
SQL: SELECT COUNT(*) FROM conductor
List the names of conductors in ascending order of age.
Additional table information: table: orchestra
SQL: SELECT Name FROM conductor ORDER BY Age ASC NULLS FIRST
What are the names of conductors, ordered by age?
Additional table information: table: orchestra
SQL: SELECT Name FROM conductor ORDER BY Age ASC NULLS FIRST
What are the names of conductors whose nationalities are not 'USA'?
Additional table information: table: orchestra
SQL: SELECT Name FROM conductor WHERE Nationality <> 'USA'
Return the names of conductors that do not have the nationality 'USA'.
Additional table information: table: orchestra
SQL: SELECT Name FROM conductor WHERE Nationality <> 'USA'
What are the record companies of orchestras in descending order of years in which they were founded?
Additional table information: table: orchestra
SQL: SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC
Return the record companies of orchestras, sorted descending by the years in which they were founded.
Additional table information: table: orchestra
SQL: SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC
What is the average attendance of shows?
Additional table information: table: orchestra
SQL: SELECT AVG(Attendance) FROM SHOW
Return the average attendance across all shows.
Additional table information: table: orchestra
SQL: SELECT AVG(Attendance) FROM SHOW
What are the maximum and minimum share of performances whose type is not 'Live final'.
Additional table information: table: orchestra
SQL: SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> 'Live final'
Return the maximum and minimum shares for performances that do not have the type 'Live final'.
Additional table information: table: orchestra
SQL: SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> 'Live final'
How many different nationalities do conductors have?
Additional table information: table: orchestra
SQL: SELECT COUNT(DISTINCT Nationality) FROM conductor
Count the number of different nationalities of conductors.
Additional table information: table: orchestra
SQL: SELECT COUNT(DISTINCT Nationality) FROM conductor
List names of conductors in descending order of years of work.
Additional table information: table: orchestra
SQL: SELECT Name FROM conductor ORDER BY Year_of_Work DESC
What are the names of conductors, sorted descending by the number of years they have worked?
Additional table information: table: orchestra
SQL: SELECT Name FROM conductor ORDER BY Year_of_Work DESC
List the name of the conductor with the most years of work.
Additional table information: table: orchestra
SQL: SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1
What is the name of the conductor who has worked the greatest number of years?
Additional table information: table: orchestra
SQL: SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1
Show the names of conductors and the orchestras they have conducted.
Additional table information: table: orchestra
SQL: SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID
What are the names of conductors as well as the corresonding orchestras that they have conducted?
Additional table information: table: orchestra
SQL: SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID
Show the names of conductors that have conducted more than one orchestras.
Additional table information: table: orchestra
SQL: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1
What are the names of conductors who have conducted at more than one orchestra?
Additional table information: table: orchestra
SQL: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1
Show the name of the conductor that has conducted the most number of orchestras.
Additional table information: table: orchestra
SQL: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1
What is the name of the conductor who has conducted the most orchestras?
Additional table information: table: orchestra
SQL: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1
Please show the name of the conductor that has conducted orchestras founded after 2008.
Additional table information: table: orchestra
SQL: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008
What are the names of conductors who have conducted orchestras founded after the year 2008?
Additional table information: table: orchestra
SQL: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008
Please show the different record companies and the corresponding number of orchestras.
Additional table information: table: orchestra
SQL: SELECT Record_Company, COUNT(*) FROM orchestra GROUP BY Record_Company
How many orchestras does each record company manage?
Additional table information: table: orchestra
SQL: SELECT Record_Company, COUNT(*) FROM orchestra GROUP BY Record_Company
Please show the record formats of orchestras in ascending order of count.
Additional table information: table: orchestra
SQL: SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC NULLS FIRST
What are the major record formats of orchestras, sorted by their frequency?
Additional table information: table: orchestra
SQL: SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC NULLS FIRST
List the record company shared by the most number of orchestras.
Additional table information: table: orchestra
SQL: SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1