aherntech/spider-syn huggingface dataset:
Database: document_management
Question: What are the average access counts of documents that have the functional area description "Acknowledgement"?
Paraphrased question: What are the average access counts of files that have the functional area description "Acknowledgement"?
SQL: SELECT avg(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code  =  t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code  =  t3.functional_area_code WHERE t3.functional_area_description  =  "Acknowledgement"
Database: document_management
Question: Find names of the document without any images.
Paraphrased question: Find names of the file without any images.
SQL: SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code  =  t2.document_code JOIN document_sections_images AS t3 ON t2.section_id  =  t3.section_id
Database: document_management
Question: What are the names of documents that do not have any images?
Paraphrased question: What are the names of files that do not have any images?
SQL: SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code  =  t2.document_code JOIN document_sections_images AS t3 ON t2.section_id  =  t3.section_id
Database: document_management
Question: What is the name of the document with the most number of sections?
Paraphrased question: What is the name of the file with the most number of sections?
SQL: SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code  =  t2.document_code GROUP BY t1.document_code ORDER BY count(*) DESC LIMIT 1
Database: document_management
Question: Return the name of the document that has the most sections.
Paraphrased question: Return the name of the file that has the most sections.
SQL: SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code  =  t2.document_code GROUP BY t1.document_code ORDER BY count(*) DESC LIMIT 1
Database: document_management
Question: List all the document names which contains "CV".
Paraphrased question: List all the file names which contains "CV".
SQL: SELECT document_name FROM documents WHERE document_name LIKE "%CV%"
Database: document_management
Question: What are the names of documents that contain the substring "CV"?
Paraphrased question: What are the names of files that contain the substring "CV"?
SQL: SELECT document_name FROM documents WHERE document_name LIKE "%CV%"
Database: document_management
Question: How many users are logged in?
Paraphrased question: How many users are logged in?
SQL: SELECT count(*) FROM users WHERE user_login  =  1
Database: document_management
Question: Count the number of users that are logged in.
Paraphrased question: Count the number of users that are logged in.
SQL: SELECT count(*) FROM users WHERE user_login  =  1
Database: document_management
Question: Find the description of the most popular role among the users that have logged in.
Paraphrased question: Find the describing content of the most popular role among the users that have logged in.
SQL: SELECT role_description FROM ROLES WHERE role_code  =  (SELECT role_code FROM users WHERE user_login  =  1 GROUP BY role_code ORDER BY count(*) DESC LIMIT 1)
Database: document_management
Question: What is the description of the most popular role among users that have logged in?
Paraphrased question: What is the describing content of the most popular role among users that have logged in?
SQL: SELECT role_description FROM ROLES WHERE role_code  =  (SELECT role_code FROM users WHERE user_login  =  1 GROUP BY role_code ORDER BY count(*) DESC LIMIT 1)
Database: document_management
Question: Find the average access count of documents with the least popular structure.
Paraphrased question: Find the average access count of documents with the least popular structure.
SQL: SELECT avg(access_count) FROM documents GROUP BY document_structure_code ORDER BY count(*) ASC LIMIT 1
Database: document_management
Question: What is the average access count of documents that have the least common structure?
Paraphrased question: What is the average access count of files that have the least common structure?
SQL: SELECT avg(access_count) FROM documents GROUP BY document_structure_code ORDER BY count(*) ASC LIMIT 1
Database: document_management
Question: List all the image name and URLs in the order of their names.
Paraphrased question: List all the picture name and URLs in the order of their names.
SQL: SELECT image_name ,  image_url FROM images ORDER BY image_name
Database: document_management
Question: What are the names and urls of images, sorted alphabetically?
Paraphrased question: What are the names and urls of pictures, sorted alphabetically?
SQL: SELECT image_name ,  image_url FROM images ORDER BY image_name
Database: document_management
Question: Find the number of users in each role.
Paraphrased question: Find the number of users in each role.
SQL: SELECT count(*) ,  role_code FROM users GROUP BY role_code
Database: document_management
Question: What are the different role codes for users, and how many users have each?
Paraphrased question: What are the different role codes for users, and how many users have each?
SQL: SELECT count(*) ,  role_code FROM users GROUP BY role_code
Database: document_management
Question: What document types have more than 2 corresponding documents?
Paraphrased question: What file categories have more than 2 corresponding files?
SQL: SELECT document_type_code FROM documents GROUP BY document_type_code HAVING count(*)  >  2
Database: document_management
Question: Give the codes of document types that have more than 2 corresponding documents.
Paraphrased question: Give the codes of file categories that have more than 2 corresponding files.
SQL: SELECT document_type_code FROM documents GROUP BY document_type_code HAVING count(*)  >  2
Database: company_office
Question: How many companies are there?
Paraphrased question: How many enterprises are there?
SQL: SELECT count(*) FROM Companies
Database: company_office
Question: Count the number of companies.
Paraphrased question: Count the number of enterprises.
SQL: SELECT count(*) FROM Companies
Database: company_office
Question: List the names of companies in descending order of market value.
Paraphrased question: List the names of enterprises in descending order of market value.
SQL: SELECT name FROM Companies ORDER BY Market_Value_billion DESC
Database: company_office
Question: Sort the company names in descending order of the company's market value.
Paraphrased question: Sort the enterprise names in descending order of the enterprise's market value.
SQL: SELECT name FROM Companies ORDER BY Market_Value_billion DESC
Database: company_office
Question: What are the names of companies whose headquarters are not "USA"?
Paraphrased question: What are the names of enterprises whose headquarters are not "USA"?
SQL: SELECT name FROM Companies WHERE Headquarters != 'USA'
Database: company_office
Question: Find the names of the companies whose headquarters are not located in "USA".
Paraphrased question: Find the names of the enterprises whose headquarters are not located in "USA".
SQL: SELECT name FROM Companies WHERE Headquarters != 'USA'
Database: company_office
Question: What are the name and assets of each company, sorted in ascending order of company name?
Paraphrased question: What are the name and assets of each enterprise, sorted in ascending order of enterprise name?
SQL: SELECT name ,  Assets_billion FROM Companies ORDER BY name ASC
Database: company_office
Question: List the name and assets of each company in ascending order of company name.
Paraphrased question: List the name and assets of each enterprise in ascending order of enterprise name.
SQL: SELECT name ,  Assets_billion FROM Companies ORDER BY name ASC
Database: company_office
Question: What are the average profits of companies?
Paraphrased question: What are the average profits of enterprises?
SQL: SELECT avg(Profits_billion) FROM Companies
Database: company_office
Question: Compute the average profits companies make.
Paraphrased question: Compute the average profits enterprises make.
SQL: SELECT avg(Profits_billion) FROM Companies
Database: company_office
Question: What are the maximum and minimum sales of the companies whose industries are not "Banking".
Paraphrased question: What are the maximum and minimum saleroom of the enterprises whose industries are not "Banking".
SQL: SELECT max(Sales_billion) ,  min(Sales_billion) FROM Companies WHERE Industry != "Banking"
Database: company_office
Question: Find the maximum and minimum sales of the companies that are not in the "Banking" industry.
Paraphrased question: Find the maximum and minimum saleroom of the enterprises that are not in the "Banking" industry.
SQL: SELECT max(Sales_billion) ,  min(Sales_billion) FROM Companies WHERE Industry != "Banking"
Database: company_office
Question: How many different industries are the companies in?
Paraphrased question: How many different industries are the enterprises in?
SQL: SELECT count(DISTINCT Industry) FROM Companies
Database: company_office
Question: Count the number of distinct company industries.
Paraphrased question: Count the number of different enterprise industries.
SQL: SELECT count(DISTINCT Industry) FROM Companies
Database: company_office
Question: List the names of buildings in descending order of building height.
Paraphrased question: List the names of buildings in descending order of building height.
SQL: SELECT name FROM buildings ORDER BY Height DESC
Database: company_office
Question: What are the names of buildings sorted in descending order of building height?
Paraphrased question: What are the names of buildings sorted in descending order of building height?
SQL: SELECT name FROM buildings ORDER BY Height DESC
Database: company_office
Question: Find the stories of the building with the largest height.
Paraphrased question: Find the floor of the building with the largest height.
SQL: SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1
Database: company_office
Question: What is the stories of highest building?
Paraphrased question: What is the floor of highest building?
SQL: SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1
Database: company_office
Question: List the name of a building along with the name of a company whose office is in the building.
Paraphrased question: List the name of a building along with the name of a company whose office is in the building.
SQL: SELECT T3.name ,  T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id
Database: company_office
Question: For each company, return the company name and the name of the building its office is located in.
Paraphrased question: For each enterprise, return the enterprise name and the name of the building its office is located in.
SQL: SELECT T3.name ,  T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id
Database: company_office
Question: Show the names of the buildings that have more than one company offices.
Paraphrased question: Show the names of the buildings that have more than one company offices.
SQL: SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id HAVING COUNT(*)  >  1
Database: company_office
Question: Which buildings have more than one company offices? Give me the building names.
Paraphrased question: Which buildings have more than one company offices? Give me the building names.
SQL: SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id HAVING COUNT(*)  >  1
Database: company_office
Question: Show the name of the building that has the most company offices.
Paraphrased question: Show the name of the building that has the most company offices.
SQL: SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1
Database: company_office
Question: Which building has the largest number of company offices? Give me the building name.
Paraphrased question: Which building has the largest number of company offices? Give me the building name.
SQL: SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1
Database: company_office
Question: Please show the names of the buildings whose status is "on-hold", in ascending order of stories.
Paraphrased question: Please show the names of the buildings whose status is "on-hold", in ascending order of floor.
SQL: SELECT name FROM buildings WHERE Status  =  "on-hold" ORDER BY Stories ASC
Database: company_office
Question: Find the names of the buildings in "on-hold" status, and sort them in ascending order of building stories.
Paraphrased question: Find the names of the buildings in "on-hold" status, and sort them in ascending order of building floor.
SQL: SELECT name FROM buildings WHERE Status  =  "on-hold" ORDER BY Stories ASC
Database: company_office
Question: Please show each industry and the corresponding number of companies in that industry.
Paraphrased question: Please show each industry and the corresponding number of enterprise in that industry.
SQL: SELECT Industry ,  COUNT(*) FROM Companies GROUP BY Industry
Database: company_office
Question: Whah are the name of each industry and the number of companies in that industry?
Paraphrased question: Whah are the name of each industry and the number of enterprise in that industry?
SQL: SELECT Industry ,  COUNT(*) FROM Companies GROUP BY Industry
Database: company_office
Question: Please show the industries of companies in descending order of the number of companies.
Paraphrased question: Please show the industries of enterprise in descending order of the number of enterprises.
SQL: SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC
Database: company_office
Question: Sort all the industries in descending order of the count of companies in each industry
Paraphrased question: Sort all the industries in descending order of the count of enterprises in each industry
SQL: SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC
Database: company_office
Question: List the industry shared by the most companies.
Paraphrased question: List the industry shared by the most enterprises.
SQL: SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1
Database: company_office
Question: Which industry has the most companies?
Paraphrased question: Which industry has the most enterprises?
SQL: SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1
Database: company_office
Question: List the names of buildings that have no company office.
Paraphrased question: List the names of buildings that have no enterprise office.
SQL: SELECT name FROM buildings WHERE id NOT IN (SELECT building_id FROM Office_locations)
Database: company_office
Question: Which buildings do not have any company office? Give me the building names.
Paraphrased question: Which buildings do not have any enterprise office? Give me the building names.
SQL: SELECT name FROM buildings WHERE id NOT IN (SELECT building_id FROM Office_locations)
Database: company_office
Question: Show the industries shared by companies whose headquarters are "USA" and companies whose headquarters are "China".
Paraphrased question: Show the industries shared by enterprises whose headquarters are "USA" and enterprises whose headquarters are "China".
SQL: SELECT Industry FROM Companies WHERE Headquarters  =  "USA" INTERSECT SELECT Industry FROM Companies WHERE Headquarters  =  "China"
Database: company_office
Question: Which industries have both companies with headquarter in "USA" and companies with headquarter in "China"?
Paraphrased question: Which industries have both enterprises with headquarter in "USA" and enterprises with headquarter in "China"?
SQL: SELECT Industry FROM Companies WHERE Headquarters  =  "USA" INTERSECT SELECT Industry FROM Companies WHERE Headquarters  =  "China"
Database: company_office
Question: Find the number of companies whose industry is "Banking" or "Conglomerate",
Paraphrased question: Find the number of enterprises whose industry is "Banking" or "Conglomerate",
SQL: SELECT count(*) FROM Companies WHERE Industry  =  "Banking" OR Industry  =  "Conglomerate"
Database: company_office
Question: How many companies are in either "Banking" industry or "Conglomerate" industry?
Paraphrased question: How many enterprises are in either "Banking" industry or "Conglomerate" industry?
SQL: SELECT count(*) FROM Companies WHERE Industry  =  "Banking" OR Industry  =  "Conglomerate"
Database: company_office
Question: Show the headquarters shared by more than two companies.
Paraphrased question: Show the head office shared by more than two enterprises.
SQL: SELECT Headquarters FROM Companies GROUP BY Headquarters HAVING COUNT(*)  >  2
Database: company_office
Question: Which headquarter locations are used by more than 2 companies?
Paraphrased question: Which head office locations are used by more than 2 companies?
SQL: SELECT Headquarters FROM Companies GROUP BY Headquarters HAVING COUNT(*)  >  2
Database: solvency_ii
Question: How many products are there?
Paraphrased question: How many goods are there?
SQL: SELECT count(*) FROM Products
Database: solvency_ii
Question: List the name of products in ascending order of price.
Paraphrased question: List the name of goods in ascending order of price.
SQL: SELECT Product_Name FROM Products ORDER BY Product_Price ASC
Database: solvency_ii
Question: What are the names and type codes of products?
Paraphrased question: What are the names and type codes of goods?
SQL: SELECT Product_Name ,  Product_Type_Code FROM Products
Database: solvency_ii
Question: Show the prices of the products named "Dining" or "Trading Policy".
Paraphrased question: Show the prices of the goods named "Dining" or "Trading Policy".
SQL: SELECT Product_Price FROM Products WHERE Product_Name  =  "Dining" OR Product_Name  =  "Trading Policy"
Database: solvency_ii
Question: What is the average price for products?
Paraphrased question: What is the average price for goods?
SQL: SELECT avg(Product_Price) FROM Products
Database: solvency_ii
Question: What is the name of the product with the highest price?
Paraphrased question: What is the name of the goods with the highest price?
SQL: SELECT Product_Name FROM Products ORDER BY Product_Price DESC LIMIT 1
Database: solvency_ii
Question: Show different type codes of products and the number of products with each type code.
Paraphrased question: Show different type codes of goods and the number of goods with each type code.
SQL: SELECT Product_Type_Code ,  COUNT(*) FROM Products GROUP BY Product_Type_Code
Database: solvency_ii
Question: Show the most common type code across products.
Paraphrased question: Show the most common type code across goods.
SQL: SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code ORDER BY COUNT(*) DESC LIMIT 1
Database: solvency_ii
Question: Show the product type codes that have at least two products.
Paraphrased question: Show the goods type codes that have at least two goods.
SQL: SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code HAVING COUNT(*)  >=  2
Database: solvency_ii
Question: Show the product type codes that have both products with price higher than 4500 and products with price lower than 3000.
Paraphrased question: Show the goods type codes that have both goods with price higher than 4500 and goods with price lower than 3000.
SQL: SELECT Product_Type_Code FROM Products WHERE Product_Price  >  4500 INTERSECT SELECT Product_Type_Code FROM Products WHERE Product_Price  <  3000
Database: solvency_ii
Question: Show the names of products and the number of events they are in.
Paraphrased question: Show the names of goods and the number of events they are in.
SQL: SELECT T1.Product_Name ,  COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID  =  T2.Product_ID GROUP BY T1.Product_Name
Database: solvency_ii
Question: Show the names of products and the number of events they are in, sorted by the number of events in descending order.
Paraphrased question: Show the names of goods and the number of events they are in, sorted by the number of events in descending order.
SQL: SELECT T1.Product_Name ,  COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID  =  T2.Product_ID GROUP BY T1.Product_Name ORDER BY COUNT(*) DESC
Database: solvency_ii
Question: Show the names of products that are in at least two events.
Paraphrased question: Show the names of goods that are in at least two events.
SQL: SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID  =  T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*)  >=  2
Database: solvency_ii
Question: Show the names of products that are in at least two events in ascending alphabetical order of product name.
Paraphrased question: Show the names of goods that are in at least two events in ascending alphabetical order of goods name.
SQL: SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID  =  T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*)  >=  2 ORDER BY T1.Product_Name
Database: solvency_ii
Question: List the names of products that are not in any event.
Paraphrased question: List the names of goods that are not in any event.
SQL: SELECT Product_Name FROM Products WHERE Product_ID NOT IN (SELECT Product_ID FROM Products_in_Events)
Database: entertainment_awards
Question: How many artworks are there?
Paraphrased question: How many works of art are there?
SQL: SELECT count(*) FROM artwork
Database: entertainment_awards
Question: List the name of artworks in ascending alphabetical order.
Paraphrased question: List the name of work of art in ascending alphabetical order.
SQL: SELECT Name FROM artwork ORDER BY Name ASC
Database: entertainment_awards
Question: List the name of artworks whose type is not "Program Talent Show".
Paraphrased question: List the name of work of art whose type is not "Program Talent Show".
SQL: SELECT Name FROM artwork WHERE TYPE != "Program Talent Show"
Database: entertainment_awards
Question: What are the names and locations of festivals?
Paraphrased question: What are the names and country of festivals?
SQL: SELECT Festival_Name ,  LOCATION FROM festival_detail
Database: entertainment_awards
Question: What are the names of the chairs of festivals, sorted in ascending order of the year held?
Paraphrased question: What are the names of the chairs of festivals, sorted in ascending order of the year held?
SQL: SELECT Chair_Name FROM festival_detail ORDER BY YEAR ASC
Database: entertainment_awards
Question: What is the location of the festival with the largest number of audience?
Paraphrased question: What is the country of the festival with the largest number of audience?
SQL: SELECT LOCATION FROM festival_detail ORDER BY Num_of_Audience DESC LIMIT 1
Database: entertainment_awards
Question: What are the names of festivals held in year 2007?
Paraphrased question: What are the names of festivals held in year 2007?
SQL: SELECT Festival_Name FROM festival_detail WHERE YEAR  =  2007
Database: entertainment_awards
Question: What is the average number of audience for festivals?
Paraphrased question: What is the average number of attendees for festivals?
SQL: SELECT avg(Num_of_Audience) FROM festival_detail
Database: entertainment_awards
Question: Show the names of the three most recent festivals.
Paraphrased question: Show the names of the three most recent festivals.
SQL: SELECT Festival_Name FROM festival_detail ORDER BY YEAR DESC LIMIT 3
Database: entertainment_awards
Question: For each nomination, show the name of the artwork and name of the festival where it is nominated.
Paraphrased question: For each nomination, show the name of the artwork and name of the festival where it is nominated.
SQL: SELECT T2.Name ,  T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID
Database: entertainment_awards
Question: Show distinct types of artworks that are nominated in festivals in 2007.
Paraphrased question: Show different categories of artworks that are nominated in festivals in 2007.
SQL: SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID WHERE T3.Year  =  2007
Database: entertainment_awards
Question: Show the names of artworks in ascending order of the year they are nominated in.
Paraphrased question: Show the names of artworks in ascending order of the year they are nominated in.
SQL: SELECT T2.Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID ORDER BY T3.Year
Database: entertainment_awards
Question: Show the names of festivals that have nominated artworks of type "Program Talent Show".
Paraphrased question: Show the names of festivals that have nominated artworks of type "Program Talent Show".
SQL: SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID WHERE T2.Type  =  "Program Talent Show"
Database: entertainment_awards
Question: Show the ids and names of festivals that have at least two nominations for artworks.
Paraphrased question: Show the ids and names of festivals that have at least two nominations for artworks.
SQL: SELECT T1.Festival_ID ,  T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT(*)  >=  2
Database: entertainment_awards
Question: Show the id, name of each festival and the number of artworks it has nominated.
Paraphrased question: Show the id, name of each festival and the number of artworks it has nominated.
SQL: SELECT T1.Festival_ID ,  T3.Festival_Name ,  COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID GROUP BY T1.Festival_ID
Database: entertainment_awards
Question: Please show different types of artworks with the corresponding number of artworks of each type.
Paraphrased question: Please show different categories of artworks with the corresponding number of work of art of each category.
SQL: SELECT TYPE ,  COUNT(*) FROM artwork GROUP BY TYPE
Database: entertainment_awards
Question: List the most common type of artworks.
Paraphrased question: List the most common category of artworks.
SQL: SELECT TYPE FROM artwork GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
Database: entertainment_awards
Question: List the year in which there are more than one festivals.
Paraphrased question: List the year in which there are more than one festivals.
SQL: SELECT YEAR FROM festival_detail GROUP BY YEAR HAVING COUNT(*)  >  1
Database: entertainment_awards
Question: List the name of artworks that are not nominated.
Paraphrased question: List the name of work of art that are not nominated.
SQL: SELECT Name FROM Artwork WHERE Artwork_ID NOT IN (SELECT Artwork_ID FROM nomination)
Database: entertainment_awards
Question: Show the number of audience in year 2008 or 2010.
Paraphrased question: Show the number of attendees in year 2008 or 2010.
SQL: SELECT Num_of_Audience FROM festival_detail WHERE YEAR  =  2008 OR YEAR  =  2010
Database: entertainment_awards
Question: What are the total number of the audiences who visited any of the festivals?
Paraphrased question: What are the total number of the attendees who visited any of the festivals?
SQL: SELECT sum(Num_of_Audience) FROM festival_detail
Database: entertainment_awards
Question: In which year are there festivals both inside the 'United States' and outside the 'United States'?
Paraphrased question: In which year are there festivals both inside the 'United States' and outside the 'United States'?
SQL: SELECT YEAR FROM festival_detail WHERE LOCATION  =  'United States' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION != 'United States'
Database: customers_campaigns_ecommerce
Question: How many premises are there?
Paraphrased question: How many premises are there?
SQL: SELECT count(*) FROM premises
Database: customers_campaigns_ecommerce
Question: What are all the distinct premise types?
Paraphrased question: What are all the different premise categories?
SQL: SELECT DISTINCT premises_type FROM premises
Database: customers_campaigns_ecommerce
Question: Find the types and details for all premises and order by the premise type.
Paraphrased question: Find the categories and information for all premises and order by the premise category.
SQL: SELECT premises_type ,  premise_details FROM premises ORDER BY premises_type
Database: customers_campaigns_ecommerce
Question: Show each premise type and the number of premises in that type.
Paraphrased question: Show each premise category and the number of premises in that category.
SQL: SELECT premises_type ,  count(*) FROM premises GROUP BY premises_type
Database: customers_campaigns_ecommerce
Question: Show all distinct product categories along with the number of mailshots in each category.
Paraphrased question: Show all different goods type along with the number of mailshots in each type.
SQL: SELECT product_category ,  count(*) FROM mailshot_campaigns GROUP BY product_category
Database: customers_campaigns_ecommerce
Question: Show the name and phone of the customer without any mailshot.
Paraphrased question: Show the name and telephone of the client without any mailshot.
SQL: SELECT customer_name ,  customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM mailshot_customers)
Database: customers_campaigns_ecommerce
Question: Show the name and phone for customers with a mailshot with outcome code 'No Response'.
Paraphrased question: Show the name and telephone for clients with a mailshot with outcome code 'No Response'.
SQL: SELECT T1.customer_name ,  T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.outcome_code  =  'No Response'
Database: customers_campaigns_ecommerce
Question: Show the outcome code of mailshots along with the number of mailshots in each outcome code.
Paraphrased question: Show the result code of mailshots along with the number of mailshots in each result code.
SQL: SELECT outcome_code ,  count(*) FROM mailshot_customers GROUP BY outcome_code
Database: customers_campaigns_ecommerce
Question: Show the names of customers who have at least 2 mailshots with outcome code 'Order'.
Paraphrased question: Show the names of clients who have at least 2 mailshots with result code 'Order'.
SQL: SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE outcome_code  =  'Order' GROUP BY T1.customer_id HAVING count(*)  >=  2
Database: customers_campaigns_ecommerce
Question: Show the names of customers who have the most mailshots.
Paraphrased question: Show the names of clients who have the most mailshots.
SQL: SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
Database: customers_campaigns_ecommerce
Question: What are the name and payment method of customers who have both mailshots in 'Order' outcome and mailshots in 'No Response' outcome.
Paraphrased question: What are the name and payment method of clients who have both mailshots in 'Order' outcome and mailshots in 'No Response' outcome.
SQL: SELECT T2.customer_name ,  T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.outcome_code  =  'Order' INTERSECT SELECT T2.customer_name ,  T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.outcome_code  =  'No Response'
Database: customers_campaigns_ecommerce
Question: Show the premise type and address type code for all customer addresses.
Paraphrased question: Show the premise type and location type code for all client locations.
SQL: SELECT T2.premises_type ,  T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id  =  T2.premise_id
Database: customers_campaigns_ecommerce
Question: What are the distinct address type codes for all customer addresses?
Paraphrased question: What are the different location type codes for all client locations?
SQL: SELECT DISTINCT address_type_code FROM customer_addresses
Database: customers_campaigns_ecommerce
Question: Show the shipping charge and customer id for customer orders with order status Cancelled or Paid.
Paraphrased question: Show the shipping charge and client id for client orders with order status Cancelled or Paid.
SQL: SELECT order_shipping_charges ,  customer_id FROM customer_orders WHERE order_status_code  =  'Cancelled' OR order_status_code  =  'Paid'
Database: customers_campaigns_ecommerce
Question: Show the names of customers having an order with shipping method FedEx and order status Paid.
Paraphrased question: Show the names of clients having an order with shipping method FedEx and order status Paid.
SQL: SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE shipping_method_code  =  'FedEx' AND order_status_code  =  'Paid'
Database: college_3
Question: How many courses are there in total?
Paraphrased question: How many curriculum are there in total?
SQL: SELECT count(*) FROM COURSE
Database: college_3
Question: Count the number of courses.
Paraphrased question: Count the number of curriculum.
SQL: SELECT count(*) FROM COURSE
Database: college_3
Question: How many courses have more than 2 credits?
Paraphrased question: How many curriculum have more than 2 credits?
SQL: SELECT count(*) FROM COURSE WHERE Credits  >  2
Database: college_3
Question: Count the number of courses with more than 2 credits.
Paraphrased question: Count the number of curriculum with more than 2 credits.
SQL: SELECT count(*) FROM COURSE WHERE Credits  >  2
Database: college_3
Question: List all names of courses with 1 credit?
Paraphrased question: List all names of curriculum with 1 credit?
SQL: SELECT CName FROM COURSE WHERE Credits  =  1
Database: college_3
Question: What are the names of courses with 1 credit?
Paraphrased question: What are the names of curriculum with 1 credit?
SQL: SELECT CName FROM COURSE WHERE Credits  =  1
Database: college_3
Question: Which courses are taught on days MTW?
Paraphrased question: Which curriculum are taught on days MTW?
SQL: SELECT CName FROM COURSE WHERE Days  =  "MTW"
Database: college_3
Question: What are the course names for courses taught on MTW?
Paraphrased question: What are the curriculum names for curriculum taught on MTW?
SQL: SELECT CName FROM COURSE WHERE Days  =  "MTW"
Database: college_3
Question: What is the number of departments in Division "AS"?
Paraphrased question: What is the number of departments in Division "AS"?
SQL: SELECT count(*) FROM DEPARTMENT WHERE Division  =  "AS"
Database: college_3
Question: How many departments are in the division AS?
Paraphrased question: How many departments are in the division AS?
SQL: SELECT count(*) FROM DEPARTMENT WHERE Division  =  "AS"
Database: college_3
Question: What are the phones of departments in Room 268?
Paraphrased question: What are the telephones of departments in Room 268?
SQL: SELECT DPhone FROM DEPARTMENT WHERE Room  =  268
Database: college_3
Question: Give the phones for departments in room 268.
Paraphrased question: Give the telephones for departments in room 268.
SQL: SELECT DPhone FROM DEPARTMENT WHERE Room  =  268
Database: college_3
Question: Find the number of students that have at least one grade "B".
Paraphrased question: Find the number of students that have at least one grade "B".
SQL: SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade  =  "B"
Database: college_3
Question: How many students have had at least one "B" grade?
Paraphrased question: How many students have had at least one "B" grade?
SQL: SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade  =  "B"
Database: college_3
Question: Find the max and min grade point for all letter grade.
Paraphrased question: Find the max and min grade point for all letter grade.
SQL: SELECT max(gradepoint) ,  min(gradepoint) FROM GRADECONVERSION
Database: college_3
Question: What are the maximum and minumum grade points?
Paraphrased question: What are the maximum and minumum grade points?
SQL: SELECT max(gradepoint) ,  min(gradepoint) FROM GRADECONVERSION
Database: college_3
Question: Find the first names of students whose first names contain letter "a".
Paraphrased question: Find the forenames of students whose forenames contain letter "a".
SQL: SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%'
Database: college_3
Question: What are the first names for students who have an "a" in their first name?
Paraphrased question: What are the forenames for students who have an "a" in their forename?
SQL: SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%'
Database: college_3
Question: Find the first names and last names of male (sex is M) faculties who live in building NEB.
Paraphrased question: Find the forenames and surnames of male (sex is M) faculties who live in building NEB.
SQL: SELECT Fname ,  Lname FROM FACULTY WHERE sex  =  "M" AND Building  =  "NEB"
Database: college_3
Question: What are the full names of faculties with sex M and who live in building NEB?
Paraphrased question: What are the full names of faculties with sex M and who live in building NEB?
SQL: SELECT Fname ,  Lname FROM FACULTY WHERE sex  =  "M" AND Building  =  "NEB"
Database: college_3
Question: Find the rooms of faculties with rank professor who live in building NEB.
Paraphrased question: Find the rooms of faculties with rank professor who live in building NEB.
SQL: SELECT Room FROM FACULTY WHERE Rank  =  "Professor" AND Building  =  "NEB"
Database: college_3
Question: What are the rooms for members of the faculty who are professors and who live in building NEB?
Paraphrased question: What are the rooms for members of the faculty who are professors and who live in building NEB?
SQL: SELECT Room FROM FACULTY WHERE Rank  =  "Professor" AND Building  =  "NEB"
Database: college_3
Question: Find the department name that is in Building "Mergenthaler".
Paraphrased question: Find the department name that is in Building "Mergenthaler".
SQL: SELECT DName FROM DEPARTMENT WHERE Building  =  "Mergenthaler"
Database: college_3
Question: What is the name of the department in the Building Mergenthaler?
Paraphrased question: What is the name of the department in the Building Mergenthaler?
SQL: SELECT DName FROM DEPARTMENT WHERE Building  =  "Mergenthaler"
Database: college_3
Question: List all information about courses sorted by credits in the ascending order.
Paraphrased question: List all detail about curriculum sorted by credits in the ascending order.
SQL: SELECT * FROM COURSE ORDER BY Credits
Database: college_3
Question: What is all the information about courses, ordered by credits ascending?
Paraphrased question: What is all the detail about curriculum, ordered by credits ascending?
SQL: SELECT * FROM COURSE ORDER BY Credits
Database: college_3
Question: List the course name of courses sorted by credits.
Paraphrased question: List the curriculum name of curriculum sorted by credits.
SQL: SELECT CName FROM COURSE ORDER BY Credits
Database: college_3
Question: What are the course names, ordered by credits?
Paraphrased question: What are the curriculum names, ordered by credits?
SQL: SELECT CName FROM COURSE ORDER BY Credits
Database: college_3
Question: Find the first name of students in the descending order of age.
Paraphrased question: Find the forename of students in the descending order of age.
SQL: SELECT Fname FROM STUDENT ORDER BY Age DESC
Database: college_3
Question: What are the first names of students, ordered by age from greatest to least?
Paraphrased question: What are the forenames of students, ordered by age from greatest to least?
SQL: SELECT Fname FROM STUDENT ORDER BY Age DESC
Database: college_3
Question: Find the last name of female (sex is F) students in the descending order of age.
Paraphrased question: Find the family name of female (sex is F) students in the descending order of age.
SQL: SELECT LName FROM STUDENT WHERE Sex  =  "F" ORDER BY Age DESC
Database: college_3
Question: What are the last names of female students, ordered by age descending?
Paraphrased question: What are the family names of female students, ordered by age descending?
SQL: SELECT LName FROM STUDENT WHERE Sex  =  "F" ORDER BY Age DESC
Database: college_3
Question: Find the last names of faculties in building Barton in alphabetic order.
Paraphrased question: Find the family names of faculties in building Barton in alphabetic order.
SQL: SELECT Lname FROM FACULTY WHERE Building  =  "Barton" ORDER BY Lname
Database: college_3
Question: What are the last names of faculty in building Barton, sorted by last name?
Paraphrased question: What are the family names of faculty in building Barton, sorted by family name?
SQL: SELECT Lname FROM FACULTY WHERE Building  =  "Barton" ORDER BY Lname
Database: college_3
Question: Find the first names of faculties of rank Professor in alphabetic order.
Paraphrased question: Find the forenames of faculties of rank Professor in alphabetic order.
SQL: SELECT Fname FROM FACULTY WHERE Rank  =  "Professor" ORDER BY Fname
Database: college_3
Question: What are the first names for all faculty professors, ordered by first name?
Paraphrased question: What are the forenames for all faculty professors, ordered by forename?
SQL: SELECT Fname FROM FACULTY WHERE Rank  =  "Professor" ORDER BY Fname
Database: college_3
Question: Find the name of the department that has the biggest number of students minored in?
Paraphrased question: Find the name of the department that has the biggest number of students minored in?
SQL: SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO  =  T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1
Database: college_3
Question: What is the name of the department with the most students minoring in it?
Paraphrased question: What is the name of the department with the most students minoring in it?
SQL: SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO  =  T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1
Database: college_3
Question: Find the name of the department that has no students minored in?
Paraphrased question: Find the name of the department that has no students minored in?
SQL: SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO  =  T2.DNO
Database: college_3
Question: What is the name of the department htat has no students minoring in it?
Paraphrased question: What is the name of the department htat has no students minoring in it?
SQL: SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO  =  T2.DNO
Database: college_3
Question: Find the name of the department that has the fewest members.
Paraphrased question: Find the name of the department that has the fewest members.
SQL: SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO  =  T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1
Database: college_3
Question: What is the name of the department with the fewest members?
Paraphrased question: What is the name of the department with the fewest members?
SQL: SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO  =  T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1
Database: college_3
Question: Find the rank of the faculty that the fewest faculties belong to.
Paraphrased question: Find the job title of the faculty that the fewest faculties belong to.
SQL: SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC LIMIT 1
Database: college_3
Question: What is the least common faculty rank?
Paraphrased question: What is the least common job title of teacher?
SQL: SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC LIMIT 1
Database: college_3
Question: What are the first and last names of the instructors who teach the top 3 number of courses?
Paraphrased question: What are the full names of the instructors who teach the top 3 number of courses?
SQL: SELECT T2.Fname ,  T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 3
Database: college_3
Question: What are the full names of the 3 instructors who teach the most courses?
Paraphrased question: What are the full names of the 3 instructors who teach the most courses?
SQL: SELECT T2.Fname ,  T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 3
Database: college_3
Question: Which building does the instructor who teaches the most number of courses live in?
Paraphrased question: Which building does the instructor who teaches the most number of curriculum live in?
SQL: SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1
Database: college_3
Question: Give the building that the instructor who teaches the greatest number of courses lives in.
Paraphrased question: Give the building that the instructor who teaches the greatest number of curriculum lives in.
SQL: SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1
Database: college_3
Question: What are the name of courses that have at least five enrollments?
Paraphrased question: What are the name of curriculum that have at least five enrollments?
SQL: SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID  =  T2.CID GROUP BY T2.CID HAVING COUNT(*)  >=  5
Database: college_3
Question: Give the names of the courses with at least five enrollments.
Paraphrased question: Give the names of the curriculum with at least five enrollments.
SQL: SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID  =  T2.CID GROUP BY T2.CID HAVING COUNT(*)  >=  5
Database: college_3
Question: Find the first name and last name of the instructor of course that has course name
Paraphrased question: Find the forename and surname of the instructor of course that has course name
SQL: SELECT T2.Fname ,  T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID WHERE T1.CName  =  "COMPUTER LITERACY"
Database: college_3
Question: What is the full name of the instructor who has a course named COMPUTER LITERACY?
Paraphrased question: What is the full name of the instructor who has a course named COMPUTER LITERACY?
SQL: SELECT T2.Fname ,  T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID WHERE T1.CName  =  "COMPUTER LITERACY"
Database: college_3
Question: Find the department name and room of the course INTRODUCTION TO COMPUTER SCIENCE.
Paraphrased question: Find the department name and room of the course INTRODUCTION TO COMPUTER SCIENCE.
SQL: SELECT T2.Dname ,  T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO  =  T2.DNO WHERE T1.CName  =  "INTRODUCTION TO COMPUTER SCIENCE"
Database: college_3
Question: What are the department name and room for the course INTRODUCTION TO COMPUTER SCIENCE?
Paraphrased question: What are the department name and room for the course INTRODUCTION TO COMPUTER SCIENCE?
SQL: SELECT T2.Dname ,  T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO  =  T2.DNO WHERE T1.CName  =  "INTRODUCTION TO COMPUTER SCIENCE"
Database: college_3
Question: Find the student first and last names and grade points of all enrollments.
Paraphrased question: Find the student full names and grade points of all enrollments.
SQL: SELECT T3.Fname ,  T3.LName ,  T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade  =  T2.lettergrade AND T1.StuID  =  T3.StuID