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

Convert text to NatSQL: How many countries are listed? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( countries.* )  from countries

### Instruction:

Convert text to NatSQL: How many countries exist? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( countries.* )  from countries

### Instruction:

Convert text to NatSQL: How many models does each car maker produce? List maker full name, id and the number. | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_makers.FullName , car_makers.Id , count ( model_list.* )  from car_makers  group by car_makers.Id

### Instruction:

Convert text to NatSQL: What is the full name of each car maker, along with its id and how many models it produces? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_makers.FullName , car_makers.Id , count ( model_list.* )  from car_makers  group by car_makers.Id
### Instruction:

Convert text to NatSQL: Which model of the car has the minimum horsepower? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_names.Model from car_names  order by cars_data.Horsepower asc limit 1

### Instruction:

Convert text to NatSQL: What is the model of the car with the smallest amount of horsepower? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_names.Model from car_names  order by cars_data.Horsepower asc limit 1

### Instruction:

Convert text to NatSQL: Find the model of the car whose weight is below the average weight. | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_names.Model from car_names  where  @.@ < avg ( cars_data.Weight )

### Instruction:

Convert text to NatSQL: What is the model for the car with a weight smaller than the average? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_names.Model from car_names  where  @.@ < avg ( cars_data.Weight )
### Instruction:

Convert text to NatSQL: Find the name of the makers that produced some cars in the year of 1970? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select  distinct car_makers.Maker from car_makers  where  cars_data.Year = "1970"

### Instruction:

Convert text to NatSQL: What is the name of the different car makers who produced a car in 1970? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select  distinct car_makers.Maker from car_makers  where  cars_data.Year = "1970"

### Instruction:

Convert text to NatSQL: Find the make and production time of the cars that were produced in the earliest year? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_names.Make , cars_data.Year from cars_data  where  @.@ = min ( cars_data.Year )

### Instruction:

Convert text to NatSQL: What is the maker of the carr produced in the earliest year and what year was it? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_names.Make , cars_data.Year from cars_data  where  @.@ = min ( cars_data.Year )
### Instruction:

Convert text to NatSQL: Which distinct car models are the produced after 1980? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select  distinct model_list.Model from model_list  where  cars_data.Year > 1980

### Instruction:

Convert text to NatSQL: What are the different models for the cards produced after 1980? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select  distinct model_list.Model from model_list  where  cars_data.Year > 1980

### Instruction:

Convert text to NatSQL: How many car makers are there in each continents? List the continent name and the count. | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select continents.Continent , count ( car_makers.* )  from car_makers  group by continents.Continent

### Instruction:

Convert text to NatSQL: What is the name of each continent and how many car makers are there in each one? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select continents.Continent , count ( car_makers.* )  from car_makers  group by continents.Continent
### Instruction:

Convert text to NatSQL: Which of the countries has the most car makers? List the country name. | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select countries.CountryName from car_makers  group by car_makers.Country  order by count ( car_makers.* )  desc limit 1

### Instruction:

Convert text to NatSQL: What is the name of the country with the most car makers? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select countries.CountryName from car_makers  group by car_makers.Country  order by count ( car_makers.* )  desc limit 1

### Instruction:

Convert text to NatSQL: How many car models are produced by each maker ? Only list the count and the maker full name . | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( model_list.* )  , car_makers.FullName  from model_list  group by car_makers.Id

### Instruction:

Convert text to NatSQL: What is the number of car models that are produced by each maker and what is the id and full name of each maker? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( model_list.* )  , car_makers.FullName, car_makers.id   from model_list  group by car_makers.Id
### Instruction:

Convert text to NatSQL: What is the accelerate of the car make amc hornet sportabout (sw)? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select cars_data.Accelerate from cars_data  where  car_names.Make = "amc hornet sportabout (sw)"

### Instruction:

Convert text to NatSQL: How much does the car accelerate that makes amc hornet sportabout (sw)? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select cars_data.Accelerate from cars_data  where  car_names.Make = "amc hornet sportabout (sw)"

### Instruction:

Convert text to NatSQL: How many car makers are there in france? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( car_makers.* )  from car_makers  where  countries.CountryName = "france"

### Instruction:

Convert text to NatSQL: What is the number of makers of care in France? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( car_makers.* )  from car_makers  where  countries.CountryName = "france"
### Instruction:

Convert text to NatSQL: How many car models are produced in the usa? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( model_list.* )  from model_list  where  countries.CountryName = "usa"

### Instruction:

Convert text to NatSQL: What is the count of the car models produced in the United States? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( model_list.* )  from model_list  where  countries.CountryName = "usa"

### Instruction:

Convert text to NatSQL: What is the average miles per gallon(mpg) of the cars with 4 cylinders? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select avg ( cars_data.MPG )  from cars_data  where  cars_data.Cylinders = 4

### Instruction:

Convert text to NatSQL: What is the average miles per gallon of all the cards with 4 cylinders? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select avg ( cars_data.MPG )  from cars_data  where  cars_data.Cylinders = 4
### Instruction:

Convert text to NatSQL: What is the smallest weight of the car produced with 8 cylinders on 1974 ? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select min(cars_data.Weight) from cars_data  where  cars_data.Cylinders = 8  and  cars_data.Year = 1974

### Instruction:

Convert text to NatSQL: What is the minimum weight of the car with 8 cylinders produced in 1974 ? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select min(cars_data.Weight) from cars_data  where  cars_data.Cylinders = 8  and  cars_data.Year = 1974

### Instruction:

Convert text to NatSQL: What are all the makers and models? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select model_list.Maker , model_list.Model from model_list

### Instruction:

Convert text to NatSQL: What are the makers and models? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select model_list.Maker , model_list.Model from model_list
### Instruction:

Convert text to NatSQL: What are the countries having at least one car maker? List name and id. | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select countries.CountryName , countries.CountryId from car_makers  where  count ( car_makers.* )  >= 1  group by countries.CountryId

### Instruction:

Convert text to NatSQL: What are the names and ids of all countries with at least one car maker? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select countries.CountryName , countries.CountryId from car_makers  where  count ( car_makers.* )  >= 1  group by countries.CountryId

### Instruction:

Convert text to NatSQL: What is the number of the cars with horsepower more than 150? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( cars_data.* )  from cars_data  where  cars_data.Horsepower > 150

### Instruction:

Convert text to NatSQL: What is the number of cars with a horsepower greater than 150? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( cars_data.* )  from cars_data  where  cars_data.Horsepower > 150
### Instruction:

Convert text to NatSQL: What is the average weight of cars each year? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select avg ( cars_data.Weight )  , cars_data.Year from cars_data  group by cars_data.Year

### Instruction:

Convert text to NatSQL: What is the average weight and year for each year? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select avg ( cars_data.Weight )  , cars_data.Year from cars_data  group by cars_data.Year

### Instruction:

Convert text to NatSQL: Which countries in europe have at least 3 car manufacturers? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select countries.CountryName from car_makers  where  continents.Continent = "europe"  and  count ( car_makers.* )  >= 3  group by countries.CountryName

### Instruction:

Convert text to NatSQL: What are the names of all European countries with at least 3 manufacturers? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select countries.CountryName from car_makers  where  continents.Continent = "europe"  and  count ( car_makers.* )  >= 3  group by countries.CountryName
### Instruction:

Convert text to NatSQL: What is the maximum horsepower and the make of the car models with 3 cylinders? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select cars_data.Horsepower , car_names.Make from car_names  where  cars_data.Cylinders = 3  order by cars_data.Horsepower desc limit 1

### Instruction:

Convert text to NatSQL: What is the largest amount of horsepower for the models with 3 cylinders and what make is it? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select cars_data.Horsepower , car_names.Make from car_names  where  cars_data.Cylinders = 3  order by cars_data.Horsepower desc limit 1

### Instruction:

Convert text to NatSQL: Which model saves the most gasoline? That is to say, have the maximum miles per gallon. | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_names.Model from cars_data  order by cars_data.MPG desc limit 1

### Instruction:

Convert text to NatSQL: What is the car model with the highest mpg ? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_names.Model from car_names  order by cars_data.MPG desc limit 1
### Instruction:

Convert text to NatSQL: What is the average horsepower of the cars before 1980? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select avg ( cars_data.Horsepower )  from cars_data  where  cars_data.Year < 1980

### Instruction:

Convert text to NatSQL: What is the average horsepower for all cars produced before 1980 ? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select avg ( cars_data.Horsepower )  from cars_data  where  cars_data.Year < 1980

### Instruction:

Convert text to NatSQL: What is the average edispl of the cars of model volvo? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select avg ( cars_data.Edispl )  from car_names  where  car_names.Model = "volvo"

### Instruction:

Convert text to NatSQL: What is the average edispl for all volvos? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select avg ( cars_data.Edispl )  from car_names  where  car_names.Model = "volvo"
### Instruction:

Convert text to NatSQL: What is the maximum accelerate for different number of cylinders? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select max ( cars_data.Accelerate )  , cars_data.Cylinders from cars_data  group by cars_data.Cylinders

### Instruction:

Convert text to NatSQL: What is the maximum accelerate for all the different cylinders? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select max ( cars_data.Accelerate )  , cars_data.Cylinders from cars_data  group by cars_data.Cylinders

### Instruction:

Convert text to NatSQL: Which model has the most version(make) of cars? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_names.Model from car_names  group by car_names.Model  order by count ( car_names.* )  desc limit 1

### Instruction:

Convert text to NatSQL: What model has the most different versions? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

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

Convert text to NatSQL: How many cars have more than 4 cylinders? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( cars_data.* )  from cars_data  where  cars_data.Cylinders > 4

### Instruction:

Convert text to NatSQL: What is the number of cars with more than 4 cylinders? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( cars_data.* )  from cars_data  where  cars_data.Cylinders > 4

### Instruction:

Convert text to NatSQL: how many cars were produced in 1980? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( cars_data.* )  from cars_data  where  cars_data.Year = 1980

### Instruction:

Convert text to NatSQL: In 1980, how many cars were made? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( cars_data.* )  from cars_data  where  cars_data.Year = 1980
### Instruction:

Convert text to NatSQL: How many car models were produced by the maker with full name American Motor Company? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( model_list.* )  from model_list  where  car_makers.FullName = "American Motor Company"

### Instruction:

Convert text to NatSQL: What is the number of car models created by the car maker American Motor Company? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( model_list.* )  from model_list  where  car_makers.FullName = "American Motor Company"

### Instruction:

Convert text to NatSQL: Which makers designed more than 3 car models? List full name and the id. | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_makers.FullName , car_makers.Id from model_list  where  count ( model_list.* )  > 3  group by car_makers.Id

### Instruction:

Convert text to NatSQL: What are the names and ids of all makers with more than 3 models? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_makers.FullName , car_makers.Id from model_list  where  count ( model_list.* )  > 3  group by car_makers.Id
### Instruction:

Convert text to NatSQL: Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select  distinct model_list.Model from car_names  where  car_makers.FullName = "General Motors"  or  cars_data.Weight > 3500

### Instruction:

Convert text to NatSQL: What are the different models created by either the car maker General Motors or weighed more than 3500? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select  distinct model_list.Model from car_names  where  car_makers.FullName = "General Motors"  or  cars_data.Weight > 3500

### Instruction:

Convert text to NatSQL: In which years cars were produced weighing no less than 3000 and no more than 4000 ? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select  distinct cars_data.Year from cars_data  where  cars_data.Weight between 3000 and 4000

### Instruction:

Convert text to NatSQL: What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select  distinct cars_data.Year from cars_data  where  cars_data.Weight between 3000 and 4000
### Instruction:

Convert text to NatSQL: What is the horsepower of the car with the largest accelerate? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select cars_data.Horsepower from cars_data  order by cars_data.Accelerate desc limit 1

### Instruction:

Convert text to NatSQL: What is the horsepower of the car with the greatest accelerate? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select cars_data.Horsepower from cars_data  order by cars_data.Accelerate desc limit 1

### Instruction:

Convert text to NatSQL: For model volvo, how many cylinders does the car with the least accelerate have? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select cars_data.Cylinders from cars_data  where  car_names.Model = "volvo"  order by cars_data.Accelerate asc limit 1

### Instruction:

Convert text to NatSQL: For a volvo model, how many cylinders does the version with least accelerate have? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select cars_data.Cylinders from cars_data  where  car_names.Model = "volvo"  order by cars_data.Accelerate asc limit 1