richardr1126/spider-natsql-context-validation huggingface dataset:
### Instruction:

Convert text to NatSQL: How many poker players are there? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select count ( poker_player.* )  from poker_player

### Instruction:

Convert text to NatSQL: Count the number of poker players. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select count ( poker_player.* )  from poker_player

### Instruction:

Convert text to NatSQL: List the earnings of poker players in descending order. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select poker_player.Earnings from poker_player  order by poker_player.Earnings desc

### Instruction:

Convert text to NatSQL: What are the earnings of poker players, ordered descending by value? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select poker_player.Earnings from poker_player  order by poker_player.Earnings desc

### Instruction:

Convert text to NatSQL: List the final tables made and the best finishes of poker players. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select poker_player.Final_Table_Made , poker_player.Best_Finish from poker_player

### Instruction:

Convert text to NatSQL: What are the final tables made and best finishes for all poker players? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select poker_player.Final_Table_Made , poker_player.Best_Finish from poker_player

### Instruction:

Convert text to NatSQL: What is the average earnings of poker players? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select avg ( poker_player.Earnings )  from poker_player

### Instruction:

Convert text to NatSQL: Return the average earnings across all poker players. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select avg ( poker_player.Earnings )  from poker_player
### Instruction:

Convert text to NatSQL: What is the money rank of the poker player with the highest earnings? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select poker_player.Money_Rank from poker_player  order by poker_player.Earnings desc limit 1

### Instruction:

Convert text to NatSQL: Return the money rank of the player with the greatest earnings. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select poker_player.Money_Rank from poker_player  order by poker_player.Earnings desc limit 1

### Instruction:

Convert text to NatSQL: What is the maximum number of final tables made among poker players with earnings less than 200000? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select max ( poker_player.Final_Table_Made )  from poker_player  where  poker_player.Earnings < 200000

### Instruction:

Convert text to NatSQL: Return the maximum final tables made across all poker players who have earnings below 200000. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select max ( poker_player.Final_Table_Made )  from poker_player  where  poker_player.Earnings < 200000

### Instruction:

Convert text to NatSQL: What are the names of poker players? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Name from poker_player  where  @.@ join poker_player.*

### Instruction:

Convert text to NatSQL: Return the names of all the poker players. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Name from poker_player  where  @.@ join poker_player.*

### Instruction:

Convert text to NatSQL: What are the names of poker players whose earnings is higher than 300000? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Name from poker_player  where  poker_player.Earnings > 300000
### Instruction:

Convert text to NatSQL: Give the names of poker players who have earnings above 300000. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Name from poker_player  where  poker_player.Earnings > 300000

### Instruction:

Convert text to NatSQL: List the names of poker players ordered by the final tables made in ascending order. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Name from poker_player  order by poker_player.Final_Table_Made asc

### Instruction:

Convert text to NatSQL: What are the names of poker players, ordered ascending by the number of final tables they have made? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Name from poker_player  order by poker_player.Final_Table_Made asc

### Instruction:

Convert text to NatSQL: What is the birth date of the poker player with the lowest earnings? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Birth_Date from poker_player  order by poker_player.Earnings asc limit 1

### Instruction:

Convert text to NatSQL: Return the birth date of the poker player with the lowest earnings. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Birth_Date from poker_player  order by poker_player.Earnings asc limit 1

### Instruction:

Convert text to NatSQL: What is the money rank of the tallest poker player? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select poker_player.Money_Rank from poker_player  order by people.Height desc limit 1

### Instruction:

Convert text to NatSQL: Return the money rank of the poker player with the greatest height. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select poker_player.Money_Rank from poker_player  order by people.Height desc limit 1
### Instruction:

Convert text to NatSQL: What is the average earnings of poker players with height higher than 200? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select avg ( poker_player.Earnings )  from poker_player  where  people.Height > 200

### Instruction:

Convert text to NatSQL: Give average earnings of poker players who are taller than 200. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select avg ( poker_player.Earnings )  from poker_player  where  people.Height > 200

### Instruction:

Convert text to NatSQL: What are the names of poker players in descending order of earnings? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Name from poker_player  order by poker_player.Earnings desc

### Instruction:

Convert text to NatSQL: Return the names of poker players sorted by their earnings descending. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Name from poker_player  order by poker_player.Earnings desc

### Instruction:

Convert text to NatSQL: What are different nationalities of people and the corresponding number of people from each nation? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Nationality , count ( people.* )  from people  group by people.Nationality

### Instruction:

Convert text to NatSQL: How many people are there of each nationality? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Nationality , count ( people.* )  from people  group by people.Nationality

### Instruction:

Convert text to NatSQL: What is the most common nationality of people? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Nationality from people  group by people.Nationality  order by count ( people.* )  desc limit 1
### Instruction:

Convert text to NatSQL: Give the nationality that is most common across all people. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Nationality from people  group by people.Nationality  order by count ( people.* )  desc limit 1

### Instruction:

Convert text to NatSQL: What are the nationalities that are shared by at least two people? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Nationality from people  where  count ( people.* )  >= 2  group by people.Nationality

### Instruction:

Convert text to NatSQL: Return the nationalities for which there are two or more people. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Nationality from people  where  count ( people.* )  >= 2  group by people.Nationality

### Instruction:

Convert text to NatSQL: List the names and birth dates of people in ascending alphabetical order of name. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Name , people.Birth_Date from people  order by people.Name asc

### Instruction:

Convert text to NatSQL: What are the names and birth dates of people, ordered by their names in alphabetical order? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Name , people.Birth_Date from people  order by people.Name asc

### Instruction:

Convert text to NatSQL: Show names of people whose nationality is not "Russia". | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Name from people  where  people.Nationality != "Russia"

### Instruction:

Convert text to NatSQL: What are the names of people who are not from Russia? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Name from people  where  people.Nationality != "Russia"
### Instruction:

Convert text to NatSQL: List the names of people that are not poker players. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Name from people  where  @.@ not in poker_player.*

### Instruction:

Convert text to NatSQL: What are the names of people who do not play poker? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select people.Name from people  where  @.@ not in poker_player.*

### Instruction:

Convert text to NatSQL: How many distinct nationalities are there? | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select count (  distinct people.Nationality )  from people

### Instruction:

Convert text to NatSQL: Count the number of different nationalities. | poker_player : poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings | people : people_id , nationality , name , birth_date , height | poker_player.people_id = people.people_id | 

### Response:

select count (  distinct people.Nationality )  from people
### Instruction:

Convert text to NatSQL: How many states are there? | area_code_state : area_code , state | contestants : contestant_number , contestant_name | votes : vote_id , phone_number , state , contestant_number , created | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state | 

### Response:

select count ( area_code_state.* )  from area_code_state

### Instruction:

Convert text to NatSQL: List the contestant numbers and names, ordered by contestant name descending. | area_code_state : area_code , state | contestants : contestant_number , contestant_name | votes : vote_id , phone_number , state , contestant_number , created | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state | 

### Response:

select contestants.contestant_number , contestants.contestant_name from contestants  order by contestants.contestant_name desc

### Instruction:

Convert text to NatSQL: List the vote ids, phone numbers and states of all votes. | area_code_state : area_code , state | contestants : contestant_number , contestant_name | votes : vote_id , phone_number , state , contestant_number , created | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state | 

### Response:

select votes.vote_id , votes.phone_number , votes.state from votes

### Instruction:

Convert text to NatSQL: What are the maximum and minimum values of area codes? | area_code_state : area_code , state | contestants : contestant_number , contestant_name | votes : vote_id , phone_number , state , contestant_number , created | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state | 

### Response:

select max ( area_code_state.area_code )  , min ( area_code_state.area_code )  from area_code_state

### Instruction:

Convert text to NatSQL: What is last date created of votes from the state 'CA'? | area_code_state : area_code , state | contestants : contestant_number , contestant_name | votes : vote_id , phone_number , state , contestant_number , created | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state | 

### Response:

select max ( votes.created )  from votes  where  votes.state = "CA"

### Instruction:

Convert text to NatSQL: What are the names of the contestants whose names are not 'Jessie Alloway' | area_code_state : area_code , state | contestants : contestant_number , contestant_name | votes : vote_id , phone_number , state , contestant_number , created | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state | 

### Response:

select contestants.contestant_name from contestants  where  contestants.contestant_name != "Jessie Alloway"
### Instruction:

Convert text to NatSQL: What are the distinct states and create time of all votes? | area_code_state : area_code , state | contestants : contestant_number , contestant_name | votes : vote_id , phone_number , state , contestant_number , created | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state | 

### Response:

select  distinct votes.state , votes.created from votes

### Instruction:

Convert text to NatSQL: What are the contestant numbers and names of the contestants who had at least two votes? | area_code_state : area_code , state | contestants : contestant_number , contestant_name | votes : vote_id , phone_number , state , contestant_number , created | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state | 

### Response:

select contestants.contestant_number , contestants.contestant_name from contestants  where  count ( votes.* )  >= 2  group by contestants.contestant_number

### Instruction:

Convert text to NatSQL: Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes? | area_code_state : area_code , state | contestants : contestant_number , contestant_name | votes : vote_id , phone_number , state , contestant_number , created | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state | 

### Response:

select contestants.contestant_number , contestants.contestant_name from contestants  group by contestants.contestant_number  order by count ( votes.* )  asc limit 1

### Instruction:

Convert text to NatSQL: What are the number of votes from state 'NY' or 'CA'? | area_code_state : area_code , state | contestants : contestant_number , contestant_name | votes : vote_id , phone_number , state , contestant_number , created | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state | 

### Response:

select count ( votes.* )  from votes  where  votes.state = "NY"  or  votes.state = "CA"

### Instruction:

Convert text to NatSQL: How many contestants did not get voted? | area_code_state : area_code , state | contestants : contestant_number , contestant_name | votes : vote_id , phone_number , state , contestant_number , created | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state | 

### Response:

select count ( contestants.* )  from contestants  where  @.@ not in votes.*

### Instruction:

Convert text to NatSQL: What is the area code in which the most voters voted? | area_code_state : area_code , state | contestants : contestant_number , contestant_name | votes : vote_id , phone_number , state , contestant_number , created | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state | 

### Response:

select area_code_state.area_code from area_code_state  group by area_code_state.area_code  order by count ( votes.* )  desc limit 1
### Instruction:

Convert text to NatSQL: What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'? | area_code_state : area_code , state | contestants : contestant_number , contestant_name | votes : vote_id , phone_number , state , contestant_number , created | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state | 

### Response:

select votes.created , votes.state , votes.phone_number from contestants  where  contestants.contestant_name = "Tabatha Gehling"

### Instruction:

Convert text to NatSQL: List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'. | area_code_state : area_code , state | contestants : contestant_number , contestant_name | votes : vote_id , phone_number , state , contestant_number , created | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state | 

### Response:

select area_code_state.area_code from contestants  where  contestants.contestant_name = "Tabatha Gehling"  and  contestants.contestant_name = "Kelly Clauss"

### Instruction:

Convert text to NatSQL: Return the names of the contestants whose names contain the substring 'Al' . | area_code_state : area_code , state | contestants : contestant_number , contestant_name | votes : vote_id , phone_number , state , contestant_number , created | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state | 

### Response:

select contestants.contestant_name from contestants  where  contestants.contestant_name like "%Al%"
### Instruction:

Convert text to NatSQL: What are the names of all the countries that became independent after 1950? | city : id , name , countrycode , 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 | 

### Response:

select country.Name from country  where  country.IndepYear > 1950

### Instruction:

Convert text to NatSQL: Give the names of the nations that were founded after 1950. | city : id , name , countrycode , 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 | 

### Response:

select country.Name from country  where  country.IndepYear > 1950

### Instruction:

Convert text to NatSQL: How many countries have a republic as their form of government? | city : id , name , countrycode , 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 | 

### Response:

select count ( country.* )  from country  where  country.GovernmentForm = "Republic"

### Instruction:

Convert text to NatSQL: How many countries have governments that are republics? | city : id , name , countrycode , 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 | 

### Response:

select count ( country.* )  from country  where  country.GovernmentForm = "Republic"

### Instruction:

Convert text to NatSQL: What is the total surface area of the countries in the Caribbean region? | city : id , name , countrycode , 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 | 

### Response:

select sum ( country.SurfaceArea )  from country  where  country.Region = "Caribbean"
### Instruction:

Convert text to NatSQL: How much surface area do the countires in the Carribean cover together? | city : id , name , countrycode , 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 | 

### Response:

select sum ( country.SurfaceArea )  from country  where  country.Region = "Caribbean"

### Instruction:

Convert text to NatSQL: Which continent is Anguilla in? | city : id , name , countrycode , 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 | 

### Response:

select country.Continent from country  where  country.Name = "Anguilla"

### Instruction:

Convert text to NatSQL: What is the continent name which Anguilla belongs to? | city : id , name , countrycode , 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 | 

### Response:

select country.Continent from country  where  country.Name = "Anguilla"

### Instruction:

Convert text to NatSQL: Which region is the city Kabul located in? | city : id , name , countrycode , 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 | 

### Response:

select country.Region from country  where  city.Name = "Kabul"

### Instruction:

Convert text to NatSQL: What region is Kabul in? | city : id , name , countrycode , 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 | 

### Response:

select country.Region from country  where  city.Name = "Kabul"
### Instruction:

Convert text to NatSQL: Which language is the most popular in Aruba? | city : id , name , countrycode , 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 | 

### Response:

select countrylanguage.Language from country  where  country.Name = "Aruba"  order by countrylanguage.Percentage desc limit 1

### Instruction:

Convert text to NatSQL: What language is predominantly spoken in Aruba? | city : id , name , countrycode , 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 | 

### Response:

select countrylanguage.Language from country  where  country.Name = "Aruba"  order by countrylanguage.Percentage desc limit 1

### Instruction:

Convert text to NatSQL: What are the population and life expectancies in Brazil? | city : id , name , countrycode , 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 | 

### Response:

select country.Population , country.LifeExpectancy from country  where  country.Name = "Brazil"

### Instruction:

Convert text to NatSQL: Give me Brazil's population and life expectancies. | city : id , name , countrycode , 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 | 

### Response:

select country.Population , country.LifeExpectancy from country  where  country.Name = "Brazil"

### Instruction:

Convert text to NatSQL: What are the region and population of Angola? | city : id , name , countrycode , 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 | 

### Response:

select country.Population , country.Region from country  where  country.Name = "Angola"
### Instruction:

Convert text to NatSQL: What region does Angola belong to and what is its population? | city : id , name , countrycode , 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 | 

### Response:

select country.Population , country.Region from country  where  country.Name = "Angola"

### Instruction:

Convert text to NatSQL: What is the average expected life expectancy for countries in the region of Central Africa? | city : id , name , countrycode , 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 | 

### Response:

select avg ( country.LifeExpectancy )  from country  where  country.Region = "Central Africa"

### Instruction:

Convert text to NatSQL: How long is the people's average life expectancy in Central Africa? | city : id , name , countrycode , 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 | 

### Response:

select avg ( country.LifeExpectancy )  from country  where  country.Region = "Central Africa"

### Instruction:

Convert text to NatSQL: What is the name of country that has the shortest life expectancy in Asia? | city : id , name , countrycode , 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 | 

### Response:

select country.Name from country  where  country.Continent = "Asia"  order by country.LifeExpectancy asc limit 1
### Instruction:

Convert text to NatSQL: Give the name of the country in Asia with the lowest life expectancy. | city : id , name , countrycode , 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 | 

### Response:

select country.Name from country  where  country.Continent = "Asia"  order by country.LifeExpectancy asc limit 1

### Instruction:

Convert text to NatSQL: What is the total population and maximum GNP in Asia? | city : id , name , countrycode , 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 | 

### Response:

select sum ( country.Population )  , max ( country.GNP )  from country  where  country.Continent = "Asia"

### Instruction:

Convert text to NatSQL: How many people live in Asia, and what is the largest GNP among them? | city : id , name , countrycode , 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 | 

### Response:

select sum ( country.Population )  , max ( country.GNP )  from country  where  country.Continent = "Asia"

### Instruction:

Convert text to NatSQL: What is the average life expectancy in African countries that are republics? | city : id , name , countrycode , 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 | 

### Response:

select avg ( country.LifeExpectancy )  from country  where  country.Continent = "Africa"  and  country.GovernmentForm = "Republic"
### Instruction:

Convert text to NatSQL: Give the average life expectancy for countries in Africa which are republics? | city : id , name , countrycode , 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 | 

### Response:

select avg ( country.LifeExpectancy )  from country  where  country.Continent = "Africa"  and  country.GovernmentForm = "Republic"

### Instruction:

Convert text to NatSQL: What is the total surface area of the continents Asia and Europe? | city : id , name , countrycode , 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 | 

### Response:

select sum ( country.SurfaceArea )  from country  where  country.Continent = "Asia"  or  country.Continent = "Europe"

### Instruction:

Convert text to NatSQL: Give the total surface area covered by countries in Asia or Europe. | city : id , name , countrycode , 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 | 

### Response:

select sum ( country.SurfaceArea )  from country  where  country.Continent = "Asia"  or  country.Continent = "Europe"

### Instruction:

Convert text to NatSQL: How many people live in Gelderland district? | city : id , name , countrycode , 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 | 

### Response:

select sum ( city.Population )  from city  where  city.District = "Gelderland"
### Instruction:

Convert text to NatSQL: What is the total population of Gelderland district? | city : id , name , countrycode , 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 | 

### Response:

select sum ( city.Population )  from city  where  city.District = "Gelderland"

### Instruction:

Convert text to NatSQL: What is the average GNP and total population in all nations whose government is US territory? | city : id , name , countrycode , 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 | 

### Response:

select avg ( country.GNP )  , sum ( country.Population )  from country  where  country.GovernmentForm = "US Territory"

### Instruction:

Convert text to NatSQL: Give the mean GNP and total population of nations which are considered US territory. | city : id , name , countrycode , 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 | 

### Response:

select avg ( country.GNP )  , sum ( country.Population )  from country  where  country.GovernmentForm = "US Territory"

### Instruction:

Convert text to NatSQL: How many unique languages are spoken in the world? | city : id , name , countrycode , 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 | 

### Response:

select count (  distinct countrylanguage.Language )  from countrylanguage

### Instruction:

Convert text to NatSQL: What is the number of distinct languages used around the world? | city : id , name , countrycode , 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 | 

### Response:

select count (  distinct countrylanguage.Language )  from countrylanguage
### Instruction:

Convert text to NatSQL: How many type of governments are in Africa? | city : id , name , countrycode , 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 | 

### Response:

select count (  distinct country.GovernmentForm )  from country  where  country.Continent = "Africa"

### Instruction:

Convert text to NatSQL: How many different forms of governments are there in Africa? | city : id , name , countrycode , 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 | 

### Response:

select count (  distinct country.GovernmentForm )  from country  where  country.Continent = "Africa"

### Instruction:

Convert text to NatSQL: What is the total number of languages used in Aruba? | city : id , name , countrycode , 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 | 

### Response:

select count ( countrylanguage.Language )  from country  where  country.Name = "Aruba"

### Instruction:

Convert text to NatSQL: How many languages are spoken in Aruba? | city : id , name , countrycode , 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 | 

### Response:

select count ( countrylanguage.Language )  from country  where  country.Name = "Aruba"

### Instruction:

Convert text to NatSQL: How many official languages does Afghanistan have? | city : id , name , countrycode , 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 | 

### Response:

select count ( country.* )  from country  where  country.Name = "Afghanistan"  and  countrylanguage.IsOfficial = "T"