cnatale/presto-athena-txt-2-sql huggingface dataset:
How many singers do we have?
Additional table information: table: concert_singer
SQL: SELECT COUNT(*) FROM singer
What is the total number of singers?
Additional table information: table: concert_singer
SQL: SELECT COUNT(*) FROM singer
Show name, country, age for all singers ordered by age from the oldest to the youngest.
Additional table information: table: concert_singer
SQL: SELECT name, country, age FROM singer ORDER BY age DESC
What are the names, countries, and ages for every singer in descending order of age?
Additional table information: table: concert_singer
SQL: SELECT name, country, age FROM singer ORDER BY age DESC
What is the average, minimum, and maximum age of all singers from France?
Additional table information: table: concert_singer
SQL: SELECT AVG(age), MIN(age), MAX(age) FROM singer WHERE country = 'France'
What is the average, minimum, and maximum age for all French singers?
Additional table information: table: concert_singer
SQL: SELECT AVG(age), MIN(age), MAX(age) FROM singer WHERE country = 'France'
Show the name and the release year of the song by the youngest singer.
Additional table information: table: concert_singer
SQL: SELECT song_name, song_release_year FROM singer ORDER BY age NULLS FIRST LIMIT 1
What are the names and release years for all the songs of the youngest singer?
Additional table information: table: concert_singer
SQL: SELECT song_name, song_release_year FROM singer ORDER BY age NULLS FIRST LIMIT 1
What are all distinct countries where singers above age 20 are from?
Additional table information: table: concert_singer
SQL: SELECT DISTINCT country FROM singer WHERE age > 20
What are  the different countries with singers above age 20?
Additional table information: table: concert_singer
SQL: SELECT DISTINCT country FROM singer WHERE age > 20
Show all countries and the number of singers in each country.
Additional table information: table: concert_singer
SQL: SELECT country, COUNT(*) FROM singer GROUP BY country
How many singers are from each country?
Additional table information: table: concert_singer
SQL: SELECT country, COUNT(*) FROM singer GROUP BY country
List all song names by singers above the average age.
Additional table information: table: concert_singer
SQL: SELECT song_name FROM singer WHERE age > (SELECT AVG(age) FROM singer)
What are all the song names by singers who are older than average?
Additional table information: table: concert_singer
SQL: SELECT song_name FROM singer WHERE age > (SELECT AVG(age) FROM singer)
Show location and name for all stadiums with a capacity between 5000 and 10000.
Additional table information: table: concert_singer
SQL: SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000
What are the locations and names of all stations with capacity between 5000 and 10000?
Additional table information: table: concert_singer
SQL: SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000
What is the maximum capacity and the average of all stadiums ?
Additional table information: table: concert_singer
SQL: SELECT MAX(capacity), average FROM stadium
What is the average and maximum capacities for all stadiums ?
Additional table information: table: concert_singer
SQL: SELECT AVG(capacity), MAX(capacity) FROM stadium
What is the name and capacity for the stadium with highest average attendance?
Additional table information: table: concert_singer
SQL: SELECT name, capacity FROM stadium ORDER BY average DESC LIMIT 1
What is the name and capacity for the stadium with the highest average attendance?
Additional table information: table: concert_singer
SQL: SELECT name, capacity FROM stadium ORDER BY average DESC LIMIT 1
How many concerts are there in year 2014 or 2015?
Additional table information: table: concert_singer
SQL: SELECT COUNT(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015
How many concerts occurred in 2014 or 2015?
Additional table information: table: concert_singer
SQL: SELECT COUNT(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015
Show the stadium name and the number of concerts in each stadium.
Additional table information: table: concert_singer
SQL: SELECT T2.name, COUNT(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id
For each stadium, how many concerts play there?
Additional table information: table: concert_singer
SQL: SELECT T2.name, COUNT(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id
Show the stadium name and capacity with most number of concerts in year 2014 or after.
Additional table information: table: concert_singer
SQL: SELECT T2.name, T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1
What is the name and capacity of the stadium with the most concerts after 2013?
Additional table information: table: concert_singer
SQL: SELECT t2.name, t2.capacity FROM concert AS t1 JOIN stadium AS t2 ON t1.stadium_id = t2.stadium_id WHERE t1.year > 2013 GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1
Which year has most number of concerts?
Additional table information: table: concert_singer
SQL: SELECT YEAR FROM concert GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1
What is the year that had the most concerts?
Additional table information: table: concert_singer
SQL: SELECT YEAR FROM concert GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1
Show the stadium names without any concert.
Additional table information: table: concert_singer
SQL: SELECT name FROM stadium WHERE NOT stadium_id IN (SELECT stadium_id FROM concert)
What are the names of the stadiums without any concerts?
Additional table information: table: concert_singer
SQL: SELECT name FROM stadium WHERE NOT stadium_id IN (SELECT stadium_id FROM concert)
Show countries where a singer above age 40 and a singer below 30 are from.
Additional table information: table: concert_singer
SQL: SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30
Show names for all stadiums except for stadiums having a concert in year 2014.
Additional table information: table: concert_singer
SQL: SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014
What are the names of all stadiums that did not have a concert in 2014?
Additional table information: table: concert_singer
SQL: SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014
Show the name and theme for all concerts and the number of singers in each concert.
Additional table information: table: concert_singer
SQL: SELECT T2.concert_name, T2.theme, COUNT(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T2.concert_id
What are the names , themes , and number of singers for every concert ?
Additional table information: table: concert_singer
SQL: SELECT t2.concert_name, t2.theme, COUNT(*) FROM singer_in_concert AS t1 JOIN concert AS t2 ON t1.concert_id = t2.concert_id GROUP BY t2.concert_id
List singer names and number of concerts for each singer.
Additional table information: table: concert_singer
SQL: SELECT T2.name, COUNT(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id
What are the names of the singers and number of concerts for each person?
Additional table information: table: concert_singer
SQL: SELECT T2.name, COUNT(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id
List all singer names in concerts in year 2014.
Additional table information: table: concert_singer
SQL: SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014
What are the names of the singers who performed in a concert in 2014?
Additional table information: table: concert_singer
SQL: SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014
what is the name and nation of the singer who have a song having 'Hey' in its name?
Additional table information: table: concert_singer
SQL: SELECT name, country FROM singer WHERE song_name LIKE '%Hey%'
What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?
Additional table information: table: concert_singer
SQL: SELECT name, country FROM singer WHERE song_name LIKE '%Hey%'
Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.
Additional table information: table: concert_singer
SQL: SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015
What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?
Additional table information: table: concert_singer
SQL: SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015
Find the number of concerts happened in the stadium with the highest capacity .
Additional table information: table: concert_singer
SQL: SELECT COUNT(*) FROM concert WHERE stadium_id = (SELECT stadium_id FROM stadium ORDER BY capacity DESC LIMIT 1)
What are the number of concerts that occurred in the stadium with the largest capacity ?
Additional table information: table: concert_singer
SQL: SELECT COUNT(*) FROM concert WHERE stadium_id = (SELECT stadium_id FROM stadium ORDER BY capacity DESC LIMIT 1)
Find the number of pets whose weight is heavier than 10.
Additional table information: table: pets_1
SQL: SELECT COUNT(*) FROM pets WHERE weight > 10
How many pets have a greater weight than 10?
Additional table information: table: pets_1
SQL: SELECT COUNT(*) FROM pets WHERE weight > 10
Find the weight of the youngest dog.
Additional table information: table: pets_1
SQL: SELECT weight FROM pets ORDER BY pet_age NULLS FIRST LIMIT 1
How much does the youngest dog weigh?
Additional table information: table: pets_1
SQL: SELECT weight FROM pets ORDER BY pet_age NULLS FIRST LIMIT 1
Find the maximum weight for each type of pet. List the maximum weight and pet type.
Additional table information: table: pets_1
SQL: SELECT MAX(weight), petType FROM pets GROUP BY petType
List the maximum weight and type for each type of pet.
Additional table information: table: pets_1
SQL: SELECT MAX(weight), petType FROM pets GROUP BY petType
Find number of pets owned by students who are older than 20.
Additional table information: table: pets_1
SQL: SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20
How many pets are owned by students that have an age greater than 20?
Additional table information: table: pets_1
SQL: SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20
Find the number of dog pets that are raised by female students (with sex F).
Additional table information: table: pets_1
SQL: SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'
How many dog pets are raised by female students?
Additional table information: table: pets_1
SQL: SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'
Find the number of distinct type of pets.
Additional table information: table: pets_1
SQL: SELECT COUNT(DISTINCT pettype) FROM pets
How many different types of pet are there?
Additional table information: table: pets_1
SQL: SELECT COUNT(DISTINCT pettype) FROM pets
Find the first name of students who have cat or dog pet.
Additional table information: table: pets_1
SQL: SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'
What are the first names of every student who has a cat or dog as a pet?
Additional table information: table: pets_1
SQL: SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'
Find the first name of students who have both cat and dog pets .
Additional table information: table: pets_1
SQL: SELECT t1.fname FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid JOIN pets AS t3 ON t3.petid = t2.petid WHERE t3.pettype = 'cat' INTERSECT SELECT t1.fname FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid JOIN pets AS t3 ON t3.petid = t2.petid WHERE t3.pettype = 'dog'
What are the students' first names who have both cats and dogs as pets?
Additional table information: table: pets_1
SQL: SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog'
Find the major and age of students who do not have a cat pet.
Additional table information: table: pets_1
SQL: SELECT major, age FROM student WHERE NOT stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')
What major is every student who does not own a cat as a pet, and also how old are they?
Additional table information: table: pets_1
SQL: SELECT major, age FROM student WHERE NOT stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')
Find the id of students who do not have a cat pet.
Additional table information: table: pets_1
SQL: SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'
What are the ids of the students who do not own cats as pets?
Additional table information: table: pets_1
SQL: SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'
Find the first name and age of students who have a dog but do not have a cat as a pet.
Additional table information: table: pets_1
SQL: SELECT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND NOT T1.stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')
What is the first name of every student who has a dog but does not have a cat?
Additional table information: table: pets_1
SQL: SELECT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND NOT T1.stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')
Find the type and weight of the youngest pet.
Additional table information: table: pets_1
SQL: SELECT pettype, weight FROM pets ORDER BY pet_age NULLS FIRST LIMIT 1
What type of pet is the youngest animal, and how much does it weigh?
Additional table information: table: pets_1
SQL: SELECT pettype, weight FROM pets ORDER BY pet_age NULLS FIRST LIMIT 1
Find the id and weight of all pets whose age is older than 1.
Additional table information: table: pets_1
SQL: SELECT petid, weight FROM pets WHERE pet_age > 1
What is the id and weight of every pet who is older than 1?
Additional table information: table: pets_1
SQL: SELECT petid, weight FROM pets WHERE pet_age > 1
Find the average and maximum age for each type of pet.
Additional table information: table: pets_1
SQL: SELECT AVG(pet_age), MAX(pet_age), pettype FROM pets GROUP BY pettype
What is the average and maximum age for each pet type?
Additional table information: table: pets_1
SQL: SELECT AVG(pet_age), MAX(pet_age), pettype FROM pets GROUP BY pettype
Find the average weight for each pet type.
Additional table information: table: pets_1
SQL: SELECT AVG(weight), pettype FROM pets GROUP BY pettype
What is the average weight for each type of pet?
Additional table information: table: pets_1
SQL: SELECT AVG(weight), pettype FROM pets GROUP BY pettype
Find the first name and age of students who have a pet.
Additional table information: table: pets_1
SQL: SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid
What are the different first names and ages of the students who do have pets?
Additional table information: table: pets_1
SQL: SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid
Find the id of the pet owned by student whose last name is ‘Smith’.
Additional table information: table: pets_1
SQL: SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'
What is the id of the pet owned by the student whose last name is 'Smith'?
Additional table information: table: pets_1
SQL: SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'
Find the number of pets for each student who has any pet and student id.
Additional table information: table: pets_1
SQL: SELECT COUNT(*), T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid
For students who have pets , how many pets does each student have ? list their ids instead of names .
Additional table information: table: pets_1
SQL: SELECT COUNT(*), t1.stuid FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid GROUP BY t1.stuid
Find the first name and gender of student who have more than one pet.
Additional table information: table: pets_1
SQL: SELECT T1.fname, T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING COUNT(*) > 1
What is the first name and gender of the all the students who have more than one pet?
Additional table information: table: pets_1
SQL: SELECT T1.fname, T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING COUNT(*) > 1
Find the last name of the student who has a cat that is age 3.
Additional table information: table: pets_1
SQL: SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'
What is the last name of the student who has a cat that is 3 years old?
Additional table information: table: pets_1
SQL: SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'
Find the average age of students who do not have any pet .
Additional table information: table: pets_1
SQL: SELECT AVG(age) FROM student WHERE NOT stuid IN (SELECT stuid FROM has_pet)
What is the average age for all students who do not own any pets ?
Additional table information: table: pets_1
SQL: SELECT AVG(age) FROM student WHERE NOT stuid IN (SELECT stuid FROM has_pet)
How many continents are there?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CONTINENTS
What is the number of continents?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CONTINENTS
How many countries does each continent have? List the continent id, continent name and the number of countries.
Additional table information: table: car_1
SQL: SELECT T1.ContId, T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId
For each continent, list its id, name, and how many countries it has?
Additional table information: table: car_1
SQL: SELECT T1.ContId, T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId
How many countries are listed?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM COUNTRIES
How many countries exist?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM COUNTRIES
How many models does each car maker produce? List maker full name, id and the number.
Additional table information: table: car_1
SQL: SELECT T1.FullName, T1.Id, COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id
What is the full name of each car maker, along with its id and how many models it produces?
Additional table information: table: car_1
SQL: SELECT T1.FullName, T1.Id, COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id
Which model of the car has the minimum horsepower?
Additional table information: table: car_1
SQL: SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC NULLS FIRST LIMIT 1
What is the model of the car with the smallest amount of horsepower?
Additional table information: table: car_1
SQL: SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC NULLS FIRST LIMIT 1
Find the model of the car whose weight is below the average weight.
Additional table information: table: car_1
SQL: SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT AVG(Weight) FROM CARS_DATA)
What is the model for the car with a weight smaller than the average?
Additional table information: table: car_1
SQL: SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT AVG(Weight) FROM CARS_DATA)
Find the name of the makers that produced some cars in the year of 1970?
Additional table information: table: car_1
SQL: SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970'
What is the name of the different car makers who produced a car in 1970?
Additional table information: table: car_1
SQL: SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970'
Find the make and production time of the cars that were produced in the earliest year?
Additional table information: table: car_1
SQL: SELECT T2.Make, T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT MIN(YEAR) FROM CARS_DATA)
What is the maker of the carr produced in the earliest year and what year was it?
Additional table information: table: car_1
SQL: SELECT T2.Make, T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT MIN(YEAR) FROM CARS_DATA)
Which distinct car models are the produced after 1980?
Additional table information: table: car_1
SQL: SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980
What are the different models for the cards produced after 1980?
Additional table information: table: car_1
SQL: SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980
How many car makers are there in each continents? List the continent name and the count.
Additional table information: table: car_1
SQL: SELECT T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent
What is the name of each continent and how many car makers are there in each one?
Additional table information: table: car_1
SQL: SELECT T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent
Which of the countries has the most car makers? List the country name.
Additional table information: table: car_1
SQL: SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY COUNT(*) DESC LIMIT 1
What is the name of the country with the most car makers?
Additional table information: table: car_1
SQL: SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY COUNT(*) DESC LIMIT 1
How many car models are produced by each maker ? Only list the count and the maker full name .
Additional table information: table: car_1
SQL: SELECT COUNT(*), t2.fullname FROM model_list AS t1 JOIN car_makers AS t2 ON t1.maker = t2.id GROUP BY t2.id
What is the number of car models that are produced by each maker and what is the id and full name of each maker?
Additional table information: table: car_1
SQL: SELECT COUNT(*), T2.FullName, T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id
What is the accelerate of the car make amc hornet sportabout (sw)?
Additional table information: table: car_1
SQL: SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)'
How much does the car accelerate that makes amc hornet sportabout (sw)?
Additional table information: table: car_1
SQL: SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)'
How many car makers are there in france?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france'
What is the number of makers of care in France?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france'
How many car models are produced in the usa?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa'
What is the count of the car models produced in the United States?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa'
What is the average miles per gallon(mpg) of the cars with 4 cylinders?
Additional table information: table: car_1
SQL: SELECT AVG(mpg) FROM CARS_DATA WHERE Cylinders = 4
What is the average miles per gallon of all the cards with 4 cylinders?
Additional table information: table: car_1
SQL: SELECT AVG(mpg) FROM CARS_DATA WHERE Cylinders = 4
What is the smallest weight of the car produced with 8 cylinders on 1974 ?
Additional table information: table: car_1
SQL: SELECT MIN(weight) FROM cars_data WHERE cylinders = 8 AND year = 1974
What is the minimum weight of the car with 8 cylinders produced in 1974 ?
Additional table information: table: car_1
SQL: SELECT MIN(weight) FROM cars_data WHERE cylinders = 8 AND year = 1974
What are all the makers and models?
Additional table information: table: car_1
SQL: SELECT Maker, Model FROM MODEL_LIST
What are the makers and models?
Additional table information: table: car_1
SQL: SELECT Maker, Model FROM MODEL_LIST
What are the countries having at least one car maker? List name and id.
Additional table information: table: car_1
SQL: SELECT T1.CountryName, T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING COUNT(*) >= 1
What are the names and ids of all countries with at least one car maker?
Additional table information: table: car_1
SQL: SELECT T1.CountryName, T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING COUNT(*) >= 1
What is the number of the cars with horsepower more than 150?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CARS_DATA WHERE horsepower > 150
What is the number of cars with a horsepower greater than 150?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CARS_DATA WHERE horsepower > 150
What is the average weight of cars each year?
Additional table information: table: car_1
SQL: SELECT AVG(Weight), YEAR FROM CARS_DATA GROUP BY YEAR
What is the average weight and year for each year?
Additional table information: table: car_1
SQL: SELECT AVG(Weight), YEAR FROM CARS_DATA GROUP BY YEAR
Which countries in europe have at least 3 car manufacturers?
Additional table information: table: car_1
SQL: SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING COUNT(*) >= 3
What are the names of all European countries with at least 3 manufacturers?
Additional table information: table: car_1
SQL: SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING COUNT(*) >= 3
What is the maximum horsepower and the make of the car models with 3 cylinders?
Additional table information: table: car_1
SQL: SELECT T2.horsepower, T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1
What is the largest amount of horsepower for the models with 3 cylinders and what make is it?
Additional table information: table: car_1
SQL: SELECT T2.horsepower, T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1
Which model saves the most gasoline? That is to say, have the maximum miles per gallon.
Additional table information: table: car_1
SQL: SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.mpg DESC LIMIT 1
What is the car model with the highest mpg ?
Additional table information: table: car_1
SQL: SELECT t1.model FROM car_names AS t1 JOIN cars_data AS t2 ON t1.makeid = t2.id ORDER BY t2.mpg DESC LIMIT 1
What is the average horsepower of the cars before 1980?
Additional table information: table: car_1
SQL: SELECT AVG(horsepower) FROM CARS_DATA WHERE YEAR < 1980
What is the average horsepower for all cars produced before 1980 ?
Additional table information: table: car_1
SQL: SELECT AVG(horsepower) FROM cars_data WHERE year < 1980
What is the average edispl of the cars of model volvo?
Additional table information: table: car_1
SQL: SELECT AVG(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo'
What is the average edispl for all volvos?
Additional table information: table: car_1
SQL: SELECT AVG(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo'
What is the maximum accelerate for different number of cylinders?
Additional table information: table: car_1
SQL: SELECT MAX(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders
What is the maximum accelerate for all the different cylinders?
Additional table information: table: car_1
SQL: SELECT MAX(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders
Which model has the most version(make) of cars?
Additional table information: table: car_1
SQL: SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY COUNT(*) DESC LIMIT 1
What model has the most different versions?
Additional table information: table: car_1
SQL: SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY COUNT(*) DESC LIMIT 1
How many cars have more than 4 cylinders?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 4
What is the number of cars with more than 4 cylinders?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 4
how many cars were produced in 1980?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CARS_DATA WHERE YEAR = 1980
In 1980, how many cars were made?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CARS_DATA WHERE YEAR = 1980
How many car models were produced by the maker with full name American Motor Company?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company'
What is the number of car models created by the car maker American Motor Company?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company'
Which makers designed more than 3 car models? List full name and the id.
Additional table information: table: car_1
SQL: SELECT T1.FullName, T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) > 3
What are the names and ids of all makers with more than 3 models?
Additional table information: table: car_1
SQL: SELECT T1.FullName, T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) > 3
Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?
Additional table information: table: car_1
SQL: SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500
What are the different models created by either the car maker General Motors or weighed more than 3500?
Additional table information: table: car_1
SQL: SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500
In which years cars were produced weighing no less than 3000 and no more than 4000 ?
Additional table information: table: car_1
SQL: SELECT DISTINCT year FROM cars_data WHERE weight BETWEEN 3000 AND 4000
What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?
Additional table information: table: car_1
SQL: SELECT DISTINCT year FROM cars_data WHERE weight BETWEEN 3000 AND 4000
What is the horsepower of the car with the largest accelerate?
Additional table information: table: car_1
SQL: SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1
What is the horsepower of the car with the greatest accelerate?
Additional table information: table: car_1
SQL: SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1
For model volvo, how many cylinders does the car with the least accelerate have?
Additional table information: table: car_1
SQL: SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC NULLS FIRST LIMIT 1
For a volvo model, how many cylinders does the version with least accelerate have?
Additional table information: table: car_1
SQL: SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC NULLS FIRST LIMIT 1
How many cars have a larger accelerate than the car with the largest horsepower?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1)
What is the number of cars with a greater accelerate than the one with the most horsepower?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1)
How many countries has more than 2 car makers ?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 2
What is the number of countries with more than 2 car makers ?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 2
How many cars has over 6 cylinders?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6
What is the number of carsw ith over 6 cylinders?
Additional table information: table: car_1
SQL: SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6
For the cars with 4 cylinders, which model has the largest horsepower?
Additional table information: table: car_1
SQL: SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1
For all of the 4 cylinder cars, which model has the most horsepower?
Additional table information: table: car_1
SQL: SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1
Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.
Additional table information: table: car_1
SQL: SELECT T2.MakeId, T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT MIN(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3
Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?
Additional table information: table: car_1
SQL: SELECT t2.makeid, t2.make FROM cars_data AS t1 JOIN car_names AS t2 ON t1.id = t2.makeid WHERE t1.horsepower > (SELECT MIN(horsepower) FROM cars_data) AND t1.cylinders < 4
What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?
Additional table information: table: car_1
SQL: SELECT MAX(mpg) FROM cars_data WHERE cylinders = 8 OR year < 1980
What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?
Additional table information: table: car_1
SQL: SELECT MAX(mpg) FROM cars_data WHERE cylinders = 8 OR year < 1980
Which models are lighter than 3500 but not built by the 'Ford Motor Company'?
Additional table information: table: car_1
SQL: SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName <> 'Ford Motor Company'
What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?
Additional table information: table: car_1
SQL: SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName <> 'Ford Motor Company'
What are the name of the countries where there is not a single car maker?
Additional table information: table: car_1
SQL: SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country
What are the names of the countries with no car makers?
Additional table information: table: car_1
SQL: SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country
Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .
Additional table information: table: car_1
SQL: SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker GROUP BY t1.id HAVING COUNT(*) >= 2 INTERSECT SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker JOIN car_names AS t3 ON t2.model = t3.model GROUP BY t1.id HAVING COUNT(*) > 3
What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?
Additional table information: table: car_1
SQL: SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING COUNT(*) > 3
What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?
Additional table information: table: car_1
SQL: SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING COUNT(*) > 3 UNION SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat'
What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?
Additional table information: table: car_1
SQL: SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model = 'fiat'
Which country does Airline 'JetBlue Airways' belong to?
Additional table information: table: flight_2
SQL: SELECT Country FROM AIRLINES WHERE Airline = 'JetBlue Airways'
What country is Jetblue Airways affiliated with?
Additional table information: table: flight_2
SQL: SELECT Country FROM AIRLINES WHERE Airline = 'JetBlue Airways'
What is the abbreviation of Airline 'JetBlue Airways'?
Additional table information: table: flight_2
SQL: SELECT Abbreviation FROM AIRLINES WHERE Airline = 'JetBlue Airways'
Which abbreviation corresponds to Jetblue Airways?
Additional table information: table: flight_2
SQL: SELECT Abbreviation FROM AIRLINES WHERE Airline = 'JetBlue Airways'
List all airline names and their abbreviations in 'USA'.
Additional table information: table: flight_2
SQL: SELECT Airline, Abbreviation FROM AIRLINES WHERE Country = 'USA'
What are the airline names and abbreviations for airlines in the USA?
Additional table information: table: flight_2
SQL: SELECT Airline, Abbreviation FROM AIRLINES WHERE Country = 'USA'
List the airport code and name in the city of Anthony.
Additional table information: table: flight_2
SQL: SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Anthony'
Give the airport code and airport name corresonding to the city Anthony.
Additional table information: table: flight_2
SQL: SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Anthony'
How many airlines do we have?
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM AIRLINES
What is the total number of airlines?
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM AIRLINES
How many airports do we have?
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM AIRPORTS
Return the number of  airports.
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM AIRPORTS
How many flights do we have?
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM FLIGHTS
Return the number of flights.
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM FLIGHTS
Which airline has abbreviation 'UAL'?
Additional table information: table: flight_2
SQL: SELECT Airline FROM AIRLINES WHERE Abbreviation = 'UAL'
Give the airline with abbreviation 'UAL'.
Additional table information: table: flight_2
SQL: SELECT Airline FROM AIRLINES WHERE Abbreviation = 'UAL'
How many airlines are from USA?
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM AIRLINES WHERE Country = 'USA'
Return the number of airlines in the USA.
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM AIRLINES WHERE Country = 'USA'
Which city and country is the Alton airport at?
Additional table information: table: flight_2
SQL: SELECT City, Country FROM AIRPORTS WHERE AirportName = 'Alton'
Give the city and country for the Alton airport.
Additional table information: table: flight_2
SQL: SELECT City, Country FROM AIRPORTS WHERE AirportName = 'Alton'
What is the airport name for airport 'AKO'?
Additional table information: table: flight_2
SQL: SELECT AirportName FROM AIRPORTS WHERE AirportCode = 'AKO'
Return the name of the airport with code 'AKO'.
Additional table information: table: flight_2
SQL: SELECT AirportName FROM AIRPORTS WHERE AirportCode = 'AKO'
What are airport names at City 'Aberdeen'?
Additional table information: table: flight_2
SQL: SELECT AirportName FROM AIRPORTS WHERE City = 'Aberdeen'
What are the names of airports in Aberdeen?
Additional table information: table: flight_2
SQL: SELECT AirportName FROM AIRPORTS WHERE City = 'Aberdeen'
How many flights depart from 'APG'?
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = 'APG'
Count the number of flights departing from 'APG'.
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = 'APG'
How many flights have destination ATO?
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = 'ATO'
Count the number of flights into ATO.
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = 'ATO'
How many flights depart from City Aberdeen?
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'
Return the number of flights departing from Aberdeen.
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'
How many flights arriving in Aberdeen city?
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'
Return the number of flights arriving in Aberdeen.
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'
How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = 'Ashley' AND T3.City = 'Aberdeen'
How many flights fly from Aberdeen to Ashley?
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = 'Ashley' AND T3.City = 'Aberdeen'
How many flights does airline 'JetBlue Airways' have?
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = 'JetBlue Airways'
Give the number of Jetblue Airways flights.
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = 'JetBlue Airways'
How many 'United Airlines' flights go to Airport 'ASY'?
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = 'United Airlines' AND T2.DestAirport = 'ASY'
Count the number of United Airlines flights arriving in ASY Airport.
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = 'United Airlines' AND T2.DestAirport = 'ASY'
How many 'United Airlines' flights depart from Airport 'AHD'?
Additional table information: table: flight_2
SQL: SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = 'United Airlines' AND T2.SourceAirport = 'AHD'