cnatale/presto-athena-txt-2-sql huggingface dataset:
How many trips started from Mountain View city and ended at Palo Alto city?
Additional table information: table: bike_1
SQL: SELECT COUNT(*) FROM station AS T1, trip AS T2, station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = 'Mountain View' AND T3.city = 'Palo Alto'
How many trips stated from  a station in Mountain View and ended at one in Palo Alto?
Additional table information: table: bike_1
SQL: SELECT COUNT(*) FROM station AS T1, trip AS T2, station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = 'Mountain View' AND T3.city = 'Palo Alto'
What is the average latitude and longitude of the starting points of all trips?
Additional table information: table: bike_1
SQL: SELECT AVG(T1.lat), AVG(T1.long) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id
What is the average latitude and longitude of all starting stations for the trips?
Additional table information: table: bike_1
SQL: SELECT AVG(T1.lat), AVG(T1.long) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id
How many books are there?
Additional table information: table: book_2
SQL: SELECT COUNT(*) FROM book
List the writers of the books in ascending alphabetical order.
Additional table information: table: book_2
SQL: SELECT Writer FROM book ORDER BY Writer ASC NULLS FIRST
List the titles of the books in ascending order of issues.
Additional table information: table: book_2
SQL: SELECT Title FROM book ORDER BY Issues ASC NULLS FIRST
What are the titles of the books whose writer is not 'Elaine Lee'?
Additional table information: table: book_2
SQL: SELECT Title FROM book WHERE Writer <> 'Elaine Lee'
What are the title and issues of the books?
Additional table information: table: book_2
SQL: SELECT Title, Issues FROM book
What are the dates of publications in descending order of price?
Additional table information: table: book_2
SQL: SELECT Publication_Date FROM publication ORDER BY Price DESC
What are the distinct publishers of publications with price higher than 5000000?
Additional table information: table: book_2
SQL: SELECT DISTINCT Publisher FROM publication WHERE Price > 5000000
List the publisher of the publication with the highest price.
Additional table information: table: book_2
SQL: SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1
List the publication dates of publications with 3 lowest prices.
Additional table information: table: book_2
SQL: SELECT Publication_Date FROM publication ORDER BY Price ASC NULLS FIRST LIMIT 3
Show the title and publication dates of books.
Additional table information: table: book_2
SQL: SELECT T1.Title, T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID
Show writers who have published a book with price more than 4000000.
Additional table information: table: book_2
SQL: SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T2.Price > 4000000
Show the titles of books in descending order of publication price.
Additional table information: table: book_2
SQL: SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T2.Price DESC
Show publishers that have more than one publication.
Additional table information: table: book_2
SQL: SELECT Publisher FROM publication GROUP BY Publisher HAVING COUNT(*) > 1
Show different publishers together with the number of publications they have.
Additional table information: table: book_2
SQL: SELECT Publisher, COUNT(*) FROM publication GROUP BY Publisher
Please show the most common publication date.
Additional table information: table: book_2
SQL: SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1
List the writers who have written more than one book.
Additional table information: table: book_2
SQL: SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*) > 1
List the titles of books that are not published.
Additional table information: table: book_2
SQL: SELECT Title FROM book WHERE NOT Book_ID IN (SELECT Book_ID FROM publication)
Show the publishers that have publications with price higher than 10000000 and publications with price lower than 5000000.
Additional table information: table: book_2
SQL: SELECT Publisher FROM publication WHERE Price > 10000000 INTERSECT SELECT Publisher FROM publication WHERE Price < 5000000
What is the number of distinct publication dates?
Additional table information: table: book_2
SQL: SELECT COUNT(DISTINCT Publication_Date) FROM publication
How many distinct publication dates are there in our record?
Additional table information: table: book_2
SQL: SELECT COUNT(DISTINCT Publication_Date) FROM publication
Show the prices of publications whose publisher is either 'Person' or 'Wiley'
Additional table information: table: book_2
SQL: SELECT Price FROM publication WHERE Publisher = 'Person' OR Publisher = 'Wiley'
How many actors are there?
Additional table information: table: musical
SQL: SELECT COUNT(*) FROM actor
Count the number of actors.
Additional table information: table: musical
SQL: SELECT COUNT(*) FROM actor
List the name of actors in ascending alphabetical order.
Additional table information: table: musical
SQL: SELECT Name FROM actor ORDER BY Name ASC NULLS FIRST
What are the names of actors, ordered alphabetically?
Additional table information: table: musical
SQL: SELECT Name FROM actor ORDER BY Name ASC NULLS FIRST
What are the characters and duration of actors?
Additional table information: table: musical
SQL: SELECT Character, Duration FROM actor
Return the characters and durations for each actor.
Additional table information: table: musical
SQL: SELECT Character, Duration FROM actor
List the name of actors whose age is not 20.
Additional table information: table: musical
SQL: SELECT Name FROM actor WHERE Age <> 20
What are the names of actors who are not 20 years old?
Additional table information: table: musical
SQL: SELECT Name FROM actor WHERE Age <> 20
What are the characters of actors in descending order of age?
Additional table information: table: musical
SQL: SELECT Character FROM actor ORDER BY age DESC
Return the characters for actors, ordered by age descending.
Additional table information: table: musical
SQL: SELECT Character FROM actor ORDER BY age DESC
What is the duration of the oldest actor?
Additional table information: table: musical
SQL: SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1
Return the duration of the actor with the greatest age.
Additional table information: table: musical
SQL: SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1
What are the names of musicals with nominee 'Bob Fosse'?
Additional table information: table: musical
SQL: SELECT Name FROM musical WHERE Nominee = 'Bob Fosse'
Return the names of musicals who have the nominee Bob Fosse.
Additional table information: table: musical
SQL: SELECT Name FROM musical WHERE Nominee = 'Bob Fosse'
What are the distinct nominees of the musicals with the award that is not 'Tony Award'?
Additional table information: table: musical
SQL: SELECT DISTINCT Nominee FROM musical WHERE Award <> 'Tony Award'
Return the different nominees of musicals that have an award that is not the Tony Award.
Additional table information: table: musical
SQL: SELECT DISTINCT Nominee FROM musical WHERE Award <> 'Tony Award'
Show names of actors and names of musicals they are in.
Additional table information: table: musical
SQL: SELECT T1.Name, T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID
What are the names of actors and the musicals that they are in?
Additional table information: table: musical
SQL: SELECT T1.Name, T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID
Show names of actors that have appeared in musical with name 'The Phantom of the Opera'.
Additional table information: table: musical
SQL: SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.Name = 'The Phantom of the Opera'
What are the names of actors who have been in the musical titled The Phantom of the Opera?
Additional table information: table: musical
SQL: SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.Name = 'The Phantom of the Opera'
Show names of actors in descending order of the year their musical is awarded.
Additional table information: table: musical
SQL: SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID ORDER BY T2.Year DESC
What are the names of actors ordered descending by the year in which their musical was awarded?
Additional table information: table: musical
SQL: SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID ORDER BY T2.Year DESC
Show names of musicals and the number of actors who have appeared in the musicals.
Additional table information: table: musical
SQL: SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID
How many actors have appeared in each musical?
Additional table information: table: musical
SQL: SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID
Show names of musicals which have at least three actors.
Additional table information: table: musical
SQL: SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*) >= 3
What are the names of musicals who have at 3 or more actors?
Additional table information: table: musical
SQL: SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*) >= 3
Show different nominees and the number of musicals they have been nominated.
Additional table information: table: musical
SQL: SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee
How many musicals has each nominee been nominated for?
Additional table information: table: musical
SQL: SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee
Please show the nominee who has been nominated the greatest number of times.
Additional table information: table: musical
SQL: SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1
Who is the nominee who has been nominated for the most musicals?
Additional table information: table: musical
SQL: SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1
List the most common result of the musicals.
Additional table information: table: musical
SQL: SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1
Return the most frequent result across all musicals.
Additional table information: table: musical
SQL: SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1
List the nominees that have been nominated more than two musicals.
Additional table information: table: musical
SQL: SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT(*) > 2
Who are the nominees who have been nominated more than two times?
Additional table information: table: musical
SQL: SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT(*) > 2
List the name of musicals that do not have actors.
Additional table information: table: musical
SQL: SELECT Name FROM musical WHERE NOT Musical_ID IN (SELECT Musical_ID FROM actor)
What are the names of musicals who have no actors?
Additional table information: table: musical
SQL: SELECT Name FROM musical WHERE NOT Musical_ID IN (SELECT Musical_ID FROM actor)
Show the nominees that have nominated musicals for both 'Tony Award' and 'Drama Desk Award'.
Additional table information: table: musical
SQL: SELECT Nominee FROM musical WHERE Award = 'Tony Award' INTERSECT SELECT Nominee FROM musical WHERE Award = 'Drama Desk Award'
Who are the nominees who have been nominated for both a Tony Award and a Drama Desk Award?
Additional table information: table: musical
SQL: SELECT Nominee FROM musical WHERE Award = 'Tony Award' INTERSECT SELECT Nominee FROM musical WHERE Award = 'Drama Desk Award'
Show the musical nominee with award 'Bob Fosse' or 'Cleavant Derricks'.
Additional table information: table: musical
SQL: SELECT Nominee FROM musical WHERE Award = 'Tony Award' OR Award = 'Cleavant Derricks'
Who are the nominees who were nominated for either of the Bob Fosse or Cleavant Derricks awards?
Additional table information: table: musical
SQL: SELECT Nominee FROM musical WHERE Award = 'Tony Award' OR Award = 'Cleavant Derricks'
Find the emails of the user named 'Mary'.
Additional table information: table: twitter_1
SQL: SELECT email FROM user_profiles WHERE name = 'Mary'
What is the partition id of the user named 'Iron Man'.
Additional table information: table: twitter_1
SQL: SELECT partitionid FROM user_profiles WHERE name = 'Iron Man'
How many users are there?
Additional table information: table: twitter_1
SQL: SELECT COUNT(*) FROM user_profiles
How many followers does each user have?
Additional table information: table: twitter_1
SQL: SELECT COUNT(*) FROM follows
Find the number of followers for each user.
Additional table information: table: twitter_1
SQL: SELECT COUNT(*) FROM follows GROUP BY f1
Find the number of tweets in record.
Additional table information: table: twitter_1
SQL: SELECT COUNT(*) FROM tweets
Find the number of users who posted some tweets.
Additional table information: table: twitter_1
SQL: SELECT COUNT(DISTINCT UID) FROM tweets
Find the name and email of the user whose name contains the word ‘Swift’.
Additional table information: table: twitter_1
SQL: SELECT name, email FROM user_profiles WHERE name LIKE '%Swift%'
Find the names of users whose emails contain ‘superstar’ or ‘edu’.
Additional table information: table: twitter_1
SQL: SELECT name FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%'
Return the text of tweets about the topic 'intern'.
Additional table information: table: twitter_1
SQL: SELECT text FROM tweets WHERE text LIKE '%intern%'
Find the name and email of the users who have more than 1000 followers.
Additional table information: table: twitter_1
SQL: SELECT name, email FROM user_profiles WHERE followers > 1000
Find the names of the users whose number of followers is greater than that of the user named 'Tyler Swift'.
Additional table information: table: twitter_1
SQL: SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > (SELECT COUNT(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 WHERE T1.name = 'Tyler Swift')
Find the name and email for the users who have more than one follower.
Additional table information: table: twitter_1
SQL: SELECT T1.name, T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > 1
Find the names of users who have more than one tweet.
Additional table information: table: twitter_1
SQL: SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) > 1
Find the id of users who are followed by Mary and Susan.
Additional table information: table: twitter_1
SQL: SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = 'Mary' INTERSECT SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = 'Susan'
Find the id of users who are followed by Mary or Susan.
Additional table information: table: twitter_1
SQL: SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = 'Mary' OR T1.name = 'Susan'
Find the name of the user who has the largest number of followers.
Additional table information: table: twitter_1
SQL: SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 1
Find the name and email of the user followed by the least number of people.
Additional table information: table: twitter_1
SQL: SELECT name, email FROM user_profiles ORDER BY followers NULLS FIRST LIMIT 1
List the name and number of followers for each user, and sort the results by the number of followers in descending order.
Additional table information: table: twitter_1
SQL: SELECT name, followers FROM user_profiles ORDER BY followers DESC
List the names of 5 users followed by the largest number of other users.
Additional table information: table: twitter_1
SQL: SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 5
List the text of all tweets in the order of date.
Additional table information: table: twitter_1
SQL: SELECT text FROM tweets ORDER BY createdate NULLS FIRST
Find the name of each user and number of tweets tweeted by each of them.
Additional table information: table: twitter_1
SQL: SELECT T1.name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid
Find the name and partition id for users who tweeted less than twice.
Additional table information: table: twitter_1
SQL: SELECT T1.name, T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) < 2
Find the name of the user who tweeted more than once, and number of tweets tweeted by them.
Additional table information: table: twitter_1
SQL: SELECT T1.name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) > 1
Find the average number of followers for the users who do not have any tweet.
Additional table information: table: twitter_1
SQL: SELECT AVG(followers) FROM user_profiles WHERE NOT UID IN (SELECT UID FROM tweets)
Find the average number of followers for the users who had some tweets.
Additional table information: table: twitter_1
SQL: SELECT AVG(followers) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets)
Find the maximum and total number of followers of all users.
Additional table information: table: twitter_1
SQL: SELECT MAX(followers), SUM(followers) FROM user_profiles
Find the names of all the catalog entries.
Additional table information: table: product_catalog
SQL: SELECT DISTINCT (catalog_entry_name) FROM catalog_contents
What are all the catalog entry names?
Additional table information: table: product_catalog
SQL: SELECT DISTINCT (catalog_entry_name) FROM catalog_contents
Find the list of attribute data types possessed by more than 3 attribute definitions.
Additional table information: table: product_catalog
SQL: SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING COUNT(*) > 3
What are the attribute data types with more than 3 attribute definitions?
Additional table information: table: product_catalog
SQL: SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING COUNT(*) > 3
What is the attribute data type of the attribute with name 'Green'?
Additional table information: table: product_catalog
SQL: SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name = 'Green'
Find the attribute data type for the attribute named 'Green'.
Additional table information: table: product_catalog
SQL: SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name = 'Green'
Find the name and level of catalog structure with level between 5 and 10.
Additional table information: table: product_catalog
SQL: SELECT catalog_level_name, catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10
What are the name and level of catalog structure with level number between 5 and 10
Additional table information: table: product_catalog
SQL: SELECT catalog_level_name, catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10
Find all the catalog publishers whose name contains 'Murray'
Additional table information: table: product_catalog
SQL: SELECT DISTINCT (catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE '%Murray%'
Which catalog publishers have substring 'Murray' in their names?
Additional table information: table: product_catalog
SQL: SELECT DISTINCT (catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE '%Murray%'
Which catalog publisher has published the most catalogs?
Additional table information: table: product_catalog
SQL: SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY COUNT(*) DESC LIMIT 1
Find the catalog publisher that has the most catalogs.
Additional table information: table: product_catalog
SQL: SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY COUNT(*) DESC LIMIT 1
Find the names and publication dates of all catalogs that have catalog level number greater than 5.
Additional table information: table: product_catalog
SQL: SELECT t1.catalog_name, t1.date_of_publication FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id = t2.catalog_id WHERE catalog_level_number > 5
What are the name and publication date of the catalogs with catalog level number above 5?
Additional table information: table: product_catalog
SQL: SELECT t1.catalog_name, t1.date_of_publication FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id = t2.catalog_id WHERE catalog_level_number > 5
What are the entry names of catalog with the attribute possessed by most entries.
Additional table information: table: product_catalog
SQL: SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY COUNT(*) DESC LIMIT 1)
Find the entry names of the catalog with the attribute that have the most entries.
Additional table information: table: product_catalog
SQL: SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY COUNT(*) DESC LIMIT 1)
What is the entry name of the most expensive catalog (in USD)?
Additional table information: table: product_catalog
SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1
Find the entry name of the catalog with the highest price (in USD).
Additional table information: table: product_catalog
SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1
What is the level name of the cheapest catalog (in USD)?
Additional table information: table: product_catalog
SQL: SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number ORDER BY t1.price_in_dollars NULLS FIRST LIMIT 1
Find the level name of the catalog with the lowest price (in USD).
Additional table information: table: product_catalog
SQL: SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number ORDER BY t1.price_in_dollars NULLS FIRST LIMIT 1
What are the average and minimum price (in Euro) of all products?
Additional table information: table: product_catalog
SQL: SELECT AVG(price_in_euros), MIN(price_in_euros) FROM catalog_contents
Give me the average and minimum price (in Euro) of the products.
Additional table information: table: product_catalog
SQL: SELECT AVG(price_in_euros), MIN(price_in_euros) FROM catalog_contents
What is the product with the highest height? Give me the catalog entry name.
Additional table information: table: product_catalog
SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1
Which catalog content has the highest height? Give me the catalog entry name.
Additional table information: table: product_catalog
SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1
Find the name of the product that has the smallest capacity.
Additional table information: table: product_catalog
SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC NULLS FIRST LIMIT 1
Which catalog content has the smallest capacity? Return the catalog entry name.
Additional table information: table: product_catalog
SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC NULLS FIRST LIMIT 1
Find the names of all the products whose stock number starts with '2'.
Additional table information: table: product_catalog
SQL: SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE '2%'
Which catalog contents have a product stock number that starts from '2'? Show the catalog entry names.
Additional table information: table: product_catalog
SQL: SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE '2%'
Find the names of catalog entries with level number 8.
Additional table information: table: product_catalog
SQL: SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = '8'
What are the names of catalog entries with level number 8?
Additional table information: table: product_catalog
SQL: SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = '8'
Find the names of the products with length smaller than 3 or height greater than 5.
Additional table information: table: product_catalog
SQL: SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5
Which catalog contents have length below 3 or above 5? Find the catalog entry names.
Additional table information: table: product_catalog
SQL: SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5
Find the name and attribute ID of the attribute definitions with attribute value 0.
Additional table information: table: product_catalog
SQL: SELECT t1.attribute_name, t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0
Which attribute definitions have attribute value 0? Give me the attribute name and attribute ID.
Additional table information: table: product_catalog
SQL: SELECT t1.attribute_name, t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0
Find the name and capacity of products with price greater than 700 (in USD).
Additional table information: table: product_catalog
SQL: SELECT catalog_entry_name, capacity FROM Catalog_Contents WHERE price_in_dollars > 700
Which catalog contents has price above 700 dollars? Show their catalog entry names and capacities.
Additional table information: table: product_catalog
SQL: SELECT catalog_entry_name, capacity FROM Catalog_Contents WHERE price_in_dollars > 700
Find the dates on which more than one revisions were made.
Additional table information: table: product_catalog
SQL: SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING COUNT(*) > 1
On which days more than one revisions were made on catalogs.
Additional table information: table: product_catalog
SQL: SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING COUNT(*) > 1
How many products are there in the records?
Additional table information: table: product_catalog
SQL: SELECT COUNT(*) FROM catalog_contents
Find the total number of catalog contents.
Additional table information: table: product_catalog
SQL: SELECT COUNT(*) FROM catalog_contents
Name all the products with next entry ID greater than 8.
Additional table information: table: product_catalog
SQL: SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id > 8
What are the catalog entry names of the products with next entry ID above 8?
Additional table information: table: product_catalog
SQL: SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id > 8
How many aircrafts do we have?
Additional table information: table: flight_1
SQL: SELECT COUNT(*) FROM Aircraft
How many aircrafts exist in the database?
Additional table information: table: flight_1
SQL: SELECT COUNT(*) FROM Aircraft
Show name and distance for all aircrafts.
Additional table information: table: flight_1
SQL: SELECT name, distance FROM Aircraft
What are the names and distances for all airplanes?
Additional table information: table: flight_1
SQL: SELECT name, distance FROM Aircraft
Show ids for all aircrafts with more than 1000 distance.
Additional table information: table: flight_1
SQL: SELECT aid FROM Aircraft WHERE distance > 1000
What are the ids of all aircrafts that can cover a distance of more than 1000?
Additional table information: table: flight_1
SQL: SELECT aid FROM Aircraft WHERE distance > 1000
How many aircrafts have distance between 1000 and 5000?
Additional table information: table: flight_1
SQL: SELECT COUNT(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000
What is the count of aircrafts that have a distance between 1000 and 5000?
Additional table information: table: flight_1
SQL: SELECT COUNT(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000
What is the name and distance for aircraft with id 12?
Additional table information: table: flight_1
SQL: SELECT name, distance FROM Aircraft WHERE aid = 12
What is the name and distance for the aircraft that has an id of 12?
Additional table information: table: flight_1
SQL: SELECT name, distance FROM Aircraft WHERE aid = 12
What is the minimum, average, and maximum distance of all aircrafts.
Additional table information: table: flight_1
SQL: SELECT MIN(distance), AVG(distance), MAX(distance) FROM Aircraft
Return the minimum, average and maximum distances traveled across all aircrafts.
Additional table information: table: flight_1
SQL: SELECT MIN(distance), AVG(distance), MAX(distance) FROM Aircraft
Show the id and name of the aircraft with the maximum distance.
Additional table information: table: flight_1
SQL: SELECT aid, name FROM Aircraft ORDER BY distance DESC LIMIT 1
What is the id and name of the aircraft that can cover the maximum distance?
Additional table information: table: flight_1
SQL: SELECT aid, name FROM Aircraft ORDER BY distance DESC LIMIT 1
Show the name of aircrafts with top three lowest distances.
Additional table information: table: flight_1
SQL: SELECT name FROM Aircraft ORDER BY distance NULLS FIRST LIMIT 3
What are the aircrafts with top 3 shortest lengthes? List their names.
Additional table information: table: flight_1
SQL: SELECT name FROM Aircraft ORDER BY distance NULLS FIRST LIMIT 3
Show names for all aircrafts with distances more than the average.
Additional table information: table: flight_1
SQL: SELECT name FROM Aircraft WHERE distance > (SELECT AVG(distance) FROM Aircraft)
What are the names of all aircrafts that can cover more distances than average?
Additional table information: table: flight_1
SQL: SELECT name FROM Aircraft WHERE distance > (SELECT AVG(distance) FROM Aircraft)
How many employees do we have?
Additional table information: table: flight_1
SQL: SELECT COUNT(*) FROM Employee
What is the number of employees?
Additional table information: table: flight_1
SQL: SELECT COUNT(*) FROM Employee
Show name and salary for all employees sorted by salary.
Additional table information: table: flight_1
SQL: SELECT name, salary FROM Employee ORDER BY salary NULLS FIRST
What is the name and salary of all employees in order of salary?
Additional table information: table: flight_1
SQL: SELECT name, salary FROM Employee ORDER BY salary NULLS FIRST
Show ids for all employees with at least 100000 salary.
Additional table information: table: flight_1
SQL: SELECT eid FROM Employee WHERE salary > 100000
What is the id of every employee who has at least a salary of  100000?
Additional table information: table: flight_1
SQL: SELECT eid FROM Employee WHERE salary > 100000
How many employees have salary between 100000 and 200000?
Additional table information: table: flight_1
SQL: SELECT COUNT(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000
What is the number of employees that have a salary between 100000 and 200000?
Additional table information: table: flight_1
SQL: SELECT COUNT(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000
What is the name and salary for employee with id 242518965?
Additional table information: table: flight_1
SQL: SELECT name, salary FROM Employee WHERE eid = 242518965
What is the name and salary of the employee with the id 242518965?
Additional table information: table: flight_1
SQL: SELECT name, salary FROM Employee WHERE eid = 242518965
What is average and maximum salary of all employees.
Additional table information: table: flight_1
SQL: SELECT AVG(salary), MAX(salary) FROM Employee
What is the average and largest salary of all employees?
Additional table information: table: flight_1
SQL: SELECT AVG(salary), MAX(salary) FROM Employee
Show the id and name of the employee with maximum salary.
Additional table information: table: flight_1
SQL: SELECT eid, name FROM Employee ORDER BY salary DESC LIMIT 1
What is the id and name of the employee with the highest salary?
Additional table information: table: flight_1
SQL: SELECT eid, name FROM Employee ORDER BY salary DESC LIMIT 1
Show the name of employees with three lowest salaries.
Additional table information: table: flight_1
SQL: SELECT name FROM Employee ORDER BY salary ASC NULLS FIRST LIMIT 3
What is the name of the 3 employees who get paid the least?
Additional table information: table: flight_1
SQL: SELECT name FROM Employee ORDER BY salary ASC NULLS FIRST LIMIT 3
Show names for all employees with salary more than the average.
Additional table information: table: flight_1
SQL: SELECT name FROM Employee WHERE salary > (SELECT AVG(salary) FROM Employee)
What are the names of all employees who have a salary higher than average?
Additional table information: table: flight_1
SQL: SELECT name FROM Employee WHERE salary > (SELECT AVG(salary) FROM Employee)
Show the id and salary of Mark Young.
Additional table information: table: flight_1
SQL: SELECT eid, salary FROM Employee WHERE name = 'Mark Young'
What is the id and salary of the employee named Mark Young?
Additional table information: table: flight_1
SQL: SELECT eid, salary FROM Employee WHERE name = 'Mark Young'
How many flights do we have?
Additional table information: table: flight_1
SQL: SELECT COUNT(*) FROM Flight
What is the number of flights?
Additional table information: table: flight_1
SQL: SELECT COUNT(*) FROM Flight
Show flight number, origin, destination of all flights in the alphabetical order of the departure cities.
Additional table information: table: flight_1
SQL: SELECT flno, origin, destination FROM Flight ORDER BY origin NULLS FIRST
What is the flight number, origin, and destination for all flights in alphabetical order by departure cities?
Additional table information: table: flight_1
SQL: SELECT flno, origin, destination FROM Flight ORDER BY origin NULLS FIRST
Show all flight number from Los Angeles.
Additional table information: table: flight_1
SQL: SELECT flno FROM Flight WHERE origin = 'Los Angeles'
What are the numbers of all flights coming from Los Angeles?
Additional table information: table: flight_1
SQL: SELECT flno FROM Flight WHERE origin = 'Los Angeles'
Show origins of all flights with destination Honolulu.
Additional table information: table: flight_1
SQL: SELECT origin FROM Flight WHERE destination = 'Honolulu'
What are the origins of all flights that are headed to Honolulu?
Additional table information: table: flight_1
SQL: SELECT origin FROM Flight WHERE destination = 'Honolulu'
Show me the departure date and arrival date for all flights from Los Angeles to Honolulu.
Additional table information: table: flight_1
SQL: SELECT departure_date, arrival_date FROM Flight WHERE origin = 'Los Angeles' AND destination = 'Honolulu'
What are the departure and arrival dates of all flights from LA to Honolulu?
Additional table information: table: flight_1
SQL: SELECT departure_date, arrival_date FROM Flight WHERE origin = 'Los Angeles' AND destination = 'Honolulu'
Show flight number for all flights with more than 2000 distance.
Additional table information: table: flight_1
SQL: SELECT flno FROM Flight WHERE distance > 2000
What are the numbers of all flights that can cover a distance of more than 2000?
Additional table information: table: flight_1
SQL: SELECT flno FROM Flight WHERE distance > 2000
What is the average price for flights from Los Angeles to Honolulu.
Additional table information: table: flight_1
SQL: SELECT AVG(price) FROM Flight WHERE origin = 'Los Angeles' AND destination = 'Honolulu'
What is the average price for flights from LA to Honolulu?
Additional table information: table: flight_1
SQL: SELECT AVG(price) FROM Flight WHERE origin = 'Los Angeles' AND destination = 'Honolulu'
Show origin and destination for flights with price higher than 300.
Additional table information: table: flight_1
SQL: SELECT origin, destination FROM Flight WHERE price > 300
What is the origin and destination for all flights whose price is higher than 300?
Additional table information: table: flight_1
SQL: SELECT origin, destination FROM Flight WHERE price > 300
Show the flight number and distance of the flight with maximum price.
Additional table information: table: flight_1
SQL: SELECT flno, distance FROM Flight ORDER BY price DESC LIMIT 1
What is the flight number and its distance for the one with the maximum price?
Additional table information: table: flight_1
SQL: SELECT flno, distance FROM Flight ORDER BY price DESC LIMIT 1
Show the flight number of flights with three lowest distances.
Additional table information: table: flight_1
SQL: SELECT flno FROM Flight ORDER BY distance ASC NULLS FIRST LIMIT 3
What are the numbers of the shortest flights?
Additional table information: table: flight_1
SQL: SELECT flno FROM Flight ORDER BY distance ASC NULLS FIRST LIMIT 3
What is the average distance and average price for flights from Los Angeles.
Additional table information: table: flight_1
SQL: SELECT AVG(distance), AVG(price) FROM Flight WHERE origin = 'Los Angeles'
What is the average distance and price for all flights from LA?
Additional table information: table: flight_1
SQL: SELECT AVG(distance), AVG(price) FROM Flight WHERE origin = 'Los Angeles'
Show all origins and the number of flights from each origin.
Additional table information: table: flight_1
SQL: SELECT origin, COUNT(*) FROM Flight GROUP BY origin
For each origin, how many flights came from there?
Additional table information: table: flight_1
SQL: SELECT origin, COUNT(*) FROM Flight GROUP BY origin
Show all destinations and the number of flights to each destination.
Additional table information: table: flight_1
SQL: SELECT destination, COUNT(*) FROM Flight GROUP BY destination
What are the destinations and number of flights to each one?
Additional table information: table: flight_1
SQL: SELECT destination, COUNT(*) FROM Flight GROUP BY destination
Which origin has most number of flights?
Additional table information: table: flight_1
SQL: SELECT origin FROM Flight GROUP BY origin ORDER BY COUNT(*) DESC LIMIT 1
What place has the most flights coming from there?
Additional table information: table: flight_1
SQL: SELECT origin FROM Flight GROUP BY origin ORDER BY COUNT(*) DESC LIMIT 1
Which destination has least number of flights?
Additional table information: table: flight_1
SQL: SELECT destination FROM Flight GROUP BY destination ORDER BY COUNT(*) NULLS FIRST LIMIT 1
What destination has the fewest number of flights?
Additional table information: table: flight_1
SQL: SELECT destination FROM Flight GROUP BY destination ORDER BY COUNT(*) NULLS FIRST LIMIT 1
What is the aircraft name for the flight with number 99
Additional table information: table: flight_1
SQL: SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 99
What is the name of the aircraft that was on flight number 99?
Additional table information: table: flight_1
SQL: SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 99
Show all flight numbers with aircraft Airbus A340-300.
Additional table information: table: flight_1
SQL: SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T2.name = 'Airbus A340-300'
What are the flight numbers for the aircraft Airbus A340-300?
Additional table information: table: flight_1
SQL: SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T2.name = 'Airbus A340-300'
Show aircraft names and number of flights for each aircraft.
Additional table information: table: flight_1
SQL: SELECT T2.name, COUNT(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid
What is the name of each aircraft and how many flights does each one complete?
Additional table information: table: flight_1
SQL: SELECT T2.name, COUNT(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid
Show names for all aircraft with at least two flights.
Additional table information: table: flight_1
SQL: SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid HAVING COUNT(*) >= 2
What are the names for all aircrafts with at least 2 flights?
Additional table information: table: flight_1
SQL: SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid HAVING COUNT(*) >= 2
How many employees have certificate.
Additional table information: table: flight_1
SQL: SELECT COUNT(DISTINCT eid) FROM Certificate
What is the count of distinct employees with certificates?
Additional table information: table: flight_1
SQL: SELECT COUNT(DISTINCT eid) FROM Certificate
Show ids for all employees who don't have a certificate.
Additional table information: table: flight_1
SQL: SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate
What are the ids of all employees that don't have certificates?
Additional table information: table: flight_1
SQL: SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate
Show names for all aircrafts of which John Williams has certificates.
Additional table information: table: flight_1
SQL: SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = 'John Williams'
What are the names of all aircrafts that John Williams have certificates to be able to fly?
Additional table information: table: flight_1
SQL: SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = 'John Williams'
Show names for all employees who have certificate of Boeing 737-800.
Additional table information: table: flight_1
SQL: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = 'Boeing 737-800'
What are the names of all employees who have a certificate to fly Boeing 737-800?
Additional table information: table: flight_1
SQL: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = 'Boeing 737-800'
Show names for all employees who have certificates on both Boeing 737-800 and Airbus A340-300.
Additional table information: table: flight_1
SQL: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = 'Boeing 737-800' INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = 'Airbus A340-300'
What are the names of all employees who can fly both the Boeing 737-800 and the Airbus A340-300?
Additional table information: table: flight_1
SQL: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = 'Boeing 737-800' INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = 'Airbus A340-300'
Show names for all employees who do not have certificate of Boeing 737-800.
Additional table information: table: flight_1
SQL: SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = 'Boeing 737-800'
What are the names of all employees who are not certified to fly Boeing 737-800s?
Additional table information: table: flight_1
SQL: SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = 'Boeing 737-800'
Show the name of aircraft which fewest people have its certificate.
Additional table information: table: flight_1
SQL: SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid GROUP BY T1.aid ORDER BY COUNT(*) DESC LIMIT 1
What are the names of the aircraft that the least people are certified to fly?
Additional table information: table: flight_1
SQL: SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid GROUP BY T1.aid ORDER BY COUNT(*) DESC LIMIT 1
Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate.
Additional table information: table: flight_1
SQL: SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid WHERE T2.distance > 5000 GROUP BY T1.aid ORDER BY COUNT(*) >= 5 NULLS FIRST
What is the name and distance of every aircraft that can cover a distance of more than 5000 and which at least 5 people can fly?
Additional table information: table: flight_1
SQL: SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid WHERE T2.distance > 5000 GROUP BY T1.aid ORDER BY COUNT(*) >= 5 NULLS FIRST
what is the salary and name of the employee who has the most number of aircraft certificates?
Additional table information: table: flight_1
SQL: SELECT T1.name, T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1
What is the salaray and name of the employee that is certified to fly the most planes?
Additional table information: table: flight_1
SQL: SELECT T1.name, T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1
What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?
Additional table information: table: flight_1
SQL: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1
What is the salaray and name of the employee with the most certificates to fly planes more than 5000?
Additional table information: table: flight_1
SQL: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1
How many allergies are there?
Additional table information: table: allergy_1
SQL: SELECT COUNT(DISTINCT allergy) FROM Allergy_type
How many allergy entries are there?
Additional table information: table: allergy_1
SQL: SELECT COUNT(DISTINCT allergy) FROM Allergy_type
How many different allergy types exist?
Additional table information: table: allergy_1
SQL: SELECT COUNT(DISTINCT allergytype) FROM Allergy_type
How many distinct allergies are there?
Additional table information: table: allergy_1
SQL: SELECT COUNT(DISTINCT allergytype) FROM Allergy_type
Show all allergy types.
Additional table information: table: allergy_1
SQL: SELECT DISTINCT allergytype FROM Allergy_type
What are the different allergy types?
Additional table information: table: allergy_1
SQL: SELECT DISTINCT allergytype FROM Allergy_type
Show all allergies and their types.
Additional table information: table: allergy_1
SQL: SELECT allergy, allergytype FROM Allergy_type
What are the allergies and their types?
Additional table information: table: allergy_1
SQL: SELECT allergy, allergytype FROM Allergy_type
Show all allergies with type food.
Additional table information: table: allergy_1
SQL: SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = 'food'
What are all the different food allergies?
Additional table information: table: allergy_1
SQL: SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = 'food'
What is the type of allergy Cat?
Additional table information: table: allergy_1
SQL: SELECT allergytype FROM Allergy_type WHERE allergy = 'Cat'
What is allergy type of a cat allergy?
Additional table information: table: allergy_1
SQL: SELECT allergytype FROM Allergy_type WHERE allergy = 'Cat'