aherntech/spider-syn huggingface dataset:
Database: program_share
Question: What are the names of the channels owned by CCTV or HBS?
Paraphrased question: What are the names of the channels owned by CCTV or HBS?
SQL: SELECT name FROM channel WHERE OWNER  =  'CCTV' OR OWNER  =  'HBS'
Database: program_share
Question: List the names of all the channels owned by either CCTV or HBS
Paraphrased question: List the names of all the channels owned by either CCTV or HBS
SQL: SELECT name FROM channel WHERE OWNER  =  'CCTV' OR OWNER  =  'HBS'
Database: program_share
Question: Find the total rating ratio for each channel owner.
Paraphrased question: Find the total score ratio for each channel owner.
SQL: SELECT sum(Rating_in_percent) ,  OWNER FROM channel GROUP BY OWNER
Database: program_share
Question: What is the total rating of channel for each channel owner?
Paraphrased question: What is the total score of channel for each channel owner?
SQL: SELECT sum(Rating_in_percent) ,  OWNER FROM channel GROUP BY OWNER
Database: program_share
Question: Find the name of the program that is broadcast most frequently.
Paraphrased question: Find the name of the programme that is broadcast most frequently.
SQL: SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1
Database: program_share
Question: Which program is broadcast most frequently? Give me the program name.
Paraphrased question: Which programme is broadcast most frequently? Give me the programme name.
SQL: SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1
Database: e_learning
Question: How many courses are there in total?
Paraphrased question: How many curriculum are there in total?
SQL: SELECT count(*) FROM COURSES
Database: e_learning
Question: Find the total number of courses offered.
Paraphrased question: Find the total number of curriculum offered.
SQL: SELECT count(*) FROM COURSES
Database: e_learning
Question: What are the descriptions of the courses with name "database"?
Paraphrased question: What are the describing contents of the curriculum with name "database"?
SQL: SELECT course_description FROM COURSES WHERE course_name  =  "database"
Database: e_learning
Question: Return the description for the courses named "database".
Paraphrased question: Return the describing content for the curriculum named "database".
SQL: SELECT course_description FROM COURSES WHERE course_name  =  "database"
Database: e_learning
Question: What are the addresses of the course authors or tutors with personal name "Cathrine"
Paraphrased question: What are the locations of the course authors or tutors with personal name "Cathrine"
SQL: SELECT address_line_1 FROM Course_Authors_and_Tutors WHERE personal_name	 =  "Cathrine"
Database: e_learning
Question: Return the addresses of the course authors or tutors whose personal name is "Cathrine".
Paraphrased question: Return the locations of the course authors or tutors whose personal name is "Cathrine".
SQL: SELECT address_line_1 FROM Course_Authors_and_Tutors WHERE personal_name	 =  "Cathrine"
Database: e_learning
Question: List the addresses of all the course authors or tutors.
Paraphrased question: List the locations of all the course authors or tutors.
SQL: SELECT address_line_1 FROM Course_Authors_and_Tutors
Database: e_learning
Question: What is the address of each course author or tutor?
Paraphrased question: What is the location of each course author or tutor?
SQL: SELECT address_line_1 FROM Course_Authors_and_Tutors
Database: e_learning
Question: List all the login names and family names of course author and tutors.
Paraphrased question: List all the login names and last names of course author and tutors.
SQL: SELECT login_name ,  family_name FROM Course_Authors_and_Tutors
Database: e_learning
Question: What are the login names and family names of course author and tutors?
Paraphrased question: What are the login names and last names of course author and tutors?
SQL: SELECT login_name ,  family_name FROM Course_Authors_and_Tutors
Database: e_learning
Question: List all the dates of enrollment and completion of students.
Paraphrased question: List all the day of enrollment and completion of students.
SQL: SELECT date_of_enrolment ,  date_of_completion FROM Student_Course_Enrolment
Database: e_learning
Question: What are all the dates of enrollment and completion in record?
Paraphrased question: What are all the day of enrollment and completion in record?
SQL: SELECT date_of_enrolment ,  date_of_completion FROM Student_Course_Enrolment
Database: e_learning
Question: How many distinct students are enrolled in courses?
Paraphrased question: How many different students have registered for the courses?
SQL: SELECT count(DISTINCT student_id) FROM Student_Course_Enrolment
Database: e_learning
Question: Find the number of distinct students enrolled in courses.
Paraphrased question: Find the number of different students enrolled in curriculum.
SQL: SELECT count(DISTINCT student_id) FROM Student_Course_Enrolment
Database: e_learning
Question: How many distinct courses are enrolled in by students?
Paraphrased question: How many different curriculum are enrolled in by students?
SQL: SELECT count(distinct course_id) FROM Student_Course_Enrolment
Database: e_learning
Question: Find the number of distinct courses that have enrolled students.
Paraphrased question: Find the number of different curriculum that have enrolled students.
SQL: SELECT count(distinct course_id) FROM Student_Course_Enrolment
Database: e_learning
Question: Find the dates of the tests taken with result "Pass".
Paraphrased question: Find the day of the tests taken with result "Pass".
SQL: SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result  =  "Pass"
Database: e_learning
Question: Which tests have "Pass" results? Return the dates when the tests were taken.
Paraphrased question: Which tests have "Pass" results? Return the day when the tests were taken.
SQL: SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result  =  "Pass"
Database: e_learning
Question: How many tests have result "Fail"?
Paraphrased question: How many tests have result "Fail"?
SQL: SELECT count(*) FROM Student_Tests_Taken WHERE test_result  =  "Fail"
Database: e_learning
Question: Count the number of tests with "Fail" result.
Paraphrased question: Count the number of tests with "Fail" result.
SQL: SELECT count(*) FROM Student_Tests_Taken WHERE test_result  =  "Fail"
Database: e_learning
Question: What are the login names of the students with family name "Ward"?
Paraphrased question: What are the login names of the students with last name "Ward"?
SQL: SELECT login_name FROM Students WHERE family_name  =  "Ward"
Database: e_learning
Question: Return the login names of the students whose family name is "Ward".
Paraphrased question: Return the login names of the students whose last name is "Ward".
SQL: SELECT login_name FROM Students WHERE family_name  =  "Ward"
Database: e_learning
Question: What are the dates of the latest logon of the students with family name "Jaskolski" or "Langosh"?
Paraphrased question: What are the day of the latest logon of the students with family name "Jaskolski" or "Langosh"?
SQL: SELECT date_of_latest_logon FROM Students WHERE family_name  =  "Jaskolski" OR family_name  =  "Langosh"
Database: e_learning
Question: Find the latest logon date of the students whose family name is "Jaskolski" or "Langosh".
Paraphrased question: Find the latest logon day of the students whose family name is "Jaskolski" or "Langosh".
SQL: SELECT date_of_latest_logon FROM Students WHERE family_name  =  "Jaskolski" OR family_name  =  "Langosh"
Database: e_learning
Question: How many students have personal names that contain the word "son"?
Paraphrased question: How many students have personal names that contain the word "son"?
SQL: SELECT COUNT(*) FROM Students WHERE personal_name LIKE "%son%"
Database: e_learning
Question: Find the number of students who have the word "son" in their personal names.
Paraphrased question: Find the number of students who have the word "son" in their personal names.
SQL: SELECT COUNT(*) FROM Students WHERE personal_name LIKE "%son%"
Database: e_learning
Question: List all the subject names.
Paraphrased question: List all the subject names.
SQL: SELECT subject_name FROM SUBJECTS
Database: e_learning
Question: What are the names of all the subjects.
Paraphrased question: What are the names of all the subjects.
SQL: SELECT subject_name FROM SUBJECTS
Database: e_learning
Question: List all the information about course authors and tutors in alphabetical order of the personal name.
Paraphrased question: List all the information about curriculum authors and teachers in alphabetical order of the personal name.
SQL: SELECT * FROM Course_Authors_and_Tutors ORDER BY personal_name
Database: e_learning
Question: Sort the information about course authors and tutors in alphabetical order of the personal name.
Paraphrased question: Sort the information about curriculum authors and teachers in alphabetical order of the personal name.
SQL: SELECT * FROM Course_Authors_and_Tutors ORDER BY personal_name
Database: e_learning
Question: List the personal names and family names of all the students in alphabetical order of family name.
Paraphrased question: List the personal names and last names of all the students in alphabetical order of last name.
SQL: SELECT personal_name ,  family_name FROM Students ORDER BY family_name
Database: e_learning
Question: What are the personal names and family names of the students? Sort the result in alphabetical order of the family name.
Paraphrased question: What are the personal names and last names of the students? Sort the result in alphabetical order of the last name.
SQL: SELECT personal_name ,  family_name FROM Students ORDER BY family_name
Database: e_learning
Question: List each test result and its count in descending order of count.
Paraphrased question: List each test result and its count in descending order of count.
SQL: SELECT test_result ,  COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC
Database: e_learning
Question: For each distinct test result, find the number of students who got the result.
Paraphrased question: For each different test outcome, find the number of students who got the outcome.
SQL: SELECT test_result ,  COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC
Database: e_learning
Question: Find the login name of the course author that teaches the course with name "advanced database".
Paraphrased question: Find the login name of the curriculum author that teaches the curriculum with name "advanced database".
SQL: SELECT T1.login_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name  =  "advanced database"
Database: e_learning
Question: Which course author teaches the "advanced database" course? Give me his or her login name.
Paraphrased question: Which curriculum author teaches the "advanced database" curriculum? Give me his or her login name.
SQL: SELECT T1.login_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name  =  "advanced database"
Database: e_learning
Question: Find the addresses of the course authors who teach the course with name "operating system" or "data structure".
Paraphrased question: Find the locations of the course authors who teach the course with name "operating system" or "data structure".
SQL: SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name  =  "operating system" OR T2.course_name  =  "data structure"
Database: e_learning
Question: What are the addresses of the course authors who teach either "operating system" or "data structure" course.
Paraphrased question: What are the locations of the course authors who teach either "operating system" or "data structure" course.
SQL: SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name  =  "operating system" OR T2.course_name  =  "data structure"
Database: e_learning
Question: Find the personal name, family name, and author ID of the course author that teaches the most courses.
Paraphrased question: Find the personal name, last name, and author ID of the course author that teaches the most courses.
SQL: SELECT T1.personal_name ,  T1.family_name ,  T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1
Database: e_learning
Question: What are the personal name, family name, and author ID of the course author who teaches the most courses?
Paraphrased question: What are the personal name, last name, and author ID of the course author who teaches the most courses?
SQL: SELECT T1.personal_name ,  T1.family_name ,  T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1
Database: e_learning
Question: Find the addresses and author IDs of the course authors that teach at least two courses.
Paraphrased question: Find the locations and author IDs of the course authors that teach at least two courses.
SQL: SELECT T1.address_line_1 ,  T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id GROUP BY T2.author_id HAVING Count(*)  >=  2
Database: e_learning
Question: Which course authors teach two or more courses? Give me their addresses and author IDs.
Paraphrased question: Which course authors teach two or more courses? Give me their locations and author IDs.
SQL: SELECT T1.address_line_1 ,  T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id GROUP BY T2.author_id HAVING Count(*)  >=  2
Database: e_learning
Question: Find the names of courses taught by the tutor who has personal name "Julio".
Paraphrased question: Find the names of curriculum taught by the teacher who has personal name "Julio".
SQL: SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T1.personal_name  =  "Julio"
Database: e_learning
Question: What are the names of the courses taught by the tutor whose personal name is "Julio"?
Paraphrased question: What are the names of the curriculum taught by the tutor whose personal name is "Julio"?
SQL: SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T1.personal_name  =  "Julio"
Database: e_learning
Question: Find the names and descriptions of courses that belong to the subject named "Computer Science".
Paraphrased question: Find the names and describing contents of curriculum that belong to the subject named "Computer Science".
SQL: SELECT T1.course_name ,  T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id WHERE T2.subject_name  =  "Computer Science"
Database: e_learning
Question: What are the names and descriptions of the all courses under the "Computer Science" subject?
Paraphrased question: What are the names and describing contents of the all curriculum under the "Computer Science" subject?
SQL: SELECT T1.course_name ,  T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id WHERE T2.subject_name  =  "Computer Science"
Database: e_learning
Question: Find the subject ID, subject name, and the corresponding number of available courses for each subject.
Paraphrased question: Find the subject ID, subject name, and the corresponding number of available curriculum for each subject.
SQL: SELECT T1.subject_id ,  T2.subject_name ,  COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id GROUP BY T1.subject_id
Database: e_learning
Question: What are the subject ID, subject name, and the number of available courses for each subject?
Paraphrased question: What are the subject ID, subject name, and the number of available curriculum for each subject?
SQL: SELECT T1.subject_id ,  T2.subject_name ,  COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id GROUP BY T1.subject_id
Database: e_learning
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.
Paraphrased question: Find the subject ID, name of subject and the corresponding number of curriculum for each subject, and sort by the curriculum count in ascending order.
SQL: SELECT T1.subject_id ,  T2.subject_name ,  COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*) ASC
Database: e_learning
Question: List the subject ID, name of subject and the number of courses available for each subject in ascending order of the course counts.
Paraphrased question: List the subject ID, name of subject and the number of curriculum available for each subject in ascending order of the curriculum counts.
SQL: SELECT T1.subject_id ,  T2.subject_name ,  COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*) ASC
Database: e_learning
Question: What is the date of enrollment of the course named "Spanish"?
Paraphrased question: What is the day of enrollment of the curriculum named "Spanish"?
SQL: SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id WHERE T1.course_name  =  "Spanish"
Database: e_learning
Question: Find the the date of enrollment of the "Spanish" course.
Paraphrased question: Find the the day of enrollment of the "Spanish" curriculum.
SQL: SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id WHERE T1.course_name  =  "Spanish"
Database: e_learning
Question: What is the name of the course that has the most student enrollment?
Paraphrased question: What is the name of the curriculum that has the most student enrollment?
SQL: SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1
Database: e_learning
Question: Which course is enrolled in by the most students? Give me the course name.
Paraphrased question: Which curriculum is enrolled in by the most students? Give me the curriculum name.
SQL: SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1
Database: e_learning
Question: What are the names of the courses that have exactly 1 student enrollment?
Paraphrased question: What are the names of the curriculum that have exactly 1 student enrollment?
SQL: SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name HAVING COUNT(*)  =  1
Database: e_learning
Question: Find the names of the courses that have just one student enrollment.
Paraphrased question: Find the names of the curriculum that have just one student enrollment.
SQL: SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name HAVING COUNT(*)  =  1
Database: e_learning
Question: What are the descriptions and names of the courses that have student enrollment bigger than 2?
Paraphrased question: What are the descriptions and names of the curriculum that have student enrollment bigger than 2?
SQL: SELECT T1.course_description ,  T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name HAVING COUNT(*)  >  2
Database: e_learning
Question: Return the descriptions and names of the courses that have more than two students enrolled in.
Paraphrased question: Return the describing contents and names of the curriculum that have more than two students enrolled in.
SQL: SELECT T1.course_description ,  T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name HAVING COUNT(*)  >  2
Database: e_learning
Question: What is the name of each course and the corresponding number of student enrollment?
Paraphrased question: What is the name of each curriculum and the corresponding number of student enrollment?
SQL: SELECT T1.course_name ,  COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name
Database: e_learning
Question: List the name and the number of enrolled student for each course.
Paraphrased question: List the name and the number of enrolled student for each curriculum.
SQL: SELECT T1.course_name ,  COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name
Database: e_learning
Question: What are the enrollment dates of all the tests that have result "Pass"?
Paraphrased question: What are the enrollment day of all the tests that have result "Pass"?
SQL: SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id  =  T2.registration_id WHERE T2.test_result  =  "Pass"
Database: e_learning
Question: Find the enrollment date for all the tests that have "Pass" result.
Paraphrased question: Find the enrollment day for all the tests that have "Pass" result.
SQL: SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id  =  T2.registration_id WHERE T2.test_result  =  "Pass"
Database: e_learning
Question: What are the completion dates of all the tests that have result "Fail"?
Paraphrased question: What are the completion day of all the tests that have result "Fail"?
SQL: SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id  =  T2.registration_id WHERE T2.test_result  =  "Fail"
Database: e_learning
Question: Return the completion date for all the tests that have "Fail" result.
Paraphrased question: Return the completion day for all the tests that have "Fail" result.
SQL: SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id  =  T2.registration_id WHERE T2.test_result  =  "Fail"
Database: e_learning
Question: List the dates of enrollment and completion of the student with personal name "Karson".
Paraphrased question: List the day of enrollment and completion of the student with personal name "Karson".
SQL: SELECT T1.date_of_enrolment ,  T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.personal_name  =  "Karson"
Database: e_learning
Question: On what dates did the student whose personal name is "Karson" enroll in and complete the courses?
Paraphrased question: On what day did the student whose personal name is "Karson" enroll in and complete the courses?
SQL: SELECT T1.date_of_enrolment ,  T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.personal_name  =  "Karson"
Database: e_learning
Question: List the dates of enrollment and completion of the student with family name "Zieme" and personal name "Bernie".
Paraphrased question: List the day of enrollment and completion of the student with family name "Zieme" and personal name "Bernie".
SQL: SELECT T1.date_of_enrolment ,  T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.family_name  =  "Zieme" AND T2.personal_name  =  "Bernie"
Database: e_learning
Question: On what dates did the student with family name "Zieme" and personal name "Bernie" enroll in and complete the courses?
Paraphrased question: On what day did the student with family name "Zieme" and personal name "Bernie" enroll in and complete the courses?
SQL: SELECT T1.date_of_enrolment ,  T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.family_name  =  "Zieme" AND T2.personal_name  =  "Bernie"
Database: e_learning
Question: Find the student ID and login name of the student with the most course enrollments
Paraphrased question: Find the student ID and login name of the student with the most curriculum enrollments
SQL: SELECT T1.student_id ,  T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
Database: e_learning
Question: What are the student ID and login name of the student who are enrolled in the most courses?
Paraphrased question: What are the student ID and login name of the student who are enrolled in the most curriculum?
SQL: SELECT T1.student_id ,  T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
Database: e_learning
Question: Find the student ID and personal name of the student with at least two enrollments.
Paraphrased question: Find the student ID and personal name of the student with at least two enrollments.
SQL: SELECT T1.student_id ,  T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING COUNT(*)  >=  2
Database: e_learning
Question: Which student are enrolled in at least two courses? Give me the student ID and personal name.
Paraphrased question: Which student are enrolled in at least two curriculum? Give me the student ID and personal name.
SQL: SELECT T1.student_id ,  T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING COUNT(*)  >=  2
Database: e_learning
Question: Find the student ID and middle name for all the students with at most two enrollments.
Paraphrased question: Find the student ID and middle name for all the students with at most two enrollments.
SQL: SELECT T1.student_id ,  T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING COUNT(*)  <=  2
Database: e_learning
Question: What are the student IDs and middle names of the students enrolled in at most two courses?
Paraphrased question: What are the student IDs and middle names of the students enrolled in at most two curriculum?
SQL: SELECT T1.student_id ,  T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING COUNT(*)  <=  2
Database: e_learning
Question: Find the personal names of students not enrolled in any course.
Paraphrased question: Find the personal names of students not enrolled in any curriculum.
SQL: SELECT personal_name FROM Students EXCEPT SELECT T1.personal_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id  =  T2.student_id
Database: e_learning
Question: Which students not enrolled in any course? Find their personal names.
Paraphrased question: Which students not enrolled in any curriculum? Find their personal names.
SQL: SELECT personal_name FROM Students EXCEPT SELECT T1.personal_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id  =  T2.student_id
Database: e_learning
Question: How many students did not have any course enrollment?
Paraphrased question: How many students did not have any curriculum enrollment?
SQL: SELECT count(*) FROM Students WHERE student_id NOT IN (SELECT student_id FROM Student_Course_Enrolment)
Database: e_learning
Question: Count the number of students who did not enroll in any course.
Paraphrased question: Count the number of students who did not enroll in any curriculum.
SQL: SELECT count(*) FROM Students WHERE student_id NOT IN (SELECT student_id FROM Student_Course_Enrolment)
Database: e_learning
Question: Find the common login name of course authors and students.
Paraphrased question: Find the common login name of curriculum authors and students.
SQL: SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students
Database: e_learning
Question: What are the login names used both by some course authors and some students?
Paraphrased question: What are the login names used both by some curriculum authors and some students?
SQL: SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students
Database: e_learning
Question: Find the common personal name of course authors and students.
Paraphrased question: Find the common personal name of curriculum authors and students.
SQL: SELECT personal_name FROM Course_Authors_and_Tutors INTERSECT SELECT personal_name FROM Students
Database: e_learning
Question: What are the personal names used both by some course authors and some students?
Paraphrased question: What are the personal names used both by some curriculum authors and some students?
SQL: SELECT personal_name FROM Course_Authors_and_Tutors INTERSECT SELECT personal_name FROM Students
Database: insurance_policies
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.
Paraphrased question: Which claims caused more than 2 settlements or have the maximum claim value? List the day of the claim was made and the claim id.
SQL: SELECT T1.Date_Claim_Made ,  T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id GROUP BY T1.Claim_id HAVING count(*)  >  2 UNION SELECT T1.Date_Claim_Made ,  T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id WHERE T1.Amount_Claimed  =  ( SELECT max(Amount_Claimed) FROM Claims )
Database: insurance_policies
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.
Paraphrased question: Find the claims that led to more than two settlements or have the maximum claim value. For each of them, return the day of the claim was made and the id of the claim.
SQL: SELECT T1.Date_Claim_Made ,  T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id GROUP BY T1.Claim_id HAVING count(*)  >  2 UNION SELECT T1.Date_Claim_Made ,  T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id WHERE T1.Amount_Claimed  =  ( SELECT max(Amount_Claimed) FROM Claims )
Database: insurance_policies
Question: Which customer had at least 2 policies but did not file any claims? List the customer details and id.
Paraphrased question: Which client had at least 2 policies but did not file any claims? List the client information and id.
SQL: SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2 EXCEPT SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id JOIN Claims AS T3 ON T2.policy_id  =  T3.policy_id
Database: insurance_policies
Question: Give me the the customer details and id for the customers who had two or more policies but did not file any claims.
Paraphrased question: Give me the the client information and id for the client who had two or more policies but did not file any claims.
SQL: SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2 EXCEPT SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id JOIN Claims AS T3 ON T2.policy_id  =  T3.policy_id
Database: insurance_policies
Question: List the method, date and amount of all the payments, in ascending order of date.
Paraphrased question: List the type, day and amount of all the payments, in ascending order of day.
SQL: SELECT Payment_Method_Code ,  Date_Payment_Made ,  Amount_Payment FROM Payments ORDER BY Date_Payment_Made ASC
Database: insurance_policies
Question: What are the method, date and amount of each payment? Sort the list in ascending order of date.
Paraphrased question: What are the type, day and amount of each payment? Sort the list in ascending order of day.
SQL: SELECT Payment_Method_Code ,  Date_Payment_Made ,  Amount_Payment FROM Payments ORDER BY Date_Payment_Made ASC
Database: insurance_policies
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.
Paraphrased 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.
SQL: SELECT Amount_Settled ,  Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1
Database: insurance_policies
Question: Find the settlement amount of the claim with the largest claim amount. Show both the settlement amount and claim amount.
Paraphrased question: Find the settlement amount of the claim with the largest claim amount. Show both the settlement amount and claim amount.
SQL: SELECT Amount_Settled ,  Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1
Database: insurance_policies
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.
Paraphrased 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.
SQL: SELECT Amount_Settled ,  Amount_Claimed FROM Claims ORDER BY Amount_Settled ASC LIMIT 1
Database: insurance_policies
Question: Find the claimed amount in the claim with the least amount settled. Show both the settlement amount and claim amount.
Paraphrased question: Find the claimed amount in the claim with the least amount settled. Show both the settlement amount and claim amount.
SQL: SELECT Amount_Settled ,  Amount_Claimed FROM Claims ORDER BY Amount_Settled ASC LIMIT 1
Database: insurance_policies
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.
Paraphrased question: Among all the claims, which claims have a claimed amount larger than the average? List the day of the claim was made and the day it was settled.
SQL: SELECT Date_Claim_Made ,  Date_Claim_Settled FROM Claims WHERE Amount_Claimed  >  ( SELECT avg(Amount_Claimed) FROM Claims )
Database: insurance_policies
Question: Give me the claim date, settlement date for all the claims whose claimed amount is larger than the average.
Paraphrased question: Give me the day of claim , settlement for all the claims whose claimed amount is larger than the average.
SQL: SELECT Date_Claim_Made ,  Date_Claim_Settled FROM Claims WHERE Amount_Claimed  >  ( SELECT avg(Amount_Claimed) FROM Claims )
Database: insurance_policies
Question: Among all the claims, which settlements have a claimed amount that is no more than the average? List the claim start date.
Paraphrased question: Among all the claims, which settlements have a claimed amount that is no more than the average? List the claim start day.
SQL: SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled  <=  ( SELECT avg(Amount_Settled) FROM Claims )
Database: insurance_policies
Question: Return the claim start date for the claims whose claimed amount is no more than the average
Paraphrased question: Return the claim start day for the claims whose claimed amount is no more than the average
SQL: SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled  <=  ( SELECT avg(Amount_Settled) FROM Claims )
Database: insurance_policies
Question: How many settlements does each claim correspond to? List the claim id and the number of settlements.
Paraphrased question: How many settlements does each claim correspond to? List the claim id and the number of settlements.
SQL: SELECT T1.Claim_id ,  count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id
Database: insurance_policies
Question: Find the number of settlements each claim corresponds to. Show the number together with the claim id.
Paraphrased question: Find the number of settlements each claim corresponds to. Show the number together with the claim id.
SQL: SELECT T1.Claim_id ,  count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id
Database: insurance_policies
Question: Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number.
Paraphrased question: Which claim incurred the most number of settlements? List the claim id, the day of the claim was made, and the number.
SQL: SELECT T1.claim_id ,  T1.date_claim_made ,  count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id ORDER BY count(*) DESC LIMIT 1
Database: insurance_policies
Question: Find the claim id and claim date of the claim that incurred the most settlement count. Also tell me the count.
Paraphrased question: Find the claim id and claim day of the claim that incurred the most settlement count. Also tell me the count.
SQL: SELECT T1.claim_id ,  T1.date_claim_made ,  count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id ORDER BY count(*) DESC LIMIT 1
Database: insurance_policies
Question: How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id.
Paraphrased question: How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id.
SQL: SELECT count(*) ,  T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1
Database: insurance_policies
Question: Find the claim id and the number of settlements made for the claim with the most recent settlement date.
Paraphrased question: Find the claim id and the number of settlements made for the claim with the most recent settlement date.
SQL: SELECT count(*) ,  T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1
Database: insurance_policies
Question: Of all the claims, what was the earliest date when any claim was made?
Paraphrased question: Of all the claims, what was the earliest day when any claim was made?
SQL: SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1
Database: insurance_policies
Question: Tell me the the date when the first claim was made.
Paraphrased question: Tell me the the day when the first claim was made.
SQL: SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1
Database: insurance_policies
Question: What is the total amount of settlement made for all the settlements?
Paraphrased question: What is the total amount of settlement made for all the settlements?
SQL: SELECT sum(Amount_Settled) FROM Settlements
Database: insurance_policies
Question: Compute the total amount of settlement across all the settlements.
Paraphrased question: Compute the total amount of settlement across all the settlements.
SQL: SELECT sum(Amount_Settled) FROM Settlements
Database: insurance_policies
Question: Who are the customers that had more than 1 policy? List the customer details and id.
Paraphrased question: Who are the clients that had more than 1 policy? List the client information and id.
SQL: SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.Customer_id GROUP BY T1.customer_id HAVING count(*)  >  1
Database: insurance_policies
Question: Find the the customer details and id for the customers who had more than one policy.
Paraphrased question: Find the the client information and id for the client who had more than one policy.
SQL: SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.Customer_id GROUP BY T1.customer_id HAVING count(*)  >  1
Database: insurance_policies
Question: What are the claim dates and settlement dates of all the settlements?
Paraphrased question: What are the day of claim and settlement of all the settlements?
SQL: SELECT Date_Claim_Made ,  Date_Claim_Settled FROM Settlements
Database: insurance_policies
Question: Tell me the the claim date and settlement date for each settlement case.
Paraphrased question: Tell me the day of claim and settlement for each settlement case.
SQL: SELECT Date_Claim_Made ,  Date_Claim_Settled FROM Settlements
Database: insurance_policies
Question: What is the most popular payment method?
Paraphrased question: What is the most popular payment type?
SQL: SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) DESC LIMIT 1
Database: insurance_policies
Question: Which payment method is used the most often?
Paraphrased question: Which payment type is used the most often?
SQL: SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) DESC LIMIT 1
Database: insurance_policies
Question: With which kind of payment method were the least number of payments processed?
Paraphrased question: With which kind of payment type were the least number of payments processed?
SQL: SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) ASC LIMIT 1
Database: insurance_policies
Question: What is the payment method that were used the least often?
Paraphrased question: What is the payment type that were used the least often?
SQL: SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) ASC LIMIT 1
Database: insurance_policies
Question: What is the total amount of payment?
Paraphrased question: What is the total amount of payment?
SQL: SELECT sum(Amount_Payment) FROM Payments
Database: insurance_policies
Question: Compute the total amount of payment processed.
Paraphrased question: Compute the total amount of payment processed.
SQL: SELECT sum(Amount_Payment) FROM Payments
Database: insurance_policies
Question: What are all the distinct details of the customers?
Paraphrased question: What are all the different information of the client?
SQL: SELECT DISTINCT customer_details FROM Customers
Database: insurance_policies
Question: Return the distinct customer details.
Paraphrased question: Return the different client information.
SQL: SELECT DISTINCT customer_details FROM Customers
Database: insurance_policies
Question: Which kind of policy type was chosen by the most customers?
Paraphrased question: Which kind of insurance category was chosen by the most customers?
SQL: SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count(*) DESC LIMIT 1
Database: insurance_policies
Question: Find the policy type the most customers choose.
Paraphrased question: Find the insurance category the most customers choose.
SQL: SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count(*) DESC LIMIT 1
Database: insurance_policies
Question: How many settlements are there in total?
Paraphrased question: How many settlements are there in total?
SQL: SELECT count(*) FROM Settlements
Database: insurance_policies
Question: Count the total number of settlements made.
Paraphrased question: Count the total number of settlements made.
SQL: SELECT count(*) FROM Settlements
Database: insurance_policies
Question: Which Payments were processed with Visa? List the payment Id, the date and the amount.
Paraphrased question: Which Payments were processed with Visa? List the payment Id, the day and the amount.
SQL: SELECT Payment_ID ,  Date_Payment_Made ,  Amount_Payment FROM Payments WHERE Payment_Method_Code  =  'Visa'
Database: insurance_policies
Question: Give me the payment Id, the date and the amount for all the payments processed with Visa.
Paraphrased question: Give me the payment Id, the day and the amount for all the payments processed with Visa.
SQL: SELECT Payment_ID ,  Date_Payment_Made ,  Amount_Payment FROM Payments WHERE Payment_Method_Code  =  'Visa'
Database: insurance_policies
Question: List the details of the customers who do not have any policies.
Paraphrased question: List the information of the client who do not have any policies.
SQL: SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id  =  T2.customer_id
Database: insurance_policies
Question: Which customers do not have any policies? Find the details of these customers.
Paraphrased question: Which client do not have any policies? Find the information of these clients.
SQL: SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id  =  T2.customer_id
Database: insurance_policies
Question: List the date the claim was made, the date it was settled and the amount settled for all the claims which had exactly one settlement.
Paraphrased question: List the day the claim was made, the day it was settled and the amount settled for all the claims which had exactly one settlement.
SQL: SELECT T1.claim_id ,  T1.date_claim_made ,  T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id GROUP BY T1.claim_id HAVING count(*)  =  1
Database: insurance_policies
Question: Which claims had exactly one settlement? For each, tell me the the date the claim was made, the date it was settled and the amount settled.
Paraphrased question: Which claims had exactly one settlement? For each, tell me the the day the claim was made, the day it was settled and the amount settled.
SQL: SELECT T1.claim_id ,  T1.date_claim_made ,  T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id GROUP BY T1.claim_id HAVING count(*)  =  1
Database: insurance_policies
Question: Find the total claimed amount of all the claims.
Paraphrased question: Find the total claimed amount of all the claims.
SQL: SELECT sum(Amount_Claimed) FROM Claims
Database: insurance_policies
Question: What is total amount claimed summed across all the claims?
Paraphrased question: What is total amount claimed summed across all the claims?
SQL: SELECT sum(Amount_Claimed) FROM Claims
Database: hospital_1
Question: Which department has the largest number of employees?
Paraphrased question: Which division has the largest number of staffs?
SQL: SELECT name FROM department GROUP BY departmentID ORDER BY count(departmentID) DESC LIMIT 1;
Database: hospital_1
Question: Find the department with the most employees.
Paraphrased question: Find the division with the most staffs.
SQL: SELECT name FROM department GROUP BY departmentID ORDER BY count(departmentID) DESC LIMIT 1;
Database: hospital_1
Question: What is the employee id of the head whose department has the least number of employees?
Paraphrased question: What is the staff id of the leader whose division has the least number of staffs?
SQL: SELECT head FROM department GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;
Database: hospital_1
Question: Tell me the employee id of the head of the department with the least employees.
Paraphrased question: Tell me the employee id of the leader of the division with the least employees.
SQL: SELECT head FROM department GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;
Database: hospital_1
Question: what is the name and position of the head whose department has least number of employees?
Paraphrased question: what is the name and post of the head whose division has least number of employees?
SQL: SELECT T2.name ,  T2.position FROM department AS T1 JOIN physician AS T2 ON T1.head  =  T2.EmployeeID GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;
Database: hospital_1
Question: Find the name and position of the head of the department with the least employees.
Paraphrased question: Find the name and post of the head of the division with the least employees.
SQL: SELECT T2.name ,  T2.position FROM department AS T1 JOIN physician AS T2 ON T1.head  =  T2.EmployeeID GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;