spiderology / testsets /datetime /markup_datetime.csv
k8-dmi3eva's picture
[NEW]: Upload test-sets
cdc1cad verified
db_id,question,query,simple_question,simple_query,source
aircraft,In which countries are aircraft matches held in March?,SELECT Country FROM match WHERE Date LIKE '%March%',In which countries are aircraft matches held?,SELECT Country FROM match,train
apartment_rentals,List all booking ID that became available at 2015-07-15 11:06:29,SELECT DISTINCT(apt_booking_id) FROM View_Unit_Status WHERE status_date = '2015-07-15 11:06:29',List all booking ID,SELECT DISTINCT(apt_booking_id) FROM View_Unit_Status,train
assets_maintenance,Output the start times and id of all engineers who have ever begun their visit after 21:00,"SELECT DISTINCT(engineer_id), visit_end_datetime FROM Engineer_Visits WHERE visit_end_datetime LIKE '%21:%' OR visit_end_datetime LIKE '%22:%' OR visit_end_datetime LIKE '%23:%' GROUP BY visit_end_datetime",Output the start times and id of all engineers,"SELECT DISTINCT(engineer_id), visit_end_datetime FROM Engineer_Visits",train
battle_death,Which of the Latin commanders participated in the battles in April 1205?,SELECT DISTINCT(latin_commander) FROM battle WHERE Date LIKE '%April%' AND Date LIKE '%1205%',Which of the Latin commanders participated in the battles?,SELECT DISTINCT(latin_commander) FROM battle,dev
battle_death,How many battles were fought between 1205 and 1207 inclusive?,SELECT COUNT(DISTINCT id) FROM battle WHERE Date LIKE '%1205%' OR Date LIKE '%1206%' OR Date LIKE '%1207%',How many battles were fought?,SELECT COUNT(DISTINCT id) FROM battle,dev
behavior_monitoring,"Show the id of the notes made on June 30, 2005",SELECT notes_id FROM Assessment_Notes WHERE date_of_notes LIKE '%2005-06-30%',Show the id of the notes,SELECT notes_id FROM Assessment_Notes,error
behavior_monitoring,"ID of the notes made on 30th June, 2005",SELECT notes_id FROM Assessment_Notes WHERE date_of_notes LIKE '%2005-06-30%',ID of the notes,SELECT notes_id FROM Assessment_Notes,error
behavior_monitoring,"What the id of the notes made on June the 30th, 2005",SELECT notes_id FROM Assessment_Notes WHERE date_of_notes LIKE '%2005-06-30%',What the id of the notes,SELECT notes_id FROM Assessment_Notes,error
bike_1,Which start station had the most trips starting from August? Give me the name and id of the station.,"SELECT start_station_name , start_station_id FROM trip WHERE start_date LIKE ""8/%"" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1;",Which start station had the most trips? Give me the name and id of the station.,"SELECT start_station_name , start_station_id FROM trip GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1;",train
bike_1,What are the start station's name and id for the one that had the most start trips in August?,"SELECT start_station_name , start_station_id FROM trip WHERE start_date LIKE ""8/%"" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1;",What are the start station's name and id for the one that had the most start trips?,"SELECT start_station_name , start_station_id FROM trip GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1;",train
body_builder,"What are the total scores of the body builders whose birthday contains the string ""January"" ?","SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T2.Birth_Date LIKE ""%January%"";",What are the total scores of the body builders?,SELECT total FROM body_builder,train
cinema,"Title of the film, released from September 21 to September 25, 1992","SELECT Title FROM film WHERE Original_air_date = 'September 21–25, 1992'",Title of the films released,SELECT Title FROM film,train
cinema,Title of the film with original air date from 21 to 25 of September 1992,"SELECT Title FROM film WHERE Original_air_date = 'September 21–25, 1992'",Title of the films,SELECT Title FROM film ,train
cinema,What are the titles of the films released in October?,SELECT DISTINCT(Title) FROM film WHERE Original_air_date LIKE '%october%',What are the titles of the films?,SELECT DISTINCT(Title) FROM film,train
cinema,How many times per day are scheduled movies shown on average in July?,SELECT AVG(Show_times_per_day) FROM schedule WHERE Date LIKE '%july%',How many times per day are scheduled movies shown on average?,SELECT AVG(Show_times_per_day) FROM schedule,train
coffee_shop,What are the id and address of the shops which have a happy hour in May?,"SELECT t1.address , t1.shop_id FROM shop AS t1 JOIN happy_hour AS t2 ON t1.shop_id = t2.shop_id WHERE MONTH = 'May';",What are the id and address of the shops?,"SELECT address , shop_id FROM shop",train
coffee_shop,Addresses of shops where happy hour took place in April,SELECT DISTINCT(Address) FROM shop JOIN happy_hour ON shop.Shop_ID = happy_hour.Shop_ID WHERE Month = 'April',Addresses of shops,SELECT DISTINCT(Address) FROM shop,train
coffee_shop,Average number of staff in May,SELECT AVG(Num_of_shaff_in_charge) FROM happy_hour WHERE Month = 'May',Average number of staff,SELECT AVG(Num_of_shaff_in_charge) FROM happy_hour ,train
college_1,"Class Codes that run on Mondays, Wednesdays, and Fridays",SELECT DISTINCT(CLASS_CODE) FROM CLASS WHERE CLASS_TIME LIKE '%MWF%',Class Codes,SELECT DISTINCT(CLASS_CODE) FROM CLASS,train
college_1,In what classrooms are classes held from 8 am to 9 am?,SELECT DISTINCT(CLASS_ROOM) FROM CLASS WHERE CLASS_TIME LIKE '%8:00-8:50 a.m.%',In what classrooms are classes?,SELECT DISTINCT(CLASS_ROOM) FROM CLASS,train
college_1,Surnames of students born in 1975,SELECT DISTINCT(STU_FNAME) FROM STUDENT WHERE STU_DOB LIKE '%1975%',Surnames of students,SELECT DISTINCT(STU_FNAME) FROM STUDENT,train
college_3,Find the names of courses that have either 3 credits or 1 credit but 4 hours.,SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4;,Find the names of courses that have either 3 credits or 1 credit,SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1;,train
college_3,"What are the names of courses that give either 3 credits, or 1 credit and 4 hours?",SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4;,What are the names of courses that give either 3 credits or 1 credit?,SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1,train
course_teach,Amount of courses started in May,SELECT count(DISTINCT Course_ID) FROM Course WHERE Staring_Date LIKE '%May%',Amount of courses,SELECT count(DISTINCT Course_ID) FROM Course,dev
course_teach,Show me names of the courses started at the 14th of May,SELECT DISTINCT(Course) FROM Course WHERE Staring_Date = '14 May',Show me names of the courses,SELECT DISTINCT(Course) FROM Course,dev
course_teach,What is the minimum grade for the May 9 course?,SELECT MIN(Grade) FROM course_arrange JOIN Course ON course_arrange.Course_ID = Course.Course_ID WHERE Staring_Date LIKE '%9 May%',What is the minimum grade for the course?,SELECT MIN(Grade) FROM course_arrange,dev
cre_Doc_Control_Systems,Total number of documents received in 2008,SELECT COUNT(DISTINCT document_id) FROM Documents WHERE receipt_date LIKE '%2008%',Total number of documents received,SELECT COUNT(DISTINCT document_id) FROM Documents,train
cre_Doc_Control_Systems,Number of documents mailed in November,SELECT COUNT(DISTINCT document_id) FROM Documents_Mailed WHERE mailing_date LIKE '%-11-%',Number of documents mailed in November,SELECT COUNT(DISTINCT document_id) FROM Documents_Mailed,train
cre_Doc_Control_Systems,How many documents were mailed in the fifth month of 1993?,SELECT COUNT(DISTINCT document_id) FROM Documents_Mailed WHERE mailing_date LIKE '%-05-%' AND mailing_date LIKE '%1993%',How many documents were mailed?,SELECT COUNT(DISTINCT document_id) FROM Documents_Mailed,train
cre_Doc_Control_Systems,How many documents were sent in May 1993?,SELECT COUNT(DISTINCT document_id) FROM Documents_Mailed WHERE mailing_date LIKE '%05%' AND mailing_date LIKE '%1993%',How many documents were sent?,SELECT COUNT(DISTINCT document_id) FROM Documents_Mailed,train
cre_Doc_Template_Mgt,Id of templates effective from 2005 to 2008,SELECT Template_ID FROM Templates WHERE Date_Effective_From LIKE '%2005%' AND Date_Effective_TO LIKE '%2008%',Id of templates,SELECT Template_ID FROM Templates,dev
cre_Doc_Template_Mgt,What are the IDs of templates effective from 2005-11-12 to 2008-01-05?,SELECT Template_ID FROM Templates WHERE Date_Effective_FROM LIKE '%2005-11-12%' AND Date_Effective_TO LIKE '%2008-01-05%',What are the IDs of templates?,SELECT Template_ID FROM Templates,dev
cre_Doc_Template_Mgt,Number of templates that became effective between 2010 and 2012,SELECT COUNT(DISTINCT Template_ID) FROM Templates WHERE Date_Effective_From LIKE '%2010%' OR Date_Effective_From LIKE '%2011%' OR Date_Effective_From LIKE '%2012%',Number of templates,SELECT COUNT(DISTINCT Template_ID) FROM Templates,dev
customers_and_addresses,Find the total amount of products ordered before 2018-03-17 07:13:53.,"SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < ""2018-03-17 07:13:53"";",Find the total amount of products.,SELECT sum(order_quantity) FROM order_items ,train
customers_and_addresses,What is the total amount of products purchased before 2018-03-17 07:13:53?,"SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < ""2018-03-17 07:13:53"";",What is the total amount of products purchased?,SELECT sum(order_quantity) FROM order_items ,train
customers_and_addresses,Display amount of products ordered before 2015-03-17 00:00:00.,"SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < ""2015-03-17 00:00:00.""",Display amount of products ordered.,SELECT sum(order_quantity) FROM order_items ,train
department_store,Return the name and gender of the staff who was assigned in 2016.,"SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE ""2016%"";",Return the name and gender of the staff .,"SELECT staff_name , staff_gender FROM staff",train
department_store,What are the names and genders of staff who were assigned in 2016?,"SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE ""2016%"";",What are the names and genders of staff ?,"SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE ""2016%"";",train
entrepreneur,Surnames of born in 1975,SELECT DISTINCT(Name) FROM people WHERE Date_of_Birth LIKE '%1975%',Surnames,SELECT DISTINCT(Name) FROM people,train
entrepreneur,"Who was born on August 28, 1975?",SELECT DISTINCT(Name) FROM people WHERE Date_of_Birth LIKE '%1975-08-27%',Who was born?,SELECT DISTINCT(Name) FROM people,train
formula_1,What are the names of races held after 12:00:00 or before 09:00:00?,"SELECT name FROM races WHERE TIME > ""12:00:00"" OR TIME < ""09:00:00"";",What are the names of races?,SELECT name FROM races,train
formula_1,What are the names of all races that occurred after 12:00:00 or before 09:00:00?,"SELECT name FROM races WHERE TIME > ""12:00:00"" OR TIME < ""09:00:00"";",What are the names of all races?,SELECT name FROM races,train
hr_1,"Find job id and date of hire for those employees who was hired between November 5th, 2007 and July 5th, 2009.","SELECT job_id , hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05';",Find job id and date of hire for all employees,"SELECT job_id , hire_date FROM employees",train
hr_1,"What are the job ids and dates of hire for employees hired after November 5th, 2007 and before July 5th, 2009?","SELECT job_id , hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05';",What are the job ids and dates of hire for employees?,"SELECT job_id , hire_date FROM employees",train
hr_1,display all the details from Employees table for those employees who was hired before 2002-06-21.,SELECT * FROM employees WHERE hire_date < '2002-06-21';,display all the details from Employees table,SELECT * FROM employees,train
hr_1,"What is all the information about employees hired before June 21, 2002?",SELECT * FROM employees WHERE hire_date < '2002-06-21';,What is all the information about all employees?,SELECT * FROM employees ,train
hr_1,"display those employees who joined after 7th September, 1987.",SELECT * FROM employees WHERE hire_date > '1987-09-07';,display all employees.,SELECT * FROM employees,train
hr_1,"Which employees were hired after September 7th, 1987?",SELECT * FROM employees WHERE hire_date > '1987-09-07';,Which employees were hired?,SELECT * FROM employees,train
hr_1,display job ID for those jobs that were done by two or more for more than 300 days.,SELECT job_id FROM job_history WHERE end_date - start_date > 300 GROUP BY job_id HAVING COUNT(*) >= 2;,display job ID for those jobs that were done by two or more.,SELECT job_id FROM job_history GROUP BY job_id HAVING COUNT(*) >= 2;,train
hr_1,What are the job ids for jobs done more than once for a period of more than 300 days?,SELECT job_id FROM job_history WHERE end_date - start_date > 300 GROUP BY job_id HAVING COUNT(*) >= 2;,What are the job ids for jobs done more than once?,SELECT job_id FROM job_history GROUP BY job_id HAVING COUNT(*) >= 2;,train
inn_1,"How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?","SELECT Adults FROM Reservations WHERE CheckIn = ""2010-10-23"" AND FirstName = ""CONRAD"" AND LastName = ""SELBIG"";",How many adults stay in the room CONRAD SELBIG?,"SELECT Adults FROM Reservations WHERE FirstName = ""CONRAD"" AND LastName = ""SELBIG"";",train
inn_1,"Find the number of adults for the room reserved and checked in by CONRAD SELBIG on Oct 23, 2010.","SELECT Adults FROM Reservations WHERE CheckIn = ""2010-10-23"" AND FirstName = ""CONRAD"" AND LastName = ""SELBIG"";",Find the number of adults for the room reserved and checked in by CONRAD SELBIG.,"SELECT Adults FROM Reservations WHERE FirstName = ""CONRAD"" AND LastName = ""SELBIG"";",train
inn_1,"How many kids stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?","SELECT Kids FROM Reservations WHERE CheckIn = ""2010-09-21"" AND FirstName = ""DAMIEN"" AND LastName = ""TRACHSEL"";",How many kids stay in the room DAMIEN TRACHSEL?,"SELECT Kids FROM Reservations WHERE FirstName = ""DAMIEN"" AND LastName = ""TRACHSEL"";",train
inn_1,"Return the number of kids for the room reserved and checked in by DAMIEN TRACHSEL on Sep 21, 2010.","SELECT Kids FROM Reservations WHERE CheckIn = ""2010-09-21"" AND FirstName = ""DAMIEN"" AND LastName = ""TRACHSEL"";",Return the number of kids for the room reserved and checked in by DAMIEN TRACHSEL.,"SELECT Kids FROM Reservations WHERE FirstName = ""DAMIEN"" AND LastName = ""TRACHSEL"";",train
inn_1,Last and first names of everyone who checked in in February,"SELECT LastName, FirstName FROM Reservations WHERE CheckIn LIKE '%FEB%'",Last and first names of everyone who checked in,"SELECT LastName, FirstName FROM Reservations",train
inn_1,Show me the last and first names of everyone who checked in in February and moved out in March,"SELECT LastName, FirstName FROM Reservations WHERE CheckIn LIKE '%FEB%' AND CheckOut LIKE '%MAR%'",Show me the last and first names of everyone,"SELECT LastName, FirstName FROM Reservations",train
local_govt_and_lot,What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21',"SELECT DISTINCT T2.thing_id , T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21';",What are the distinct id and type of the thing that has the status 'Close',"SELECT DISTINCT T2.thing_id , T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21';",train
music_1,How many songs have 4 minute duration?,"SELECT count(*) FROM files WHERE duration LIKE ""4:%"";",How many songs are?,SELECT count(*) FROM files,train
music_1,What is the count of the songs that last approximately 4 minutes?,"SELECT count(*) FROM files WHERE duration LIKE ""4:%"";",What is the count of the songs?,SELECT count(*) FROM files,train
music_1,List the name and gender for all artists who released songs in March.,"SELECT T1.artist_name , T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE ""%Mar%"";",List the name and gender for all artists.,"SELECT artist_name , gender FROM artist",train
music_1,What are the names and genders of all artists who released songs in the month of March?,"SELECT T1.artist_name , T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE ""%Mar%"";",What are the names and genders of all artists?,"SELECT artist_name , gender FROM artist ",train
music_1,List the names of all songs that have 4 minute duration or are in English.,"SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""4:%"" UNION SELECT song_name FROM song WHERE languages = ""english"";",List the names of all songs that are in English.,"SELECT song_name FROM song WHERE languages = ""english"";",train
music_1,What are the names of all songs that are approximately 4 minutes long or are in English?,"SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""4:%"" UNION SELECT song_name FROM song WHERE languages = ""english"";",What are the names of all songs that are in English?,"SELECT song_name FROM song WHERE languages = ""english"";",train
music_1,What are the maximum and minimum resolution of songs whose duration is 3 minutes?,"SELECT max(T2.resolution) , min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""3:%"";",What are the maximum and minimum resolution of songs?,"SELECT max(resolution) , min(resolution) FROM song",train
music_1,What is the maximum and minimum resolution of all songs that are approximately 3 minutes long?,"SELECT max(T2.resolution) , min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""3:%"";",What is the maximum and minimum resolution of all songs that are approximately 3 minutes long?,"SELECT max(resolution) , min(resolution) FROM song",train
music_1,Id files with tracks longer than three minutes,SELECT DISTINCT(f_id) FROM files WHERE duration > '3:00',Id files,SELECT DISTINCT(f_id) FROM files,train
music_1,What the names of all artists who released songs in December.,"SELECT T1.artist_name , T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE ""%Decr%""",What the names of all artists.,"SELECT artist_name , gender FROM artist",train
station_weather,Name of train with departure time 9:49 PM,SELECT name FROM train WHERE time = '21:49',Name of trains,SELECT name FROM train,train
station_weather,Give me all trains numbers with time between 10:00 and 13:00,SELECT DISTINCT(train_number) FROM train WHERE time LIKE '%10:%' OR time LIKE '%11:%' OR time LIKE '%12:%',Give me all trains numbers,SELECT DISTINCT(train_number) FROM train,train
theme_gallery,How many people attended the gallery in December?,SELECT SUM(Attendance) FROM exhibition_record WHERE Date LIKE '%December%',How many people attended the gallery?,SELECT SUM(Attendance) FROM exhibition_record,train
tracking_grants_for_research,What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'?,SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id WHERE T2.sent_date < '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date > '1989-03-16 18:27:16';,What are the distinct grant amount for the grants?,SELECT grant_amount FROM Grants,train
tracking_grants_for_research,What are the different grant amounts for documents sent before '1986-08-26 20:49:27' and after the grant ended on '1989-03-16 18:27:16'?,SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id WHERE T2.sent_date < '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date > '1989-03-16 18:27:16';,What are the different grant amounts for documents?,SELECT grant_amount FROM Grants,train
tracking_grants_for_research,How many project staff worked as leaders or started working before '1989-04-24 23:51:54'?,SELECT count(*) FROM Project_Staff WHERE role_code = 'leader' OR date_from < '1989-04-24 23:51:54';,How many project staff worked as leaders?,SELECT count(*) FROM Project_Staff WHERE role_code = 'leader';,train
tracking_grants_for_research,How many project members were leaders or started working before '1989-04-24 23:51:54'?,SELECT count(*) FROM Project_Staff WHERE role_code = 'leader' OR date_from < '1989-04-24 23:51:54';,How many project members were leaders or started working before '1989-04-24 23:51:54'?,SELECT count(*) FROM Project_Staff WHERE role_code = 'leader';,train
tracking_grants_for_research,What are the staff roles of the staff who,SELECT role_code FROM Project_Staff WHERE date_from > '2003-04-19 15:06:20' AND date_to < '2016-03-15 00:33:18';,What are the staff roles of the staff,SELECT role_code FROM Project_Staff;,train
tracking_grants_for_research,What roles did staff members play between '2003-04-19 15:06:20' and '2016-03-15 00:33:18'?,SELECT role_code FROM Project_Staff WHERE date_from > '2003-04-19 15:06:20' AND date_to < '2016-03-15 00:33:18';,What roles did staff members?,SELECT role_code FROM Project_Staff,train
tracking_orders,Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01.,"SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= ""2009-01-01"" AND T2.date_order_placed <= ""2010-01-01"";",Give me the names of customers,SELECT customer_name FROM customers,train
tracking_orders,Which customers made orders between 2009-01-01 and 2010-01-01? Find their names.,"SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= ""2009-01-01"" AND T2.date_order_placed <= ""2010-01-01"";",Which customers made orders? Find their names.,SELECT customer_name FROM customers,train
tracking_orders,Give me a list of distinct product ids from orders placed between 1975-01-01 and 1976-01-01?,"SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= ""1975-01-01"" AND T1.date_order_placed <= ""1976-01-01"";",Give me a list of distinct product ids,SELECT DISTINCT product_id FROM order_items,train
tracking_orders,What are the distinct ids of products ordered between 1975-01-01 and 1976-01-01??,"SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= ""1975-01-01"" AND T1.date_order_placed <= ""1976-01-01"";",What are the distinct ids of products?,SELECT DISTINCT product_id FROM order_items,train
tracking_orders,Find the ids of orders which are shipped after 2000-01-01.,"SELECT order_id FROM shipments WHERE shipment_date > ""2000-01-01"";",Find the ids of orders.,SELECT order_id FROM shipments,train
tracking_orders,Which orders have shipment after 2000-01-01? Give me the order ids.,"SELECT order_id FROM shipments WHERE shipment_date > ""2000-01-01"";",Which orders have shipment? Give me the order ids.,SELECT order_id FROM shipments;,train
tracking_orders,Find the invoice numbers which are created before 1989-09-03 or after 2007-12-25.,"SELECT invoice_number FROM invoices WHERE invoice_date < ""1989-09-03"" OR invoice_date > ""2007-12-25"";",Find the invoice numbers.,SELECT invoice_number FROM invoices,train
tracking_orders,What are the invoice numbers created before 1989-09-03 or after 2007-12-25?,"SELECT invoice_number FROM invoices WHERE invoice_date < ""1989-09-03"" OR invoice_date > ""2007-12-25"";",What are the invoice numbers?,SELECT invoice_number FROM invoices,train
tracking_orders,Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25.,"SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < ""1989-09-03"" OR invoice_date > ""2007-12-25"";",Find the distinct details of invoices,SELECT DISTINCT invoice_details FROM invoices,train
tracking_orders,What are the distinct details of invoices created before 1989-09-03 or after 2007-12-25?,"SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < ""1989-09-03"" OR invoice_date > ""2007-12-25"";",What are the distinct details of invoices?,SELECT DISTINCT invoice_details FROM invoices,train
tracking_software_problems,What are the ids of the problems which are reported after 1978-06-26?,"SELECT problem_id FROM problems WHERE date_problem_reported > ""1978-06-26"";",What are the ids of the problems?,SELECT problem_id FROM problems,train
tracking_software_problems,Find the ids of the problems reported after 1978-06-26.,"SELECT problem_id FROM problems WHERE date_problem_reported > ""1978-06-26"";",Find the ids of the problems.,SELECT problem_id FROM problems,train
tracking_software_problems,What are the ids of the problems which are reported before 1978-06-26?,"SELECT problem_id FROM problems WHERE date_problem_reported < ""1978-06-26"";",What are the ids of the problems?,SELECT problem_id FROM problems,train
tracking_software_problems,Which problems are reported before 1978-06-26? Give me the ids of the problems.,"SELECT problem_id FROM problems WHERE date_problem_reported < ""1978-06-26"";",Which problems are reported? Give me the ids of the problems.,SELECT problem_id FROM problems,train
tracking_software_problems,"For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?","SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > ""1986-11-13"" GROUP BY T2.product_id;","For each product that has problems, find the number of problems and the product id","SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id;",train
tracking_software_problems,"List the ids of the problems from the product ""voluptatem"" that are reported after 1995?","SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = ""voluptatem"" AND T1.date_problem_reported > ""1995"";","List the ids of the problems from the product ""voluptatem""?","SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = ""voluptatem"";",train
tracking_software_problems,"What are the ids of the problems that are from the product ""voluptatem"" and are reported after 1995?","SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = ""voluptatem"" AND T1.date_problem_reported > ""1995"";","What are the ids of the problems that are from the product ""voluptatem""?","SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = ""voluptatem"";",train
twitter_1,How many tweets are generated at 8 PM?,SELECT COUNT(DISTINCT id) FROM tweets WHERE createdate LIKE '%20:%',How many tweets are generated?,SELECT COUNT(DISTINCT id) FROM tweets,train
twitter_1,"Tweet texts created December 3, 2018",SELECT text FROM tweets WHERE createdate LIKE '%2018-03-12%',Tweet texts,SELECT text FROM tweets,train
workshop_paper,Names of workshops held in August 2007,SELECT DISTINCT(Name) FROM workshop WHERE Date LIKE '%August%' AND Date LIKE '%2007%',Names of workshops,SELECT DISTINCT(Name) FROM workshop,train
workshop_paper,"What was the name of the workshop held on 5th of July, 2011",SELECT DISTINCT(Name) FROM workshop WHERE Date LIKE '%July%' AND Date LIKE '%2011%' AND Date LIKE '%5%',What was the name of the workshop,SELECT DISTINCT(Name) FROM workshop,train
world_1,What is the total number of unique official languages spoken in the countries that are founded before 1930?,"SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = ""T"";",What is the total number of unique official languages spoken in all countries?,SELECT count(DISTINCT Language) FROM countrylanguage,dev
world_1,"For the countries founded before 1930, what is the total number of distinct official languages?","SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = ""T"";",What is the total number of distinct official languages?,"SELECT count(DISTINCT Language) FROM countrylanguage WHERE IsOfficial = ""T"";",dev