aherntech/sparc huggingface dataset:
Database: customer_complaints
Question sequence:
Which product ids have received complaints?
What are the names of those products?
Speaking of those names, count the number of complaints about them.
SQL query sequence:
SELECT DISTINCT product_id from complaints
SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id
SELECT t1.product_name ,  count(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_name
Final question: List the name of all products along with the number of complaints that they have received.
Final SQL: SELECT t1.product_name ,  count(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_name
Database: customer_complaints
Question sequence:
Which customer ids have filed complaints?
What are the emails of these customers?
Sum the complaints of each customer email address.
Find the email of the customer who has filed the most complaints.
SQL query sequence:
SELECT DISTINCT customer_id from complaints
SELECT DISTINCT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id
SELECT t1.email_address, count(*) FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_id
SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_id ORDER BY count(*) DESC LIMIT 1
Final question: Find the email of the customer who has filed the most complaints.
Final SQL: SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_id ORDER BY count(*) DESC LIMIT 1
Database: customer_complaints
Question sequence:
Which customer id filed the least number of complaints? How many?
Which product names did this customer complain about?
SQL query sequence:
SELECT customer_id, count(*) from complaints GROUP by customer_id ORDER BY count(*) ASC LIMIT 1
SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY count(*) LIMIT 1
Final question: Which products has been complained by the customer who has filed least amount of complaints?
Final SQL: SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY count(*) LIMIT 1
Database: customer_complaints
Question sequence:
What is the customer id of the customer who has filed the most recent complaint?
What is this customers city?
How about their phone number?
SQL query sequence:
SELECT customer_id from complaints ORDER BY date_complaint_raised DESC LIMIT 1
SELECT t1.town_city FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1
SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1
Final question: What is the phone number of the customer who has filed the most recent complaint?
Final SQL: SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1
Database: customer_complaints
Question sequence:
Find the email of the customers who have never filed a complaint before.
Also the phone number.
SQL query sequence:
SELECT email_address FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)
SELECT email_address ,  phone_number FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)
Final question: Find the email and phone number of the customers who have never filed a complaint before.
Final SQL: SELECT email_address ,  phone_number FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)
Database: customer_complaints
Question sequence:
What are the phone numbers of customers?
How about staff?
Union those.
SQL query sequence:
SELECT phone_number FROM customers
SELECT phone_number FROM staff
SELECT phone_number FROM customers UNION SELECT phone_number FROM staff
Final question: Find the phone number of all the customers and staff.
Final SQL: SELECT phone_number FROM customers UNION SELECT phone_number FROM staff
Database: customer_complaints
Question sequence:
Order the product records by descending price.
Just show the product names and category codes.
Only for the most expensive product.
SQL query sequence:
SELECT * FROM products ORDER BY product_price DESC
SELECT product_name ,  product_category_code FROM products ORDER BY product_price DESC
SELECT product_name ,  product_category_code FROM products ORDER BY product_price DESC LIMIT 1
Final question: Find the name and category of the most expensive product.
Final SQL: SELECT product_name ,  product_category_code FROM products ORDER BY product_price DESC LIMIT 1
Database: customer_complaints
Question sequence:
Which product ids have never been complained about?
Which ones have been complained about?
Find the prices of products which has never received a single complaint.
SQL query sequence:
SELECT product_id FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints)
SELECT DISTINCT product_id FROM complaints
SELECT product_price FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints)
Final question: Find the prices of products which has never received a single complaint.
Final SQL: SELECT product_price FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints)
Database: customer_complaints
Question sequence:
What is the name of the cheapest product?
Show records where this product was complained about.
Find the last name of the staff member who processed a complaint of this cheapest product.
SQL query sequence:
SELECT product_name FROM products ORDER BY product_price ASC LIMIT 1
SELECT * from complaints WHERE product_id in (SELECT product_id FROM products ORDER BY product_price ASC LIMIT 1)
SELECT last_name from staff where staff_id in (SELECT staff_id from complaints WHERE product_id in (SELECT product_id FROM products ORDER BY product_price ASC LIMIT 1))
Final question: Find the last names of the staff members who processed complaints about the cheapest product.
Final SQL: SELECT last_name from staff where staff_id in (SELECT staff_id from complaints WHERE product_id in (SELECT product_id FROM products ORDER BY product_price ASC LIMIT 1))
Database: customer_complaints
Question sequence:
Count the various complaint status codes.
Only show counts greater than 3.
SQL query sequence:
SELECT complaint_status_code, count(*) FROM complaints GROUP BY complaint_status_code
SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING count(*)  >  3
Final question: Which complaint status has more than 3 records on file?
Final SQL: SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING count(*)  >  3
Database: customer_complaints
Question sequence:
What are the email addresses of the staff?
Find the last name of the staff whose email address contains "wrau".
SQL query sequence:
SELECT email_address FROM staff
SELECT last_name FROM staff WHERE email_address LIKE "%wrau%"
Final question: Find the last name of the staff whose email address contains "wrau".
Final SQL: SELECT last_name FROM staff WHERE email_address LIKE "%wrau%"
Database: customer_complaints
Question sequence:
What is the most common customer type?
How many are there in this group?
SQL query sequence:
SELECT customer_type_code FROM customers GROUP BY customer_type_code ORDER BY count(*) DESC LIMIT 1
SELECT count(*) FROM customers GROUP BY customer_type_code ORDER BY count(*) DESC LIMIT 1
Final question: How many customers are there in the customer type with the most customers?
Final SQL: SELECT count(*) FROM customers GROUP BY customer_type_code ORDER BY count(*) DESC LIMIT 1
Database: customer_complaints
Question sequence:
What is the id of the first complaint?
Which staff id was there for it?
What was the last name of this staff member?
SQL query sequence:
SELECT complaint_id from complaints ORDER by date_complaint_raised ASC LIMIT 1
SELECT staff_id from complaints ORDER by date_complaint_raised ASC LIMIT 1
SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1
Final question: What is the last name of the staff who has handled the first ever complaint?
Final SQL: SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1
Database: customer_complaints
Question sequence:
Which complaints have type Product Failure?
Which complaint statuses are among those records?
Count the occurrences of each complaint status in the above.
SQL query sequence:
SELECT * from complaints where complaint_type_code  =  "Product Failure"
SELECT DISTINCT complaint_status_code from complaints WHERE complaint_status_code in (SELECT complaint_status_code from complaints where complaint_type_code  =  "Product Failure")
SELECT complaint_status_code ,  count(*) FROM complaints WHERE complaint_type_code  =  "Product Failure" GROUP BY complaint_status_code
Final question: Find the number of complaints with Product Failure type for each complaint status.
Final SQL: SELECT complaint_status_code ,  count(*) FROM complaints WHERE complaint_type_code  =  "Product Failure" GROUP BY complaint_status_code
Database: customer_complaints
Question sequence:
What are the staff ids of the top 5 staff who have handled the greatest number of complaints?
What are their first names?
SQL query sequence:
SELECT staff_id from complaints GROUP BY staff_id ORDER BY count(*) LIMIT 5
SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id GROUP BY t2.staff_id ORDER BY count(*) LIMIT 5
Final question: What are the first names of the top 5 staff who have handled the greatest number of complaints?
Final SQL: SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id GROUP BY t2.staff_id ORDER BY count(*) LIMIT 5
Database: restaurant_1
Question sequence:
Give the names and ratings of Restaurants.
Sort by descending order.
Just give the most highly rated restaurant name and rating.
SQL query sequence:
SELECT ResName , Rating FROM Restaurant
SELECT ResName , Rating FROM Restaurant ORDER BY Rating DESC
SELECT ResName , Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1;
Final question: Which restaurant has highest rating? List the restaurant name and its rating.
Final SQL: SELECT ResName , Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1;
Database: restaurant_1
Question sequence:
List the last names, first names, and ages of students.
Narrow that down to last name "Smith" and first name "Linda"
What is the age of student Linda Smith?
SQL query sequence:
SELECT LName, Fname, Age from student
SELECT LName, Fname, Age from student WHERE Fname = "Linda" AND Lname = "Smith";
SELECT Age FROM Student WHERE Fname = "Linda" AND Lname = "Smith";
Final question: What is the age of student Linda Smith?
Final SQL: SELECT Age FROM Student WHERE Fname = "Linda" AND Lname = "Smith";
Database: restaurant_1
Question sequence:
What is Linda Smith's Major?
How about Linda Smith's Adivisor?
Give her gender.
SQL query sequence:
SELECT Major FROM Student WHERE Fname = "Linda" AND Lname = "Smith";
SELECT Advisor FROM Student WHERE Fname = "Linda" AND Lname = "Smith";
SELECT Sex FROM Student WHERE Fname = "Linda" AND Lname = "Smith";
Final question: What is the gender of the student Linda Smith?
Final SQL: SELECT Sex FROM Student WHERE Fname = "Linda" AND Lname = "Smith";
Database: restaurant_1
Question sequence:
Give the student id of linda smith.
Now for Tracy Kim.
Which city does student Linda Smith live in?
SQL query sequence:
SELECT StuID FROM Student WHERE Fname = "Linda" AND Lname = "Smith";
SELECT StuID FROM Student WHERE Fname = "Tracy" AND Lname = "Kim";
SELECT city_code FROM Student WHERE Fname = "Linda" AND Lname = "Smith";
Final question: Which city does student Linda Smith live in?
Final SQL: SELECT city_code FROM Student WHERE Fname = "Linda" AND Lname = "Smith";
Database: restaurant_1
Question sequence:
Give the distinct advisors of students.
Which of those advises the most students?
Give the count, too.
SQL query sequence:
SELECT DISTINCT advisor from student
SELECT Advisor FROM Student GROUP BY Advisor ORDER BY count(Advisor) DESC LIMIT 1;
SELECT Advisor ,  count(*) FROM Student GROUP BY Advisor ORDER BY count(Advisor) DESC LIMIT 1;
Final question: Which Advisor has most of students? List advisor and the number of students.
Final SQL: SELECT Advisor ,  count(*) FROM Student GROUP BY Advisor ORDER BY count(Advisor) DESC LIMIT 1;
Database: restaurant_1
Question sequence:
Give distinct majors.
Which has the most number of students?
Which has the least?
Give the count to prove it.
SQL query sequence:
SELECT DISTINCT major from student
SELECT Major FROM Student GROUP BY Major ORDER BY count(Major) DESC LIMIT 1;
SELECT Major FROM Student GROUP BY Major ORDER BY count(Major) ASC LIMIT 1;
SELECT Major ,  count(*) FROM Student GROUP BY Major ORDER BY count(Major) ASC LIMIT 1;
Final question: Which major has least number of students? List the major and the number of students.
Final SQL: SELECT Major ,  count(*) FROM Student GROUP BY Major ORDER BY count(Major) ASC LIMIT 1;
Database: restaurant_1
Question sequence:
Which major has between 2 and 30 number of students?
Count that, too.
SQL query sequence:
SELECT Major FROM Student GROUP BY Major HAVING count(Major) BETWEEN 2 AND 30;
SELECT Major ,  count(*) FROM Student GROUP BY Major HAVING count(Major) BETWEEN 2 AND 30;
Final question: Which major has between 2 and 30 number of students? List major and the number of students.
Final SQL: SELECT Major ,  count(*) FROM Student GROUP BY Major HAVING count(Major) BETWEEN 2 AND 30;
Database: restaurant_1
Question sequence:
What are the student ids of students majoring in 600?
Only show those whose age is 18.
Just show the first and last names.
SQL query sequence:
SELECT StuID from student where Major = 600;
SELECT StuID  FROM Student WHERE Age  >  18 AND Major = 600;
SELECT Fname , Lname FROM Student WHERE Age  >  18 AND Major = 600;
Final question: Which student's age is older than 18 and is majoring in 600? List each student's first and last name.
Final SQL: SELECT Fname , Lname FROM Student WHERE Age  >  18 AND Major = 600;
Database: restaurant_1
Question sequence:
Give information for students older than 18.
List all female students older than 18 who are not majoring in 600. List students' first name and last name.
SQL query sequence:
SELECT * FROM Student WHERE Age  >  18
SELECT Fname , Lname FROM Student WHERE Age  >  18 AND Major != 600 AND Sex = 'F';
Final question: List all female students older than 18 who are not majoring in 600. List students' first name and last name.
Final SQL: SELECT Fname , Lname FROM Student WHERE Age  >  18 AND Major != 600 AND Sex = 'F';
Database: restaurant_1
Question sequence:
How many types of restaurant have the name "Sandwich"?
What are the names of restaurants with the type "Sandwich"?
Give the count of that.
SQL query sequence:
SELECT count(*) from Restaurant_Type where ResTypeName = "Sandwich"
SELECT Restaurant.ResName FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID =  Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich'
SELECT count(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID =  Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich'
Final question: How many restaurant is the Sandwich type restaurant?
Final SQL: SELECT count(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID =  Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich'
Database: restaurant_1
Question sequence:
How many times did Linda Smith visit a restaurant?
For those visits, how long did she spend?
SQL query sequence:
SELECT count(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith";
SELECT sum(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith";
Final question: How long does student Linda Smith spend on the restaurant in total?
Final SQL: SELECT sum(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith";
Database: restaurant_1
Question sequence:
How many visits did Subway receive?
Give the student ids for these visits.
Do any of these correspond to the student Linda Smith? How many?
SQL query sequence:
SELECT count(*) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Restaurant.ResName = "Subway";
SELECT StuID FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Restaurant.ResName = "Subway";
SELECT count(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway";
Final question: How many times has the student Linda Smith visited Subway?
Final SQL: SELECT count(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway";
Database: restaurant_1
Question sequence:
How long did Linda Smith spend at Subway?
What time did she arrive?
SQL query sequence:
SELECT Spent FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway";
SELECT TIME FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway";
Final question: When did Linda Smith visit Subway?
Final SQL: SELECT TIME FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway";
Database: restaurant_1
Question sequence:
What was the restaraunt id with the least amount of time spent?
Give the name of this restaraunt and sum of time spent.
SQL query sequence:
SELECT Visits_Restaurant.ResID FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY sum(Visits_Restaurant.Spent) ASC LIMIT 1;
SELECT Restaurant.ResName ,  sum(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY sum(Visits_Restaurant.Spent) ASC LIMIT 1;
Final question: At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.
Final SQL: SELECT Restaurant.ResName ,  sum(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY sum(Visits_Restaurant.Spent) ASC LIMIT 1;
Database: insurance_and_eClaims
Question sequence:
What is the start and end dates of all policies?
For the policies of "Dayana Robel"?
What about the policy type code instead.
SQL query sequence:
SELECT Start_Date, End_Date FROM policies
SELECT Start_Date, End_Date FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id WHERE t2.customer_details  =  "Dayana Robel"
SELECT policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id WHERE t2.customer_details  =  "Dayana Robel"
Final question: Find all the policy type codes associated with the customer "Dayana Robel"
Final SQL: SELECT policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id WHERE t2.customer_details  =  "Dayana Robel"
Database: insurance_and_eClaims
Question sequence:
What are the policy type codes?
What are the least frequent ones?
Most frequent?
SQL query sequence:
SELECT policy_type_code FROM policies
SELECT policy_type_code FROM policies GROUP BY policy_type_code ORDER BY count(*) ASC LIMIT 1
SELECT policy_type_code FROM policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1
Final question: Which type of policy is most frequently used? Give me the policy type code.
Final SQL: SELECT policy_type_code FROM policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1
Database: insurance_and_eClaims
Question sequence:
What are the policies?
Which ones have been used only once?
How about more than twice?
SQL query sequence:
SELECT * FROM policies
SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING count(*)  = 1
SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING count(*)  >  2
Final question: Find all the policy types that are used by more than 2 customers.
Final SQL: SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING count(*)  >  2
Database: insurance_and_eClaims
Question sequence:
What are the claim type codes in the claim headers?
The amounts paid?
What is the sum of that?
Show the average as well.
SQL query sequence:
SELECT Claim_Type_Code FROM claim_headers
SELECT Amount_piad FROM claim_headers
SELECT sum(Amount_piad) FROM claim_headers
SELECT sum(amount_piad) ,  avg(amount_piad) FROM claim_headers
Final question: Find the total and average amount paid in claim headers.
Final SQL: SELECT sum(amount_piad) ,  avg(amount_piad) FROM claim_headers
Database: insurance_and_eClaims
Question sequence:
What are the claim documents?
Which was created most recently?
Show the claim headers for this as well.
What is the total claim amount for these?
SQL query sequence:
SELECT * FROM claims_documents
SELECT * FROM claims_documents WHERE created_date  =  (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1)
SELECT * FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id  =  t2.claim_id WHERE t2.created_date  =  (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1)
SELECT sum(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id  =  t2.claim_id WHERE t2.created_date  =  (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1)
Final question: Find the total amount claimed in the most recently created document.
Final SQL: SELECT sum(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id  =  t2.claim_id WHERE t2.created_date  =  (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1)