index
int32
0
1.03k
db_id
stringclasses
20 values
question
stringlengths
18
174
db_info
stringlengths
1
1.79k
ground_truth
stringlengths
20
474
700
voter_1
List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.
| votes: contestant_number, state, vote_id, phone_number, created | contestants: contestant_name, contestant_number | area_code_state: state, area_code |
select area_code_state.area_code from contestants join votes on contestants.contestant_number = votes.contestant_number join area_code_state on votes.state = area_code_state.state where contestants.contestant_name = 'Tabatha Gehling' intersect select area_code_state.area_code from contestants join votes on contestants.contestant_number = votes.contestant_number join area_code_state on votes.state = area_code_state.state where contestants.contestant_name = 'Kelly Clauss'
701
voter_1
Return the names of the contestants whose names contain the substring 'Al' .
| contestants: contestant_name, contestant_number | votes: contestant_number, vote_id, phone_number, state, created | area_code_state: area_code, state |
select contestant_name from contestants where contestant_name like '%al%'
702
world_1
What are the names of all the countries that became independent after 1950?
| country: indepyear, name, code | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | countrylanguage: countrycode, language, isofficial, percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select name from country where indepyear > 1950
703
world_1
Give the names of the nations that were founded after 1950.
| country: indepyear, name, code | city: countrycode | countrylanguage: countrycode | sqlite_sequence: name, seq |
select name from country where indepyear > 1950
704
world_1
How many countries have a republic as their form of government?
| country: name, governmentform, code, continent, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, headofstate, capital, code2 | city: countrycode, id, name, district, population | countrylanguage: countrycode, language, isofficial, percentage | sqlite_sequence: name, seq |
select count ( * ) from country where governmentform = 'Republic'
705
world_1
How many countries have governments that are republics?
| country: governmentform, name, code, continent, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, headofstate, capital, code2 | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | countrylanguage: countrycode, language, isofficial, percentage |
select count ( * ) from country where governmentform = 'Republic'
706
world_1
What is the total surface area of the countries in the Caribbean region?
| country: region, surfacearea, name |
select sum ( surfacearea ) from country where region = 'Caribbean'
707
world_1
How much surface area do the countires in the Carribean cover together?
| country: surfacearea, region, code, name, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 |
select sum ( surfacearea ) from country where region = 'Caribbean'
708
world_1
Which continent is Anguilla in?
| city: name, countrycode, id, district, population | country: continent, code, name, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | sqlite_sequence: name, seq | countrylanguage: countrycode, language, isofficial, percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select continent from country where name = 'Anguilla'
709
world_1
What is the continent name which Anguilla belongs to?
| country: code, name, continent | city: countrycode, name | city.countrycode = country.code |
select continent from country where name = 'Anguilla'
710
world_1
Which region is the city Kabul located in?
| city: name, countrycode, id, district, population | country: code, region, name, continent, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | sqlite_sequence: name, seq | countrylanguage: countrycode, language, isofficial, percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select region from country join city on country.code = city.countrycode where city.name = 'Kabul'
711
world_1
What region is Kabul in?
| city: name, countrycode, id, district, population | country: region, code | countrylanguage: countrycode | sqlite_sequence: name, seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select region from country join city on country.code = city.countrycode where city.name = 'Kabul'
712
world_1
Which language is the most popular in Aruba?
| city: countrycode, id, name, district, population | country: name, code, continent, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | countrylanguage: language, percentage, countrycode, isofficial | sqlite_sequence: name, seq |
select countrylanguage.language from country join countrylanguage on country.code = countrylanguage.countrycode where country.name = 'Aruba' order by percentage desc limit 1
713
world_1
What language is predominantly spoken in Aruba?
| countrylanguage: countrycode, language, isofficial, percentage | country: name, code | city: countrycode | sqlite_sequence: | country.code = countrylanguage.countrycode |
select countrylanguage.language from country join countrylanguage on country.code = countrylanguage.countrycode where country.name = 'Aruba' order by percentage desc limit 1
714
world_1
What are the population and life expectancies in Brazil?
| country: name, population, lifeexpectancy |
select population , lifeexpectancy from country where name = 'Brazil'
715
world_1
Give me Brazil’s population and life expectancies.
| country: name, population, lifeexpectancy, code, continent, region, surfacearea, indepyear, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | city: countrycode, id, name, district, population | countrylanguage: countrycode, language, isofficial, percentage | sqlite_sequence: name, seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select population , lifeexpectancy from country where name = 'Brazil'
716
world_1
What are the region and population of Angola?
| country: name, region, population, code, surfacearea, indepyear, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | city : id , name , countrycode , district , population | sqlite_sequence: name, seq | countrylanguage: countrycode, language, isofficial, percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select population , region from country where name = 'Angola'
717
world_1
What region does Angola belong to and what is its population?
| country: name, region, population, code, continent, surfacearea, indepyear, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | city: countrycode, id, name, district, population | countrylanguage: countrycode, language, isofficial, percentage | sqlite_sequence: name, seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select population , region from country where name = 'Angola'
718
world_1
What is the average expected life expectancy for countries in the region of Central Africa?
| country: lifeexpectancy, region, name, code | city: countrycode, id, name, district, population | sqlite_sequence: seq, name | countrylanguage: countrycode, language, isofficial, percentage |
select avg ( lifeexpectancy ) from country where region = 'Central Africa'
719
world_1
How long is the people’s average life expectancy in Central Africa?
| country: continent, lifeexpectancy, name | city: countrycode | countrylanguage: countrycode | sqlite_sequence: | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select avg ( lifeexpectancy ) from country where region = 'Central Africa'
720
world_1
What is the name of country that has the shortest life expectancy in Asia?
| country: lifeexpectancy, name, continent | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | countrylanguage: countrycode, language, isofficial, percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select name from country where continent = 'Asia' order by lifeexpectancy asc limit 1
721
world_1
Give the name of the country in Asia with the lowest life expectancy.
| country: name, continent, lifeexpectancy, code, region, surfacearea, indepyear, population, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | city: countrycode |
select name from country where continent = 'Asia' order by lifeexpectancy asc limit 1
722
world_1
What is the total population and maximum GNP in Asia?
| country: continent, population, gnp, code, name, region, surfacearea, indepyear, lifeexpectancy, gnpold, localname, governmentform, headofstate, capital, code2 | city: id, name, countrycode, district, population | countrylanguage: countrycode, language, isofficial, percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select sum ( population ) , max ( gnp ) from country where continent = 'Asia'
723
world_1
How many people live in Asia, and what is the largest GNP among them?
| country : continent, population, gnp, code, name, region, surfacearea, indepyear, lifeexpectancy, gnpold, localname, governmentform, headofstate, capital, code2 | city : countrycode, population, id, name, district | countrylanguage : countrycode, language, isofficial, percentage | sqlite_sequence : name, seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select sum ( population ) , max ( gnp ) from country where continent = 'Asia'
724
world_1
What is the average life expectancy in African countries that are republics?
| country: lifeexpectancy, continent, governmentform, name, code, region, surfacearea, indepyear, population, gnp, gnpold, localname, headofstate, capital, code2 | city: countrycode, id, name, district, population | countrylanguage: countrycode, language, isofficial, percentage |
select avg ( lifeexpectancy ) from country where continent = 'Africa' and governmentform = 'Republic'
725
world_1
Give the average life expectancy for countries in Africa which are republics?
| country: continent, governmentform, lifeexpectancy, name, code, region, surfacearea, indepyear, population, gnp, gnpold, localname, headofstate, capital, code2 | city: countrycode, name, id, district, population | countrylanguage: countrycode, language, isofficial, percentage | sqlite_sequence: seq, name | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select avg ( lifeexpectancy ) from country where continent = 'Africa' and governmentform = 'Republic'
726
world_1
What is the total surface area of the continents Asia and Europe?
| country: continent, surfacearea, name, code | city: countrycode | sqlite_sequence: name, seq | countrycode: code2, region, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital | countrylanguage: countrycode, language, isofficial, percentage | city: id , name , district , population |
select sum ( surfacearea ) from country where continent = 'Asia' or continent = 'Europe'
727
world_1
Give the total surface area covered by countries in Asia or Europe.
| country: continent, surfacearea, code, name, region, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | city: countrycode, id, name, district, population | sqlite_sequence: name, seq | countrylanguage: countrycode, language, isofficial, percentage |
select sum ( surfacearea ) from country where continent = 'Asia' or continent = 'Europe'
728
world_1
How many people live in Gelderland district?
| city: district, population, id, name, countrycode | country: code, population, name, continent, region, surfacearea, indepyear, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | sqlite_sequence: name, seq | countrylanguage: countrycode, percentage, language, isofficial | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select sum ( population ) from city where district = 'Gelderland'
729
world_1
What is the total population of Gelderland district?
| city: district, population | sqlite_sequence: name, seq | country: code, name, continent, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | countrylanguage: countrycode, language, isofficial, percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select sum ( population ) from city where district = 'Gelderland'
730
world_1
What is the average GNP and total population in all nations whose government is US territory?
| country: governmentform, gnp, population, code, name, continent, region, surfacearea, indepyear, lifeexpectancy, gnpold, localname, headofstate, capital, code2 | city: id, name, countrycode, district, population | countrylanguage: countrycode, language, isofficial, percentage | sqlite_sequence: name, seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select avg ( gnp ) , sum ( population ) from country where governmentform = 'US Territory'
731
world_1
Give the mean GNP and total population of nations which are considered US territory.
| city: countrycode, population | country: gnp, population, name, code | countrylanguage: countrycode | sqlite_sequence: name, seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select avg ( gnp ) , sum ( population ) from country where governmentform = 'US Territory'
732
world_1
How many unique languages are spoken in the world?
| countrylanguage: language, countrycode | country: code | city: id, name, countrycode, district, population | sqlite_sequence: name, seq |
select count ( distinct language ) from countrylanguage
733
world_1
What is the number of distinct languages used around the world?
| countrylanguage: language, countrycode, isofficial, percentage | country: code, name, continent, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | city: id, name, district, population | sqlite_sequence: name, seq | countrylanguage.countrycode = country.code |
select count ( distinct language ) from countrylanguage
734
world_1
How many type of governments are in Africa?
| country: continent, governmentform, code, name, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, headofstate, capital, code2 | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | countrylanguage: countrycode, language, isofficial, percentage | city.countrycode=country.code | countrylanguage.countrycode=country.code |
select count ( distinct governmentform ) from country where continent = 'Africa'
735
world_1
How many different forms of governments are there in Africa?
| country: continent, governmentform, name, code, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, headofstate, capital, code2 | city: countrycode, id, name, district, population | countrylanguage: countrycode, language, isofficial, percentage |
select count ( distinct governmentform ) from country where continent = 'Africa'
736
world_1
What is the total number of languages used in Aruba?
| country: name, code | countrylanguage: language, countrycode, isofficial, percentage | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select count ( countrylanguage.language ) from country join countrylanguage on country.code = countrylanguage.countrycode where country.name = 'Aruba'
737
world_1
How many languages are spoken in Aruba?
| countrylanguage: language, countrycode | country: name, code | city: id, name, countrycode, district, population | sqlite_sequence: name, seq |
select count ( countrylanguage.language ) from country join countrylanguage on country.code = countrylanguage.countrycode where country.name = 'Aruba'
738
world_1
How many official languages does Afghanistan have?
| countrylanguage: countrycode, language, isofficial | country: code, name | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | countrylanguage.countrycode = country.code |
select count ( * ) from country join countrylanguage on country.code = countrylanguage.countrycode where country.name = 'Afghanistan' and isofficial = 'T'
739
world_1
How many official languages are spoken in Afghanistan?
| country: name, code | countrylanguage: countrycode, language, isofficial | countrylanguage.countrycode = country.code |
select count ( * ) from country join countrylanguage on country.code = countrylanguage.countrycode where country.name = 'Afghanistan' and isofficial = 'T'
740
world_1
What is name of the country that speaks the largest number of languages?
| country: name, code | countrylanguage: countrycode, language | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | countrylanguage.countrycode=country.code | city.countrycode=country.code |
select country.name from country join countrylanguage on country.code = countrylanguage.countrycode group by country.name order by count ( * ) desc limit 1
741
world_1
Give the name of the nation that uses the greatest amount of languages.
| countrylanguage: countrycode, language | country: code, name | city: countrycode | city: id, name, district, population | country: continent, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | sqlite_sequence: name, seq |
select country.name from country join countrylanguage on country.code = countrylanguage.countrycode group by country.name order by count ( * ) desc limit 1
742
world_1
Which continent has the most diverse languages?
| country: code | countrylanguage: countrycode, language | city: countrycode | country: name, continent, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | sqlite_sequence: name, seq |
select country.continent from country join countrylanguage on country.code = countrylanguage.countrycode group by country.continent order by count ( * ) desc limit 1
743
world_1
Which continent speaks the most languages?
| countrylanguage: language, countrycode | country: continent, code, name | city: countrycode, id | sqlite_sequence: name, seq | city: name, district, population | country: region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 |
select country.continent from country join countrylanguage on country.code = countrylanguage.countrycode group by country.continent order by count ( * ) desc limit 1
744
world_1
How many countries speak both English and Dutch?
| country: name, code | countrylanguage: countrycode, language | city: countrycode | sqlite_sequence: | countrylanguage.countrycode = country.code | city.countrycode = country.code |
select count ( * ) from ( select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'English' intersect select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'Dutch' )
745
world_1
What is the number of nations that use English and Dutch?
| countrylanguage: language, countrycode | country: code, name |
select count ( * ) from ( select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'English' intersect select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'Dutch' )
746
world_1
What are the names of nations speak both English and French?
| country: name, code | countrylanguage: language, isofficial, countrycode | city: countrycode | sqlite_sequence: | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'English' intersect select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'French'
747
world_1
Give the names of nations that speak both English and French.
| country: name, code | countrylanguage: language, countrycode |
select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'English' intersect select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'French'
748
world_1
What are the names of nations where both English and French are official languages?
| countrylanguage: language, isofficial, countrycode | country: name, code |
select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'English' and countrylanguage.isofficial = 'T' intersect select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'French' and countrylanguage.isofficial = 'T'
749
world_1
Give the names of countries with English and French as official languages.
| country: name, code | countrylanguage: language, isofficial, countrycode | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'English' and countrylanguage.isofficial = 'T' intersect select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'French' and countrylanguage.isofficial = 'T'
750
world_1
What is the number of distinct continents where Chinese is spoken?
| countrylanguage: language, countrycode | country: continent, code | city: id, name, countrycode, district, population | sqlite_sequence: name, seq |
select count ( distinct continent ) from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'Chinese'
751
world_1
How many continents speak Chinese?
| country: continent, code | countrylanguage: language, countrycode | city: id, name, countrycode, district, population | sqlite_sequence: name, seq |
select count ( distinct continent ) from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'Chinese'
752
world_1
What are the regions that use English or Dutch?
| countrylanguage: language, countrycode | country: region, code | city: | sqlite_sequence: |
select distinct country.region from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'English' or countrylanguage.language = 'Dutch'
753
world_1
Which regions speak Dutch or English?
| countrylanguage: language, countrycode, isofficial, percentage | country: region, code | city: countrycode |
select distinct country.region from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'English' or countrylanguage.language = 'Dutch'
754
world_1
What are the countries where either English or Dutch is the official language ?
| country: code, name, continent, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | countrylanguage: countrycode, language, isofficial, percentage | city: countrycode, id, name, district, population | sqlite_sequence: name, seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'english' and isofficial = 't' union select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'dutch' and isofficial = 't'
755
world_1
Which countries have either English or Dutch as an official language?
| country: name, code | countrylanguage: language, isofficial, countrycode | city : id , name , countrycode , district , population | sqlite_sequence : name , seq | country.code=countrylanguage.countrycode |
select * from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'English' and isofficial = 'T' union select * from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'Dutch' and isofficial = 'T'
756
world_1
Which language is the most popular on the Asian continent?
| country: continent, code | countrylanguage: language, percentage, countrycode | country: name, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | city: id, name, district, population, countrycode | sqlite_sequence: name, seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select countrylanguage.language from country join countrylanguage on country.code = countrylanguage.countrycode where country.continent = 'Asia' group by countrylanguage.language order by count ( * ) desc limit 1
757
world_1
What is the language that is used by the largest number of Asian nations?
| country: continent, code, name, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | countrylanguage: language, countrycode, isofficial, percentage | city: countrycode, id, name, district, population | sqlite_sequence: name, seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select countrylanguage.language from country join countrylanguage on country.code = countrylanguage.countrycode where country.continent = 'Asia' group by countrylanguage.language order by count ( * ) desc limit 1
758
world_1
Which languages are spoken by only one country in republic governments?
| country: governmentform, name, code, region, continent, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, headofstate, capital, code2 | countrylanguage: language, countrycode, isofficial, percentage | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | countrylanguage.countrycode = country.code | city.countrycode = country.code |
select countrylanguage.language from country join countrylanguage on country.code = countrylanguage.countrycode where country.governmentform = 'Republic' group by countrylanguage.language having count ( * ) = 1
759
world_1
What languages are only used by a single country with a republic government?
| country: governmentform, code, name, continent, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, headofstate, capital, code2 | countrylanguage: language, countrycode, isofficial, percentage | city: countrycode, id, name, district, population | sqlite_sequence: name, seq | countrylanguage.countrycode = country.code | city.countrycode = country.code |
select countrylanguage.language from country join countrylanguage on country.code = countrylanguage.countrycode where country.governmentform = 'Republic' group by countrylanguage.language having count ( * ) = 1
760
world_1
Find the city with the largest population that uses English.
| city: population, name, countrycode | country: code | countrylanguage: language, countrycode | sqlite_sequence: name, seq |
select city.name , city.population from city join countrylanguage on city.countrycode = countrylanguage.countrycode where countrylanguage.language = 'English' order by city.population desc limit 1
761
world_1
What is the most populace city that speaks English?
| city: name, population, countrycode, id, district | countrylanguage: language, countrycode | country: code, name, continent, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | sqlite_sequence: name, seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select city.name , city.population from city join countrylanguage on city.countrycode = countrylanguage.countrycode where countrylanguage.language = 'English' order by city.population desc limit 1
762
world_1
Find the name, population and expected life length of asian country with the largest area?
| country: continent, surfacearea, name, population, lifeexpectancy | city: | sqlite_sequence: | countrylanguage: |
select name , population , lifeexpectancy from country where continent = 'Asia' order by surfacearea desc limit 1
763
world_1
What are the name, population, and life expectancy of the largest Asian country by land?
| country: name, population, lifeexpectancy, surfacearea, continent | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | countrylanguage: countrycode, language, isofficial, percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select name , population , lifeexpectancy from country where continent = 'Asia' order by surfacearea desc limit 1
764
world_1
What is average life expectancy in the countries where English is not the official language?
| country: code, lifeexpectancy, name, continent, region, surfacearea, indepyear, population, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | countrylanguage: countrycode, isofficial, language, percentage | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | country.code = city.countrycode | country.code = countrylanguage.countrycode |
select avg ( lifeexpectancy ) from country where name not in ( select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'English' and countrylanguage.isofficial = 'T' )
765
world_1
Give the mean life expectancy of countries in which English is not the official language.
| country: lifeexpectancy, code |
select avg ( lifeexpectancy ) from country where name not in ( select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'English' and countrylanguage.isofficial = 'T' )
766
world_1
What is the total number of people living in the nations that do not use English?
| countrylanguage: language, isofficial, countrycode | country: code, population, name |
select sum ( population ) from country where name not in ( select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'English' )
767
world_1
How many people live in countries that do not speak English?
| countrylanguage: language, isofficial, countrycode | country: population, code, name | city: countrycode, name | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select sum ( population ) from country where name not in ( select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.language = 'English' )
768
world_1
What is the official language spoken in the country whose head of state is Beatrix?
| country: headofstate, name, code, continent, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, capital, code2 | countrylanguage: language, isofficial, countrycode, percentage | city: countrycode, id, name, district, population | sqlite_sequence: name, seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select countrylanguage.language from country join countrylanguage on country.code = countrylanguage.countrycode where country.headofstate = 'Beatrix' and countrylanguage.isofficial = 'T'
769
world_1
What is the official language used in the country the name of whose head of state is Beatrix.
| country: headofstate, code, name, continent, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, capital, code2 | countrylanguage: language, isofficial, countrycode, percentage | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | countrylanguage.countrycode = country.code | city.countrycode = country.code |
select countrylanguage.language from country join countrylanguage on country.code = countrylanguage.countrycode where country.headofstate = 'Beatrix' and countrylanguage.isofficial = 'T'
770
world_1
What is the total number of unique official languages spoken in the countries that are founded before 1930?
| country: indepyear, code | countrylanguage: isofficial, language, countrycode | city: countrycode | sqlite_sequence: seq, name |
select count ( distinct countrylanguage.language ) from country join countrylanguage on country.code = countrylanguage.countrycode where indepyear < 1930 and countrylanguage.isofficial = 'T'
771
world_1
For the countries founded before 1930, what is the total number of distinct official languages?
| country: indepyear, code, name, continent, region, surfacearea, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | countrylanguage: countrycode, language, isofficial, percentage | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | country.code = city.countrycode = countrylanguage.countrycode |
select count ( distinct countrylanguage.language ) from country join countrylanguage on country.code = countrylanguage.countrycode where indepyear < 1930 and countrylanguage.isofficial = 'T'
772
world_1
What are the countries that have greater surface area than any country in Europe?
| country: name, continent, surfacearea, code | countrylanguage: countrycode | city: id | sqlite_sequence: name |
select name from country where surfacearea > ( select min ( surfacearea ) from country where continent = 'Europe' )
773
world_1
Which countries have greater area than that of any country in Europe?
| country: continent, surfacearea, name, code | city: | sqlite_sequence: | countrylanguage: |
select name from country where surfacearea > ( select min ( surfacearea ) from country where continent = 'Europe' )
774
world_1
What are the African countries that have a population less than any country in Asia?
| country: continent, population, name, code, region, surfacearea, indepyear, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | countrylanguage: countrycode, language, isofficial, percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select name from country where continent = 'Africa' and population < ( select max ( population ) from country where continent = 'Asia' )
775
world_1
Which African countries have a smaller population than that of any country in Asia?
| country: population, continent, name | city: | countrylanguage: | sqlite_sequence: |
select name from country where continent = 'Africa' and population < ( select min ( population ) from country where continent = 'Asia' )
776
world_1
Which Asian countries have a population that is larger than any country in Africa?
| country: continent, name, population, code | countrylanguage: countrycode | city: id, name, countrycode, district, population | sqlite_sequence: name, seq |
select name from country where continent = 'Asia' and population > ( select max ( population ) from country where continent = 'Africa' )
777
world_1
What are the Asian countries which have a population larger than that of any country in Africa?
| country: name, continent, population, code, region, surfacearea, indepyear, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | city: id, name, countrycode, district, population | countrylanguage: countrycode, language, isofficial, percentage | sqlite_sequence: name, seq | city.countrycode = country.code |
select name from country where continent = 'Asia' and population > ( select min ( population ) from country where continent = 'Africa' )
778
world_1
What are the country codes for countries that do not speak English?
| countrylanguage: language, countrycode, isofficial | country: code, name, continent, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | countrylanguage.countrycode = country.code | city.countrycode = country.code |
select countrycode from countrylanguage except select countrycode from countrylanguage where language = 'English'
779
world_1
Return the country codes for countries that do not speak English.
| countrylanguage: language, countrycode | country: code |
select countrycode from countrylanguage except select countrycode from countrylanguage where language = 'English'
780
world_1
What are the country codes of countries where people use languages other than English?
| countrylanguage: language, countrycode | country: code |
select distinct countrycode from countrylanguage where language != 'English'
781
world_1
Give the country codes for countries in which people speak langauges that are not English.
| country: code, name | city: countrycode | countrylanguage: countrycode, language | sqlite_sequence: name, seq |
select distinct countrycode from countrylanguage where language != 'English'
782
world_1
What are the codes of the countries that do not speak English and whose government forms are not Republic?
| country: code, name, governmentform | countrylanguage: language, countrycode | city: countrycode | sqlite_sequence: name, seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select code from country where governmentform != 'Republic' except select countrycode from countrylanguage where language = 'English'
783
world_1
Return the codes of countries that do not speak English and do not have Republics for governments.
| country: governmentform, name, code | countrylanguage: language, isofficial, countrycode | city: countrycode |
select code from country where governmentform != 'Republic' except select countrycode from countrylanguage where language = 'English'
784
world_1
Which cities are in European countries where English is not the official language?
| city: name, countrycode, id, district, population | country: continent, code, name, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | countrylanguage: language, isofficial, countrycode, percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select distinct city.name from country join city on city.countrycode = country.code where country.continent = 'Europe' and country.name not in ( select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.isofficial = 'T' and countrylanguage.language = 'English' )
785
world_1
What are the names of cities in Europe for which English is not the official language?
| city: name, countrycode | country: continent, code | countrylanguage: language, isOfficial, countrycode | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select distinct city.name from country join city on city.countrycode = country.code where country.continent = 'Europe' and country.name not in ( select country.name from country join countrylanguage on country.code = countrylanguage.countrycode where countrylanguage.isofficial = 'T' and countrylanguage.language = 'English' )
786
world_1
Which unique cities are in Asian countries where Chinese is the official language ?
| country: continent, code, name | countrylanguage: language, isofficial, countrycode | city: name, countrycode |
select distinct city.name from country join countrylanguage on country.code = countrylanguage.countrycode join city on country.code = city.countrycode where countrylanguage.isofficial = 't' and countrylanguage.language = 'chinese' and country.continent = 'asia'
787
world_1
Return the different names of cities that are in Asia and for which Chinese is the official language.
| city: name, countrycode, id, district, population | country: code, continent, name, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | countrylanguage: countrycode, language, isofficial, percentage | sqlite_sequence: name, seq |
select distinct city.name from country join countrylanguage on country.code = countrylanguage.countrycode join city on country.code = city.countrycode where countrylanguage.isofficial = 'T' and countrylanguage.language = 'Chinese' and country.continent = 'Asia'
788
world_1
What are the name, independence year, and surface area of the country with the smallest population?
| country: population, name, indepyear, surfacearea, code, continent, region, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | city: countrycode, id, name, district, population | countrylanguage: countrycode, language, isofficial, percentage | sqlite_sequence: seq, name | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select name , surfacearea , indepyear from country order by population asc limit 1
789
world_1
Give the name, year of independence, and surface area of the country that has the lowest population.
| country: name, indepyear, surfacearea, population, code, continent, region, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | countrylanguage: countrycode, language, isofficial, percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select name , surfacearea , indepyear from country order by population asc limit 1
790
world_1
What are the population, name and leader of the country with the largest area?
| country: surfacearea, name, headofstate, population, code | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | countrylanguage: countrycode, language, isofficial, percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select name , population , headofstate from country order by surfacearea desc limit 1
791
world_1
Give the name, population, and head of state for the country that has the largest area.
| country: surfacearea, name, population, headofstate, code, continent, region, indepyear, lifeexpectancy, gnp, gnpold, localname, governmentform, capital, code2 | city: id, name, countrycode, district, population | sqlite_sequence: name, seq | countrylanguage: countrycode, language, isofficial, percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select name , population , headofstate from country order by surfacearea desc limit 1
792
world_1
Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.
| country: code, name | countrylanguage: countrycode, language | city: id, name, countrycode, district, population | sqlite_sequence: name, seq |
select count ( countrylanguage.language ) , country.name from country join countrylanguage on country.code = countrylanguage.countrycode group by country.name having count ( * ) > 2
793
world_1
What are the names of countries that speak more than 2 languages, as well as how many languages they speak?
| country: name, code, continent, region, surfacearea, indepyear, population, lifeexpectancy, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | countrylanguage: countrycode, language, isofficial, percentage | city: countrycode, id, name, district, population | sqlite_sequence: name, seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select count ( countrylanguage.language ) , country.name from country join countrylanguage on country.code = countrylanguage.countrycode group by country.name having count ( * ) > 2
794
world_1
Find the number of cities in each district whose population is greater than the average population of cities?
| city: district, population, id, name, countrycode | country: code | sqlite_sequence: name, seq | countrylanguage: countrycode, language, isofficial, percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select count ( * ) , district from city where population > ( select avg ( population ) from city ) group by district
795
world_1
How many cities in each district have a population that is above the average population across all cities?
| city: population, district, id, name, countrycode | country: none | countrylanguage: none | sqlite_sequence: none |
select count ( * ) , district from city where population > ( select avg ( population ) from city ) group by district
796
world_1
Find the government form name and total population for each government form whose average life expectancy is longer than 72.
| country: lifeexpectancy, governmentform, population, code | city: countrycode | countrylanguage: countrycode | sqlite_sequence: | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select sum ( population ) , governmentform from country group by governmentform having avg ( lifeexpectancy ) > 72
797
world_1
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?
| country: governmentform, lifeexpectancy, population, code | city: countrycode | countrylanguage: countrycode | city : id , name , district , population | country : name , continent , region , surfacearea , indepyear , gnp , gnpold , localname , headofstate , capital , code2 | countrylanguage : language , isofficial , percentage | sqlite_sequence : name , seq | city.countrycode = country.code | countrylanguage.countrycode = country.code |
select sum ( population ) , governmentform from country group by governmentform having avg ( lifeexpectancy ) > 72
798
world_1
Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?
| country: lifeexpectancy, continent, population |
select sum ( population ) , avg ( lifeexpectancy ) , continent from country group by continent having avg ( lifeexpectancy ) < 72
799
world_1
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?
| country: continent, population, lifeexpectancy, code, name, region, surfacearea, indepyear, gnp, gnpold, localname, governmentform, headofstate, capital, code2 | city: countrycode, id, name, district, population | countrylanguage: countrycode, language, isofficial, percentage | sqlite_sequence: name, seq |
select sum ( population ) , avg ( lifeexpectancy ) , continent from country group by continent having avg ( lifeexpectancy ) < 72