qr2t_benchmark / eval.json
MikeXydas's picture
Upload 3 files
faa5dc5
[{"table_id": "club_rank", "query": "SELECT COUNT(*) AS \"count of club_rank\", Total \n FROM club_rank \n WHERE Total < 10", "table_name": "club_rank", "query_description": "How many clubs have total medals less than 10?", "results_description": ["Two clubs have six medals.", "There are 2 clubs with 6 medals", "There are 2 clubs with 6 total medals."], "result": ",Total,count of club_rank\n0,6.0,2.0\n", "difficulty": "aggregate"}, {"table_id": "enzyme", "query": "SELECT name \n FROM enzyme \n WHERE name LIKE '%ALA%'", "table_name": "enzyme", "query_description": "Which enzyme names have the substring \"ALA\"?", "results_description": ["ALA synthase enzyme.", "The enzyme called \"ALA synthase\" has the substring \"ALA\"", "The enzyme is named ALA synthase."], "result": ",name\n0,ALA synthase\n", "difficulty": "small_select"}, {"table_id": "products, manufacturers", "query": "SELECT AVG(T1.price) AS \"average price\", T2.name AS \"manufacturers name\" \n FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code \n GROUP BY T2.name", "table_name": "products, manufacturers", "query_description": "Find the average prices of all products from each manufacture, and list each company's name.", "results_description": ["The average price of the manufacturer Creative Labs is 150 respectively", "The Creative Labs manufacturer has an average price of 150 of all products", "The manufacturer Creative Labs has an average price of 150."], "result": ",average price,manufacturers name\n0,150.0,Creative Labs\n", "difficulty": "join_aggregate"}, {"table_id": "Products", "query": "SELECT Name \n FROM Products", "table_name": "Products", "query_description": "Select the names of all the products in the store.", "results_description": ["Product hard drive.", "Hard drives are available in the store", "The product Hard drive is in the store"], "result": ",Name\n0,Hard drive\n", "difficulty": "small_select"}, {"table_id": "COURSE", "query": "SELECT CName, Credits \n FROM COURSE \n WHERE Credits = 1", "table_name": "COURSE", "query_description": "What are the names of courses with 1 credit?", "results_description": ["The Introduction to Computer Science course has 1 credit", "The course INTRODUCTION TO COMPUTER SCIENCE has 1 credit.", "The course INTRODUCTION TO COMPUTER SCIENCE has 1 credit. "], "result": ",CName,Credits\n0,INTRODUCTION TO COMPUTER SCIENCE,1\n", "difficulty": "small_select"}, {"table_id": "station", "query": "SELECT AVG(lat) AS \"average lat\", AVG(long) AS \"average long\", city \n FROM station \n WHERE city = 'San Jose'", "table_name": "station", "query_description": "What is the average latitude and longitude in San Jose?", "results_description": ["The city of San Jose has an average latitude of 37.3364135625 and average longtitude of -121.89160575", "The city of San Jose has average latitude 37.3364135625 and average longitude -121.89160575.", "The average latitude is 37.3364135625 and the average longitude is -121.89160575 in San Jose"], "result": ",city,average lat,average long\n0,San Jose,37.3364135625,-121.89160575\n", "difficulty": "aggregate"}, {"table_id": "submission", "query": "SELECT COUNT(*) AS \"count of submission\" \n FROM submission", "table_name": "submission", "query_description": "Count the number of submissions.", "results_description": ["There are 10 submissions.", "10 submissions were made.", "There are 10 submissions"], "result": ",count of submission\n0,10\n", "difficulty": "aggregate"}, {"table_id": "Customers", "query": "SELECT customer_status_code, COUNT(*) AS \"count of Customers\" \n FROM Customers \n GROUP BY customer_status_code", "table_name": "Customers", "query_description": "List all customer status codes and the number of customers having each status code.", "results_description": ["There are 9 customers with code \"Bad Customer\"", "There are 9 bad customers.", "The customer status codes are Bad Customer and they count to 9 respectively"], "result": ",count of Customers,customer_status_code\n0,9,Bad Customer\n", "difficulty": "aggregate_group_by"}, {"table_id": "Customers", "query": "SELECT first_name, last_name, amount_outstanding \n FROM Customers \n WHERE amount_outstanding BETWEEN 1000 AND 3000", "table_name": "Customers", "query_description": "List the first name and last name of customers have the amount of outstanding between 1000 and 3000.", "results_description": ["The customer Goodwin Rylan has an outstanding amount of 1000. ", "The customer Goodwin Rylan has an outstanding amount of 1000. ", "Rylan Goodwin has an amount outstanding of 1000."], "result": ",last_name,first_name,amount_outstanding\n0,Goodwin,Rylan,1000.0\n", "difficulty": "small_select"}, {"table_id": "train", "query": "SELECT COUNT(*) AS \"count of train\" \n FROM train", "table_name": "train", "query_description": "Show the number of trains", "results_description": ["The number of trains is 11", "There are 11 trains.", "There are 11 trains in total."], "result": ",count of train\n0,11\n", "difficulty": "aggregate"}, {"table_id": "list", "query": "SELECT COUNT(*) AS \"count of list\" \n FROM list", "table_name": "list", "query_description": "How many students are there?", "results_description": ["There are 60 students", "There a re 60 students.", "The count of list is 60."], "result": ",count of list\n0,60\n", "difficulty": "aggregate"}, {"table_id": "authors, authorship, papers", "query": "SELECT t3.title AS \"papers title\", t1.lname AS \"authors lname\", t1.fname AS \"authors fname\" \n FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid \n WHERE t1.fname = 'Stephanie' AND t1.lname = 'Weirich'", "table_name": "authors, authorship, papers", "query_description": "Which papers have \"Stephanie Weirich\" as an author?", "results_description": ["Paper 'Binders Unbound\" is authored by Stephanie Weirich", "Stephanie Weirich is the author of the paper titled Binders Unbound.", "The paper titled Binders Unbound was authored by Stephanie Weirich."], "result": ",papers title,authors fname,authors lname\n0,Binders Unbound,Stephanie,Weirich\n", "difficulty": "join"}, {"table_id": "employees", "query": "SELECT hire_date, first_name \n FROM employees \n WHERE first_name NOT LIKE '%M%'", "table_name": "employees", "query_description": "when is the hire date for those employees whose first name does not containing the letter M?", "results_description": ["Steven was hired at 1987-06-17.", "The employee with first name Steven was hired in 1987-06-17.", "The hire dates of the employees with names Steven are 1987-06-17"], "result": ",HIRE_DATE,FIRST_NAME\n0,1987-06-17,Steven\n", "difficulty": "small_select"}, {"table_id": "media_types", "query": "SELECT name \n FROM media_types", "table_name": "media_types", "query_description": "List all media types.", "results_description": ["The type of media is MPEG audio file.", "The media types are MPEG audio file", "The name is MPEG audio file."], "result": ",name\n0,MPEG audio file\n", "difficulty": "small_select"}, {"table_id": "patient, appointment", "query": "SELECT T1.name AS \"patient name\", T2.start AS \"appointment start\" \n FROM patient AS T1 JOIN appointment AS T2 ON T1.ssn = T2.patient ORDER BY T2.start DESC", "table_name": "patient, appointment", "query_description": "What is the name of the patient who made the most recent appointment?", "results_description": ["The patient Dennis Doe started his appointment in 2008-04-27 10:00.", "The most recent appointment start is at 2008-04-27 10:00 and the patient name is Dennis Doe", "The patient named Dennis Doe has an appointment on 2008-04-27 10:00"], "result": ",patient name,appointment start\n0,Dennis Doe,2008-04-27 10:00\n", "difficulty": "join"}, {"table_id": "course", "query": "SELECT crs_credit, crs_description, crs_code \n FROM course \n WHERE crs_code = 'QM-261'", "table_name": "course", "query_description": "Find the description and credit for the course QM-261?", "results_description": ["The course whose code is QM-261 has 3 credits and the following description: \"Into. to Statistics\"", "The course code QM-261 has 3 credits and its description is Intro. to Statistics.", "The course with code QM-261 and description Intro. to Statistics has 3 credits."], "result": ",CRS_CODE,CRS_CREDIT,CRS_DESCRIPTION\n0,QM-261,3.0,Intro. to Statistics\n", "difficulty": "small_select"}, {"table_id": "products", "query": "SELECT COUNT(*) AS \"count of products\", product_category_code, typical_buying_price \n FROM products \n WHERE product_category_code = 'Spices' AND typical_buying_price > 1000", "table_name": "products", "query_description": "How many products are in the 'Spices' category and have a typical price of over 1000?", "results_description": ["There are two products in the category of spices with a typical buying price of 352447.28", "There are 2 products in the 'Spices' category with a typical price of 352447.2874677", "2 products in the category of Spices have a buying price of 352447.2874677."], "result": ",count of products,typical_buying_price,product_category_code\n0,2,352447.2874677,Spices\n", "difficulty": "aggregate"}, {"table_id": "bank", "query": "SELECT bname, state \n FROM bank \n WHERE state = 'New York'", "table_name": "bank", "query_description": "Find the branch names of banks in the New York state.", "results_description": ["Morningside is bank in the state of New York.", "The bank named morningside is in New York City.", "The branch with name morningside is in the state of New York."], "result": ",bname,state\n0,morningside,New York\n", "difficulty": "small_select"}, {"table_id": "film", "query": "SELECT title, special_features \n FROM film \n WHERE special_features LIKE '%Deleted Scenes%'", "table_name": "film", "query_description": "Which movies have 'Deleted Scenes' as a substring in the special feature?", "results_description": ["The movie \"Academy Dinosaur\" has the special features: Deleted Scenes and Behind the Scenes", "The movie ACADEMY DINOSAUR has the special features Deleted Scenes,Behind the Scenes.", "The film titled ACADEMY DINOSAUR has special features: Deleted Scenes,Behind the Scenes."], "result": ",title,special_features\n0,ACADEMY DINOSAUR,\"Deleted Scenes,Behind the Scenes\"\n", "difficulty": "small_select"}, {"table_id": "Financial_transactions", "query": "SELECT invoice_number, COUNT(*) AS \"count of Financial_transactions\" \n FROM Financial_transactions \n GROUP BY invoice_number", "table_name": "Financial_transactions", "query_description": "Show the invoice number and the number of transactions for each invoice.", "results_description": ["The invoice number 1 has 2 transactions.", "There are 2 transactions with invoice number 1", "There 2 financials transactions with invoice number 1."], "result": ",invoice_number,count of Financial_transactions\n0,1,2\n", "difficulty": "aggregate_group_by"}, {"table_id": "team_franchise", "query": "SELECT COUNT(*) AS \"count of team_franchise\", active \n FROM team_franchise \n WHERE active = 'Y'", "table_name": "team_franchise", "query_description": "Find the number of team franchises that are active (have 'Y' as \"active\" information).", "results_description": ["30 team franchises are active", "There are 30 active team franchises.", "30 team franchises are active."], "result": ",active,count of team_franchise\n0,Y,30\n", "difficulty": "aggregate"}, {"table_id": "Person", "query": "SELECT AVG(age) AS \"average age\", job, gender \n FROM Person \n WHERE gender = 'male' \n GROUP BY job", "table_name": "Person", "query_description": "What is the average age for a male in each job?", "results_description": ["The average age of male doctors is 45", "Male doctors are 45 years old on average", "The average age for male doctors is 45."], "result": ",job,gender,average age\n0,doctor,male,45.0\n", "difficulty": "aggregate_group_by"}, {"table_id": "Restaurant", "query": "SELECT Address, ResName \n FROM Restaurant \n WHERE ResName = 'Subway'", "table_name": "Restaurant", "query_description": "What is the address of the restaurant Subway?", "results_description": ["The address of the restaurant \"Subway\" is \"3233 St Paul St, Baltimore, MD 21218\".", "The address of the restaurant Subway is 3233 St Paul St, Baltimore, MD 21218.", "The restaurant Subway is located in 3233 St Paul St, Baltimore, MD 21218"], "result": ",Address,ResName\n0,\"3233 St Paul St, Baltimore, MD 21218\",Subway\n", "difficulty": "small_select"}, {"table_id": "dorm", "query": "SELECT COUNT(*) AS \"count of dorm\" \n FROM dorm", "table_name": "dorm", "query_description": "How many dorms are there?", "results_description": ["There are 7 dorms.", "There are 7 dorms.", "There are 7 dorms"], "result": ",count of dorm\n0,7\n", "difficulty": "aggregate"}, {"table_id": "Flight", "query": "SELECT AVG(price) AS \"average price\", origin, destination \n FROM Flight \n WHERE origin = 'Los Angeles' AND destination = 'Honolulu'", "table_name": "Flight", "query_description": "What is the average price for flights from Los Angeles to Honolulu.", "results_description": ["The average price of flights from LA to Honolulu is 400.605", "The flight from Los Angeles with destination Honolulu has an average price of 400.605.", "The flight with origin Los Angeles and destination Honolulu has an average price of 400.605."], "result": ",origin,destination,average price\n0,Los Angeles,Honolulu,400.605\n", "difficulty": "aggregate"}, {"table_id": "Tasks", "query": "SELECT COUNT(*) AS \"count of Tasks\" \n FROM Tasks", "table_name": "Tasks", "query_description": "How many tasks are there in total?", "results_description": ["There are 15 tasks in total", "There are 15 tasks.", "The count of tasks is 15."], "result": ",count of Tasks\n0,15\n", "difficulty": "aggregate"}, {"table_id": "Employees", "query": "SELECT employee_name, role_code \n FROM Employees \n WHERE role_code = 'HR'", "table_name": "Employees", "query_description": "Which employees have the role with code \"HR\"? Find their names.", "results_description": ["The employee Leo has the role code HR.", "The name of the employee that has the role with code HR is Leo", "The employee Leo has the role code HR."], "result": ",Role_Code,Employee_Name\n0,HR,Leo\n", "difficulty": "small_select"}, {"table_id": "catalog_contents", "query": "SELECT COUNT(*) AS \"count of catalog_contents\" \n FROM catalog_contents", "table_name": "catalog_contents", "query_description": "Find the total number of catalog contents.", "results_description": ["There are 15 catalog contents.", "There are 15 catalog contents", "There are 15 catalog contents."], "result": ",count of catalog_contents\n0,15\n", "difficulty": "aggregate"}, {"table_id": "documents, document_functional_areas, functional_areas", "query": "SELECT AVG(t1.access_count) AS \"average access_count\", t3.functional_area_description AS \"functional_areas functional_area_description\" \n 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 \n WHERE t3.functional_area_description = 'Acknowledgement'", "table_name": "documents, document_functional_areas, functional_areas", "query_description": "What are the average access counts of documents that have the functional area description \"Acknowledgement\"?", "results_description": ["The average access counts of documents that have the functional area description \"Acknowledgement\" is 3671.8333333333335", "Documents in the functional area of \"Acknowledgement\" have an average access count of 3671.83", "The documents with functional area description Acknowledgement have average access count 3671.8333333333335."], "result": ",average access_count,functional_areas functional_area_description\n0,3671.8333333333335,Acknowledgement\n", "difficulty": "join_aggregate"}, {"table_id": "technician", "query": "SELECT Team, Starting_Year \n FROM technician", "table_name": "technician", "query_description": "What are the team and starting year of technicians?", "results_description": ["The team NYY started id 2012.", "The team of technicians is NYY and the starting year is 2012", "The technicians are part of the team NYY and have a starting year of 2012"], "result": ",Team,Starting_Year\n0,NYY,2012.0\n", "difficulty": "small_select"}, {"table_id": "company", "query": "SELECT COUNT(*) AS \"count of company\", Headquarters \n FROM company \n WHERE Headquarters = 'USA'", "table_name": "company", "query_description": "How many companies are headquartered in the US?", "results_description": ["There are 8 companies with headquarters in USA.", "8 companies are headquartered in the USA.", "There are 8 companies with headquarters in the USA."], "result": ",Headquarters,count of company\n0,USA,8\n", "difficulty": "aggregate"}, {"table_id": "CUSTOMER", "query": "SELECT FirstName, LastName, Email \n FROM CUSTOMER \n WHERE Email = 'luisg@embraer.com.br'", "table_name": "CUSTOMER", "query_description": "What is the first name and last name of the customer that has email \"luisg@embraer.com.br\"?", "results_description": ["The email \"luisg@embraer.com.br\" belongs to Lu\u00eds Gon\u00e7alves.", "The customer who has the email luisg@embraer.com.br has the first name Lu\u00eds and last name Gon\u00e7alves.", "The customer that has email \"luisg@embraer.com.br\" has Lu\u00eds as a first name and Gon\u00e7alves as a last name"], "result": ",Email,LastName,FirstName\n0,luisg@embraer.com.br,Gon\u00e7alves,Lu\u00eds\n", "difficulty": "small_select"}, {"table_id": "assignedto, projects, scientists", "query": "SELECT SUM(T2.hours) AS \"sum of hours\", T3.name AS \"scientists name\" \n FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN \n WHERE T3.name = 'Michael Rogers' OR T3.name = 'Carol Smith'", "table_name": "assignedto, projects, scientists", "query_description": "Find the total hours of the projects that scientists named Michael Rogers or Carol Smith are assigned to.", "results_description": ["The scientist Michael Rogers has 6702 total number of hours of the projects that he is assigned to.", "The scientist Michael Rogers is assigned 6702 hours.", "Scientist Michael Rogers was assigned 6702 hours of projects."], "result": ",sum of hours,scientists name\n0,6702,Michael Rogers\n", "difficulty": "join_aggregate"}, {"table_id": "accounts, savings", "query": "SELECT T1.name AS \"accounts name\", T2.balance AS \"savings balance\" \n FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance DESC", "table_name": "accounts, savings", "query_description": "What are names and savings balances of the three accounts with the highest savings balances?", "results_description": ["The account names with the highest savings are Wang and their saving balance is 999999999 respectively", "The account with name Wang has a savings balance of 999999999", "The account with name Wang has a savings balance of 999999999."], "result": ",accounts name,savings balance\n0,Wang,999999999.0\n", "difficulty": "join"}, {"table_id": "roller_coaster", "query": "SELECT Status \n FROM roller_coaster \n GROUP BY Status ORDER BY COUNT(*) DESC", "table_name": "roller_coaster", "query_description": "Please show the most common status of roller coasters.", "results_description": ["Operating is the most common status of roller coasters.", "The most common status of the roller coasters is Operating. ", "The status is operating."], "result": ",Status\n0,Operating\n", "difficulty": "aggregate_group_by"}, {"table_id": "journalist", "query": "SELECT Nationality, COUNT(*) AS \"count of journalist\" \n FROM journalist \n GROUP BY Nationality", "table_name": "journalist", "query_description": "Show the different nationalities and the number of journalists of each nationality.", "results_description": ["There are 9 journalists from England.", "There are 9 journalists of English nationality.", "There are 9 journalists from England."], "result": ",Nationality,count of journalist\n0,England,9\n", "difficulty": "aggregate_group_by"}, {"table_id": "happy_hour", "query": "SELECT MONTH \n FROM happy_hour \n GROUP BY MONTH ORDER BY COUNT(*) DESC", "table_name": "happy_hour", "query_description": "Which month has the most happy hours?", "results_description": ["May is the month with the most happy hours.", "May has the most happy hours.", "Month May has the most happy hours"], "result": ",Month\n0,May\n", "difficulty": "aggregate_group_by"}, {"table_id": "city, hosting_city", "query": "SELECT T2.year AS \"hosting_city year\", T1.city AS \"city city\" \n FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city \n WHERE T1.city = 'Taizhou ( Zhejiang )'", "table_name": "city, hosting_city", "query_description": "What is the host year of city \"Taizhou ( Zhejiang )\"?", "results_description": ["The host year of city Taizhou ( Zhejiang ) is 2012", "The city Taizhou ( Zhejiang ) was the host in 2012.", "The city of Taizhou ( Zhejiang ) hosted in 2012."], "result": ",city city,hosting_city year\n0,Taizhou ( Zhejiang ),2012\n", "difficulty": "join"}, {"table_id": "Lessons, Staff", "query": "SELECT SUM(lesson_time) AS \"sum of lesson_time\", T2.last_name AS \"Staff last_name\", T2.first_name AS \"Staff first_name\" \n FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id \n WHERE T2.first_name = 'Janessa' AND T2.last_name = 'Sawayn'", "table_name": "Lessons, Staff", "query_description": "What is the total time for all lessons taught by Janessa Sawayn?", "results_description": ["Janessa Sawayn taught 9 lessons.", "Janessa Sawayn has a total time for all lessons taught of 9", "The instructor Janessa Sawayn had a sum of lesson time of 9."], "result": ",Staff last_name,Staff first_name,sum of lesson_time\n0,Sawayn,Janessa,9\n", "difficulty": "join_aggregate"}, {"table_id": "news_report, event, journalist", "query": "SELECT T3.Name AS \"journalist Name\", T2.Name AS \"event Name\", T2.Event_Attendance AS \"event Event_Attendance\" \n FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID ORDER BY T2.Event_Attendance ASC", "table_name": "news_report, event, journalist", "query_description": "Show the names of journalists and the names of the events they reported in ascending order", "results_description": ["John Meaney reported the Special Exhibition which had an attendance of 225", "The journalist name is John Meaney and the event name is Special Exhibition", "The event named Special Exhibition with an attendance of 225 was reported by the journalist John Meaney."], "result": ",event Name,journalist Name,event Event_Attendance\n0,Special Exhibition,John Meaney,225\n", "difficulty": "join"}, {"table_id": "HOTELS", "query": "SELECT star_rating_code, AVG(price_range) AS \"average price_range\" \n FROM HOTELS \n GROUP BY star_rating_code", "table_name": "HOTELS", "query_description": "What is the average price range of hotels for each each star rating code?", "results_description": ["For the star rating code of 1 the average price range of hotels is 12725.062543725", "The average price range is 12725.062543725 for hotels with star rating code 1", "The hotels with start_rating_code have an average price range of 12725.062543725."], "result": ",star_rating_code,average price_range\n0,1,12725.062543725\n", "difficulty": "aggregate_group_by"}, {"table_id": "Apartment_Bookings", "query": "SELECT COUNT(*) AS \"count of Apartment_Bookings\" \n FROM Apartment_Bookings", "table_name": "Apartment_Bookings", "query_description": "How many apartment bookings are there in total?", "results_description": ["There are 15 apartment bookings in total", "There are 15 apartment bookins. ", "The number of apartment bookings is 15"], "result": ",count of Apartment_Bookings\n0,15\n", "difficulty": "aggregate"}, {"table_id": "county", "query": "SELECT Zip_code, County_name \n FROM county \n WHERE County_name = 'Howard'", "table_name": "county", "query_description": "Show the zip code of the county with name \"Howard\".", "results_description": ["The zip code of the country Howard is D21.", "The zip code in the county of Howard is D21", "The county named Howard has zip code D21."], "result": ",Zip_code,County_name\n0,D21,Howard\n", "difficulty": "small_select"}, {"table_id": "university, basketball_match", "query": "SELECT t1.Primary_conference AS \"university Primary_conference\", t2.acc_percent AS \"basketball_match acc_percent\" \n FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent", "table_name": "university, basketball_match", "query_description": "What is the primary conference of the school that has the lowest acc percent score in the competition?", "results_description": ["The school with an accuracy percentage of .563 in basketball, plays in the America East Conference ( D-I )", "The conference America East Conference ( D-I ) has an acceptance rate of .563.", "The America East Conference ( D-I ) primary conference has .563 acc percent in basketball matches."], "result": ",basketball_match acc_percent,university Primary_conference\n0,.563,America East Conference ( D-I )\n", "difficulty": "join"}, {"table_id": "people", "query": "SELECT country, COUNT(*) AS \"count of people\" \n FROM people \n GROUP BY country", "table_name": "people", "query_description": "Show all countries and the number of people from each country.", "results_description": ["In Australia there is a count of 1 person.", "The countries are Australia and their corresponding number of people are 1", "There is 1 person from Australia"], "result": ",Country,count of people\n0,Australia,1\n", "difficulty": "aggregate_group_by"}, {"table_id": "ENROLLED_IN, GRADECONVERSION, STUDENT", "query": "SELECT AVG(T2.gradepoint) AS \"average gradepoint\", T3.LName AS \"STUDENT LName\" \n FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID \n WHERE T3.LName = 'Smith'", "table_name": "ENROLLED_IN, GRADECONVERSION, STUDENT", "query_description": "What is the average gradepoint for students with the last name Smith?", "results_description": ["Smith has on average 3.2 grade points", "The average gradepoint of students with the last name Smith is 3.2", "The student Smith has an average gradepoint of 3.2."], "result": ",STUDENT LName,average gradepoint\n0,Smith,3.2\n", "difficulty": "join_aggregate"}, {"table_id": "LOCATIONS", "query": "SELECT Location_Name \n FROM LOCATIONS \n WHERE Location_Name LIKE '%film%'", "table_name": "LOCATIONS", "query_description": "Which location names contain the word \"film\"?", "results_description": ["The location Film Festival.", "The location name is Film Festival.", "The location named Film Festival contains the word \"film\""], "result": ",Location_Name\n0,Film Festival\n", "difficulty": "small_select"}, {"table_id": "club", "query": "SELECT COUNT(*) AS \"count of club\" \n FROM club", "table_name": "club", "query_description": "What is the total number of clubs?", "results_description": ["There are 6 clubs in total", "The count of clubs is 6.", "There are 6 clubs."], "result": ",count of club\n0,6\n", "difficulty": "aggregate"}, {"table_id": "ALBUM", "query": "SELECT COUNT(*) AS \"count of ALBUM\" \n FROM ALBUM", "table_name": "ALBUM", "query_description": "How many albums are there?", "results_description": ["There are 347 albums in total", "There are 347 albums.", "There are 347 albums"], "result": ",count of ALBUM\n0,347\n", "difficulty": "aggregate"}, {"table_id": "device", "query": "SELECT COUNT(*) AS \"count of device\" \n FROM device", "table_name": "device", "query_description": "How many devices are there?", "results_description": ["There are 6 devices.", "There are 6 devices", "There are 6 devices."], "result": ",count of device\n0,6\n", "difficulty": "aggregate"}, {"table_id": "club", "query": "SELECT clublocation, clubname \n FROM club \n WHERE clubname = 'Hopkins Student Enterprises'", "table_name": "club", "query_description": "Where is the club \"Hopkins Student Enterprises\" located?", "results_description": ["The Hopkins Student Enterprises club is located in AKW", "Hopkins Student Enterprises club is located in AKW.", "The club Hopkins Student Enterprises is located in AKW."], "result": ",ClubName,ClubLocation\n0,Hopkins Student Enterprises,AKW\n", "difficulty": "small_select"}, {"table_id": "region", "query": "SELECT region_name \n FROM region \n WHERE region_name <> 'Denmark'", "table_name": "region", "query_description": "Return the names of all regions other than Denmark.", "results_description": ["The region name is Afghanistan", "There is the region with name Afghanistan", "The region name is Afghanistan."], "result": ",Region_name\n0,Afghanistan\n", "difficulty": "small_select"}, {"table_id": "chip_model, phone", "query": "SELECT AVG(T1.ROM_MiB) AS \"average ROM_MiB\", T2.Company_name AS \"phone Company_name\" \n FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model \n WHERE T2.Company_name = 'Nokia Corporation'", "table_name": "chip_model, phone", "query_description": "What is the average ROM size of phones produced by the company named \"Nokia Corporation\"?", "results_description": ["The average ROM size of phones produced by the company named \"Nokia Corporation\" is 32.", "The phones of Nokia have an average ROM of 32", "The company named \"Nokia Corporation\" has produced phones with an average ROM size of 32."], "result": ",average ROM_MiB,phone Company_name\n0,32.0,Nokia Corporation\n", "difficulty": "join_aggregate"}, {"table_id": "program", "query": "SELECT name, origin \n FROM program \n WHERE origin <> 'Beijing'", "table_name": "program", "query_description": "find the names of programs whose origin is not in Beijing.", "results_description": ["Program Aniworld has Hunan origin.", "The program Aniworld originates from Hunan.", "The program whose origin is in Hunan is named Aniworld."], "result": ",Name,Origin\n0,Aniworld,Hunan\n", "difficulty": "small_select"}, {"table_id": "university", "query": "SELECT AVG(enrollment) AS \"average enrollment\", founded \n FROM university \n WHERE founded < 1850", "table_name": "university", "query_description": "What are the average enrollment size of the universities that are founded before 1850?", "results_description": ["The average enrollment of universities founded in 1743 is 37967.5", "The average enrollment size is 37967.5 for universities founded in 1743", "The average enrollment for universities founded in 1743 is 37967.5."], "result": ",Founded,average enrollment\n0,1743.0,37967.5\n", "difficulty": "aggregate"}, {"table_id": "jobs", "query": "SELECT job_title, min_salary \n FROM jobs \n WHERE min_salary > 9000", "table_name": "jobs", "query_description": "display the job title of jobs which minimum salary is greater than 9000.", "results_description": ["The job of President has a min salary of 20000", "The job title is President and the minimum salary is 20000", "The job of the President has a minimum salary of 20000"], "result": ",JOB_TITLE,MIN_SALARY\n0,President,20000\n", "difficulty": "small_select"}, {"table_id": "department", "query": "SELECT creation, name, budget_in_billions \n FROM department", "table_name": "department", "query_description": "List the creation year, name and budget of each department.", "results_description": ["Department \"State\" was created in 1789 and costed 9.96 billions.", "The State department was created in 1789 and has a budget of 9.96 billions", "The department named State, created in 1789, has 9.96 budget in billions."], "result": ",Name,Creation,Budget_in_Billions\n0,State,1789,9.96\n", "difficulty": "large_select"}, {"table_id": "college", "query": "SELECT Leader_Name, College_Location \n FROM college", "table_name": "college", "query_description": "Show the leader names and locations of colleges.", "results_description": ["The leader name is Ousame Tounkara and the location is Ottawa", "The leader named Ousame Tounkara is located in Ottawa.", "The leader named Ousame Tounkara is in the college located in Ottawa."], "result": ",Leader_Name,College_Location\n0,Ousame Tounkara,Ottawa\n", "difficulty": "small_select"}, {"table_id": "airports", "query": "SELECT name, country \n FROM airports \n WHERE country = 'Cuba' OR country = 'Argentina'", "table_name": "airports", "query_description": "What are the names of all airports in Cuba or Argentina?", "results_description": ["Gustavo Rizo Airport is in Cuba.", "In Cuba the name of the airport is Gustavo Rizo Airport.", "The Gustavo Rizo Airport is in the country of Cuba."], "result": ",name,country\n0,Gustavo Rizo Airport,Cuba\n", "difficulty": "small_select"}, {"table_id": "advisor, instructor, student", "query": "SELECT T2.name AS \"instructor name\", T3.dept_name AS \"student dept_name\", T3.tot_cred AS \"student tot_cred\" \n FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id \n WHERE T3.dept_name = 'Math' ORDER BY T3.tot_cred", "table_name": "advisor, instructor, student", "query_description": "Find the name of instructors who are advisors of the students from the Math department, and sort the results by students' total credit.", "results_description": ["Gutierrez is the advisor of a student from the Math department that has 0 total credits.", "The instructor named Gutierez has a student from the Math department with total credit 0.", "The instructor named Gutierrez in the Math department has 0 total student creds. "], "result": ",instructor name,student tot_cred,student dept_name\n0,Gutierrez,0,Math\n", "difficulty": "join"}, {"table_id": "weekly_weather, station", "query": "SELECT MAX(t1.low_temperature) AS \"maximum low_temperature\", AVG(t1.precipitation) AS \"average precipitation\", t2.network_name AS \"station network_name\" \n FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id \n WHERE t2.network_name = 'Amersham'", "table_name": "weekly_weather, station", "query_description": "Give me the maximum low temperature and average precipitation at the Amersham station.", "results_description": ["The station Amersham has an average precipitation of 42.857142857142854 and a maximum low temperature of 55.", "The station Amersham had an average precipitation of 42.857142857142854 and minimum low temperature of 55.", "The station with network name Amersham has average precipitation 42.857142857142854 and maximum low temperature 55."], "result": ",station network_name,average precipitation,maximum low_temperature\n0,Amersham,42.857142857142854,55\n", "difficulty": "join_aggregate"}, {"table_id": "climber, mountain", "query": "SELECT T1.Name AS \"climber Name\", T2.Height AS \"mountain Height\" \n FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID", "table_name": "climber, mountain", "query_description": "What are the names of climbers and the corresponding heights of the mountains that they climb?", "results_description": ["The climber Klaus Enders climbed a mountain with height 5895.", "The climber Klaus Enders climbed a mountain of height 5895.", "The climber Klaus Enders climbed a mountain of height 5895."], "result": ",climber Name,mountain Height\n0,Klaus Enders,5895.0\n", "difficulty": "join"}, {"table_id": "All_documents, Document_locations, Ref_locations", "query": "SELECT T3.location_name AS \"Ref_locations location_name\", T1.document_name AS \"All_documents document_name\" \n FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code \n WHERE T1.document_name = 'Robin CV'", "table_name": "All_documents, Document_locations, Ref_locations", "query_description": "What is the location name of the document \"Robin CV\"?", "results_description": ["The document \"Robin CV\" is located in Edinburgh", "The document Robin CV is located in Edinburgh.", "The document named Robin CV is in the location Edinburgh."], "result": ",All_documents document_name,Ref_locations location_name\n0,Robin CV,Edinburgh\n", "difficulty": "join"}, {"table_id": "products, ref_colors", "query": "SELECT t2.color_description AS \"ref_colors color_description\", t1.product_name AS \"products product_name\" \n FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code \n WHERE t1.product_name = 'catnip'", "table_name": "products, ref_colors", "query_description": "What is the color description of the product with name \"catnip\"?", "results_description": ["The color description of the product with name \"catnip\" is \"white\".", "The colour description of the product with name catnip is white", "The product catnip has a color description of white"], "result": ",products product_name,ref_colors color_description\n0,catnip,white\n", "difficulty": "join"}, {"table_id": "documents, document_functional_areas, functional_areas", "query": "SELECT AVG(t1.access_count) AS \"average access_count\", t3.functional_area_description AS \"functional_areas functional_area_description\" \n 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 \n WHERE t3.functional_area_description = 'Acknowledgement'", "table_name": "documents, document_functional_areas, functional_areas", "query_description": "Find the average access counts of documents with functional area \"Acknowledgement\".", "results_description": ["The functional area Acknowledgement has an average access count of 3671.8333333333335.", "The average access counts of documents with functional area \"Acknowledgement\" is 3671.8333333333335", "The functional area Acknowledgement has an average access count of 3671.8333333333335."], "result": ",average access_count,functional_areas functional_area_description\n0,3671.8333333333335,Acknowledgement\n", "difficulty": "join_aggregate"}, {"table_id": "Person", "query": "SELECT COUNT(*) AS \"count of Person\", gender \n FROM Person \n WHERE gender = 'female'", "table_name": "Person", "query_description": "How many females are in the network?", "results_description": ["There are 2 females in the network.", "There are two females in the network", "There are 2 females."], "result": ",gender,count of Person\n0,female,2\n", "difficulty": "aggregate"}, {"table_id": "Documents_with_expenses", "query": "SELECT COUNT(*) AS \"count of Documents_with_expenses\" \n FROM Documents_with_expenses", "table_name": "Documents_with_expenses", "query_description": "How many documents have expenses?", "results_description": ["There are 10 documents with expenses.", "The number of documents with expenses is 10", "10 documents have expenses."], "result": ",count of Documents_with_expenses\n0,10\n", "difficulty": "aggregate"}, {"table_id": "manufacturers", "query": "SELECT SUM(revenue) AS \"sum of revenue\", headquarter \n FROM manufacturers \n WHERE headquarter = 'Austin'", "table_name": "manufacturers", "query_description": "Find the total revenue created by the companies whose headquarter is located at Austin.", "results_description": ["The headquarter in Austin made a total revenue of 100. ", "The companies whose headquarter is located at Austin have a total revenue of 100", "The headquarter in Austin made a total revenue of 100. "], "result": ",Headquarter,sum of revenue\n0,Austin,100.0\n", "difficulty": "aggregate"}, {"table_id": "Addresses, Teachers", "query": "SELECT T1.zip_postcode AS \"Addresses zip_postcode\", T2.first_name AS \"Teachers first_name\" \n FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id \n WHERE T2.first_name = 'Lyla'", "table_name": "Addresses, Teachers", "query_description": "What is the zip code of the address where the teacher with first name \"Lyla\" lives?", "results_description": ["Lyla's zip code is 435.", "The teacher Lyla has the zip code 435.", "The teacher with first name Lyla lives at the address with zip code 435."], "result": ",Teachers first_name,Addresses zip_postcode\n0,Lyla,435\n", "difficulty": "join"}, {"table_id": "home_game, team", "query": "SELECT SUM(T1.attendance) AS \"sum of attendance\", T2.name AS \"team name\", T1.year AS \"home_game year\" \n FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br \n WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010", "table_name": "home_game, team", "query_description": "What is the total home game attendance of team Boston Red Stockings from 2000 to 2010?", "results_description": ["The sum of attendance for the Boston Red Stockings in 2000, is 156651355", "Boston Red Stockings team attended 156651355 games from 2000 to 2010.", "The Boston Red Stockings had a total attendance of 156651355 from 2000 to 2010."], "result": ",team name,home_game year,sum of attendance\n0,Boston Red Stockings,2000,156651355\n", "difficulty": "join_aggregate"}, {"table_id": "people", "query": "SELECT * \n FROM people", "table_name": "people", "query_description": "What is all the information about all people?", "results_description": ["Hubert Henno is male, 188cm tall, weighs 83, has the id 1 and was born in 06.10.1976.", "Hubert Henno with people ID 1 has sex of M, a height of 188, a weight of 83 and date of birth 06.10.1976", "Hubert Henno, with id 1, has height 188, weight 83, date of birth 06.10.1976 and sex M."], "result": ",Sex,Name,Height,Weight,People_ID,Date_of_Birth\n0,M,Hubert Henno,188.0,83.0,1,06.10.1976\n", "difficulty": "large_select"}, {"table_id": "products, Manufacturers", "query": "SELECT AVG(T1.Price) AS \"average Price\", T2.name AS \"Manufacturers name\" \n FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code \n GROUP BY T2.name", "table_name": "products, Manufacturers", "query_description": "What are the average prices of products, grouped by manufacturer name?", "results_description": ["The average price of products by Creative Labs is 150", "The manufacturer Creative Labs has an average price of 150.", "The manufacturer Creative Labs has an average price of 150."], "result": ",average Price,Manufacturers name\n0,150.0,Creative Labs\n", "difficulty": "join_aggregate"}, {"table_id": "bank", "query": "SELECT bname, state \n FROM bank \n WHERE state = 'New York'", "table_name": "bank", "query_description": "What are the names of banks in the state of New York?", "results_description": ["The bank named morningside is in the state of New York.", "In the state of New York the bank name is morningside", "The morningside bank is in the state of New York"], "result": ",bname,state\n0,morningside,New York\n", "difficulty": "small_select"}, {"table_id": "medicine", "query": "SELECT COUNT(*) AS \"count of medicine\", FDA_approved \n FROM medicine \n WHERE FDA_approved = 'No'", "table_name": "medicine", "query_description": "How many medicines were not approved by the FDA?", "results_description": ["11 medicine were not approved by FDA.", "11 medicine were not approved by FDA.", "There are 11 medicines that are not FDA approved."], "result": ",FDA_approved,count of medicine\n0,No,11\n", "difficulty": "aggregate"}, {"table_id": "company", "query": "SELECT Headquarters, COUNT(*) AS \"count of company\" \n FROM company \n GROUP BY Headquarters", "table_name": "company", "query_description": "Show the different headquarters and number of companies at each headquarter.", "results_description": ["The number of companies in the Headquarters of Brazil are 1", "The headquarters in Brazil have 1 company.", "There is 1 company with headquarters in Brazil."], "result": ",Headquarters,count of company\n0,Brazil,1\n", "difficulty": "aggregate_group_by"}, {"table_id": "bank, loan", "query": "SELECT SUM(T2.amount) AS \"sum of amount\", T1.state AS \"bank state\" \n FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id \n WHERE T1.state = 'New York'", "table_name": "bank, loan", "query_description": "Find the total amount of loans provided by bank branches in the state of New York.", "results_description": ["The total amount of loans provided by banks in the state of NY is 7050", " Bank branches in the state of New York have a sum of the amount of loans of 7050 ", "The banks in the state of New York loaned a total amount of 7050."], "result": ",bank state,sum of amount\n0,New York,7050\n", "difficulty": "join_aggregate"}, {"table_id": "club, member_of_club, student", "query": "SELECT AVG(t3.age) AS \"average age\", t1.clubname AS \"club clubname\" \n FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid \n WHERE t1.clubname = 'Tennis Club'", "table_name": "club, member_of_club, student", "query_description": "Retrieve the average age of members of the club \"Tennis Club\".", "results_description": ["Tennis Club'members have average age 18.", "The average age of members of the club with name Tennis Club is 18", "The average age of members of the club \"Tennis Club\" is 18"], "result": ",average age,club clubname\n0,18.0,Tennis Club\n", "difficulty": "join_aggregate"}, {"table_id": "customers, invoices", "query": "SELECT T1.first_name AS \"customers first_name\", T1.last_name AS \"customers last_name\", total \n FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total", "table_name": "customers, invoices", "query_description": "List the customers first and last name of 10 least expensive invoices.", "results_description": ["Fynn Zimmermann has an invoice of 0.99.", "The customer Fynn Zimmermann has a total cost of invoices 0.99.", "The customer Fynn Zimmermann has 0.99 total invoices."], "result": ",total,customers last_name,customers first_name\n0,0.99,Zimmermann,Fynn\n", "difficulty": "join"}, {"table_id": "customer, loan", "query": "SELECT T1.cust_name AS \"customer cust_name\", amount \n FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id \n WHERE amount > 3000", "table_name": "customer, loan", "query_description": "What are the names of customers who have a loan of more than 3000 in amount?", "results_description": ["Owen has a lone of 5000", "Owen is a customer that has a loan with the amount of 5000.", "Customer Owen has a loan amount of 5000."], "result": ",amount,customer cust_name\n0,5000,Owen\n", "difficulty": "join"}, {"table_id": "BOOKINGS", "query": "SELECT Order_Date \n FROM BOOKINGS", "table_name": "BOOKINGS", "query_description": "What is the order date of each booking?", "results_description": ["There was a booking in 2016-12-12 10:43:01", "The order date of the booking is 2016-12-12 10:43:01.", "The order date is 2016-12-12 10:43:01."], "result": ",Order_Date\n0,2016-12-12 10:43:01\n", "difficulty": "small_select"}, {"table_id": "airport", "query": "SELECT SUM(Domestic_Passengers) AS \"sum of Domestic_Passengers\", Airport_Name \n FROM airport \n WHERE Airport_Name LIKE '%London%'", "table_name": "airport", "query_description": "What are the total number of domestic passengers at all London airports?", "results_description": ["There are 12957585 domestic passengers at all London airports.", "The airport London Heathrow had a total of 12957585 passengers.", "The total number of domestic passengers at the airport with name London Heathrow is 12957585"], "result": ",Airport_Name,sum of Domestic_Passengers\n0,London Heathrow,12957585.0\n", "difficulty": "aggregate"}, {"table_id": "STUDENTS", "query": "SELECT cell_mobile_number, email_address \n FROM STUDENTS", "table_name": "STUDENTS", "query_description": "Return the cell phone number and email address for all students.", "results_description": ["The student with email derrick.jenkins@example.com, has the following mobile number: 235.899.9744", "The student with the derrick.jenkins@example.com email has the phone number 235.899.9744.", "The email address is derrick.jenkins@example.com and the mobile number is 235.899.9744."], "result": ",email_address,cell_mobile_number\n0,derrick.jenkins@example.com,235.899.9744\n", "difficulty": "small_select"}, {"table_id": "aircraft", "query": "SELECT COUNT(*) AS \"count of aircraft\" \n FROM aircraft", "table_name": "aircraft", "query_description": "What is the number of aircraft?", "results_description": ["There are 5 aircrafts", "There are 5 aircrafts.", "There are 5 aircrafts in total."], "result": ",count of aircraft\n0,5\n", "difficulty": "aggregate"}, {"table_id": "dorm_amenity", "query": "SELECT COUNT(*) AS \"count of dorm_amenity\" \n FROM dorm_amenity", "table_name": "dorm_amenity", "query_description": "Find the number of distinct amenities.", "results_description": ["There are 12 amenities.", "There are 12 distinct amenities", "There are 12 dorm amenities."], "result": ",count of dorm_amenity\n0,12\n", "difficulty": "aggregate"}, {"table_id": "bank", "query": "SELECT AVG(no_of_customers) AS \"average no_of_customers\" \n FROM bank", "table_name": "bank", "query_description": "What is the average number of bank customers?", "results_description": ["The average number of bank customers is 286.5", "The average number of customers is 286.5.", "The average number of bank customers is 286.5"], "result": ",average no_of_customers\n0,286.5\n", "difficulty": "aggregate"}, {"table_id": "Accounts", "query": "SELECT COUNT(*) AS \"count of Accounts\" \n FROM Accounts", "table_name": "Accounts", "query_description": "How many accounts are there?", "results_description": ["There are 15 account in total", "There are 15 accounts", "There are 15 accounts in total."], "result": ",count of Accounts\n0,15\n", "difficulty": "aggregate"}, {"table_id": "Restaurant", "query": "SELECT ResName \n FROM Restaurant", "table_name": "Restaurant", "query_description": "Show me all the restaurants.", "results_description": ["Subway is a restaurant.", "The restaurant name is Subway", "The restaurant name is Subway"], "result": ",ResName\n0,Subway\n", "difficulty": "small_select"}, {"table_id": "climber", "query": "SELECT Name, Country \n FROM climber \n WHERE Country <> 'Switzerland'", "table_name": "climber", "query_description": "What are the names of climbers who are not from the country of Switzerland?", "results_description": ["Climber \"Klaus Enders\" is from West Germany.", "Klaus Enders is from West Germany", "The countries of climbers Klaus Enders are West Germany"], "result": ",Name,Country\n0,Klaus Enders,West Germany\n", "difficulty": "small_select"}, {"table_id": "Video_games", "query": "SELECT COUNT(*) AS \"count of Video_games\", gtype \n FROM Video_games \n WHERE gtype = 'Massively multiplayer online game'", "table_name": "Video_games", "query_description": "Count the number of video games with Massively multiplayer online game type .", "results_description": ["There is only 1 video game that belongs to the game type \"Massively multiplayer online game\".", "The number of massively multiplayer online games is 1", "There is 1 video game with Massively multiplayer online game type"], "result": ",GType,count of Video_games\n0,Massively multiplayer online game,1\n", "difficulty": "aggregate"}, {"table_id": "entrepreneur, people", "query": "SELECT SUM(T1.Money_Requested) AS \"sum of Money_Requested\", T2.Height AS \"people Height\" \n FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID \n WHERE T2.Height > 1.85", "table_name": "entrepreneur, people", "query_description": "Give the total money requested by entrepreneurs who are taller than 1.85.", "results_description": ["The people with a height of 1.9 requested a sum of 380000.", "The total money requested by entrepreneurs who are taller than 1.85 was 380000.", "The people's height is 1.9 and the sum of requested money is 380000."], "result": ",people Height,sum of Money_Requested\n0,1.9,380000.0\n", "difficulty": "join_aggregate"}, {"table_id": "race", "query": "SELECT CLASS, COUNT(*) AS \"count of race\" \n FROM race \n GROUP BY CLASS", "table_name": "race", "query_description": "What are the different classes of races, and how many races correspond to each?", "results_description": ["The class of races DP/GT has 5 races.", "The different classes of races are DP/GT, and 5 races correspond to each", "There were 5 races in the DP/GT class."], "result": ",Class,count of race\n0,DP/GT,5\n", "difficulty": "aggregate_group_by"}, {"table_id": "CLASS, employee, professor, department", "query": "SELECT T2.emp_fname AS \"employee emp_fname\", T1.class_room AS \"CLASS class_room\", T4.dept_name AS \"department dept_name\" \n FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code \n WHERE T4.dept_name = 'Accounting'", "table_name": "CLASS, employee, professor, department", "query_description": "Find the first names of all professors in the Accounting department who is teaching some course and the class room.", "results_description": ["The employee Arnelle is in the accounting department in the BUS200 class room/", "Professor Arnelle is teaching the Accounting course in classroom BUS200", "The employee Arnelle is in the Accounting department and in class BUS200."], "result": ",CLASS class_room,employee emp_fname,department dept_name\n0,BUS200,Arnelle,Accounting\n", "difficulty": "join"}, {"table_id": "volume", "query": "SELECT MAX(Weeks_on_Top) AS \"maximum Weeks_on_Top\", MIN(Weeks_on_Top) AS \"minimum Weeks_on_Top\" \n FROM volume", "table_name": "volume", "query_description": "Give the maximum and minimum weeks on top across all volumes.", "results_description": ["The maximum weeks on top across all volumes is 3, while the minimum is 1", "The maximum weeks on top across all volumes is 3 and the minimum is 1.", "The maximum weeks on top were 3 while the minimum was 1."], "result": ",maximum Weeks_on_Top,minimum Weeks_on_Top\n0,3.0,1.0\n", "difficulty": "aggregate"}, {"table_id": "artist, song", "query": "SELECT T1.artist_name AS \"artist artist_name\", T1.country AS \"artist country\", T2.rating AS \"song rating\" \n FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.rating DESC", "table_name": "artist, song", "query_description": "What are the names and countries of origin for the artists who produced the top three highly rated songs.", "results_description": ["The song by the Indian artist named Topu has a rating of 10.", "The artist Topu is from India and has a song rating of 10", "The artist named Topu is from India and the song rating was 10."], "result": ",song rating,artist country,artist artist_name\n0,10,India,Topu\n", "difficulty": "join"}, {"table_id": "Reservations", "query": "SELECT kids, FirstName, LastName \n FROM Reservations \n WHERE FirstName = 'ROY' AND LastName = 'SWEAZY'", "table_name": "Reservations", "query_description": "How many kids stay in the rooms reserved by ROY SWEAZY?", "results_description": ["1 kid lives in a room reserved by Roy Sweazy.", "1 kid stay in room reserved by ROY SWEAZY", "1 kid stayed in the room reserved by SWEAZY ROY."], "result": ",Kids,LastName,FirstName\n0,1,SWEAZY,ROY\n", "difficulty": "small_select"}, {"table_id": "festival_detail", "query": "SELECT Num_of_Audience, YEAR \n FROM festival_detail \n WHERE YEAR = 2008 OR YEAR = 2010", "table_name": "festival_detail", "query_description": "Show the number of audience in year 2008 or 2010.", "results_description": ["In the year of 2008 the number of audience was 160.", "In year 2008 the number of audience is 160", "The number of audience is 160 in year 2008"], "result": ",Year,Num_of_Audience\n0,2008,160\n", "difficulty": "small_select"}, {"table_id": "accounts", "query": "SELECT COUNT(*) AS \"count of accounts\" \n FROM accounts", "table_name": "accounts", "query_description": "How many accounts are there in total?", "results_description": ["There are 7 accounts", "There are 7 accounts.", "There are 7 accounts in total"], "result": ",count of accounts\n0,7\n", "difficulty": "aggregate"}, {"table_id": "BOOKINGS", "query": "SELECT Planned_Delivery_Date, Actual_Delivery_Date \n FROM BOOKINGS", "table_name": "BOOKINGS", "query_description": "What are the planned delivery date and actual delivery date for each booking?", "results_description": ["The planned delivery date for booking was \"2013-03-10 18:47:05\", while the actual delivery date for booking was \"1997-11-21 10:07:40\".", "One of the bookings was planned to be delivered in 2013-03-10 18:47:05 but was actually delivered in 1997-11-21 10:07:40", "The planned delivery date is 2013-03-10 18:47:05 and the actual delivery date is 1997-11-21 10:07:40."], "result": ",Actual_Delivery_Date,Planned_Delivery_Date\n0,1997-11-21 10:07:40,2013-03-10 18:47:05\n", "difficulty": "small_select"}, {"table_id": "actor, musical", "query": "SELECT T1.Name AS \"actor Name\", T2.Year AS \"musical Year\" \n FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID ORDER BY T2.Year DESC", "table_name": "actor, musical", "query_description": "Show names of actors in descending order of the year their musical is awarded.", "results_description": ["The actor Ray Meagher played in a musical in 1986.", "Ray Meagher was awarded in 1986 for his musical", "The actor named Ray Meagher played in a musical in 1986."], "result": ",actor Name,musical Year\n0,Ray Meagher,1986\n", "difficulty": "join"}, {"table_id": "entrepreneur", "query": "SELECT AVG(Money_Requested) AS \"average Money_Requested\" \n FROM entrepreneur", "table_name": "entrepreneur", "query_description": "What is the average money requested by all entrepreneurs?", "results_description": ["The average money requested by all entrepreneurs is 93166.66666666667.", "The average money requested is 93166.66666666667.", "The average money requested is 93166.66666666667."], "result": ",average Money_Requested\n0,93166.66666666667\n", "difficulty": "aggregate"}, {"table_id": "Apartment_Buildings", "query": "SELECT building_short_name, building_manager \n FROM Apartment_Buildings \n WHERE building_manager = 'Emma'", "table_name": "Apartment_Buildings", "query_description": "Which buildings does \"Emma\" manage? Give me the short names of the buildings.", "results_description": ["Emma is the manager of the building Normandie Court.", "Emma manages the Normandie Court building", "Emma is the manager of the building Normandie Court."], "result": ",building_manager,building_short_name\n0,Emma,Normandie Court\n", "difficulty": "small_select"}, {"table_id": "tryout", "query": "SELECT pPos \n FROM tryout \n GROUP BY pPos ORDER BY COUNT(*) DESC", "table_name": "tryout", "query_description": "What was the most popular position at tryouts?", "results_description": ["The most popular position was goalie.", "The most popular position was goalie.", "The pPos is goalie."], "result": ",pPos\n0,goalie\n", "difficulty": "aggregate_group_by"}, {"table_id": "club", "query": "SELECT clublocation, clubname \n FROM club \n WHERE clubname = 'Hopkins Student Enterprises'", "table_name": "club", "query_description": "Tell me the location of the club \"Hopkins Student Enterprises\".", "results_description": ["The club Hopkins Student Enterprises is located in AKW.", "The club named Hopkins Student Enterprises is located in AKW.", "The location of the club Hopkins Student Enterprises is AKW"], "result": ",ClubName,ClubLocation\n0,Hopkins Student Enterprises,AKW\n", "difficulty": "small_select"}, {"table_id": "Flight", "query": "SELECT flno, origin \n FROM Flight \n WHERE origin = 'Los Angeles'", "table_name": "Flight", "query_description": "Show all flight number from Los Angeles.", "results_description": ["The flight number 99 originates from Los Angeles.", "The flight number 99 is from Los Angeles", "Flight 99 has origin from Los Angeles."], "result": ",flno,origin\n0,99,Los Angeles\n", "difficulty": "small_select"}, {"table_id": "DEPARTMENT", "query": "SELECT DPhone, Room \n FROM DEPARTMENT \n WHERE Room = 268", "table_name": "DEPARTMENT", "query_description": "Give the phones for departments in room 268.", "results_description": ["The phone number of room 268 is 7117.", "The phone for departments in room 268 is 7117", "Room 268 has phone number 7117."], "result": ",Room,DPhone\n0,268,7117\n", "difficulty": "small_select"}, {"table_id": "ship", "query": "SELECT COUNT(*) AS \"count of ship\" \n FROM ship", "table_name": "ship", "query_description": "How many ships are there?", "results_description": ["There are 8 ships", "There are 8 ships.", "There are 8 ships"], "result": ",count of ship\n0,8\n", "difficulty": "aggregate"}, {"table_id": "entrepreneur", "query": "SELECT Investor, COUNT(*) AS \"count of entrepreneur\" \n FROM entrepreneur \n GROUP BY Investor", "table_name": "entrepreneur", "query_description": "How many entrepreneurs correspond to each investor?", "results_description": ["Doug Richard invests in one entrepreneur.", "1 entepreneur correspond to investor Doug Richard", "The investor Doug Richard has 1 entrepreneur."], "result": ",Investor,count of entrepreneur\n0,Doug Richard,1\n", "difficulty": "aggregate_group_by"}, {"table_id": "dorm, has_amenity, dorm_amenity, lives_in, student", "query": "SELECT T3.amenity_name AS \"dorm_amenity amenity_name\", T5.lname AS \"student lname\" \n FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid JOIN lives_in AS T4 ON T4.dormid = T1.dormid JOIN student AS T5 ON T5.stuid = T4.stuid \n WHERE T5.lname = 'Smith'", "table_name": "dorm, has_amenity, dorm_amenity, lives_in, student", "query_description": "Find the name of amenities of the dorm where the student with last name Smith is living in.", "results_description": ["The student with last name Smith is living in the dorm \"TV Lounge\".", "The dorm in which Smith lives has a TV Lounge", "The student named Smith has a dorm with the TV Lounge amenity."], "result": ",student lname,dorm_amenity amenity_name\n0,Smith,TV Lounge\n", "difficulty": "join"}, {"table_id": "Students", "query": "SELECT login_name, family_name \n FROM Students \n WHERE family_name = 'Ward'", "table_name": "Students", "query_description": "What are the login names of the students with family name \"Ward\"?", "results_description": ["The student with family name \"Ward\" has login name \"annamae.hoppe\"", "The student with the login name annamae.hoppe has the family name Ward.", "The login names of the Ward family are annamae.hoppe"], "result": ",login_name,family_name\n0,annamae.hoppe,Ward\n", "difficulty": "small_select"}, {"table_id": "player_coach, coach, player", "query": "SELECT T3.Player_name AS \"player Player_name\", T2.coach_name AS \"coach coach_name\", T3.Votes AS \"player Votes\" \n FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID ORDER BY T3.Votes DESC", "table_name": "player_coach, coach, player", "query_description": "Show the names of players and names of their coaches in descending order of the votes of players.", "results_description": ["Player \"Ross Eadie\" with coach \"Robert Chen\" has 12093 votes.", "The player Ross Eadie is coached by Robert Chen and has 12093 votes.", "The player Ross Eadie is coached by Robert Chen and got 12093 votes."], "result": ",player Votes,coach coach_name,player Player_name\n0,12093,Robert Chen,Ross Eadie\n", "difficulty": "join"}, {"table_id": "university", "query": "SELECT SUM(enrollment) AS \"sum of enrollment\", MIN(enrollment) AS \"minimum enrollment\" \n FROM university", "table_name": "university", "query_description": "What is the total and minimum enrollment of all schools?", "results_description": ["The total and minimum enrollment of all schools are 121127 and 2100, respectively.", "The sum of enrollments of schools is 121127 and the minimum number of enrollments of schools is 2100.", "The total enrollment is 121127 while the minimum enrollment is 2100."], "result": ",sum of enrollment,minimum enrollment\n0,121127.0,2100.0\n", "difficulty": "aggregate"}, {"table_id": "Faculty", "query": "SELECT Fname, Lname, phone, Sex \n FROM Faculty \n WHERE Sex = 'F'", "table_name": "Faculty", "query_description": "What are the first name, last name, and phone number of all the female faculty members?", "results_description": ["The phone of Stacey Jones is 3550", "The first name of the female faculty member is Stacey, the last name is Jones and the phone number is 3550", "The faculty named Stacey Jones is female and her phone is 3550."], "result": ",Sex,Fname,Lname,Phone\n0,F,Stacey,Jones,3550\n", "difficulty": "large_select"}, {"table_id": "aircraft, airport_aircraft, airport", "query": "SELECT AVG(T3.Total_Passengers) AS \"average Total_Passengers\", T1.Aircraft AS \"aircraft Aircraft\" \n FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID \n WHERE T1.Aircraft = 'Robinson R-22'", "table_name": "aircraft, airport_aircraft, airport", "query_description": "What is the average total number of passengers for all airports that the aircraft \"Robinson R-22\" visits?", "results_description": ["The average number of passengers in airports that aircraft \"Robinson R-22\" visits, is 34205887", "The aircraft Robinson R-22 had 34205887 average total passengers.", "The average total number of passengers for all airports that the aircraft \"Robinson R-22\" visits is 34205887"], "result": ",aircraft Aircraft,average Total_Passengers\n0,Robinson R-22,34205887.0\n", "difficulty": "join_aggregate"}, {"table_id": "orders, shipments", "query": "SELECT T1.date_order_placed AS \"orders date_order_placed\", T2.shipment_tracking_number AS \"shipments shipment_tracking_number\" \n FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id \n WHERE T2.shipment_tracking_number = 3452", "table_name": "orders, shipments", "query_description": "When was the order placed whose shipment tracking number is 3452? Give me the date.", "results_description": ["The order placed in 2010-06-08 02:20:49 has the tracking number 3452.", "The shipment with tracking number 3452 was placed on 2010-06-08 02:20:49", "The order placed in 2010-06-08 02:20:49 has shipment tracking number 3452."], "result": ",orders date_order_placed,shipments shipment_tracking_number\n0,2010-06-08 02:20:49,3452\n", "difficulty": "join"}, {"table_id": "Financial_transactions", "query": "SELECT COUNT(*) AS \"count of Financial_transactions\" \n FROM Financial_transactions", "table_name": "Financial_transactions", "query_description": "How many transactions do we have?", "results_description": ["We have 15 transactions.", "There were 15 financial transactions.", "There are 15 financial transactions."], "result": ",count of Financial_transactions\n0,15\n", "difficulty": "aggregate"}, {"table_id": "address", "query": "SELECT COUNT(*) AS \"count of address\", district \n FROM address \n WHERE district = 'California'", "table_name": "address", "query_description": "Count the number of addressed in the California district.", "results_description": ["In the district of California there are 9 addresses.", "The district of California has 9 addresses.", "The district of California has 9 addresses."], "result": ",district,count of address\n0,California,9\n", "difficulty": "aggregate"}, {"table_id": "catalog_contents", "query": "SELECT AVG(price_in_euros) AS \"average price_in_euros\", MIN(price_in_euros) AS \"minimum price_in_euros\" \n FROM catalog_contents", "table_name": "catalog_contents", "query_description": "Give me the average and minimum price (in Euro) of the products.", "results_description": ["The average price of the products is 492.8633333333334 and the minimum price is 159.84.", "The average price in euros is 492.8633333333334 and the minimum price in euros is 159.84.", "The average price in euros is 492.8633333333334 and the minimum price is 159.84."], "result": ",average price_in_euros,minimum price_in_euros\n0,492.8633333333334,159.84\n", "difficulty": "aggregate"}, {"table_id": "film", "query": "SELECT title, directed_by \n FROM film", "table_name": "film", "query_description": "Show the title and director for all films.", "results_description": ["The film with title The Case of the Mystery Weekend is directed by Bill Schreiner.", "The film titled The Case of the Mystery Weekend was directed by Bill Schreiner", "The movie titled The Case of the Mystery Weekend was directed by Bill Schreiner."], "result": ",Title,Directed_by\n0,The Case of the Mystery Weekend,Bill Schreiner\n", "difficulty": "small_select"}, {"table_id": "employees", "query": "SELECT address, last_name, first_name \n FROM employees \n WHERE first_name = 'Nancy' AND last_name = 'Edwards'", "table_name": "employees", "query_description": "What is Nancy Edwards's address?", "results_description": ["Nancy Edwards's address is 825 8 Ave SW", "The employee Nancy Edwards lives in 825 8 Ave SW.", "The employee named Edwards Nancy lives in 825 8 Ave SW."], "result": ",address,last_name,first_name\n0,825 8 Ave SW,Edwards,Nancy\n", "difficulty": "small_select"}, {"table_id": "rent_arrears", "query": "SELECT COUNT(*) AS \"count of rent_arrears\" \n FROM rent_arrears", "table_name": "rent_arrears", "query_description": "How many council taxes are collected for renting arrears ?", "results_description": ["4 collected taxes for renting arrears", "4 council taxes are collected for renting arrears.", "The count of rent arrears is 4."], "result": ",count of rent_arrears\n0,4\n", "difficulty": "aggregate"}, {"table_id": "affected_region, region, storm", "query": "SELECT T2.region_name AS \"region region_name\", T3.number_deaths AS \"storm number_deaths\" \n FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id \n WHERE T3.number_deaths >= 10", "table_name": "affected_region, region, storm", "query_description": "What are the region names affected by the storm with a number of deaths of least 10?", "results_description": ["Algeria has 52 deaths caused by the storm", "There were 52 storm deaths in the region of Algeria.", "The are 2 deaths from storm in the region of Algeria."], "result": ",region region_name,storm number_deaths\n0,Algeria,52\n", "difficulty": "join"}, {"table_id": "Restaurant_Type", "query": "SELECT ResTypeName \n FROM Restaurant_Type", "table_name": "Restaurant_Type", "query_description": "List all restaurant types.", "results_description": ["Sandwich is a type of restaurant.", "The restaurant is of type sandwich.", "The restaurant type is Sandwich."], "result": ",ResTypeName\n0,Sandwich\n", "difficulty": "small_select"}, {"table_id": "addresses", "query": "SELECT state_province_county, COUNT(*) AS \"count of addresses\" \n FROM addresses \n GROUP BY state_province_county", "table_name": "addresses", "query_description": "Show each state and the number of addresses in each state.", "results_description": ["There is 1 address in the Colorado county", "There is 1 address in the Colorado county", "There is 1 address in the state of Colorado."], "result": ",count of addresses,state_province_county\n0,1,Colorado\n", "difficulty": "aggregate_group_by"}, {"table_id": "channel", "query": "SELECT name, OWNER \n FROM channel \n WHERE OWNER <> 'CCTV'", "table_name": "channel", "query_description": "Which channels are not owned by CCTV? Give me the channel names.", "results_description": ["The channel Hunan Satellite TV is owned by HBS.", "The channel Hunan Satellite TV is owned by HBS.", "The channel with name Hunan Satellite TV whose owner is HBS"], "result": ",Name,Owner\n0,Hunan Satellite TV,HBS\n", "difficulty": "small_select"}, {"table_id": "country", "query": "SELECT Country_name, Capital \n FROM country", "table_name": "country", "query_description": "Show the country name and capital of all countries.", "results_description": ["The capital of Indonesia is Jakarta", "The capital of Indonesia is Jakarta.", "The capital of Indonesia is Jakarta."], "result": ",Capital,Country_name\n0,Jakarta,Indonesia\n", "difficulty": "small_select"}, {"table_id": "Student", "query": "SELECT Fname, Lname, Major, Age, Sex \n FROM Student \n WHERE Age > 18 AND Major <> 600 AND Sex = 'F'", "table_name": "Student", "query_description": "List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.", "results_description": ["The student Lisa Cheng is a 21 year old female that majors in 550.", "The first name and last name of the female student that is older than 18 and is not majoring in 600 is Lisa Cheng, whose age is 21", "Lisa Cheng is a female 21 year old student and she majors in 550."], "result": ",Age,Sex,Fname,LName,Major\n0,21,F,Lisa,Cheng,550\n", "difficulty": "small_select"}, {"table_id": "schedule, film", "query": "SELECT T2.title AS \"film title\", MAX(T1.price) AS \"maximum price\", T1.film_id AS \"schedule film_id\" \n FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id \n GROUP BY T1.film_id", "table_name": "schedule, film", "query_description": "What are the title and maximum price of each film?", "results_description": ["Film with id 1, is titled \"The Case of the Mystery Weekend\" and has a maximum price of 15.99", "The film The Case of the Mystery Weekend had a maximum price of 15.99 and the id 1.", "The film The Case of the Mystery Weekend had a maximum price of 15.99 and the id 1."], "result": ",film title,maximum price,schedule film_id\n0,The Case of the Mystery Weekend,15.99,1\n", "difficulty": "join_aggregate"}, {"table_id": "customers", "query": "SELECT COUNT(*) AS \"count of customers\" \n FROM customers", "table_name": "customers", "query_description": "How many customers are there?", "results_description": ["There are 8 customers", "The number of customers is 8", "There are 8 customers in total."], "result": ",count of customers\n0,8\n", "difficulty": "aggregate"}, {"table_id": "university", "query": "SELECT MAX(Enrollment) AS \"maximum Enrollment\" \n FROM university", "table_name": "university", "query_description": "Return the maximum enrollment across all schools.", "results_description": ["The maximum enrollment across all schools is 56868.", "The maximum enrollment across all schools is 56868.", "The maximum enrollment is 56868."], "result": ",maximum Enrollment\n0,56868.0\n", "difficulty": "aggregate"}, {"table_id": "CLASS", "query": "SELECT COUNT(*) AS \"count of CLASS\", class_room \n FROM CLASS \n GROUP BY class_room \n HAVING COUNT(*) >= 2", "table_name": "CLASS", "query_description": "Find the number of classes offered for all class rooms that held at least 2 classes.", "results_description": ["Two classes are offered in classroom BUS252 ", "The class room BUS252 helds 2 classes.", "2 classes are offered in class room BUS252."], "result": ",CLASS_ROOM,count of CLASS\n0,BUS252,2\n", "difficulty": "aggregate_group_by"}, {"table_id": "artist", "query": "SELECT COUNT(*) AS \"count of artist\", gender \n FROM artist \n GROUP BY gender", "table_name": "artist", "query_description": "What is the number of artists for each gender?", "results_description": ["Three artists are females.", "The number of artist with gender Female is 3", "There are 3 Female artists"], "result": ",gender,count of artist\n0,Female,3\n", "difficulty": "aggregate_group_by"}, {"table_id": "dorm", "query": "SELECT dorm_name, gender, student_capacity \n FROM dorm \n WHERE student_capacity > 300 OR student_capacity < 100", "table_name": "dorm", "query_description": "Find the name and gender type of the dorms whose capacity is greater than 300 or less than 100.", "results_description": ["The Smith Hall dorm is a mixed dorm with a capacity of 85", "The dorm name is Smith Hall the gender is X and the student capacity is 85", "The Smith Hall dorm has student capacity 85 for X gender."], "result": ",gender,dorm_name,student_capacity\n0,X,Smith Hall,85\n", "difficulty": "small_select"}, {"table_id": "film", "query": "SELECT COUNT(*) AS \"count of film\" \n FROM film", "table_name": "film", "query_description": "How many film are there?", "results_description": ["The number of films is 13", "There are 13 films.", "The count of films is 13."], "result": ",count of film\n0,13\n", "difficulty": "aggregate"}, {"table_id": "CLASS", "query": "SELECT class_code, class_room \n FROM CLASS \n WHERE class_room = 'KLR209'", "table_name": "CLASS", "query_description": "What are the codes of all the courses that are located in room KLR209?", "results_description": ["The course with the code 10017 is located in the room KLR209.", "The class with code 10017 is in the room KLR209.", "The code of the course that is located in room KLR209 is 10017"], "result": ",CLASS_CODE,CLASS_ROOM\n0,10017,KLR209\n", "difficulty": "small_select"}, {"table_id": "architect", "query": "SELECT COUNT(*) AS \"count of architect\", gender \n FROM architect \n WHERE gender = 'female'", "table_name": "architect", "query_description": "How many architects are female?", "results_description": ["There is 1 female architect.", "1 architect is female.", "There is 1 female architect."], "result": ",gender,count of architect\n0,female,1\n", "difficulty": "aggregate"}, {"table_id": "country, roller_coaster", "query": "SELECT T1.Name AS \"country Name\", AVG(T2.Speed) AS \"average Speed\" \n FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID \n GROUP BY T1.Name", "table_name": "country, roller_coaster", "query_description": "Show the names of countries and the average speed of roller coasters from each country.", "results_description": ["The country of Austria has 58.666666666666664 average speed of roller coasters.", "The roller coasters in Austria have an average speed of 58.666666666666664", "The roller coaster in Austria has an average speed of 58.666666666666664."], "result": ",country Name,average Speed\n0,Austria,58.666666666666664\n", "difficulty": "join_aggregate"}, {"table_id": "genres, tracks, media_types", "query": "SELECT T2.name AS \"tracks name\", T3.name AS \"media_types name\", T1.name AS \"genres name\" \n FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id \n WHERE T1.name = 'Rock' AND T3.name = 'MPEG audio file'", "table_name": "genres, tracks, media_types", "query_description": "List the name of tracks belongs to genre Rock and whose media type is MPEG audio file.", "results_description": ["For Those About To Rock (We Salute You) is MPEG audio file, whose genre is rock", "The track named For Those About To Rock (We Salute You) is in he Rock genre and its media type is MPEG audio file.", "The track For Those About To Rock (We Salute You) is Rock with media type MPEG audio file."], "result": ",genres name,tracks name,media_types name\n0,Rock,For Those About To Rock (We Salute You),MPEG audio file\n", "difficulty": "join"}, {"table_id": "purchase, branch", "query": "SELECT SUM(total_pounds) AS \"sum of total_pounds\", T2.city AS \"branch city\", T1.year AS \"purchase year\" \n FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id \n WHERE T2.city = 'London' AND T1.year = 2018", "table_name": "purchase, branch", "query_description": "What is the sum of total pounds of purchase in year 2018 for all branches in London?", "results_description": ["3531.5899999999997 is the total pounds of purchase in year 2018 for all branches in London.", "For the branch city of London the total amount made in purchases was 3531.5899999999997 in the year 2018.", "The branch city of London had a total of 3531.5899999999997 pounds of purchaces in 2018."], "result": ",branch city,purchase year,sum of total_pounds\n0,London,2018,3531.5899999999997\n", "difficulty": "join_aggregate"}, {"table_id": "products, ref_colors", "query": "SELECT T1.product_name AS \"products product_name\", T2.color_description AS \"ref_colors color_description\" \n FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code = T2.color_code \n WHERE T2.color_description = 'yellow'", "table_name": "products, ref_colors", "query_description": "Give the name of the products that have a color description 'yellow'.", "results_description": ["The product named \"borage\" is yellow", "The product named borage has the color description yellow.", "The product named borage has the color description yellow."], "result": ",products product_name,ref_colors color_description\n0,borage,yellow\n", "difficulty": "join"}, {"table_id": "instructor", "query": "SELECT dept_name, AVG(salary) AS \"average salary\" \n FROM instructor \n GROUP BY dept_name \n HAVING AVG(salary) > 42000", "table_name": "instructor", "query_description": "Find the names and average salaries of all departments whose average salary is greater than 42000.", "results_description": ["The accounting department has an average salary of 48716.5925", "The Accounting department has an average salary of 48716.5925.", "The department name is Accounting and the average salary is 48716.5925"], "result": ",dept_name,average salary\n0,Accounting,48716.5925\n", "difficulty": "aggregate_group_by"}, {"table_id": "artist", "query": "SELECT COUNT(*) AS \"count of artist\", country \n FROM artist \n WHERE country = 'Bangladesh'", "table_name": "artist", "query_description": "How many artists are from Bangladesh?", "results_description": ["The number of artists that are from the country Bangladesh is 2", "There are 2 artists from Bangladesh", "There are 2 artists from Bangladesh."], "result": ",country,count of artist\n0,Bangladesh,2\n", "difficulty": "aggregate"}, {"table_id": "dorm", "query": "SELECT SUM(student_capacity) AS \"sum of student_capacity\" \n FROM dorm", "table_name": "dorm", "query_description": "What is the total student capacity of all dorms?", "results_description": ["The total student capacity is 1380", "The total student capacity of all dorms is 1380", "The total student capacity is 1380."], "result": ",sum of student_capacity\n0,1380\n", "difficulty": "aggregate"}, {"table_id": "CUSTOMER, INVOICE", "query": "SELECT T2.InvoiceDate AS \"INVOICE InvoiceDate\", T1.FirstName AS \"CUSTOMER FirstName\", LastName \n FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId \n WHERE T1.FirstName = 'Astrid' AND LastName = 'Gruber'", "table_name": "CUSTOMER, INVOICE", "query_description": "Find all invoice dates corresponding to customers with first name Astrid and last name Gruber.", "results_description": ["Customer Astrid Gruber has an invoice with the date 2009-12-08", "The customer Gruber Astrid had an invoice in 2009-12-08 00:00:00.", "The invoice date corresponding to customers with first name Astrid and last name Gruber is 2009-12-08 00:00:00"], "result": ",LastName,CUSTOMER FirstName,INVOICE InvoiceDate\n0,Gruber,Astrid,2009-12-08 00:00:00\n", "difficulty": "join"}, {"table_id": "accounts, checking, savings", "query": "SELECT T2.balance AS \"checking balance\", T3.balance AS \"savings balance\", T1.name AS \"accounts name\" \n FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid \n WHERE T1.name = 'Brown'", "table_name": "accounts, checking, savings", "query_description": "What are the checking and savings balances in accounts belonging to Brown?", "results_description": ["Brown's account has 10000 checking balance and 200000 saving balance.", "The account named Brown has a savings balance of 200000 and a checking balance of 10000.", "The checking balance is 10000 and the savings balance is 200000 in accounts belonging to Brown"], "result": ",accounts name,savings balance,checking balance\n0,Brown,200000.0,10000.0\n", "difficulty": "join"}, {"table_id": "Projects, Documents", "query": "SELECT T1.project_details AS \"Projects project_details\", T2.document_name AS \"Documents document_name\" \n FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id \n WHERE T2.document_name = 'King Book'", "table_name": "Projects, Documents", "query_description": "Give the details of the project with the document name 'King Book'.", "results_description": ["The details of the project with the document name King Book are Human Resource project", "The document name King Book has a project with details Human Resource project.", "The project with details Human Resource project has a document with name King Book."], "result": ",Documents document_name,Projects project_details\n0,King Book,Human Resource project\n", "difficulty": "join"}, {"table_id": "Movie, Movie", "query": "SELECT T1.title AS \"Movie title\", T1.director AS \"Movie director\" \n FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director \n WHERE T1.title <> T2.title ORDER BY T1.director, T1.title", "table_name": "Movie, Movie", "query_description": "For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title.", "results_description": ["Movie Avatar is directed by James Cameron.", "The movie \"Avatar: was directed by James Cameron", "The movie with title Avatar was directed by James Cameron."], "result": ",Movie title,Movie director\n0,Avatar,James Cameron\n", "difficulty": "join"}, {"table_id": "projects", "query": "SELECT SUM(hours) AS \"sum of hours\" \n FROM projects", "table_name": "projects", "query_description": "What is the total number of hours for all projects?", "results_description": ["The total amount of hours is 20183", "The hours of all projects sum up to 20183", "The sum of hours is 20183."], "result": ",sum of hours\n0,20183\n", "difficulty": "aggregate"}, {"table_id": "country", "query": "SELECT Name, Languages \n FROM country \n WHERE Languages <> 'German'", "table_name": "country", "query_description": "List the names of countries whose language is not \"German\".", "results_description": ["People in Finland speak Finnish and Swedish.", "Finland has Finnish and Swedish as official languages", "Finland has the languages Finnish Swedish."], "result": ",Name,Languages\n0,Finland,Finnish Swedish\n", "difficulty": "small_select"}, {"table_id": "Person", "query": "SELECT COUNT(*) AS \"count of Person\", age, job \n FROM Person \n WHERE age > 30 AND job = 'engineer'", "table_name": "Person", "query_description": "HOw many engineers are older than 30?", "results_description": ["One engineer is 35 years old.", "There is one engineer who is 35 years old", "There is 1 engineer with age 35."], "result": ",age,job,count of Person\n0,35,engineer,1\n", "difficulty": "aggregate"}, {"table_id": "Student", "query": "SELECT Fname, Lname, Age, Sex \n FROM Student \n WHERE Sex = 'F'", "table_name": "Student", "query_description": "What are the full names and ages for all female students whose sex is F?", "results_description": ["The student with first name Linda and last name Smith is a female and 18 years old.", "Linda Smith is a female student and 18 years old.", "Linda Smith is 18 years old with sex F."], "result": ",Age,Sex,Fname,LName\n0,18,F,Linda,Smith\n", "difficulty": "large_select"}, {"table_id": "accounts, checking, savings", "query": "SELECT T2.balance AS \"checking balance\", T3.balance AS \"savings balance\", T1.name AS \"accounts name\" \n FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid \n WHERE T1.name = 'Brown'", "table_name": "accounts, checking, savings", "query_description": "Find the checking balance and saving balance in the Brown\u2019s account.", "results_description": ["Brown's account has 10000 checking balance and 200000 saving balance.", "The account of Brown has a checking balance of 10000 and a savings balance of 200000", "The Brown's account has a savings balance of 200000 and a checking balance of 10000"], "result": ",accounts name,savings balance,checking balance\n0,Brown,200000.0,10000.0\n", "difficulty": "join"}, {"table_id": "book_club", "query": "SELECT book_title, author_or_editor, YEAR \n FROM book_club \n WHERE YEAR > 1989", "table_name": "book_club", "query_description": "show the titles, and authors or editors for all books made after the year 1989.", "results_description": ["The book titled \"Somewhere in the Night\" was made in 1990 by Jeffrey N. McMahan", "Jeffrey N. McMahan wrote the book titled Somewhere in the Night in 1990", "The book Somewhere in the Night, written by Jeffrey N. McMahan, was published in 1990."], "result": ",Year,Book_Title,Author_or_Editor\n0,1990,Somewhere in the Night,Jeffrey N. McMahan\n", "difficulty": "small_select"}, {"table_id": "Courses, Subjects", "query": "SELECT T1.course_name AS \"Courses course_name\", T1.course_description AS \"Courses course_description\", T2.subject_name AS \"Subjects subject_name\" \n FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id \n WHERE T2.subject_name = 'Computer Science'", "table_name": "Courses, Subjects", "query_description": "What are the names and descriptions of the all courses under the \"Computer Science\" subject?", "results_description": ["The course \"database\" under the \"Computer Science\" subject has the description \"database\".", "The database course, which is under the Computer Science subject, has the descriptio \"database\"", "The course named database is under the subject Computer Science and its description is \"database\"."], "result": ",Courses course_name,Subjects subject_name,Courses course_description\n0,database,Computer Science,database\n", "difficulty": "join"}, {"table_id": "Students", "query": "SELECT COUNT(*) AS \"count of Students\", personal_name \n FROM Students \n WHERE personal_name LIKE '%son%'", "table_name": "Students", "query_description": "How many students have personal names that contain the word \"son\"?", "results_description": ["There are two students named Wilson", "There are 2 students with the word \"son\" in their personal names.", "2 students have personal names of Wilson that contain the word \"son\""], "result": ",personal_name,count of Students\n0,Wilson,2\n", "difficulty": "aggregate"}, {"table_id": "Student", "query": "SELECT Sex, Lname, Fname \n FROM Student \n WHERE Fname = 'Linda' AND Lname = 'Smith'", "table_name": "Student", "query_description": "What is the gender of the student Linda Smith?", "results_description": ["Student Linda Smith is female", "The student Linda Smith is a female.", "The sex of Linda Smith is F"], "result": ",Sex,Fname,LName\n0,F,Linda,Smith\n", "difficulty": "small_select"}, {"table_id": "PRODUCTS", "query": "SELECT Product_Name \n FROM PRODUCTS \n GROUP BY Product_Name \n HAVING AVG(Product_Price) < 1000000", "table_name": "PRODUCTS", "query_description": "What are the product names with average product price smaller than 1000000?", "results_description": ["The product name is dinning", "Dinning products have an average product price smaller than 1000000", "The product name is dinning."], "result": ",Product_Name\n0,dinning\n", "difficulty": "aggregate_group_by"}, {"table_id": "Faculty", "query": "SELECT rank \n FROM Faculty \n GROUP BY rank ORDER BY COUNT(*) ASC", "table_name": "Faculty", "query_description": "Find the faculty rank that has the least members.", "results_description": ["The faculty rank that has the least members is that of Associate Professor", "AssocProf is the rank with the least members.", "The faculty rank AssocProf has the least members"], "result": ",Rank\n0,AssocProf\n", "difficulty": "aggregate_group_by"}, {"table_id": "club_rank", "query": "SELECT COUNT(*) AS \"count of club_rank\", Total \n FROM club_rank \n WHERE Total < 10", "table_name": "club_rank", "query_description": "What is the total number of clubs that have less than 10 medals in total?", "results_description": ["There are two clubs that have 6 medals.", "There are 2 clubs in total that have 6 medals in total", "Thereare 2 clubs with less than 10 medals in total."], "result": ",Total,count of club_rank\n0,6.0,2.0\n", "difficulty": "aggregate"}, {"table_id": "salary, player", "query": "SELECT SUM(T1.salary) AS \"sum of salary\", T2.name_last AS \"player name_last\", T1.year AS \"salary year\", T2.name_first AS \"player name_first\" \n FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id \n WHERE T2.name_first = 'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990", "table_name": "salary, player", "query_description": "Compute the total salary that the player with first name Len and last name Barker received between 1985 to 1990.", "results_description": ["The player Len Barker received a total salary of 3612500.", "The player Len Barker received a salary of 3612500 in 1985", "The player named Barker Len had a salary of 3612500 in the year 1985."], "result": ",salary year,sum of salary,player name_last,player name_first\n0,1985,3612500,Barker,Len\n", "difficulty": "join_aggregate"}, {"table_id": "people, perpetrator", "query": "SELECT T1.Name AS \"people Name\" \n FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID", "table_name": "people, perpetrator", "query_description": "What are the names of perpetrators?", "results_description": ["The name of the perpetrator is Ron Baxter", "The perpetrator is named Ron Baxter.", "The name of perpetrator is Ron Baxter"], "result": ",people Name\n0,Ron Baxter\n", "difficulty": "join"}, {"table_id": "GENRE, TRACK", "query": "SELECT AVG(T2.UnitPrice) AS \"average UnitPrice\", T1.Name AS \"GENRE Name\" \n FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId \n WHERE T1.Name = 'Rock'", "table_name": "GENRE, TRACK", "query_description": "What is the average unit price of rock tracks?", "results_description": ["The genre of rock has an average unit price of 0.9900000000000079.", "The average unit price of rock tracks is 0.9900000000000079", "The genre named Rock has average unit price of 0.9900000000000079."], "result": ",GENRE Name,average UnitPrice\n0,Rock,0.9900000000000079\n", "difficulty": "join_aggregate"}, {"table_id": "roller_coaster", "query": "SELECT AVG(Speed) AS \"average Speed\" \n FROM roller_coaster", "table_name": "roller_coaster", "query_description": "What is the average speed of roller coasters?", "results_description": ["The average speed of roller coasters is 56.31666666666666", "The average roller coaster speed is 56.31666666666666.", "The average speed of the roller coaster is 56.31666666666666."], "result": ",average Speed\n0,56.31666666666666\n", "difficulty": "aggregate"}, {"table_id": "pilot", "query": "SELECT Name, Age \n FROM pilot \n WHERE Age >= 25", "table_name": "pilot", "query_description": "what is the name of every pilot who is at least 25 years old?", "results_description": ["The pilot Ayana Spencer is 25 years old.", "Ayana Spencer is 25 years old", "The pilot named Ayana Spencer is 25 years old."], "result": ",Age,Name\n0,25,Ayana Spencer\n", "difficulty": "small_select"}, {"table_id": "browser", "query": "SELECT MAX(market_share) AS \"maximum market_share\", MIN(market_share) AS \"minimum market_share\", AVG(market_share) AS \"average market_share\" \n FROM browser", "table_name": "browser", "query_description": "What is the maximum, minimum and average market share of the listed browsers?", "results_description": ["The average market share is 14.2025, the maximum market share is 28.96 and the minimum market place is 1.2.", "The maximum market share is 28.96, the minimum market share is 1.2 and the average market share is 14.2025 of the listed browsers", "The average market share is 14.2025, the maximum is 28.96 and the minimum is 1.2."], "result": ",average market_share,maximum market_share,minimum market_share\n0,14.2025,28.96,1.2\n", "difficulty": "aggregate"}, {"table_id": "manufacturers", "query": "SELECT COUNT(*) AS \"count of manufacturers\", founder \n FROM manufacturers \n WHERE founder = 'Andy'", "table_name": "manufacturers", "query_description": "How many companies were created by Andy?", "results_description": ["There is 1 company created by Andy.", "Andy has manufactured 1 company", "1 company was created by Andy."], "result": ",Founder,count of manufacturers\n0,Andy,1\n", "difficulty": "aggregate"}, {"table_id": "manager", "query": "SELECT AVG(Age) AS \"average Age\" \n FROM manager", "table_name": "manager", "query_description": "What is the average age for all managers?", "results_description": ["The average age of managers is 49.14", "The average age is 49.142857142857146.", "The average age is 49.142857142857146."], "result": ",average Age\n0,49.142857142857146\n", "difficulty": "aggregate"}, {"table_id": "Statements", "query": "SELECT COUNT(*) AS \"count of Statements\" \n FROM Statements", "table_name": "Statements", "query_description": "How many statements do we have?", "results_description": ["The number of statements is 2", "We have 2 statements", "There are 2 statements"], "result": ",count of Statements\n0,2\n", "difficulty": "aggregate"}, {"table_id": "Rating, Movie", "query": "SELECT T2.title AS \"Movie title\", AVG(T1.stars) AS \"average stars\", T1.mID AS \"Rating mID\" \n FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID \n GROUP BY T1.mID ORDER BY AVG(T1.stars)", "table_name": "Rating, Movie", "query_description": "What are the movie titles and average rating of the movies with the lowest average rating?", "results_description": ["The titles of the movies are The Sound of Music with mID 103 averaging 2.5 stars", "The movie titled The Sound of Music with rating mID 103 has a rating of 2.5 stars", "The movie titled The Sound of Music with id 103 had 2.5 average stars."], "result": ",Rating mID,Movie title,average stars\n0,103,The Sound of Music,2.5\n", "difficulty": "join_aggregate"}, {"table_id": "Ref_Service_Types, Services", "query": "SELECT T1.Service_Type_Description AS \"Ref_Service_Types Service_Type_Description\", T2.Product_Price AS \"Services Product_Price\" \n FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code \n WHERE T2.Product_Price > 100", "table_name": "Ref_Service_Types, Services", "query_description": "Give me the descriptions of the service types that cost more than 100.", "results_description": ["The service 'provide photo service' costs 58932775.8822.", "The service with description provide photo service has a price of 58932775.8822.", "The service with description provide photo service has 58932775.8822 product price."], "result": ",Services Product_Price,Ref_Service_Types Service_Type_Description\n0,58932775.8822,provide photo service\n", "difficulty": "join"}, {"table_id": "Reservations, Rooms", "query": "SELECT T1.firstname AS \"Reservations firstname\", T1.lastname AS \"Reservations lastname\" \n FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId \n WHERE T1.Rate - T2.basePrice > 0", "table_name": "Reservations, Rooms", "query_description": "Find the first and last names of people who payed more than the rooms' base prices.", "results_description": ["Markita Caristo payed more than the room's base price", "MARKITA CARISTO payed more than the rooms' base prices", "The reservation is made by MARKITA CARISTO."], "result": ",Reservations lastname,Reservations firstname\n0,CARISTO,MARKITA\n", "difficulty": "join"}, {"table_id": "airport", "query": "SELECT International_Passengers, Domestic_Passengers, Airport_Name \n FROM airport \n WHERE Airport_Name = 'London Heathrow'", "table_name": "airport", "query_description": "How many international and domestic passengers are there in the airport London Heathrow?", "results_description": ["There are 5562516 domestic passengers and 61344438 international passengers in the airport London Heathrow.", "There are 5562516 domestic passengers and 61344438 international passengers in the airport London Heathrow", "The London Heathrow airport has 5562516 domestic passengers and 61344438 international passengers."], "result": ",Airport_Name,Domestic_Passengers,International_Passengers\n0,London Heathrow,5562516.0,61344438.0\n", "difficulty": "small_select"}, {"table_id": "park", "query": "SELECT COUNT(*) AS \"count of park\", city \n FROM park \n WHERE city = 'Atlanta'", "table_name": "park", "query_description": "How many parks are there in Atlanta city?", "results_description": ["There are 2 parks in Atlanta city.", "In the city of Atlanta the number of parks is 2", "There are 2 parks in Atlanta"], "result": ",city,count of park\n0,Atlanta,2\n", "difficulty": "aggregate"}, {"table_id": "school_details", "query": "SELECT Nickname, Division \n FROM school_details \n WHERE Division <> 'Division 1'", "table_name": "school_details", "query_description": "What are the nicknames of schools whose division is not 1?", "results_description": ["The schools whose division is 3 has the Auks nickname", "Their nickname is Auks and they are in Division 3.", "The school with nickname Auks is in division Division 3."], "result": ",Division,Nickname\n0,Division 3,Auks\n", "difficulty": "small_select"}, {"table_id": "Marketing_Regions", "query": "SELECT Marketing_Region_Descriptrion, Marketing_Region_Name \n FROM Marketing_Regions \n WHERE Marketing_Region_Name = 'China'", "table_name": "Marketing_Regions", "query_description": "What is the description of the marketing region China?", "results_description": ["The marketing region of China has the description 'Our largest market'.", "The description of the marketing region China is Our largest market.", "The marketing region China has description Our largest market."], "result": ",Marketing_Region_Name,Marketing_Region_Descriptrion\n0,China,Our largest market\n", "difficulty": "small_select"}, {"table_id": "employees", "query": "SELECT address, last_name, first_name \n FROM employees \n WHERE first_name = 'Nancy' AND last_name = 'Edwards'", "table_name": "employees", "query_description": "What is the address of employee Nancy Edwards?", "results_description": ["Nancy Edwards' address is 825 8 Ave SW", "The employee Nancy Edwards lives in 825 8 Ave SW.", "Nancy Edwards's address is 825 8 Ave SW."], "result": ",address,last_name,first_name\n0,825 8 Ave SW,Edwards,Nancy\n", "difficulty": "small_select"}, {"table_id": "papers", "query": "SELECT title \n FROM papers \n WHERE title LIKE '%Database%'", "table_name": "papers", "query_description": "Which paper's title contains the word \"Database\"?", "results_description": ["The paper's title \"Making Standard ML a Practical Database Programming Language\" contains the word \"Database\".", "The paper with the title Making Standard ML a Practical Database Programming Language", "The paper titled Making Standard ML a Practical Database Programming Language contains the word \"Database\""], "result": ",title\n0,Making Standard ML a Practical Database Programming Language\n", "difficulty": "small_select"}, {"table_id": "club_rank", "query": "SELECT MAX(Silver) AS \"maximum Silver\", MIN(Silver) AS \"minimum Silver\" \n FROM club_rank", "table_name": "club_rank", "query_description": "What are the maximum and minimum number of silver medals for clubs.", "results_description": ["The club with the most silver medals has 11 of them, while the club with the least silver medals has 1", "The maximum is 11 and the minimum is 1 of silver medals for clubs", "The maximum Silver is 11 while the minimum is 1."], "result": ",maximum Silver,minimum Silver\n0,11.0,1.0\n", "difficulty": "aggregate"}, {"table_id": "SUBJECTS", "query": "SELECT subject_name \n FROM SUBJECTS", "table_name": "SUBJECTS", "query_description": "List all the subject names.", "results_description": ["One of the subjects is Computer Science", "There is the subject named Computer Science ", "The subject name is Computer Science."], "result": ",subject_name\n0,Computer Science\n", "difficulty": "small_select"}, {"table_id": "club, player", "query": "SELECT T1.name AS \"club name\", T2.Player_id AS \"player Player_id\" \n FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID", "table_name": "club, player", "query_description": "What are the names and players of all the clubs?", "results_description": ["The player with ID 1, plays at AIB", "The AIB has a player with id 1.", "The club name is AIB and the player id is 1"], "result": ",club name,player Player_id\n0,AIB,1\n", "difficulty": "join"}, {"table_id": "ship", "query": "SELECT built_year \n FROM ship \n GROUP BY built_year ORDER BY COUNT(*) DESC", "table_name": "ship", "query_description": "What is the year in which most ships were built?", "results_description": ["Most ships were built in 1997", "Most ships were built in 1997.", "Most ships were built on 1997"], "result": ",Built_Year\n0,1997.0\n", "difficulty": "aggregate_group_by"}, {"table_id": "aircraft", "query": "SELECT Description \n FROM aircraft", "table_name": "aircraft", "query_description": "What are the descriptions for the aircrafts?", "results_description": ["The description of the aircraft is \"light utility helicopter\".", "The description for the aircraft is Light utility helicopter", "The description is Light utility helicopter."], "result": ",Description\n0,Light utility helicopter\n", "difficulty": "small_select"}, {"table_id": "airports", "query": "SELECT name, city \n FROM airports \n WHERE city = 'Goroka'", "table_name": "airports", "query_description": "What are the names of the airports in the city of Goroka?", "results_description": ["The city of Goroka has an airport named Goroka Airport", "The city of Goroka has an airport named Goroka Airport.", "Goroka Airport is in the city of Goroka."], "result": ",city,name\n0,Goroka,Goroka Airport\n", "difficulty": "small_select"}, {"table_id": "customers, first_notification_of_loss, services", "query": "SELECT t1.customer_name AS \"customers customer_name\", t3.service_name AS \"services service_name\" \n FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id \n WHERE t3.service_name = 'Close a policy' OR t3.service_name = 'Upgrade a policy'", "table_name": "customers, first_notification_of_loss, services", "query_description": "Find the names of customers who have used either the service \"Close a policy\" or the service \"Upgrade a policy\".", "results_description": ["The customer Jay Chou used the service Upgrade a policy.", "The customer with name Jay Chou has used the service with name Upgrade a policy", "The service named Upgrade a policy was used by Jay Chou."], "result": ",services service_name,customers customer_name\n0,Upgrade a policy,Jay Chou\n", "difficulty": "join"}, {"table_id": "Customers", "query": "SELECT phone_number, email_address, amount_outstanding \n FROM Customers \n WHERE amount_outstanding > 2000", "table_name": "Customers", "query_description": "What are the phone numbers and email addresses of all customers who have an outstanding balance of more than 2000?", "results_description": ["The phone number +14(5)2351480248 belongs to the email address huel.jana@example.org and has an outstanding balance of 7256.", "The customer with the phone number +14(5)2351480248 and email huel.jana@example.org has an outstanding balance of 7256", "The customer with email huel.jana@example.org and phone number +14(5)2351480248 has an outstanding amount of 7256."], "result": ",phone_number,email_address,amount_outstanding\n0,+14(5)2351480248,huel.jana@example.org,7256.0\n", "difficulty": "small_select"}, {"table_id": "papers", "query": "SELECT title \n FROM papers \n WHERE title LIKE '%Database%'", "table_name": "papers", "query_description": "Which papers have the substring \"Database\" in their titles? Show the titles of the papers.", "results_description": ["The paper 'Making Standard ML a Practical Database Programming Language' contains the substring 'Database'.", "The titles of the papers which have the substring 'Database' in their titles are Making Standard ML a Practical Database Programming Language", "The paper titled Making Standard ML a Practical Database Programming Language has the substring \"Database\" in its title"], "result": ",title\n0,Making Standard ML a Practical Database Programming Language\n", "difficulty": "small_select"}, {"table_id": "perpetrator", "query": "SELECT Country, COUNT(*) AS \"count of perpetrator\" \n FROM perpetrator \n GROUP BY Country ORDER BY COUNT(*) DESC", "table_name": "perpetrator", "query_description": "What is the country that has the most perpetrators?", "results_description": ["China has two perpetrators.", "The country China has the most perpetrators, 2 in total.", "China has 2 perpetrators"], "result": ",Country,count of perpetrator\n0,China,2\n", "difficulty": "aggregate_group_by"}, {"table_id": "affected_region, region, storm", "query": "SELECT T2.region_name AS \"region region_name\", T3.number_deaths AS \"storm number_deaths\" \n FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id \n WHERE T3.number_deaths >= 10", "table_name": "affected_region, region, storm", "query_description": "Return the names of the regions affected by storms that had a death count of at least 10.", "results_description": ["Algeria had 52 deaths from the storm.", "In region of Algeria the number of deaths by storms was 52", "The number of storm deaths in the region of Algeria is 52."], "result": ",region region_name,storm number_deaths\n0,Algeria,52\n", "difficulty": "join"}, {"table_id": "Customer_Payments, Customers", "query": "SELECT SUM(T1.amount_payment) AS \"sum of amount_payment\", T2.last_name AS \"Customers last_name\", T2.first_name AS \"Customers first_name\" \n FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id \n WHERE T2.first_name = 'Carole' AND T2.last_name = 'Bernhard'", "table_name": "Customer_Payments, Customers", "query_description": "What is the total amount of moeny paid by the customer Carole Bernhard?", "results_description": ["The customer named Carole Bernhard has paid 9886.62 in total", "The customer Carole Bernhard paid the amount of 9886.62.", "The customer Carole Bernhard has paid 9886.62 in total"], "result": ",Customers last_name,Customers first_name,sum of amount_payment\n0,Bernhard,Carole,9886.62\n", "difficulty": "join_aggregate"}, {"table_id": "useracct, trust", "query": "SELECT T1.name AS \"useracct name\", AVG(trust) AS \"average trust\", T2.target_u_id AS \"trust target_u_id\" \n FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id \n GROUP BY T2.target_u_id", "table_name": "useracct, trust", "query_description": "Find each target user's name and average trust score.", "results_description": ["The average trust score of user Mark with id 2, is 4.66", "The user mark with target id 2 has an average trust of 4.666666666666667.", "The user account Mark has an average trust of 4.666666666666667 and a target id of 2."], "result": ",average trust,useracct name,trust target_u_id\n0,4.666666666666667,Mark,2\n", "difficulty": "join_aggregate"}, {"table_id": "people", "query": "SELECT COUNT(*) AS \"count of people\", age, is_male \n FROM people \n WHERE is_male = 'F' AND age > 30", "table_name": "people", "query_description": "How many female people are older than 30 in our record?", "results_description": ["There are 3 females who are 32 years old", "There are 3 people that are not male and they are 32 years old.", "There are 3 people who are female with age 32"], "result": ",Age,Is_Male,count of people\n0,32,F,3\n", "difficulty": "aggregate"}, {"table_id": "party", "query": "SELECT First_year, Last_year, Party_Theme \n FROM party \n WHERE Party_Theme = 'Spring' OR Party_Theme = 'Teqnology'", "table_name": "party", "query_description": "What are the first year and last year of the parties whose theme is \"Spring\" or \"Teqnology\"?", "results_description": ["The party with theme \"Spring\" was started in 2000 and lasted till 2001.", "The party with theme Spring has first year 2000 and last year 2001.", "A party with the theme Spring was first held in 2000 and its last year was 2001."], "result": ",Last_year,First_year,Party_Theme\n0,2001,2000,Spring\n", "difficulty": "small_select"}, {"table_id": "player", "query": "SELECT SUM(Points) AS \"sum of Points\" \n FROM player", "table_name": "player", "query_description": "Show total points of all players.", "results_description": ["The total points of all players are 566.", "There are 566 total points for all players", "The total points of all players is 566."], "result": ",sum of Points\n0,566.0\n", "difficulty": "aggregate"}, {"table_id": "volume", "query": "SELECT Song, Weeks_on_Top \n FROM volume \n WHERE Weeks_on_Top > 1", "table_name": "volume", "query_description": "Give the songs included in volumes that have more than 1 week on top.", "results_description": ["The song is called The Way and the number of weeks on top is 3", "The song The Way was on top for 3 weeks.", "The song The Way was 3 weeks on top."], "result": ",Song,Weeks_on_Top\n0, The Way,3.0\n", "difficulty": "small_select"}, {"table_id": "Customers_cards", "query": "SELECT COUNT(*) AS \"count of Customers_cards\" \n FROM Customers_cards", "table_name": "Customers_cards", "query_description": "Show the number of customer cards.", "results_description": ["The number of customer cards is 15", "There are 15 customer cards.", "There are 15 customer cards."], "result": ",count of Customers_cards\n0,15\n", "difficulty": "aggregate"}, {"table_id": "club, member_of_club, student", "query": "SELECT t3.lname AS \"student lname\", t1.clubname AS \"club clubname\" \n FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid \n WHERE t1.clubname = 'Bootup Baltimore'", "table_name": "club, member_of_club, student", "query_description": "Who are the members of the club named \"Bootup Baltimore\"? Give me their last names.", "results_description": ["Smith is member of the club \"Bootup Baltimore\".", "The last name of the member of the club named Bootup Baltimore is Smith", "The student with last name Smith is a member of the Bootup Baltimore club"], "result": ",club clubname,student lname\n0,Bootup Baltimore,Smith\n", "difficulty": "join"}, {"table_id": "station", "query": "SELECT name, LOCATION, number_of_platforms \n FROM station", "table_name": "station", "query_description": "Show the name, location, and number of platforms for all stations.", "results_description": ["Waterloo station in London has 19 platforms", "The station London Waterloo is located in London and has 19 platforms.", "London Waterloo station is located in London and has 19 platforms."], "result": ",Name,Location,Number_of_Platforms\n0,London Waterloo,London,19\n", "difficulty": "large_select"}, {"table_id": "ROLES", "query": "SELECT COUNT(*) AS \"count of ROLES\" \n FROM ROLES", "table_name": "ROLES", "query_description": "How many roles are there?", "results_description": ["There are 5 roles.", "There are 5 roles", "There are 5 roles."], "result": ",count of ROLES\n0,5\n", "difficulty": "aggregate"}, {"table_id": "Church", "query": "SELECT name, open_date, organized_by \n FROM Church", "table_name": "Church", "query_description": "Show the name, open date, and organizer for all churches.", "results_description": ["The Pure Church of Christ was organized by Wycam Clark in 1831", "The church name is Pure Church of Christ, the open date is 1831 and it is organized by Wycam Clark", "The church named Pure Church of Christ opened in 1831 and was organized by Wycam Clark"], "result": ",Name,Open_Date,Organized_by\n0,Pure Church of Christ,1831,Wycam Clark\n", "difficulty": "large_select"}, {"table_id": "Sportsinfo", "query": "SELECT StuID \n FROM Sportsinfo \n GROUP BY StuID \n HAVING SUM(hoursperweek) > 10", "table_name": "Sportsinfo", "query_description": "Show all student IDs with more than total 10 hours per week on all sports played.", "results_description": ["The student with id 1003 spend more than 10 hours per week.", "The student with IDs of 1003 have more than total 10 hours per week on all sports played", "The StuID is 1003."], "result": ",StuID\n0,1003\n", "difficulty": "aggregate_group_by"}, {"table_id": "Person", "query": "SELECT name, age \n FROM Person \n WHERE age < 30", "table_name": "Person", "query_description": "Who is the person whose age is below 30?", "results_description": ["Alice is 25 years old.", "Alice is 25 years old", "Alice is 25 years old."], "result": ",age,name\n0,25,Alice\n", "difficulty": "small_select"}, {"table_id": "farm", "query": "SELECT AVG(Working_Horses) AS \"average Working_Horses\", Total_Horses \n FROM farm \n WHERE Total_Horses > 5000", "table_name": "farm", "query_description": "Give the average number of working horses on farms with more than 5000 total horses.", "results_description": ["\u03a4he average number of working horses is 3977.7500000000005", "On a farm with 5056.5 horses in total, the average number of working horses is 3977.7500000000005", "There are 5056.5 total horses and 3977.7500000000005 average working horses."], "result": ",Total_Horses,average Working_Horses\n0,5056.5,3977.7500000000005\n", "difficulty": "aggregate"}, {"table_id": "product", "query": "SELECT AVG(pages_per_minute_color) AS \"average pages_per_minute_color\" \n FROM product", "table_name": "product", "query_description": "What is the average pages per minute color?", "results_description": ["The average pages per minute color is 18.5", "The average pages per minute color is 18.5.", "The average pages per minute colour is 18.5"], "result": ",average pages_per_minute_color\n0,18.5\n", "difficulty": "aggregate"}, {"table_id": "customers", "query": "SELECT COUNT(*) AS \"count of customers\", state \n FROM customers \n WHERE state = 'CA'", "table_name": "customers", "query_description": "How many customers in state of CA?", "results_description": ["There are 3 customers in the state of California", "There are 3 customers in the state of CA", "The state of CA has 3 customers."], "result": ",state,count of customers\n0,CA,3\n", "difficulty": "aggregate"}, {"table_id": "competition", "query": "SELECT Competition_type, Country \n FROM competition", "table_name": "competition", "query_description": "What are the types of every competition and in which countries are they located?", "results_description": ["The competition type is Friendly and the country in which is located is Italy.", "The competition type is Friendly and is located in Italy.", "In the country of Italy the competition is of type Friendly."], "result": ",Country,Competition_type\n0,Italy,Friendly\n", "difficulty": "small_select"}, {"table_id": "employees, employees", "query": "SELECT T2.first_name AS \"employees first_name\", T2.last_name AS \"employees last_name\", COUNT(T1.reports_to) AS \"count of employees\" \n FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id \n GROUP BY T1.reports_to ORDER BY COUNT(T1.reports_to) DESC", "table_name": "employees, employees", "query_description": "What are the first and last names of all the employees and how many people report to them?", "results_description": ["3 employess report to Nancy Edwards", "3 employees report to Nancy Edwards.", "The employee's last name is Edwards with first name Nancy and there are totally 3 employees."], "result": ",count of employees,employees last_name,employees first_name\n0,3,Edwards,Nancy\n", "difficulty": "join_aggregate"}, {"table_id": "WINE", "query": "SELECT Name, YEAR \n FROM WINE \n WHERE YEAR = '2008'", "table_name": "WINE", "query_description": "Find the names of all wines produced in 2008.", "results_description": ["Wine \"Old Kraft Vineyard\" was produced in 2008", "The wine named Old Kraft Vineyard was produced in 2008.", "The wine named Old Kraft Vineyard was produced in 2008"], "result": ",Name,Year\n0,Old Kraft Vineyard,2008\n", "difficulty": "small_select"}, {"table_id": "actor, musical", "query": "SELECT T1.Name AS \"actor Name\", T2.Name AS \"musical Name\" \n FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID", "table_name": "actor, musical", "query_description": "Show names of actors and names of musicals they are in.", "results_description": ["Ray Meagher played in the musical named The Phantom of the Opera.", "The actor with name Ray Meagher is in the musical with name The Phantom of the Opera", "The actor named Ray Meagher is in the The Phantom of the Opera musical"], "result": ",actor Name,musical Name\n0,Ray Meagher,The Phantom of the Opera\n", "difficulty": "join"}, {"table_id": "Rating, Reviewer", "query": "SELECT T2.name AS \"Reviewer name\", T1.stars AS \"Rating stars\" \n FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID \n WHERE T1.stars > 3", "table_name": "Rating, Reviewer", "query_description": "Find the names of reviewers who had given higher than 3 star ratings.", "results_description": ["The reviewer Sarah Martinez has 4 rating stars.", "The reviewer Sarah Martinez had a rating of 4 stars. ", "The reviewer Sarah Martinez has given 4 rating stars."], "result": ",Rating stars,Reviewer name\n0,4,Sarah Martinez\n", "difficulty": "join"}, {"table_id": "circuits", "query": "SELECT name, country \n FROM circuits \n WHERE country = 'UK' OR country = 'Malaysia'", "table_name": "circuits", "query_description": "What are the names of circuits that belong to UK or Malaysia?", "results_description": ["The Sepang International Circuit belongs to Malaysia.", "The name of the circuit that belongs to Malaysia is Sepang International Circuit", "The circuit named Sepang International Circuit is in Malaysia."], "result": ",name,country\n0,Sepang International Circuit,Malaysia\n", "difficulty": "small_select"}, {"table_id": "Rating, Movie", "query": "SELECT T2.title AS \"Movie title\", T1.stars AS \"Rating stars\" \n FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID \n WHERE T1.stars BETWEEN 3 AND 5", "table_name": "Rating, Movie", "query_description": "What are the titles of all movies that have rating star is between 3 and 5?", "results_description": ["The movie title is Gone with the Wind and the rating is 4 stars", "The movie titled Gone with the Wind has 4 rating stars", "The movie titled Gone with the Wind had a rating of 4 stars."], "result": ",Movie title,Rating stars\n0,Gone with the Wind,4\n", "difficulty": "join"}, {"table_id": "exhibition", "query": "SELECT AVG(ticket_price) AS \"average ticket_price\", MIN(ticket_price) AS \"minimum ticket_price\", MAX(ticket_price) AS \"maximum ticket_price\", YEAR \n FROM exhibition \n WHERE YEAR < 2009", "table_name": "exhibition", "query_description": "Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.", "results_description": ["In 2008, the average ticket price was 20.35, with a maximum of 29.95 and a minimum of 14.95", "For year 2008 the average ticket price is 20.35, the maximum ticket price is 29.95 and the minumum ticket price is 14.95", "For the year 2008 the average ticket price was 20.35, the maximum price was 29.95, and the minimum price was 14.95."], "result": ",Year,average ticket_price,maximum ticket_price,minimum ticket_price\n0,2008.0,20.35,29.95,14.95\n", "difficulty": "aggregate"}, {"table_id": "customers", "query": "SELECT address_line_1, address_line_2, email_address \n FROM customers \n WHERE email_address = 'vbogisich@example.org'", "table_name": "customers", "query_description": "Find the address line 1 and 2 of the customer with email \"vbogisich@example.org\".", "results_description": ["The customer whose email adress is vbogisich@example.org, has the following address: 72144 Katlynn Flat Suite 512, Suite 959", "For the customer with email vbogisich@example.org the address line 1 is 72144 Katlynn Flat Suite 512 and the address line 2 is Suite 959", "The customer with email vbogisich@example.org has 2 addresses: 72144 Katlynn Flat Suite 512 and Suite 959."], "result": ",email_address,address_line_1,address_line_2\n0,vbogisich@example.org,72144 Katlynn Flat Suite 512,Suite 959\n", "difficulty": "small_select"}, {"table_id": "Flight", "query": "SELECT AVG(distance) AS \"average distance\", AVG(price) AS \"average price\", origin \n FROM Flight \n WHERE origin = 'Los Angeles'", "table_name": "Flight", "query_description": "What is the average distance and average price for flights from Los Angeles.", "results_description": ["The average distance of flights from Los Angeles is 3247.625 and the average price is 345.16.", "The average distance for flights from Los Angeles is 3247.625 and the average price is 345.16", "The average distance is 3247.625 and average price is 345.16 for flights from Los Angeles"], "result": ",origin,average price,average distance\n0,Los Angeles,345.16,3247.625\n", "difficulty": "aggregate"}, {"table_id": "weather", "query": "SELECT COUNT(*) AS \"count of weather\", mean_humidity, mean_visibility_miles \n FROM weather \n WHERE mean_humidity > 50 AND mean_visibility_miles > 8", "table_name": "weather", "query_description": "What is the number of days that had an average humity above 50 and an average visibility above 8?", "results_description": ["There are 3013 days that had an average humidity of 75 and an average visibility of 10 miles", "There were 3013 days that had a mean humidity more than 50 and a mean visibility above 8.", "The number of days with average humidity over 50 were 3013 and their mean humidity and mean visibility miles were 75 and 10 respectively"], "result": ",mean_humidity,count of weather,mean_visibility_miles\n0,75,3013,10\n", "difficulty": "aggregate"}, {"table_id": "Customers", "query": "SELECT customer_phone, customer_email, customer_first_name, customer_last_name \n FROM Customers \n WHERE customer_first_name = 'Aniyah' AND customer_last_name = 'Feest'", "table_name": "Customers", "query_description": "Return the phone and email of the customer with the first name Aniyah and last name Feest.", "results_description": ["The customer Aniyah Feest has phone number (673)872-5338 and email fahey.dorian@example.com.", "The customer named Aniyah Feest has the email fahey.dorian@example.com and the phone (673)872-5338.", "The customer Aniyah Feest has phone (673)872-5338 and email fahey.dorian@example.com."], "result": ",customer_email,customer_phone,customer_last_name,customer_first_name\n0,fahey.dorian@example.com,(673)872-5338,Feest,Aniyah\n", "difficulty": "small_select"}, {"table_id": "hall_of_fame", "query": "SELECT yearid, COUNT(*) AS \"count of hall_of_fame\" \n FROM hall_of_fame \n GROUP BY yearid", "table_name": "hall_of_fame", "query_description": "Count the number of players who enter hall of fame for each year.", "results_description": ["In 1936, 110 players entered the hall of fame", "In the year 1936, 110 players entered the hall of fame.", "The count for the hall of fame in 1936 was 110."], "result": ",yearid,count of hall_of_fame\n0,1936,110\n", "difficulty": "aggregate_group_by"}, {"table_id": "customers", "query": "SELECT state \n FROM customers \n GROUP BY state ORDER BY COUNT(*)", "table_name": "customers", "query_description": "Which state has the most customers?", "results_description": ["The Colorado state.", "Colorado is the state with the most customers.", "The state of Colorado."], "result": ",state\n0,Colorado\n", "difficulty": "aggregate_group_by"}, {"table_id": "dorm", "query": "SELECT COUNT(*) AS \"count of dorm\" \n FROM dorm", "table_name": "dorm", "query_description": "How many dorms are in the database?", "results_description": ["There are 7 dorms in the database.", "There are 7 dorms.", "The count of dorms is 7."], "result": ",count of dorm\n0,7\n", "difficulty": "aggregate"}, {"table_id": "available_policies", "query": "SELECT customer_phone, policy_type_code \n FROM available_policies \n WHERE policy_type_code = 'Life Insurance'", "table_name": "available_policies", "query_description": "What are the phone numbers of customers using the policy with the code \"Life Insurance\"?", "results_description": ["The customer using the policy Life Insurance has the phone +16(2)5838999222.", "The phone numbers of customers using policy type code Life Insurance is +16(2)5838999222", "The customer with phone +16(2)5838999222 has policy type code Life Insurance."], "result": ",Customer_Phone,policy_type_code\n0,+16(2)5838999222,Life Insurance\n", "difficulty": "small_select"}, {"table_id": "Financial_transactions", "query": "SELECT AVG(transaction_amount) AS \"average transaction_amount\", SUM(transaction_amount) AS \"sum of transaction_amount\" \n FROM Financial_transactions", "table_name": "Financial_transactions", "query_description": "Return the average transaction amount, as well as the total amount of all transactions.", "results_description": ["The average transaction amount is 1308.2933333333335 and the total amount of all transactions is 19624.4.", "The total sum of the transaction is 19624.4 while the average is 1308.2933333333335.", "The average transaction amount is 308.2933333333335 and the total amount of all transactions is 9624.4"], "result": ",sum of transaction_amount,average transaction_amount\n0,19624.4,1308.2933333333335\n", "difficulty": "aggregate"}, {"table_id": "Student_Tests_Taken", "query": "SELECT date_test_taken, test_result \n FROM Student_Tests_Taken \n WHERE test_result = 'Pass'", "table_name": "Student_Tests_Taken", "query_description": "Find the dates of the tests taken with result \"Pass\".", "results_description": ["A test with passing result was taken at 2018-03-25 21:50:22", "The tests taken with result \"Pass\" were taken on 2018-03-25 21:50:22", "The result of the test in 2018-03-25 21:50:22 was Pass."], "result": ",test_result,date_test_taken\n0,Pass,2018-03-25 21:50:22\n", "difficulty": "small_select"}, {"table_id": "Apartment_Bookings, Guests", "query": "SELECT T1.booking_start_date AS \"Apartment_Bookings booking_start_date\", T1.booking_start_date AS \"Apartment_Bookings booking_start_date\", T2.gender_code AS \"Guests gender_code\" \n FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id \n WHERE T2.gender_code = 'Female'", "table_name": "Apartment_Bookings, Guests", "query_description": "What are the start date and end date of the apartment bookings made by female guests (gender code \"Female\")?", "results_description": ["A female booked the apartment from 2016-04-01 06:28:08.", "The guests with gender code female had a booking start date of 2016-04-01 06:28:08.", "The guest with gender code Female made an apartment booking with start date 2016-04-01 06:28:08."], "result": ",Guests gender_code,Apartment_Bookings booking_start_date\n0,Female,2016-04-01 06:28:08\n", "difficulty": "join"}, {"table_id": "customers, customer_orders", "query": "SELECT t1.customer_name AS \"customers customer_name\", t2.order_date AS \"customer_orders order_date\", order_status \n FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id \n WHERE order_status = 'Delivered'", "table_name": "customers, customer_orders", "query_description": "What are the customer name and date of the orders whose status is \"Delivered\".", "results_description": ["The customer Prof. Reyes Berge II made an order in 2018-03-04 07:16:22 whose status is Delivered.", "The order made by the customer Prof. Reyes Berge II was made in 2018-03-04 07:16:22 and its status is delivered.", "The order made by the customer Prof. Reyes Berge II was made in 2018-03-04 07:16:22 and its status is delivered."], "result": ",order_status,customers customer_name,customer_orders order_date\n0,Delivered,Prof. Reyes Berge II,2018-03-04 07:16:22\n", "difficulty": "join"}, {"table_id": "program", "query": "SELECT name, origin \n FROM program \n WHERE origin <> 'Beijing'", "table_name": "program", "query_description": "Which programs' origins are not \"Beijing\"? Give me the program names.", "results_description": ["The Aniworld program originates from Hunan", "The program Aniworld originates from Hunan.", "The program named Aniworld is originated from Hunan"], "result": ",Name,Origin\n0,Aniworld,Hunan\n", "difficulty": "small_select"}, {"table_id": "CLASS, employee", "query": "SELECT T2.emp_fname AS \"employee emp_fname\", T1.crs_code AS \"CLASS crs_code\" \n FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num", "table_name": "CLASS, employee", "query_description": "Find the first names of all instructors who have taught some course and the course code.", "results_description": ["The instructor Arnelle has taught the the course with code ACCT-211.", "The frst name of the instructor is Arnelle and the course code is ACCT-211", "Arnelle has taught the course with course code ACCT-211"], "result": ",CLASS crs_code,employee emp_fname\n0,ACCT-211,Arnelle\n", "difficulty": "join"}, {"table_id": "APPELLATIONS, WINE", "query": "SELECT AVG(T2.Price) AS \"average Price\", T1.County AS \"APPELLATIONS County\" \n FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation \n WHERE T1.County = 'Sonoma'", "table_name": "APPELLATIONS, WINE", "query_description": "Give me the average prices of wines that are produced by appelations in Sonoma County.", "results_description": ["The average price of wine in Sonoma is 43.5.", "The average price of wines that are produced by appelations in Sonoma County is 43.5", "The average price of wines in the county of Sonoma is 43.5."], "result": ",average Price,APPELLATIONS County\n0,43.5,Sonoma\n", "difficulty": "join_aggregate"}, {"table_id": "election, party", "query": "SELECT T1.Delegate AS \"election Delegate\", T2.Party AS \"party Party\" \n FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID", "table_name": "election, party", "query_description": "Show the delegates and the names of the party they belong to.", "results_description": ["Delegate Gail H. Bates belongs to the Democratic party", "The delegate is Bates, Gail H. Gail H. Bates of the Democratic party", "The Democratic party has the delegates Bates, Gail H. Gail H. Bates"], "result": ",party Party,election Delegate\n0,Democratic,\"Bates, Gail H. Gail H. Bates\"\n", "difficulty": "join"}, {"table_id": "Member, party", "query": "SELECT T1.member_name AS \"Member member_name\", T2.Party_name AS \"party Party_name\" \n FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id \n WHERE T2.Party_name <> 'Progress Party'", "table_name": "Member, party", "query_description": "Which member names corresponding to members who are not in the Progress Party?", "results_description": ["Hon Tony Abbott is not in the Prograss Party, but he is in party 3", "Hon Tony Abbott is a member of the 3 party.", "The member Hon Tony Abbott is in the party 3."], "result": ",party Party_name,Member member_name\n0,3,Hon Tony Abbott\n", "difficulty": "join"}, {"table_id": "accounts, savings", "query": "SELECT SUM(T2.balance) AS \"sum of balance\", T1.name AS \"accounts name\" \n FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid \n GROUP BY T1.name", "table_name": "accounts, savings", "query_description": "Find the total saving balance for each account name.", "results_description": ["Account Brown has balance of savings 200000", "The account with name \"Brown\" has a total balance of 200000", "The total saving balance of account name Brown is 200000."], "result": ",accounts name,sum of balance\n0,Brown,200000.0\n", "difficulty": "join_aggregate"}, {"table_id": "Customers", "query": "SELECT COUNT(*) AS \"count of Customers\" \n FROM Customers", "table_name": "Customers", "query_description": "How many customers do we have?", "results_description": ["The number of customers that we have is 15", "There are 15 customers", "There are 15 customers."], "result": ",count of Customers\n0,15\n", "difficulty": "aggregate"}, {"table_id": "Ref_Document_Status", "query": "SELECT document_status_code \n FROM Ref_Document_Status", "table_name": "Ref_Document_Status", "query_description": "What document status codes do we have?", "results_description": ["The document's status is \"done\".", "One of the document status codes is \"done\"", "The document status code is done"], "result": ",document_status_code\n0,done\n", "difficulty": "small_select"}, {"table_id": "Payments", "query": "SELECT Payment_ID, Date_Payment_Made, Amount_Payment, Payment_Method_Code \n FROM Payments \n WHERE Payment_Method_Code = 'Visa'", "table_name": "Payments", "query_description": "Give me the payment Id, the date and the amount for all the payments processed with Visa.", "results_description": ["The payment with id 678 has an amount of 459407, was made at 2017-12-16 and the payment's method code was Visa.", "The payment with id 678 had an amount of 459407, was made in 2017-12-16 and the method was Visa.", "Payment with id 678, made in 2017-12-16, had an amount of payment 459407, with payment method Visa. "], "result": ",Payment_ID,Amount_Payment,Date_Payment_Made,Payment_Method_Code\n0,678,459407,2017-12-16,Visa\n", "difficulty": "large_select"}, {"table_id": "MINOR_IN, STUDENT", "query": "SELECT T2.Fname AS \"STUDENT Fname\", T2.Lname AS \"STUDENT Lname\", T1.DNO AS \"MINOR_IN DNO\" \n FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID \n WHERE T1.DNO = 140", "table_name": "MINOR_IN, STUDENT", "query_description": "What are the full names of students minoring in department 140?", "results_description": ["The student with first name Susan and last name Lee is minoring in department 140.", "The names of the students minoring in department 140 are Susan Lee", "The student called Susan Lee has a minor in department 140."], "result": ",MINOR_IN DNO,STUDENT Fname,STUDENT Lname\n0,140,Susan,Lee\n", "difficulty": "join"}, {"table_id": "products", "query": "SELECT product_category_code, product_name \n FROM products \n WHERE product_name = 'flax'", "table_name": "products", "query_description": "What is the code of the category that the product with the name 'flax' belongs to?", "results_description": ["The product named \"flax\" belongs in the seeds category code", "The product flax has the category code Seeds.", "The product flax has category code Seeds."], "result": ",product_name,product_category_code\n0,flax,Seeds\n", "difficulty": "small_select"}, {"table_id": "department", "query": "SELECT SUM(budget) AS \"sum of budget\", dept_name \n FROM department \n WHERE dept_name = 'Marketing' OR dept_name = 'Finance'", "table_name": "department", "query_description": "Find the total budgets of the Marketing or Finance department.", "results_description": ["The Finance department has a total budget of 1077459.33", "The total budget of Finance department is 1077459.33.", "The department of Finance has a total budget of 1077459.33."], "result": ",dept_name,sum of budget\n0,Finance,1077459.33\n", "difficulty": "aggregate"}, {"table_id": "Addresses, Student_Addresses", "query": "SELECT T2.monthly_rental AS \"Student_Addresses monthly_rental\", T1.state_province_county AS \"Addresses state_province_county\" \n FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id \n WHERE T1.state_province_county = 'Texas'", "table_name": "Addresses, Student_Addresses", "query_description": "What are the monthly rentals of student addresses in Texas state?", "results_description": ["Student addresses in Texas state have a monthly rental of 894.0958.", "In Texas state, the monthly rentals of students are 894.0958", "The monthly rental of students in the state of Texas is 894.0958."], "result": ",Addresses state_province_county,Student_Addresses monthly_rental\n0,Texas,894.0958\n", "difficulty": "join"}, {"table_id": "classroom", "query": "SELECT COUNT(*) AS \"count of classroom\", capacity, building \n FROM classroom \n WHERE building = 'Lamberton' AND capacity < 50", "table_name": "classroom", "query_description": "How many rooms whose capacity is less than 50 does the Lamberton building have?", "results_description": ["The Lamberton building has 2 classrooms whose capacity is 10", "The Lamberton has 2 classrooms with capacity of 10", "The Lamberton building has a capacity of 10 and 2 classrooms."], "result": ",building,capacity,count of classroom\n0,Lamberton,10,2\n", "difficulty": "aggregate"}, {"table_id": "music_festival", "query": "SELECT Date_of_ceremony, Category, RESULT \n FROM music_festival \n WHERE Category = 'Best Song' AND RESULT = 'Awarded'", "table_name": "music_festival", "query_description": "Return the dates of ceremony corresponding to music festivals that had the category \"Best Song\" and result \"Awarded\".", "results_description": ["The date of ceremony with the category Best Song and the result Awarded is 18 February 2011.", "The festival had a ceremony with result awarded in the category Best Song in 18 February 2011.", "The date of ceremony corresponding to music festivals that had the category \"Best Song\" and result \"Awarded\" is 18 February 2011"], "result": ",Result,Category,Date_of_ceremony\n0,Awarded,Best Song,18 February 2011\n", "difficulty": "small_select"}, {"table_id": "races, results", "query": "SELECT MAX(T2.fastestlapspeed) AS \"maximum fastestlapspeed\", T1.name AS \"races name\", T1.year AS \"races year\" \n FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid \n WHERE T1.year > 2014 \n GROUP BY T1.name ORDER BY T1.year", "table_name": "races, results", "query_description": "For each race name, What is the maximum fastest lap speed for races after 2004 ordered by year?", "results_description": ["The fastest lap speed for the European Grand Prix in 2016 was 202.946", "For the race of the European Grand Prix in 2016 the maximum lap speed was 202.946.", "The maximum fastestlapspeed of the race European Grand Prix in 2016 was 202.946"], "result": ",races name,races year,maximum fastestlapspeed\n0,European Grand Prix,2016,202.946\n", "difficulty": "join_aggregate"}, {"table_id": "files, song", "query": "SELECT T1.duration AS \"files duration\", T1.file_size AS \"files file_size\", T1.formats AS \"files formats\", T2.genre_is AS \"song genre_is\", T2.song_name AS \"song song_name\" \n FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id \n WHERE T2.genre_is = 'pop' ORDER BY T2.song_name", "table_name": "files, song", "query_description": "List the duration, file size and format of songs whose genre is pop, ordered by title?", "results_description": ["The song named Just beat it was in the pop genre, had a duration of 4:34 and a total file size of 5.10 MB.", "The song Just beat it has a duration of 4:34, the file format is mp3, the genre is pop and the file size is 5.10 MB", "The song Just Beat it is in mp3 format, its genre is pop, its duration is 4:34, and its file size is 5.10 MB."], "result": ",files formats,song genre_is,files duration,song song_name,files file_size\n0,mp3,pop,4:34,Just beat it,5.10 MB\n", "difficulty": "join"}, {"table_id": "customers", "query": "SELECT COUNT(*) AS \"count of customers\" \n FROM customers", "table_name": "customers", "query_description": "Find the number of customers in total.", "results_description": ["The number of customers is 15", "There are 15 customers in total", "There are 15 customers."], "result": ",count of customers\n0,15\n", "difficulty": "aggregate"}, {"table_id": "Faculty", "query": "SELECT rank, Fname, Lname \n FROM Faculty", "table_name": "Faculty", "query_description": "Show the rank, first name, and last name for all the faculty.", "results_description": ["Mark Giuliano is an Instructor", "The faculty member has the rank of Instructor, the first name Mark and the last name Giuliano.", "Mark Giuliano has the instructor rank. "], "result": ",Rank,Fname,Lname\n0,Instructor,Mark,Giuliano\n", "difficulty": "large_select"}, {"table_id": "Employees", "query": "SELECT employee_name, role_code \n FROM Employees \n WHERE role_code = 'HR'", "table_name": "Employees", "query_description": "Show the names of all the employees with role \"HR\".", "results_description": ["Leo's role is human resources.", "The employee named Leo has the role \"HR\"", "The employee Leo has the role code HR."], "result": ",Role_Code,Employee_Name\n0,HR,Leo\n", "difficulty": "small_select"}, {"table_id": "Staff, Engineer_Visits, Maintenance_Engineers", "query": "SELECT T1.staff_name AS \"Staff staff_name\", T3.first_name AS \"Maintenance_Engineers first_name\", T3.last_name AS \"Maintenance_Engineers last_name\" \n FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id", "table_name": "Staff, Engineer_Visits, Maintenance_Engineers", "query_description": "Which staff have contacted which engineers? List the staff name and the engineer first name and last name.", "results_description": ["The staff member Christophe has contacted the engineer with first name Nellie and last name Hirthe.", "Staff member Christophe contacted the engineers Hurtle Nellie", "The staff with name Christophe contacted the engineer Nellie Hirthe."], "result": ",Staff staff_name,Maintenance_Engineers last_name,Maintenance_Engineers first_name\n0,Christophe,Hirthe,Nellie\n", "difficulty": "join"}, {"table_id": "Church", "query": "SELECT COUNT(*) AS \"count of Church\", Open_Date \n FROM Church \n WHERE Open_Date < 1850", "table_name": "Church", "query_description": "How many churches opened before 1850 are there?", "results_description": ["In 1831 there were 9 churches.", "In 1831, 9 churches were opened.", "9 churches opened in 1831."], "result": ",Open_Date,count of Church\n0,1831,9\n", "difficulty": "aggregate"}, {"table_id": "mountain", "query": "SELECT Country \n FROM mountain \n GROUP BY Country \n HAVING COUNT(*) > 1", "table_name": "mountain", "query_description": "Which countries have more than one mountain?", "results_description": ["Kenya has more than 1 mountains", "The country Kenya has more than one mountain.", "Kenya has more than one mountain."], "result": ",Country\n0,Kenya\n", "difficulty": "aggregate_group_by"}, {"table_id": "Student_Course_Enrolment", "query": "SELECT COUNT(course_id) AS \"count of Student_Course_Enrolment\" \n FROM Student_Course_Enrolment", "table_name": "Student_Course_Enrolment", "query_description": "Find the number of distinct courses that have enrolled students.", "results_description": ["There are 20 courses with enrolled students.", "There are 20 distinct courses that have enrolled students", "There were 20 student course enrolments."], "result": ",count of Student_Course_Enrolment\n0,20\n", "difficulty": "aggregate"}, {"table_id": "journalist", "query": "SELECT Name, Nationality \n FROM journalist \n WHERE Nationality = 'England' OR Nationality = 'Wales'", "table_name": "journalist", "query_description": "Show the names of journalists from \"England\" or \"Wales\".", "results_description": ["Journalist Herbert Swindells is from England", "The journalist named Herbert Swindells is from England.", "The journalist named Herbert Swindells is from England"], "result": ",Name,Nationality\n0,Herbert Swindells,England\n", "difficulty": "small_select"}, {"table_id": "player, player_college, college", "query": "SELECT AVG(T1.height) AS \"average height\", T3.name_full AS \"college name_full\" \n FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id \n WHERE T3.name_full = 'Yale University'", "table_name": "player, player_college, college", "query_description": "Find the average height of the players who belong to the college called 'Yale University'.", "results_description": ["The average height of players from Yale University is 59.13", "The players who belong to the college with name Yale University have an average height of 59.13559322033898", "The average height is 59.13559322033898 for the students in Yale University."], "result": ",average height,college name_full\n0,59.13559322033898,Yale University\n", "difficulty": "join_aggregate"}, {"table_id": "artists, albums", "query": "SELECT T2.title AS \"albums title\", T1.name AS \"artists name\" \n FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id \n WHERE T1.name LIKE '%Led%'", "table_name": "artists, albums", "query_description": "List the name of albums that are released by aritist whose name has 'Led'", "results_description": ["Led Zeppelin's album BBC Sessions [Disc 1] live.", "The album \"BBC Sessions [Disc 1] live\" was released by Led Zeppelin", "The album BBC Sessions [Disc 1] live is by the artist Led Zeppelin."], "result": ",albums title,artists name\n0,BBC Sessions [Disc 1] live,Led Zeppelin\n", "difficulty": "join"}, {"table_id": "customer, rental", "query": "SELECT T1.first_name AS \"customer first_name\", T1.last_name AS \"customer last_name\", T2.rental_date AS \"rental rental_date\" \n FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id = T2.customer_id ORDER BY T2.rental_date ASC", "table_name": "customer, rental", "query_description": "What is the first name and the last name of the customer who made the earliest rental?", "results_description": ["The earliest rental was made by Charlotte Hunter on 2005-05-24 22:53:30", "The customer named Charlotte Hunter made made a rental in 2005-05-24 22:53:30.", "The customer with name CHARLOTTE HUNTER made the last rental on the date 2005-05-24 22:53:30"], "result": ",customer last_name,rental rental_date,customer first_name\n0,HUNTER,2005-05-24 22:53:30,CHARLOTTE\n", "difficulty": "join"}, {"table_id": "Player", "query": "SELECT pName, HS \n FROM Player \n WHERE HS BETWEEN 500 AND 1500", "table_name": "Player", "query_description": "What are the names of players who train between 500 and 1500 hours?", "results_description": ["The player named Andrew trained for 1200 hours.", "The player named Andrew trains for 1200 hours", "The player named Andrew has HS 1200."], "result": ",HS,pName\n0,1200,Andrew\n", "difficulty": "small_select"}, {"table_id": "film", "query": "SELECT title, Studio \n FROM film \n WHERE Studio LIKE '%Universal%'", "table_name": "film", "query_description": "Find the titles and studios of the films that are produced by some film studios that contained the word \"Universal\".", "results_description": ["The film ET the Extra-Terrestrial was produced by Universal studio.", "For films that are produced by studios containing the word \"Universal\" their title is ET the Extra-Terrestrial and their studio is Universal", "The film with title ET the Extra-Terrestrial was produced by the studio Universal"], "result": ",Title,Studio\n0,ET the Extra-Terrestrial,Universal\n", "difficulty": "small_select"}, {"table_id": "Activity", "query": "SELECT activity_name \n FROM Activity", "table_name": "Activity", "query_description": "What activities do we have?", "results_description": ["On of the activities is Mountain Climbing", "We have the Mountain Climbing activity.", "Mountain climbing is an activity."], "result": ",activity_name\n0,Mountain Climbing\n", "difficulty": "small_select"}, {"table_id": "election, representative", "query": "SELECT AVG(T1.Votes) AS \"average Votes\", T2.Party AS \"representative Party\" \n FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID \n WHERE T2.Party = 'Republican'", "table_name": "election, representative", "query_description": "What is the average number of votes of representatives from party \"Republican\"?", "results_description": ["The average Votes from the Republican representative Party are 11750", "For the representative party of Republican there were 11750 average votes.", "The Republican party has 11750 average votes."], "result": ",average Votes,representative Party\n0,11750.0,Republican\n", "difficulty": "join_aggregate"}, {"table_id": "Flight", "query": "SELECT origin, destination, price \n FROM Flight \n WHERE price > 300", "table_name": "Flight", "query_description": "What is the origin and destination for all flights whose price is higher than 300?", "results_description": ["The flight from Los Angeles with destination Tokyo is priced at 780.99.", "The flight with price 780.99 has the origin of Los Angeles and the destination of Tokyo", "The flight from Los Angeles to Tokyo has a price of 780.99."], "result": ",price,origin,destination\n0,780.99,Los Angeles,Tokyo\n", "difficulty": "small_select"}, {"table_id": "Player", "query": "SELECT AVG(HS) AS \"average HS\", MAX(HS) AS \"maximum HS\", MIN(HS) AS \"minimum HS\" \n FROM Player", "table_name": "Player", "query_description": "What is the average, maximum, and minimum for the number of hours spent training?", "results_description": ["The average hours spent training are 1150, the maximum hours spent training are 1600 and the minimum hours spent training are 300.", "The minimum, maximum and average HS are 300, 1600 and 1150 respectively", "The average is 1150, the maximum is 1600, and the minimum is 300 for the number of hours spent training"], "result": ",average HS,maximum HS,minimum HS\n0,1150.0,1600.0,300.0\n", "difficulty": "aggregate"}, {"table_id": "station", "query": "SELECT city, lat \n FROM station \n GROUP BY city ORDER BY MAX(lat) DESC", "table_name": "station", "query_description": "List all the cities in a decreasing order of each city's stations' highest latitude.", "results_description": ["The city with largest max latitude is San Francisco", "The cities San Francisco have 37.80477 respectively", "The city of San Francisco has a latitude of 37.80477."], "result": ",lat,city\n0,37.80477,San Francisco\n", "difficulty": "aggregate_group_by"}, {"table_id": "item", "query": "SELECT * \n FROM item", "table_name": "item", "query_description": "List all information in the item table.", "results_description": ["The item with id 0 has the title pear.", "The item with id 0 is titled pear.", "The item with id 0 is titled pear."], "result": ",i_id,title\n0,0,pear\n", "difficulty": "large_select"}, {"table_id": "stadium", "query": "SELECT country, COUNT(*) AS \"count of stadium\" \n FROM stadium \n GROUP BY country", "table_name": "stadium", "query_description": "How many stadiums does each country have?", "results_description": ["Azerbaeijan has 1 stadium", "The countries Azerbaijan have 1 stadium respectively", "Azerbaijan has 1 stadium."], "result": ",Country,count of stadium\n0,Azerbaijan,1\n", "difficulty": "aggregate_group_by"}, {"table_id": "captain", "query": "SELECT name, rank \n FROM captain \n WHERE rank = 'Midshipman' OR rank = 'Lieutenant'", "table_name": "captain", "query_description": "What are the names of captains that have either the rank Midshipman or Lieutenant?", "results_description": ["Captain Sir Henry Langford has rank Midshipman.", "Captain Sir Henry Langford has the rank of the Midshipman", "Captain Sir Henry Langford has rank Midshipman."], "result": ",Name,Rank\n0,Captain Sir Henry Langford,Midshipman\n", "difficulty": "small_select"}, {"table_id": "campuses", "query": "SELECT campus, YEAR \n FROM campuses \n WHERE YEAR >= 1935 AND YEAR <= 1939", "table_name": "campuses", "query_description": "Which campus was opened between 1935 and 1939?", "results_description": ["The California State Polytechnic University-Pomona campus opened in 1938", "The campus California State Polytechnic University-Pomona was opened at 1938.", "The California State Polytechnic University-Pomona campus opened in 1938."], "result": ",Year,Campus\n0,1938,California State Polytechnic University-Pomona\n", "difficulty": "small_select"}, {"table_id": "manager", "query": "SELECT Country, Age \n FROM manager \n WHERE Age > 50 OR Age < 46", "table_name": "manager", "query_description": "Show the countries that have managers of age above 50 or below 46.", "results_description": ["The country of United States has a 45 years old manager.", "The United States have managers that are 45 years of age", "The age is 45 and the country is United States."], "result": ",Age,Country\n0,45,United States\n", "difficulty": "small_select"}, {"table_id": "employee", "query": "SELECT COUNT(*) AS \"count of employee\" \n FROM employee", "table_name": "employee", "query_description": "Find the total number of employees.", "results_description": ["The count of employees is 37.", "The employees count to 37", "There are 37 employees in total"], "result": ",count of employee\n0,37\n", "difficulty": "aggregate"}, {"table_id": "employees", "query": "SELECT salary, manager_id \n FROM employees \n WHERE manager_id <> 'null'", "table_name": "employees", "query_description": "Find the salary and manager number for those employees who is working under a manager.", "results_description": ["The employee under the manager with manager id of 0 has a salary of 24000", "The manager with id 0 has a salary of 24000.", "The salary of the manager with id 0 is 24000."], "result": ",SALARY,MANAGER_ID\n0,24000,0\n", "difficulty": "small_select"}, {"table_id": "Projects", "query": "SELECT COUNT(*) AS \"count of Projects\" \n FROM Projects", "table_name": "Projects", "query_description": "How many projects are there?", "results_description": ["There are 5 projects", "The number of projects is 5", "There are 5 projects."], "result": ",count of Projects\n0,5\n", "difficulty": "aggregate"}, {"table_id": "club", "query": "SELECT clubdesc, clubname \n FROM club \n WHERE clubname = 'Tennis Club'", "table_name": "club", "query_description": "Find the description of the club called \"Tennis Club\".", "results_description": ["The club named 'Tennis Club' is described as 'A competitive tennis club'.", "The Tennis Club is described as A competitive tennis club.", "The club with name Tennis Club has description A competitive tennis club.."], "result": ",ClubDesc,ClubName\n0,A competitive tennis club.,Tennis Club\n", "difficulty": "small_select"}, {"table_id": "papers", "query": "SELECT title \n FROM papers \n WHERE title LIKE '%ML%'", "table_name": "papers", "query_description": "Which papers have the substring \"ML\" in their titles? Return the titles of the papers.", "results_description": ["The paper's title is \"Making Standard ML a Practical Database Programming Language\".", "The paper titled \"Making Standard ML a Practical Database Programming Language\" has the substring \"ML\" in its title", "The title is Making Standard ML a Practical Database Programming Language."], "result": ",title\n0,Making Standard ML a Practical Database Programming Language\n", "difficulty": "small_select"}, {"table_id": "tracks", "query": "SELECT composer, name \n FROM tracks \n WHERE name = 'Fast As a Shark'", "table_name": "tracks", "query_description": "Who is the composer of track Fast As a Shark?", "results_description": ["The track Fast As a Shark is composed by F. Baltes, S. Kaufman, U. Dirkscneider & W. Hoffman.", "The track \"Fast As a Shark\" was composed by F. Baltes, S. Kaufman, U. Dirkscneider and W. Hoffman.", "The track with name Fast As a Shark is composed by F. Baltes, S. Kaufman, U. Dirkscneider & W. Hoffman."], "result": ",name,composer\n0,Fast As a Shark,\"F. Baltes, S. Kaufman, U. Dirkscneider & W. Hoffman\"\n", "difficulty": "small_select"}, {"table_id": "Student", "query": "SELECT major, AVG(age) AS \"average age\", MIN(age) AS \"minimum age\", MAX(age) AS \"maximum age\" \n FROM Student \n GROUP BY major", "table_name": "Student", "query_description": "What are the average, minimum, and max ages for each of the different majors?", "results_description": ["The major is 50 years old, while the average, maximum, and minimum ages of majors are 22, 26, and 18 respectively.", "For the major 50 the average age is 22 the minimum age is 18 and the maximum age is 26", "Major 50 has average age 22, maximum age 26 and minimum age 18."], "result": ",Major,average age,maximum age,minimum age\n0,50.0,22.0,26.0,18.0\n", "difficulty": "aggregate_group_by"}, {"table_id": "Student", "query": "SELECT major, COUNT(*) AS \"count of Student\" \n FROM Student \n GROUP BY major", "table_name": "Student", "query_description": "How many students are there for each major?", "results_description": ["There are 2 students for the major 50.", "There are 2 students in major 50.", "For the major 50 there are 2 students."], "result": ",Major,count of Student\n0,50,2\n", "difficulty": "aggregate_group_by"}, {"table_id": "Staff", "query": "SELECT first_name, middle_name, last_name \n FROM Staff", "table_name": "Staff", "query_description": "What are the first, middle, and last names of all staff?", "results_description": ["The last name is Sawayn, the first name is Janessa and the middle name is Amara.", "The last name is Sawayn, the first name is Janessa and the middle name is Amara.", "Janessa Sawayn has middle name Amara."], "result": ",last_name,first_name,middle_name\n0,Sawayn,Janessa,Amara\n", "difficulty": "large_select"}, {"table_id": "customers", "query": "SELECT COUNT(*) AS \"count of customers\", state \n FROM customers \n WHERE state = 'CA'", "table_name": "customers", "query_description": "How many customers are from California?", "results_description": ["There are 3 customers from California", "There are 3 customers from CA", "There are 3 customers in the state of CA."], "result": ",state,count of customers\n0,CA,3\n", "difficulty": "aggregate"}, {"table_id": "College", "query": "SELECT COUNT(*) AS \"count of College\" \n FROM College", "table_name": "College", "query_description": "How many colleges in total?", "results_description": ["There are 4 colleges in total", "There are 4 colleges in total.", "There are 4 colleges."], "result": ",count of College\n0,4\n", "difficulty": "aggregate"}, {"table_id": "school", "query": "SELECT COUNT(*) AS \"count of school\" \n FROM school", "table_name": "school", "query_description": "Count the number of schools.", "results_description": ["There are 8 schools.", "The count of schools is 8.", "The total number of schools is 8"], "result": ",count of school\n0,8\n", "difficulty": "aggregate"}, {"table_id": "files, song", "query": "SELECT AVG(T1.duration) AS \"average duration\", T2.resolution AS \"song resolution\", T1.formats AS \"files formats\" \n FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id \n WHERE T1.formats = 'mp3' AND T2.resolution < 800", "table_name": "files, song", "query_description": "What is the average duration of songs that have mp3 format and resolution below 800?", "results_description": ["Songs in mp3 format with a resolution of 512, have an average duration of 3", "The average duration of songs with mp3 format and resolution below 800 is 3.", "For the songs with a resolution below 800 the average duration is 3 and the file format is mp3."], "result": ",files formats,song resolution,average duration\n0,mp3,512,3.0\n", "difficulty": "join_aggregate"}, {"table_id": "Ref_Incident_Type", "query": "SELECT incident_type_description, incident_type_code \n FROM Ref_Incident_Type \n WHERE incident_type_code = 'VIOLENCE'", "table_name": "Ref_Incident_Type", "query_description": "What is the incident type description for the incident type with code \"VIOLENCE\"?", "results_description": ["The incident code \"VIOLENCE\" has a description \"Violence\"", "The incident with code VIOLENCE has the description violence.", "The incident with type code VIOLENCE has description Violence."], "result": ",incident_type_code,incident_type_description\n0,VIOLENCE,Violence\n", "difficulty": "small_select"}, {"table_id": "salary, team", "query": "SELECT AVG(T1.salary) AS \"average salary\", T2.name AS \"team name\" \n FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br \n WHERE T2.name = 'Boston Red Stockings'", "table_name": "salary, team", "query_description": "What is average salary of the players in the team named 'Boston Red Stockings' ?", "results_description": ["The average salary of the players in the team named Boston Red Stockings is 2856616.7595628416", "The players in the team Boston Red Stockings have an average salary of 2856616.7595628416", "The Boston Red Stockings team has an average salary of 2856616.7595628416."], "result": ",team name,average salary\n0,Boston Red Stockings,2856616.7595628416\n", "difficulty": "join_aggregate"}, {"table_id": "Customers, Addresses", "query": "SELECT T2.zip_postcode AS \"Addresses zip_postcode\", T1.first_name AS \"Customers first_name\", T1.last_name AS \"Customers last_name\" \n FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id \n WHERE T1.first_name = 'Carole' AND T1.last_name = 'Bernhard'", "table_name": "Customers, Addresses", "query_description": "What is the zip code of the customer Carole Bernhard?", "results_description": ["The zip code of Carole Bernhard is 75074", "The customer Carole Bernhard lives in an address with zip code 75074.", "The customer Carole Bernhard has zip code 75074."], "result": ",Customers last_name,Customers first_name,Addresses zip_postcode\n0,Bernhard,Carole,75074\n", "difficulty": "join"}, {"table_id": "station, trip", "query": "SELECT AVG(T1.lat) AS \"average lat\", AVG(T1.long) AS \"average long\" \n FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id", "table_name": "station, trip", "query_description": "What is the average latitude and longitude of the starting points of all trips?", "results_description": ["The average latitude and longititude of the starting points of all trips are 37.74618133538529 and -122.36134722346611 respectively", "The average latitude of the stations is 37.74618133538529 and the average longitude is -122.36134722346611.", "The average lat is 37.74618133538529 and the average long is -122.36134722346611."], "result": ",average lat,average long\n0,37.74618133538529,-122.36134722346611\n", "difficulty": "join_aggregate"}, {"table_id": "technician", "query": "SELECT Name, Team \n FROM technician \n WHERE Team <> 'NYY'", "table_name": "technician", "query_description": "List the name of technicians whose team is not \"NYY\".", "results_description": ["The technician Tony Sewell is in the CLE team.", "The technician named Tony Sewell in the the CLE team", "Technician Tony Sewell is in team CLE."], "result": ",Name,Team\n0,Tony Sewell,CLE\n", "difficulty": "small_select"}, {"table_id": "appointment, patient", "query": "SELECT name \n FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn", "table_name": "appointment, patient", "query_description": "List the names of patients who have made appointments.", "results_description": ["The patient John Smith has made an appointment.", "The patient John Smith has made an appointment", "The name is John Smith."], "result": ",Name\n0,John Smith\n", "difficulty": "join"}, {"table_id": "address", "query": "SELECT COUNT(*) AS \"count of address\", district \n FROM address \n WHERE district = 'California'", "table_name": "address", "query_description": "How many addresses are in the district of California?", "results_description": ["There are 9 addresses in the state of California", "In the district of California there are 9 addresses.", "In the district of California the addresses count to 9"], "result": ",district,count of address\n0,California,9\n", "difficulty": "aggregate"}, {"table_id": "Elimination", "query": "SELECT Elimination_Move, Team \n FROM Elimination \n WHERE Team = 'Team Orton'", "table_name": "Elimination", "query_description": "What are the elimination moves of wrestlers whose team is \"Team Orton\"?", "results_description": ["The elimination move of wrestlers whose team is \"Team Orton\" is \"Go To Sleep\".", "Go to Sleep is the elimination move of wrestlers whose team is Team Orton.", "The elimination move of Team Orton is Go To Sleep."], "result": ",Team,Elimination_Move\n0,Team Orton,Go To Sleep\n", "difficulty": "small_select"}, {"table_id": "artist", "query": "SELECT Famous_Title, Artist \n FROM artist \n WHERE Artist = 'Triumfall'", "table_name": "artist", "query_description": "What are the famous titles of the artist \"Triumfall\"?", "results_description": ["One of the famous titles of Triumfall is called \"Antithesis of All Flesh\"", "The artist Triumfall has the famous title Antithesis of All Flesh.", "The artist Triumfall has a famous title of Antithesis of All Flesh"], "result": ",Artist,Famous_Title\n0,Triumfall,Antithesis of All Flesh\n", "difficulty": "small_select"}, {"table_id": "Addresses, Drama_Workshop_Groups", "query": "SELECT T2.Store_Name AS \"Drama_Workshop_Groups Store_Name\", T1.City_Town AS \"Addresses City_Town\" \n FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID \n WHERE T1.City_Town = 'Feliciaberg'", "table_name": "Addresses, Drama_Workshop_Groups", "query_description": "Return the the names of the drama workshop groups that are located in Feliciaberg city.", "results_description": ["The drama workshop group Uhuels Fruit is located in Feliciaberg", "The drama workshop group named Uhuels Fruit is located in Feliciaberg city", "The drama workshop group Uhuels Fruit is located in the city of Feliciaberg."], "result": ",Addresses City_Town,Drama_Workshop_Groups Store_Name\n0,Feliciaberg,Uhuels Fruit\n", "difficulty": "join"}, {"table_id": "course", "query": "SELECT crs_credit, crs_description, crs_code \n FROM course \n WHERE crs_code = 'CIS-220'", "table_name": "course", "query_description": "What is the description for the CIS-220 and how many credits does it have?", "results_description": ["The course with code \tCIS-220 has a credit score of 3 and its description is \"Intro. to Microcomputing\".", "The description for the CIS-220 is Intro. to Microcomputing and it has 3 credits", "The CIS-220 has 3 credits and description: Intro. to Microcomputing"], "result": ",CRS_CODE,CRS_CREDIT,CRS_DESCRIPTION\n0,CIS-220,3.0,Intro. to Microcomputing\n", "difficulty": "small_select"}, {"table_id": "book, publication", "query": "SELECT T1.Title AS \"book Title\", T2.Publication_Date AS \"publication Publication_Date\" \n FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID", "table_name": "book, publication", "query_description": "Show the title and publication dates of books.", "results_description": ["The Black Lamb was published in August 2008.", "The book titled The Black Lamb was published in August 2008.", "The book's title is The Black Lamb and it's publication date is August 2008."], "result": ",book Title,publication Publication_Date\n0,The Black Lamb,August 2008\n", "difficulty": "join"}, {"table_id": "Ref_document_types, Documents", "query": "SELECT T1.document_type_name AS \"Ref_document_types document_type_name\", T1.document_type_description AS \"Ref_document_types document_type_description\", T2.Document_date AS \"Documents Document_date\" \n FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code", "table_name": "Ref_document_types, Documents", "query_description": "What is the document type name and the document type description and creation date for all the documents?", "results_description": ["The document type name is CV, the document type description is excellent and the creation date is 2004-08-28 06:59:19", "The document of type CV has the date 2004-08-28 06:59:19 and its description is excellent.", "The document with date 2004-08-28 06:59:19 and type CV has description excellent."], "result": ",Documents Document_date,Ref_document_types document_type_name,Ref_document_types document_type_description\n0,2004-08-28 06:59:19,CV,excellent\n", "difficulty": "join"}, {"table_id": "TRANSACTIONS, Transactions_Lots", "query": "SELECT T2.lot_id AS \"Transactions_Lots lot_id\", AVG(amount_of_transaction) AS \"average amount_of_transaction\" \n FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id \n GROUP BY T2.lot_id ORDER BY AVG(amount_of_transaction)", "table_name": "TRANSACTIONS, Transactions_Lots", "query_description": "Show the average amount of transactions for different lots, ordered by average amount of transactions.", "results_description": ["Transaction lot 9 has on average 0 transactions", "The lot with id 9 has 0 average amount of transactions.", "The transaction lot with id 9 has 0 average amount of transactions."], "result": ",Transactions_Lots lot_id,average amount_of_transaction\n0,9.0,0.0\n", "difficulty": "join_aggregate"}, {"table_id": "people, perpetrator", "query": "SELECT T1.Name AS \"people Name\", T2.Country AS \"perpetrator Country\" \n FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID \n WHERE T2.Country = 'China' OR T2.Country = 'Japan'", "table_name": "people, perpetrator", "query_description": "What are the names of perpetrators in country \"China\" or \"Japan\"?", "results_description": ["Tyrone Brayan is a perpetrator in China.", "The name of perpetrator in country China is Tyrone Brayan", "The perpetrator named Tyrone Brayan is from China"], "result": ",people Name,perpetrator Country\n0,Tyrone Brayan,China\n", "difficulty": "join"}, {"table_id": "ENROLLED_IN, GRADECONVERSION, STUDENT", "query": "SELECT AVG(T2.gradepoint) AS \"average gradepoint\", T3.LName AS \"STUDENT LName\" \n FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID \n WHERE T3.LName = 'Smith'", "table_name": "ENROLLED_IN, GRADECONVERSION, STUDENT", "query_description": "Find the average grade point of student whose last name is Smith.", "results_description": ["Smith has an average grade point of 3.2", "The student with last name Smith has 3.2 average grade point.", "The student with last name Smith has 3.2 average grade point."], "result": ",STUDENT LName,average gradepoint\n0,Smith,3.2\n", "difficulty": "join_aggregate"}, {"table_id": "campuses", "query": "SELECT campus, YEAR \n FROM campuses \n WHERE YEAR >= 1935 AND YEAR <= 1939", "table_name": "campuses", "query_description": "What campuses opened between 1935 and 1939?", "results_description": ["In 1938 the campus California State Polytechnic University-Pomona was established.", "The campus California State Polytechnic University-Pomona was opened in 1938.", "The campus of California State Polytechnic University-Pomona was opened in 1938."], "result": ",Year,Campus\n0,1938,California State Polytechnic University-Pomona\n", "difficulty": "small_select"}, {"table_id": "storm", "query": "SELECT name, dates_active, number_deaths \n FROM storm \n WHERE number_deaths >= 1", "table_name": "storm", "query_description": "List name, dates active, and number of deaths for all storms with at least 1 death.", "results_description": ["The storm Two was active in August3\u2013August10 and caused 7 deaths.", "The name of the storm with at least 1 death is Two, the dates active is August 3 to August 10 and the number of deaths is 7", "The storm named Two which was active from August 3 - August 10, caused 7 deaths."], "result": ",Name,Dates_active,Number_Deaths\n0,Two,August3\u2013August10,7\n", "difficulty": "large_select"}, {"table_id": "county", "query": "SELECT Zip_code, County_name \n FROM county \n WHERE County_name = 'Howard'", "table_name": "county", "query_description": "What is the zip code the county named \"Howard\" is located in?", "results_description": ["The Howard county has the zip code D21", "The county named Howard has the zip code D21.", "Howard is located in the area with zip code D21"], "result": ",Zip_code,County_name\n0,D21,Howard\n", "difficulty": "small_select"}, {"table_id": "performance", "query": "SELECT AVG(Attendance) AS \"average Attendance\" \n FROM performance", "table_name": "performance", "query_description": "What is the average number of attendees for performances?", "results_description": ["The average number of attendees for performances is 1649.1666666666667", "The average number of attendees for performances is 1649.1666666666667", "The average attendance is 1649.1666666666667."], "result": ",average Attendance\n0,1649.1666666666667\n", "difficulty": "aggregate"}, {"table_id": "farm", "query": "SELECT MAX(Cows) AS \"maximum Cows\", MIN(Cows) AS \"minimum Cows\" \n FROM farm", "table_name": "farm", "query_description": "What are the maximum and minimum number of cows across all farms.", "results_description": ["The maximum number of cows is 3987 and the minimum number of cows is 2407.2.", "The maximum number of cows across all farms is 3987 and the minimum is 2407.2", "The maximum number of cows is 3987 while the minimum is 2407.2."], "result": ",maximum Cows,minimum Cows\n0,3987.0,2407.2\n", "difficulty": "aggregate"}, {"table_id": "Sportsinfo", "query": "SELECT SUM(gamesplayed) AS \"sum of gamesplayed\", sportname, onscholarship \n FROM Sportsinfo \n WHERE sportname = 'Football' AND onscholarship = 'Y'", "table_name": "Sportsinfo", "query_description": "How many games are played for all football games by students on scholarship?", "results_description": ["Out of the 38 football games played, Y are played by students on scholarship", "There were 38 football games played that were on scholarship.", "There were 38 games played in Football by students with scholarship."], "result": ",SportName,OnScholarship,sum of gamesplayed\n0,Football,Y,38\n", "difficulty": "aggregate"}, {"table_id": "Ref_budget_codes", "query": "SELECT budget_type_code, budget_type_description \n FROM Ref_budget_codes", "table_name": "Ref_budget_codes", "query_description": "What are the type codes and descriptions of each budget type?", "results_description": ["Budget type has code \"GV\" and description \"Government\".", "Budget type code \"GV\" has description \"Government\"", "The type code GV has the description Government."], "result": ",Budget_Type_Code,Budget_Type_Description\n0,GV,Government\n", "difficulty": "small_select"}, {"table_id": "customers", "query": "SELECT customer_name \n FROM customers", "table_name": "customers", "query_description": "What are the names of all the customers?", "results_description": ["The customer name is Dr. Julia Wuckert MD.", "The names of customers are Dr. Julia Wuckert MD", "The customer is named Dr. Julia Wuckert MD"], "result": ",customer_name\n0,Dr. Julia Wuckert MD\n", "difficulty": "small_select"}, {"table_id": "advisor, instructor, student", "query": "SELECT T2.name AS \"instructor name\", T2.salary AS \"instructor salary\", T3.dept_name AS \"student dept_name\" \n FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id \n WHERE T3.dept_name = 'History'", "table_name": "advisor, instructor, student", "query_description": "What are the names and salaries of instructors who advises students in the History department?", "results_description": ["The instructor named Wieland, who advises in the History department, has a salary of 124651.41", "The instructor named Wieland has a salary of 124651.41 and advises students in the History department", "The instructor named Wieland has a salary of 124651.41 and is in the department of History."], "result": ",instructor name,instructor salary,student dept_name\n0,Wieland,124651.41,History\n", "difficulty": "join"}, {"table_id": "Movie", "query": "SELECT director \n FROM Movie \n WHERE director <> 'null' \n GROUP BY director \n HAVING COUNT(*) = 1", "table_name": "Movie", "query_description": "What are the names of the directors who made exactly one movie excluding director NULL?", "results_description": ["The director of the film is George Lucas.", "George Lucas made exactly one movie", "The director George Lucas has made exactly one movie excluding director NULL"], "result": ",director\n0,George Lucas\n", "difficulty": "aggregate_group_by"}, {"table_id": "genres, tracks, media_types", "query": "SELECT T2.name AS \"tracks name\", T3.name AS \"media_types name\", T1.name AS \"genres name\" \n FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id \n WHERE T1.name = 'Rock' AND T3.name = 'MPEG audio file'", "table_name": "genres, tracks, media_types", "query_description": "What are the names of all Rock tracks that are stored on MPEG audio files?", "results_description": ["For Those About To Rock (We Salute You) is a rock song stored as a MPEG audio file", "The Rock track For Those About To Rock (We Salute You) is stored in MPEG audio file.", "The name of the track of genre Rock that is stored as MPEG audio file is For Those About To Rock (We Salute You)"], "result": ",genres name,tracks name,media_types name\n0,Rock,For Those About To Rock (We Salute You),MPEG audio file\n", "difficulty": "join"}, {"table_id": "authors, authorship, papers", "query": "SELECT t3.title AS \"papers title\", t1.lname AS \"authors lname\", t1.fname AS \"authors fname\" \n FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid \n WHERE t1.fname = 'Olin' AND t1.lname = 'Shivers'", "table_name": "authors, authorship, papers", "query_description": "Find the papers which have \"Olin Shivers\" as an author.", "results_description": ["Olin Shivers is an author of the paper Functional Pearl: Modular Rollback through Control Logging.", "Olin Shivers was the author of Functional Pearl: Modular Rollback through Control Logging.", "The paper titled Functional Pearl: Modular Rollback through Control Logging was authored by Olin Shivers."], "result": ",papers title,authors fname,authors lname\n0,Functional Pearl: Modular Rollback through Control Logging,Olin,Shivers\n", "difficulty": "join"}, {"table_id": "staff", "query": "SELECT last_name, email_address \n FROM staff \n WHERE email_address LIKE '%wrau%'", "table_name": "staff", "query_description": "Find the last name of the staff whose email address contains \"wrau\".", "results_description": ["The staff member whose last name is Erdman has the following email: wrau@example.com", "The staff with last name Erdman has the email address wrau@example.com.", "The last name is Erdman and the email address is wrau@example.com"], "result": ",last_name,email_address\n0,Erdman,wrau@example.com\n", "difficulty": "small_select"}, {"table_id": "ASSESSMENT_NOTES", "query": "SELECT COUNT(*) AS \"count of ASSESSMENT_NOTES\" \n FROM ASSESSMENT_NOTES", "table_name": "ASSESSMENT_NOTES", "query_description": "How many assessment notes are there in total?", "results_description": ["There are 15 assessment notes.", "In total there are 15 assessment notes.", "The total number of assessment notes is 15"], "result": ",count of ASSESSMENT_NOTES\n0,15\n", "difficulty": "aggregate"}, {"table_id": "Staff", "query": "SELECT COUNT(*) AS \"count of Staff\", first_name \n FROM Staff \n WHERE first_name = 'Ludie'", "table_name": "Staff", "query_description": "How many employees have a first name of Ludie?", "results_description": ["There is 1 employee with a first name of Ludie.", "There is 1 employee whose first name is Ludie", "There is one staff with first name Ludie."], "result": ",first_name,count of Staff\n0,Ludie,1\n", "difficulty": "aggregate"}, {"table_id": "Movie", "query": "SELECT title, director, YEAR \n FROM Movie \n WHERE director = 'James Cameron' AND YEAR > 2000", "table_name": "Movie", "query_description": "What are the titles of all movies that James Cameron directed after 2000?", "results_description": ["James Cameron directed Avatar in 2009", "The movie Avatar released in 2009 was directed by James Cameron.", "The movie with title Avatar was directed by James Cameron in 2009."], "result": ",year,title,director\n0,2009,Avatar,James Cameron\n", "difficulty": "small_select"}, {"table_id": "customers, invoices", "query": "SELECT T1.first_name AS \"customers first_name\", T1.last_name AS \"customers last_name\", SUM(T2.total) AS \"sum of total\", T1.id AS \"customers id\" \n FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id \n GROUP BY T1.id ORDER BY SUM(T2.total) DESC", "table_name": "customers, invoices", "query_description": "List the top 10 customers by total gross sales. List customers' first and last name and total gross sales.", "results_description": ["The customer Helena Hol\u00fd has the id 6 and a total gross sales of 49.620000000000005.", "The customers with names Helena Hol\u00fd have total gross sales 49.620000000000005 and their ids are 6", "Customer Hol\u00fd Helena with id 6, has 49.620000000000005 total invoices."], "result": ",customers id,sum of total,customers last_name,customers first_name\n0,6,49.620000000000005,Hol\u00fd,Helena\n", "difficulty": "join_aggregate"}, {"table_id": "Documents", "query": "SELECT COUNT(*) AS \"count of Documents\", document_status_code \n FROM Documents \n WHERE document_status_code = 'done'", "table_name": "Documents", "query_description": "How many documents have the status code done?", "results_description": ["Four documents have the status done.", "There are 4 documents with status code \"done\"", "There are 4 documents with the status code done."], "result": ",count of Documents,document_status_code\n0,4,done\n", "difficulty": "aggregate"}, {"table_id": "Apartments", "query": "SELECT MIN(bathroom_count) AS \"minimum bathroom_count\", MAX(bathroom_count) AS \"maximum bathroom_count\" \n FROM Apartments", "table_name": "Apartments", "query_description": "Give me the minimum and maximum bathroom count among all the apartments.", "results_description": ["The maximum number of bathrooms is 3 and the minimum number of bathrooms is 1.", "The apartments have a maximum of 3 bathrooms and a minimum of 1 bathroom.", "The maximum number of bathrooms in the apartment are 3 while the minimum is 1."], "result": ",maximum bathroom_count,minimum bathroom_count\n0,3,1\n", "difficulty": "aggregate"}]