Question: Find the number of distinct students enrolled in 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

students : student_id (number) , student_id (number) | student_course_enrolment : student_id (number) , registration_id (number)


Question: How many distinct courses are enrolled in by 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_id (number) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number)


Question: Find the number of distinct courses that have enrolled 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_id (number) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number)


Question: Find the dates of the tests taken with 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_tests_taken : date_test_taken (time) , test_result (text)


Question: Which tests have "Pass" results? Return the dates when the tests were taken.

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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_tests_taken : date_test_taken (time) , test_result (text)


Question: How many tests 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_tests_taken : test_result (text)


Question: Count the number of tests with "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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_tests_taken : test_result (text)


Question: What are the login names of the students with family name "Ward"?

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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : login_name (text) , family_name (text) , author_id (number) | students : login_name (text) , family_name (text) , student_id (number)


Question: Return the login names of the students whose family name is "Ward".

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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : login_name (text) , family_name (text) , author_id (number) | students : login_name (text) , family_name (text) , student_id (number)


Question: What are the dates of the latest logon of the students with family name "Jaskolski" or "Langosh"?

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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

students : date_of_latest_logon (time) , family_name (text) , student_id (number) | course_authors_and_tutors : family_name (text) , author_id (number)


Question: Find the latest logon date of the students whose family name is "Jaskolski" or "Langosh".

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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

students : date_of_latest_logon (time) , family_name (text) , student_id (number) | course_authors_and_tutors : family_name (text) , author_id (number)


Question: How many students have personal names that contain the word "son"?

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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : personal_name (text) , author_id (number) | students : personal_name (text) , student_id (number)


Question: Find the number of students who have the word "son" in 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : personal_name (text) , author_id (number) | students : personal_name (text) , student_id (number)


Question: List all the subject 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

subjects : subject_name (text) , subject_id (number)


Question: What are the names of all the subjects.

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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

subjects : subject_name (text) , subject_id (number)


Question: List all the information about course authors and tutors in alphabetical order of the 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : personal_name (text) , author_id (number) | students : personal_name (text) , student_id (number)


Question: Sort the information about course authors and tutors in alphabetical order of the 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : personal_name (text) , author_id (number) | students : personal_name (text) , student_id (number)


Question: List the personal names and family names of all the students in alphabetical order of family 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : personal_name (text) , family_name (text) , author_id (number) | students : personal_name (text) , family_name (text) , student_id (number)


Question: What are the personal names and family names of the students? Sort the result in alphabetical order of the family 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : personal_name (text) , family_name (text) , author_id (number) | students : personal_name (text) , family_name (text) , student_id (number)


Question: List each test result and its count in descending order of count.

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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_tests_taken : test_result (text)


Question: For each distinct test result, find the number of students who got the 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_tests_taken : test_result (text)


Question: Find the login name of the course author that teaches the course with name "advanced database".

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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : login_name (text) , author_id (number) , author_id (number) | students : login_name (text) , student_id (number) | courses : author_id (number) , course_name (text) , course_id (number)


Question: Which course author teaches the "advanced database" course? Give me his or her login 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : login_name (text) , author_id (number) , author_id (number) | students : login_name (text) , student_id (number) | courses : author_id (number) , course_name (text) , course_id (number)


Question: Find the addresses of the course authors who teach the course with name "operating system" or "data structure".

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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : address_line_1 (text) , author_id (number) , author_id (number) | courses : author_id (number) , course_name (text) , course_id (number)


Question: What are the addresses of the course authors who teach either "operating system" or "data structure" 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : address_line_1 (text) , author_id (number) , author_id (number) | courses : author_id (number) , course_name (text) , course_id (number)


Question: Find the personal name, family name, and author ID of the course author that teaches 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : personal_name (text) , family_name (text) , author_id (number) , author_id (number) | students : personal_name (text) , family_name (text) , student_id (number) | courses : author_id (number) , course_id (number)


Question: What are the personal name, family name, and author ID of the course author who teaches 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : personal_name (text) , family_name (text) , author_id (number) , author_id (number) | students : personal_name (text) , family_name (text) , student_id (number) | courses : author_id (number) , course_id (number)


Question: Find the addresses and author IDs of the course authors that teach at least 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : address_line_1 (text) , author_id (number) , author_id (number) | courses : author_id (number) , course_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : address_line_1 (text) , author_id (number) , author_id (number) | courses : author_id (number) , course_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_name (text) , author_id (number) , course_id (number) | course_authors_and_tutors : author_id (number) , personal_name (text) , author_id (number) | students : personal_name (text) , student_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_name (text) , author_id (number) , course_id (number) | course_authors_and_tutors : author_id (number) , personal_name (text) , author_id (number) | students : personal_name (text) , student_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_name (text) , course_description (text) , subject_id (number) , course_id (number) | subjects : subject_id (number) , subject_name (text) , subject_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_name (text) , course_description (text) , subject_id (number) , course_id (number) | subjects : subject_id (number) , subject_name (text) , subject_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

subjects : subject_id (number) , subject_name (text) , subject_id (number) | courses : subject_id (number) , course_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

subjects : subject_id (number) , subject_name (text) , subject_id (number) | courses : subject_id (number) , course_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

subjects : subject_id (number) , subject_name (text) , subject_id (number) | courses : subject_id (number) , course_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

subjects : subject_id (number) , subject_name (text) , subject_id (number) | courses : subject_id (number) , course_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_course_enrolment : date_of_enrolment (time) , course_id (number) , registration_id (number) | courses : course_id (number) , course_name (text) , course_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_course_enrolment : date_of_enrolment (time) , course_id (number) , registration_id (number) | courses : course_id (number) , course_name (text) , course_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_name (text) , course_id (number) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_name (text) , course_id (number) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_name (text) , course_id (number) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_name (text) , course_id (number) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_description (text) , course_name (text) , course_id (number) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_description (text) , course_name (text) , course_id (number) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_name (text) , course_id (number) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_name (text) , course_id (number) , course_id (number) | student_course_enrolment : course_id (number) , registration_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_course_enrolment : date_of_enrolment (time) , registration_id (number) , registration_id (number) | student_tests_taken : registration_id (number) , test_result (text)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_course_enrolment : date_of_enrolment (time) , registration_id (number) , registration_id (number) | student_tests_taken : registration_id (number) , test_result (text)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_course_enrolment : date_of_completion (time) , registration_id (number) , registration_id (number) | student_tests_taken : registration_id (number) , test_result (text)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_course_enrolment : date_of_completion (time) , registration_id (number) , registration_id (number) | student_tests_taken : registration_id (number) , test_result (text)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_course_enrolment : date_of_enrolment (time) , date_of_completion (time) , student_id (number) , registration_id (number) | students : student_id (number) , personal_name (text) , student_id (number) | course_authors_and_tutors : personal_name (text) , author_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_course_enrolment : date_of_enrolment (time) , date_of_completion (time) , student_id (number) , registration_id (number) | students : student_id (number) , personal_name (text) , student_id (number) | course_authors_and_tutors : personal_name (text) , author_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_course_enrolment : date_of_enrolment (time) , date_of_completion (time) , student_id (number) , registration_id (number) | students : student_id (number) , family_name (text) , personal_name (text) , student_id (number) | course_authors_and_tutors : family_name (text) , personal_name (text) , author_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_course_enrolment : date_of_enrolment (time) , date_of_completion (time) , student_id (number) , registration_id (number) | students : student_id (number) , family_name (text) , personal_name (text) , student_id (number) | course_authors_and_tutors : family_name (text) , personal_name (text) , author_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

students : student_id (number) , login_name (text) , student_id (number) | student_course_enrolment : student_id (number) , registration_id (number) | course_authors_and_tutors : login_name (text) , author_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

students : student_id (number) , login_name (text) , student_id (number) | student_course_enrolment : student_id (number) , registration_id (number) | course_authors_and_tutors : login_name (text) , author_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

students : student_id (number) , personal_name (text) , student_id (number) | student_course_enrolment : student_id (number) , registration_id (number) | course_authors_and_tutors : personal_name (text) , author_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

students : student_id (number) , personal_name (text) , student_id (number) | student_course_enrolment : student_id (number) , registration_id (number) | course_authors_and_tutors : personal_name (text) , author_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

students : student_id (number) , middle_name (text) , student_id (number) | student_course_enrolment : student_id (number) , registration_id (number) | course_authors_and_tutors : middle_name (text) , author_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

students : student_id (number) , middle_name (text) , student_id (number) | student_course_enrolment : student_id (number) , registration_id (number) | course_authors_and_tutors : middle_name (text) , author_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : personal_name (text) , author_id (number) | students : personal_name (text) , student_id (number) , student_id (number) | student_course_enrolment : student_id (number) , registration_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : personal_name (text) , author_id (number) | students : personal_name (text) , student_id (number) , student_id (number) | student_course_enrolment : student_id (number) , registration_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

students : student_id (number) , student_id (number) | student_course_enrolment : student_id (number) , registration_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

students : student_id (number) , student_id (number) | student_course_enrolment : student_id (number) , registration_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : login_name (text) , author_id (number) | students : login_name (text) , student_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : login_name (text) , author_id (number) | students : login_name (text) , student_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : personal_name (text) , author_id (number) | students : personal_name (text) , student_id (number)


Question: 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_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : personal_name (text) , author_id (number) | students : personal_name (text) , student_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : date_claim_made (time) , claim_id (number) , amount_claimed (number) , claim_id (number) | settlements : date_claim_made (time) , claim_id (number) , amount_claimed (number) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : date_claim_made (time) , claim_id (number) , amount_claimed (number) , claim_id (number) | settlements : date_claim_made (time) , claim_id (number) , amount_claimed (number) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | customer_policies : customer_id (number) , policy_id (number) , policy_id (number) | claims : policy_id (number) , claim_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | customer_policies : customer_id (number) , policy_id (number) , policy_id (number) | claims : policy_id (number) , claim_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

payments : payment_method_code (text) , date_payment_made (time) , amount_payment (number) , payment_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

payments : payment_method_code (text) , date_payment_made (time) , amount_payment (number) , payment_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : amount_settled (number) , amount_claimed (number) , claim_id (number) | settlements : amount_settled (number) , amount_claimed (number) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : amount_settled (number) , amount_claimed (number) , claim_id (number) | settlements : amount_settled (number) , amount_claimed (number) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : amount_settled (number) , amount_claimed (number) , claim_id (number) | settlements : amount_settled (number) , amount_claimed (number) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : amount_settled (number) , amount_claimed (number) , claim_id (number) | settlements : amount_settled (number) , amount_claimed (number) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , claim_id (number) | settlements : date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , claim_id (number) | settlements : date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : date_claim_made (time) , amount_settled (number) , claim_id (number) | settlements : date_claim_made (time) , amount_settled (number) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : date_claim_made (time) , amount_settled (number) , claim_id (number) | settlements : date_claim_made (time) , amount_settled (number) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : claim_id (number) , claim_id (number) | settlements : claim_id (number) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : claim_id (number) , claim_id (number) | settlements : claim_id (number) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : claim_id (number) , date_claim_made (time) , claim_id (number) | settlements : claim_id (number) , date_claim_made (time) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : claim_id (number) , date_claim_made (time) , claim_id (number) | settlements : claim_id (number) , date_claim_made (time) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : claim_id (number) , date_claim_settled (time) , claim_id (number) | settlements : claim_id (number) , date_claim_settled (time) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : claim_id (number) , date_claim_settled (time) , claim_id (number) | settlements : claim_id (number) , date_claim_settled (time) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : date_claim_made (time) , claim_id (number) | settlements : date_claim_made (time) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : date_claim_made (time) , claim_id (number) | settlements : date_claim_made (time) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : amount_settled (number) , claim_id (number) | settlements : amount_settled (number) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

claims : amount_settled (number) , claim_id (number) | settlements : amount_settled (number) , settlement_id (number)


Question: 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) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | customer_policies : customer_id (number) , policy_id (number)