db_id stringclasses 140
values | question stringlengths 16 224 | schema stringclasses 140
values | summarized-schema stringlengths 18 304 | shrink-score float64 0 1 |
|---|---|---|---|---|
e_learning | Which course authors teach two or more courses? Give me their addresses and author IDs. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | course_authors_and_tutors : address_line_1 (text) , author_id (number) | courses : author_id (number) , course_id (number) | 0.875 |
e_learning | Find the names of courses taught by the tutor who has personal name "Julio". | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | courses : course_name (text) , author_id (number) | course_authors_and_tutors : author_id (number) , personal_name (text) | 0.875 |
e_learning | What are the names of the courses taught by the tutor whose personal name is "Julio"? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | courses : course_name (text) , author_id (number) | course_authors_and_tutors : author_id (number) , personal_name (text) | 0.875 |
e_learning | Find the names and descriptions of courses that belong to the subject named "Computer Science". | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | courses : course_name (text) , course_description (text) , subject_id (number) | subjects : subject_id (number) , subject_name (text) | 0.84375 |
e_learning | What are the names and descriptions of the all courses under the "Computer Science" subject? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | courses : course_name (text) , course_description (text) , subject_id (number) | subjects : subject_id (number) , subject_name (text) | 0.84375 |
e_learning | Find the subject ID, subject name, and the corresponding number of available courses for each subject. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | subjects : subject_id (number) , subject_name (text) | courses : subject_id (number) , course_id (number) | 0.875 |
e_learning | What are the subject ID, subject name, and the number of available courses for each subject? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | subjects : subject_id (number) , subject_name (text) | courses : subject_id (number) , course_id (number) | 0.875 |
e_learning | Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | subjects : subject_id (number) , subject_name (text) | courses : subject_id (number) , course_id (number) | 0.875 |
e_learning | List the subject ID, name of subject and the number of courses available for each subject in ascending order of the course counts. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | subjects : subject_id (number) , subject_name (text) | courses : subject_id (number) , course_id (number) | 0.875 |
e_learning | What is the date of enrollment of the course named "Spanish"? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | student_course_enrolment : date_of_enrolment (time) , course_id (number) | courses : course_id (number) , course_name (text) | 0.875 |
e_learning | Find the the date of enrollment of the "Spanish" course. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | student_course_enrolment : date_of_enrolment (time) , course_id (number) | courses : course_id (number) , course_name (text) | 0.875 |
e_learning | What is the name of the course that has the most student enrollment? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | courses : course_name (text) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number) | 0.875 |
e_learning | Which course is enrolled in by the most students? Give me the course name. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | courses : course_name (text) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number) | 0.875 |
e_learning | What are the names of the courses that have exactly 1 student enrollment? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | courses : course_name (text) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number) | 0.875 |
e_learning | Find the names of the courses that have just one student enrollment. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | courses : course_name (text) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number) | 0.875 |
e_learning | What are the descriptions and names of the courses that have student enrollment bigger than 2? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | courses : course_description (text) , course_name (text) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number) | 0.84375 |
e_learning | Return the descriptions and names of the courses that have more than two students enrolled in. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | courses : course_description (text) , course_name (text) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number) | 0.84375 |
e_learning | What is the name of each course and the corresponding number of student enrollment? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | courses : course_name (text) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number) | 0.875 |
e_learning | List the name and the number of enrolled student for each course. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | courses : course_name (text) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number) | 0.875 |
e_learning | What are the enrollment dates of all the tests that have result "Pass"? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | student_course_enrolment : date_of_enrolment (time) , registration_id (number) | student_tests_taken : registration_id (number) , test_result (text) | 0.875 |
e_learning | Find the enrollment date for all the tests that have "Pass" result. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | student_course_enrolment : date_of_enrolment (time) , registration_id (number) | student_tests_taken : registration_id (number) , test_result (text) | 0.875 |
e_learning | What are the completion dates of all the tests that have result "Fail"? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | student_course_enrolment : date_of_completion (time) , registration_id (number) | student_tests_taken : registration_id (number) , test_result (text) | 0.875 |
e_learning | Return the completion date for all the tests that have "Fail" result. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | student_course_enrolment : date_of_completion (time) , registration_id (number) | student_tests_taken : registration_id (number) , test_result (text) | 0.875 |
e_learning | List the dates of enrollment and completion of the student with personal name "Karson". | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | student_course_enrolment : date_of_enrolment (time) , date_of_completion (time) , student_id (number) | students : student_id (number) , personal_name (text) | 0.84375 |
e_learning | On what dates did the student whose personal name is "Karson" enroll in and complete the courses? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | student_course_enrolment : date_of_enrolment (time) , date_of_completion (time) , student_id (number) | students : student_id (number) , personal_name (text) | 0.84375 |
e_learning | List the dates of enrollment and completion of the student with family name "Zieme" and personal name "Bernie". | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | student_course_enrolment : date_of_enrolment (time) , date_of_completion (time) , student_id (number) | students : student_id (number) , family_name (text) , personal_name (text) | 0.8125 |
e_learning | On what dates did the student with family name "Zieme" and personal name "Bernie" enroll in and complete the courses? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | student_course_enrolment : date_of_enrolment (time) , date_of_completion (time) , student_id (number) | students : student_id (number) , family_name (text) , personal_name (text) | 0.8125 |
e_learning | Find the student ID and login name of the student with the most course enrollments | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | students : student_id (number) , login_name (text) | student_course_enrolment : student_id (number) , registration_id (number) | 0.875 |
e_learning | What are the student ID and login name of the student who are enrolled in the most courses? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | students : student_id (number) , login_name (text) | student_course_enrolment : student_id (number) , registration_id (number) | 0.875 |
e_learning | Find the student ID and personal name of the student with at least two enrollments. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | students : student_id (number) , personal_name (text) | student_course_enrolment : student_id (number) , registration_id (number) | 0.875 |
e_learning | Which student are enrolled in at least two courses? Give me the student ID and personal name. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | students : student_id (number) , personal_name (text) | student_course_enrolment : student_id (number) , registration_id (number) | 0.875 |
e_learning | Find the student ID and middle name for all the students with at most two enrollments. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | students : student_id (number) , middle_name (text) | student_course_enrolment : student_id (number) , registration_id (number) | 0.875 |
e_learning | What are the student IDs and middle names of the students enrolled in at most two courses? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | students : student_id (number) , middle_name (text) | student_course_enrolment : student_id (number) , registration_id (number) | 0.875 |
e_learning | Find the personal names of students not enrolled in any course. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | students : personal_name (text) , student_id (number) | student_course_enrolment : student_id (number) | 0.90625 |
e_learning | Which students not enrolled in any course? Find their personal names. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | students : personal_name (text) , student_id (number) | student_course_enrolment : student_id (number) | 0.90625 |
e_learning | How many students did not have any course enrollment? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | students : student_id (number) | student_course_enrolment : student_id (number) , registration_id (number) | 0.90625 |
e_learning | Count the number of students who did not enroll in any course. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | students : student_id (number) | student_course_enrolment : student_id (number) , registration_id (number) | 0.90625 |
e_learning | Find the common login name of course authors and students. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | course_authors_and_tutors : login_name (text) | students : login_name (text) | 0.9375 |
e_learning | What are the login names used both by some course authors and some students? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | course_authors_and_tutors : login_name (text) | students : login_name (text) | 0.9375 |
e_learning | Find the common personal name of course authors and students. | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | course_authors_and_tutors : personal_name (text) | students : personal_name (text) | 0.9375 |
e_learning | What are the personal names used both by some course authors and some students? | course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_... | course_authors_and_tutors : personal_name (text) | students : personal_name (text) | 0.9375 |
insurance_policies | Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made and the claim id. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : date_claim_made (time) , claim_id (number) , amount_claimed (number) | settlements : date_claim_made (time) , claim_id (number) , amount_claimed (number) , settlement_id (number) | 0.72 |
insurance_policies | Find the claims that led to more than two settlements or have the maximum claim value. For each of them, return the date the claim was made and the id of the claim. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : date_claim_made (time) , claim_id (number) , amount_claimed (number) | settlements : date_claim_made (time) , claim_id (number) , amount_claimed (number) , settlement_id (number) | 0.72 |
insurance_policies | Which customer had at least 2 policies but did not file any claims? List the customer details and id. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | customers : customer_details (text) , customer_id (number) | customer_policies : customer_id (number) , policy_id (number) | claims : policy_id (number) , claim_id (number) | 0.76 |
insurance_policies | Give me the the customer details and id for the customers who had two or more policies but did not file any claims. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | customers : customer_details (text) , customer_id (number) | customer_policies : customer_id (number) , policy_id (number) | claims : policy_id (number) , claim_id (number) | 0.76 |
insurance_policies | List the method, date and amount of all the payments, in ascending order of date. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | payments : payment_method_code (text) , date_payment_made (time) , amount_payment (number) | 0.88 |
insurance_policies | What are the method, date and amount of each payment? Sort the list in ascending order of date. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | payments : payment_method_code (text) , date_payment_made (time) , amount_payment (number) | 0.88 |
insurance_policies | Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : amount_settled (number) , amount_claimed (number) | 0.92 |
insurance_policies | Find the settlement amount of the claim with the largest claim amount. Show both the settlement amount and claim amount. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : amount_settled (number) , amount_claimed (number) | 0.92 |
insurance_policies | Among all the claims, what is the amount claimed in the claim with the least amount settled? List both the settlement amount and claim amount. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : amount_settled (number) , amount_claimed (number) | 0.92 |
insurance_policies | Find the claimed amount in the claim with the least amount settled. Show both the settlement amount and claim amount. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : amount_settled (number) , amount_claimed (number) | 0.92 |
insurance_policies | Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) | 0.88 |
insurance_policies | Give me the claim date, settlement date for all the claims whose claimed amount is larger than the average. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) | 0.88 |
insurance_policies | Among all the claims, which settlements have a claimed amount that is no more than the average? List the claim start date. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : date_claim_made (time) , amount_settled (number) | 0.92 |
insurance_policies | Return the claim start date for the claims whose claimed amount is no more than the average | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : date_claim_made (time) , amount_settled (number) | 0.92 |
insurance_policies | How many settlements does each claim correspond to? List the claim id and the number of settlements. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : claim_id (number) | settlements : claim_id (number) , settlement_id (number) | 0.88 |
insurance_policies | Find the number of settlements each claim corresponds to. Show the number together with the claim id. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : claim_id (number) | settlements : claim_id (number) , settlement_id (number) | 0.88 |
insurance_policies | Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : claim_id (number) , date_claim_made (time) | settlements : claim_id (number) , date_claim_made (time) , settlement_id (number) | 0.8 |
insurance_policies | Find the claim id and claim date of the claim that incurred the most settlement count. Also tell me the count. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : claim_id (number) , date_claim_made (time) | settlements : claim_id (number) , date_claim_made (time) , settlement_id (number) | 0.8 |
insurance_policies | How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : claim_id (number) , date_claim_settled (time) | settlements : claim_id (number) , date_claim_settled (time) , settlement_id (number) | 0.8 |
insurance_policies | Find the claim id and the number of settlements made for the claim with the most recent settlement date. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : claim_id (number) , date_claim_settled (time) | settlements : claim_id (number) , date_claim_settled (time) , settlement_id (number) | 0.8 |
insurance_policies | Of all the claims, what was the earliest date when any claim was made? | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : date_claim_made (time) | 0.96 |
insurance_policies | Tell me the the date when the first claim was made. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : date_claim_made (time) | 0.96 |
insurance_policies | What is the total amount of settlement made for all the settlements? | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | settlements : amount_settled (number) | 0.96 |
insurance_policies | Compute the total amount of settlement across all the settlements. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | settlements : amount_settled (number) | 0.96 |
insurance_policies | Who are the customers that had more than 1 policy? List the customer details and id. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | customers : customer_details (text) , customer_id (number) | customer_policies : customer_id (number) , policy_id (number) | 0.84 |
insurance_policies | Find the the customer details and id for the customers who had more than one policy. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | customers : customer_details (text) , customer_id (number) | customer_policies : customer_id (number) , policy_id (number) | 0.84 |
insurance_policies | What are the claim dates and settlement dates of all the settlements? | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | settlements : date_claim_made (time) , date_claim_settled (time) | 0.92 |
insurance_policies | Tell me the the claim date and settlement date for each settlement case. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | settlements : date_claim_made (time) , date_claim_settled (time) | 0.92 |
insurance_policies | What is the most popular payment method? | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | payments : payment_method_code (text) , payment_id (number) | 0.92 |
insurance_policies | Which payment method is used the most often? | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | payments : payment_method_code (text) , payment_id (number) | 0.92 |
insurance_policies | With which kind of payment method were the least number of payments processed? | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | payments : payment_method_code (text) , payment_id (number) | 0.92 |
insurance_policies | What is the payment method that were used the least often? | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | payments : payment_method_code (text) , payment_id (number) | 0.92 |
insurance_policies | What is the total amount of payment? | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | payments : amount_payment (number) | 0.96 |
insurance_policies | Compute the total amount of payment processed. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | payments : amount_payment (number) | 0.96 |
insurance_policies | What are all the distinct details of the customers? | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | customers : customer_details (text) | 0.96 |
insurance_policies | Return the distinct customer details. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | customers : customer_details (text) | 0.96 |
insurance_policies | Which kind of policy type was chosen by the most customers? | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | customer_policies : policy_type_code (text) , policy_id (number) | 0.92 |
insurance_policies | Find the policy type the most customers choose. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | customer_policies : policy_type_code (text) , policy_id (number) | 0.92 |
insurance_policies | How many settlements are there in total? | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | settlements : settlement_id (number) | 0.96 |
insurance_policies | Count the total number of settlements made. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | settlements : settlement_id (number) | 0.96 |
insurance_policies | Which Payments were processed with Visa? List the payment Id, the date and the amount. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | payments : payment_id (number) , date_payment_made (time) , amount_payment (number) , payment_method_code (text) | 0.84 |
insurance_policies | Give me the payment Id, the date and the amount for all the payments processed with Visa. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | payments : payment_id (number) , date_payment_made (time) , amount_payment (number) , payment_method_code (text) | 0.84 |
insurance_policies | List the details of the customers who do not have any policies. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | customers : customer_details (text) , customer_id (number) | customer_policies : customer_id (number) | 0.88 |
insurance_policies | Which customers do not have any policies? Find the details of these customers. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | customers : customer_details (text) , customer_id (number) | customer_policies : customer_id (number) | 0.88 |
insurance_policies | List the date the claim was made, the date it was settled and the amount settled for all the claims which had exactly one settlement. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : claim_id (number) , date_claim_made (time) , date_claim_settled (time) | settlements : claim_id (number) , date_claim_made (time) , date_claim_settled (time) , settlement_id (number) | 0.72 |
insurance_policies | Which claims had exactly one settlement? For each, tell me the the date the claim was made, the date it was settled and the amount settled. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : claim_id (number) , date_claim_made (time) , date_claim_settled (time) | settlements : claim_id (number) , date_claim_made (time) , date_claim_settled (time) , settlement_id (number) | 0.72 |
insurance_policies | Find the total claimed amount of all the claims. | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : amount_claimed (number) | 0.96 |
insurance_policies | What is total amount claimed summed across all the claims? | customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , am... | claims : amount_claimed (number) | 0.96 |
hospital_1 | Which department has the largest number of employees? | physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physicia... | department : name (text) , departmentid (number) | 0.970588 |
hospital_1 | Find the department with the most employees. | physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physicia... | department : name (text) , departmentid (number) | 0.970588 |
hospital_1 | What is the employee id of the head whose department has the least number of employees? | physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physicia... | department : head (number) , departmentid (number) | 0.970588 |
hospital_1 | Tell me the employee id of the head of the department with the least employees. | physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physicia... | department : head (number) , departmentid (number) | 0.970588 |
hospital_1 | what is the name and position of the head whose department has least number of employees? | physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physicia... | physician : name (text) , position (text) , employeeid (number) | department : name (text) , head (number) , departmentid (number) | 0.911765 |
hospital_1 | Find the name and position of the head of the department with the least employees. | physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physicia... | physician : name (text) , position (text) , employeeid (number) | department : name (text) , head (number) , departmentid (number) | 0.911765 |
hospital_1 | What are names of patients who made an appointment? | physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physicia... | patient : name (text) , ssn (number) | appointment : patient (number) | 0.955882 |
hospital_1 | List the names of patients who have made appointments. | physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physicia... | patient : name (text) , ssn (number) | appointment : patient (number) | 0.955882 |
hospital_1 | what are name and phone number of patients who had more than one appointment? | physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physicia... | patient : name (text) , phone (text) , ssn (number) | appointment : patient (number) , appointmentid (number) | 0.926471 |
hospital_1 | Which patients made more than one appointment? Tell me the name and phone number of these patients. | physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physicia... | patient : name (text) , phone (text) , ssn (number) | appointment : patient (number) , appointmentid (number) | 0.926471 |
hospital_1 | Find the id of the appointment with the most recent start date? | physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physicia... | appointment : appointmentid (number) , start (time) | 0.970588 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.