db_id
stringclasses 140
values | question
stringlengths 16
224
| schema
stringclasses 140
values | summarized-schema
stringlengths 18
304
| shrink-score
float64 0
1
|
---|---|---|---|---|
college_1 | Find the first names of all instructors who have taught some course and the course code. | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | class : crs_code (text) , prof_num (number) | 0.906977 |
college_1 | What are the first names of all teachers who have taught a course and the corresponding course codes? | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | class : crs_code (text) , prof_num (number) | 0.906977 |
college_1 | Find the first names of all instructors who have taught some course and the course description. | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | course : crs_description (text) , crs_code (text) | class : prof_num (number) , crs_code (text) | 0.860465 |
college_1 | What are the first names of all teachers who have taught a course and the corresponding descriptions? | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | course : crs_description (text) , crs_code (text) | class : prof_num (number) , crs_code (text) | 0.860465 |
college_1 | Find the first names and offices of all instructors who have taught some course and also find the course description. | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | professor : prof_office (text) , emp_num (number) | course : crs_description (text) , crs_code (text) | class : prof_num (number) , crs_code (text) | 0.813953 |
college_1 | What are the first names, office locations of all lecturers who have taught some course? | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | professor : prof_office (text) , emp_num (number) | course : crs_description (text) , crs_code (text) | class : prof_num (number) , crs_code (text) | 0.813953 |
college_1 | Find the first names and offices of all instructors who have taught some course and the course description and the department name. | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | professor : prof_office (text) , emp_num (number) , dept_code (text) | course : crs_description (text) , crs_code (text) , dept_code (text) | department : dept_name (text) , emp_num (number) , dept_code (text) | class : prof_num (number) , crs_code (text) | 0.697674 |
college_1 | What are the first names, office locations, and departments of all instructors, and also what are the descriptions of the courses they teach? | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | professor : prof_office (text) , emp_num (number) , dept_code (text) | course : crs_description (text) , crs_code (text) , dept_code (text) | department : dept_name (text) , emp_num (number) , dept_code (text) | class : prof_num (number) , crs_code (text) | 0.697674 |
college_1 | Find names of all students who took some course and the course description. | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | student : stu_fname (text) , stu_lname (text) , stu_num (number) | course : crs_description (text) , crs_code (text) | enroll : stu_num (number) , class_code (text) | class : class_code (text) , crs_code (text) | 0.790698 |
college_1 | What are the names of all students who took a class and the corresponding course descriptions? | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | student : stu_fname (text) , stu_lname (text) , stu_num (number) | course : crs_description (text) , crs_code (text) | enroll : stu_num (number) , class_code (text) | class : class_code (text) , crs_code (text) | 0.790698 |
college_1 | Find names of all students who took some course and got A or C. | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | student : stu_fname (text) , stu_lname (text) , stu_num (number) | enroll : stu_num (number) , enroll_grade (text) | 0.883721 |
college_1 | What are the names of all students taking a course who received an A or C? | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | student : stu_fname (text) , stu_lname (text) , stu_num (number) | enroll : stu_num (number) , enroll_grade (text) | 0.883721 |
college_1 | Find the first names of all professors in the Accounting department who is teaching some course and the class room. | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | class : class_room (text) , prof_num (number) | department : emp_num (number) , dept_code (text) , dept_name (text) | professor : emp_num (number) , dept_code (text) | 0.790698 |
college_1 | What are the first names of all Accounting professors who teach and what are the classrooms of the courses they teach? | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | class : class_room (text) , prof_num (number) | department : emp_num (number) , dept_code (text) , dept_name (text) | professor : emp_num (number) , dept_code (text) | 0.790698 |
college_1 | Find the first names and degree of all professors who are teaching some class in Computer Info. Systems department. | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | professor : prof_high_degree (text) , emp_num (number) , dept_code (text) | class : prof_num (number) | department : emp_num (number) , dept_code (text) , dept_name (text) | 0.790698 |
college_1 | What are the different first names and highest degree attained for professors teaching in the Computer Information Systems department? | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | professor : prof_high_degree (text) , emp_num (number) , dept_code (text) | class : prof_num (number) | department : emp_num (number) , dept_code (text) , dept_name (text) | 0.790698 |
college_1 | What is the last name of the student who got a grade A in the class with code 10018. | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | student : stu_lname (text) , stu_num (number) | enroll : stu_num (number) , enroll_grade (text) , class_code (text) | 0.883721 |
college_1 | What is the last name of the student who received an A in the class with the code 10018? | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | student : stu_lname (text) , stu_num (number) | enroll : stu_num (number) , enroll_grade (text) , class_code (text) | 0.883721 |
college_1 | Find the first name and office of history professor who did not get a Ph.D. degree. | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | professor : prof_office (text) , emp_num (number) , dept_code (text) , prof_high_degree (text) | department : emp_num (number) , dept_code (text) , dept_name (text) | 0.790698 |
college_1 | What are the first names and offices of history professors who don't have Ph.D.s? | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | professor : prof_office (text) , emp_num (number) , dept_code (text) , prof_high_degree (text) | department : emp_num (number) , dept_code (text) , dept_name (text) | 0.790698 |
college_1 | Find the first names of professors who are teaching more than one class. | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | class : prof_num (number) , class_code (text) | 0.906977 |
college_1 | What are the first names of all professors who teach more than one class? | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | employee : emp_fname (text) , emp_num (number) | class : prof_num (number) , class_code (text) | 0.906977 |
college_1 | Find the first names of students who took exactly one class. | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | student : stu_fname (text) , stu_num (number) | enroll : stu_num (number) | 0.930233 |
college_1 | What are the first names of student who only took one course? | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | student : stu_fname (text) , stu_num (number) | enroll : stu_num (number) | 0.930233 |
college_1 | Find the name of department that offers the class whose description has the word "Statistics". | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | department : dept_name (text) , dept_code (text) | course : dept_code (text) , crs_description (text) | 0.906977 |
college_1 | What is the name of the department that offers a course that has a description including the word "Statistics"? | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | department : dept_name (text) , dept_code (text) | course : dept_code (text) , crs_description (text) | 0.906977 |
college_1 | What is the first name of the student whose last name starting with the letter S and is taking ACCT-211 class? | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | student : stu_fname (text) , stu_num (number) , stu_lname (text) | enroll : stu_num (number) , class_code (text) | class : class_code (text) , crs_code (text) | 0.837209 |
college_1 | What is the first name of the student whose last name starts with the letter S and is taking ACCT-211? | class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number) | student : stu_fname (text) , stu_num (number) , stu_lname (text) | enroll : stu_num (number) , class_code (text) | class : class_code (text) , crs_code (text) | 0.837209 |
sports_competition | How many clubs are there? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club : club_id (number) | 0.961538 |
sports_competition | What is the total number of clubs? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club : club_id (number) | 0.961538 |
sports_competition | List the distinct region of clubs in ascending alphabetical order. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club : region (text) | 0.961538 |
sports_competition | What are the different regions of clubs in ascending alphabetical order? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club : region (text) | 0.961538 |
sports_competition | What is the average number of gold medals for clubs? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club_rank : gold (number) | 0.961538 |
sports_competition | What is the average number of gold medals for a club? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club_rank : gold (number) | 0.961538 |
sports_competition | What are the types and countries of competitions? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : competition_type (text) , country (text) | 0.923077 |
sports_competition | What are the types of every competition and in which countries are they located? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : competition_type (text) , country (text) | 0.923077 |
sports_competition | What are the distinct years in which the competitions type is not "Tournament"? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : year (number) , competition_type (text) | 0.923077 |
sports_competition | What are the different years for all competitions that are not of type equal to tournament? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : year (number) , competition_type (text) | 0.923077 |
sports_competition | What are the maximum and minimum number of silver medals for clubs. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club_rank : silver (number) | 0.961538 |
sports_competition | What are the maximum and minimum number of silver medals for all the clubs? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club_rank : silver (number) | 0.961538 |
sports_competition | How many clubs have total medals less than 10? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club_rank : total (number) , rank (number) | 0.923077 |
sports_competition | What is the total number of clubs that have less than 10 medals in total? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club_rank : total (number) , rank (number) | 0.923077 |
sports_competition | List all club names in ascending order of start year. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club : name (text) , start_year (text) | 0.923077 |
sports_competition | What are the names of all the clubs starting with the oldest? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club : name (text) , start_year (text) | 0.923077 |
sports_competition | List all club names in descending alphabetical order. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club : name (text) | 0.961538 |
sports_competition | What are the names of all the clubs ordered in descending alphabetical order? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club : name (text) | 0.961538 |
sports_competition | Please show the names and the players of clubs. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club : name (text) , club_id (number) | player : name (text) , player_id (number) , club_id (number) | 0.807692 |
sports_competition | What are the names and players of all the clubs? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club : name (text) , club_id (number) | player : name (text) , player_id (number) , club_id (number) | 0.807692 |
sports_competition | Show the names of clubs that have players with position "Right Wing". | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club : name (text) , club_id (number) | player : name (text) , club_id (number) , position (text) | 0.807692 |
sports_competition | What are the names of the clubs that have players in the position of "Right Wing"? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club : name (text) , club_id (number) | player : name (text) , club_id (number) , position (text) | 0.807692 |
sports_competition | What is the average points of players from club with name "AIB". | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : points (number) , club_id (number) , name (text) | club : club_id (number) , name (text) | 0.807692 |
sports_competition | What is the average number of points for players from the "AIB" club? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : points (number) , club_id (number) , name (text) | club : club_id (number) , name (text) | 0.807692 |
sports_competition | List the position of players and the average number of points of players of each position. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : position (text) , points (number) | 0.923077 |
sports_competition | For each position, what is the average number of points for players in that position? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : position (text) , points (number) | 0.923077 |
sports_competition | List the position of players with average number of points scored by players of that position bigger than 20. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : position (text) , name (text) , points (number) | 0.884615 |
sports_competition | What are the positions of players whose average number of points scored by that position is larger than 20? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : position (text) , name (text) , points (number) | 0.884615 |
sports_competition | List the types of competition and the number of competitions of each type. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : competition_type (text) , competition_id (number) | 0.923077 |
sports_competition | What are the types of competition and number of competitions for that type? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : competition_type (text) , competition_id (number) | 0.923077 |
sports_competition | List the most common type of competition. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : competition_type (text) , competition_id (number) | 0.923077 |
sports_competition | What is the most common competition type? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : competition_type (text) , competition_id (number) | 0.923077 |
sports_competition | List the types of competition that have at most five competitions of that type. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : competition_type (text) , competition_id (number) | 0.923077 |
sports_competition | What are the types of competition that have most 5 competitions for that type? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : competition_type (text) , competition_id (number) | 0.923077 |
sports_competition | List the names of clubs that do not have any players. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club : name (text) , club_id (number) | player : name (text) , club_id (number) | 0.846154 |
sports_competition | What are the names of all clubs that do not have any players? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | club : name (text) , club_id (number) | player : name (text) , club_id (number) | 0.846154 |
sports_competition | What are the positions with both players having more than 20 points and less than 10 points. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : position (text) , points (number) | 0.923077 |
sports_competition | What are the positions of both players that have more than 20 20 points and less than 10 points? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : position (text) , points (number) | 0.923077 |
sports_competition | Show total points of all players. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : points (number) | 0.961538 |
sports_competition | What is the total number of points for all players? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : points (number) | 0.961538 |
sports_competition | how many different positions are there? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : position (text) | 0.961538 |
sports_competition | How many different position for players are listed? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : position (text) | 0.961538 |
sports_competition | what are the name of players who get more than the average points. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : name (text) , points (number) | 0.923077 |
sports_competition | What are the names of all players that got more than the average number of points? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : name (text) , points (number) | 0.923077 |
sports_competition | find the number of players whose points are lower than 30 in each position. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : position (text) , points (number) , player_id (number) | 0.884615 |
sports_competition | What is the number of players who have points less than 30 for each position? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | player : position (text) , points (number) , player_id (number) | 0.884615 |
sports_competition | which country did participated in the most number of Tournament competitions? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : country (text) , competition_type (text) , competition_id (number) | 0.884615 |
sports_competition | what is the name of the country that participated in the most tournament competitions? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : country (text) , competition_type (text) , competition_id (number) | 0.884615 |
sports_competition | which countries did participated in both Friendly and Tournament type competitions. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : country (text) , competition_type (text) | 0.923077 |
sports_competition | What are the countries that participated in both friendly and tournament type competitions? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : country (text) , competition_type (text) | 0.923077 |
sports_competition | Find the countries that have never participated in any competition with Friendly type. | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : country (text) , competition_type (text) | 0.923077 |
sports_competition | What are the countries that have never participated in any friendly-type competitions? | club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text) | competition : country (text) , competition_type (text) | 0.923077 |
manufacturer | How many furniture components are there in total? | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | furniture : num_of_component (number) | 0.916667 |
manufacturer | Return the name and id of the furniture with the highest market rate. | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | furniture : name (text) , furniture_id (number) , market_rate (number) | 0.75 |
manufacturer | find the total market rate of the furnitures that have the top 2 market shares. | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | furniture : market_rate (number) | 0.916667 |
manufacturer | Find the component amounts and names of all furnitures that have more than 10 components. | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | furniture : num_of_component (number) , name (text) | 0.833333 |
manufacturer | Find the name and component amount of the least popular furniture. | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | furniture : name (text) , num_of_component (number) , market_rate (number) | 0.75 |
manufacturer | Find the names of furnitures whose prices are lower than the highest price. | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | furniture : name (text) , furniture_id (number) | furniture_manufacte : furniture_id (number) , price_in_dollar (number) | 0.666667 |
manufacturer | Which manufacturer has the most number of shops? List its name and year of opening. | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | manufacturer : open_year (number) , name (text) , num_of_shops (number) | 0.75 |
manufacturer | Find the average number of factories for the manufacturers that have more than 20 shops. | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | manufacturer : num_of_factories (number) , num_of_shops (number) | 0.833333 |
manufacturer | List all manufacturer names and ids ordered by their opening year. | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | manufacturer : name (text) , manufacturer_id (number) , open_year (number) | 0.75 |
manufacturer | Give me the name and year of opening of the manufacturers that have either less than 10 factories or more than 10 shops. | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | manufacturer : name (text) , open_year (number) , num_of_shops (number) , num_of_factories (number) | 0.666667 |
manufacturer | what is the average number of factories and maximum number of shops for manufacturers that opened before 1990. | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | manufacturer : num_of_shops (number) , num_of_factories (number) , open_year (number) | 0.75 |
manufacturer | Find the id and number of shops for the company that produces the most expensive furniture. | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | manufacturer : manufacturer_id (number) , num_of_shops (number) | furniture_manufacte : manufacturer_id (number) , price_in_dollar (number) | 0.666667 |
manufacturer | Find the number of funiture types produced by each manufacturer as well as the company names. | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | manufacturer : name (text) , manufacturer_id (number) | furniture_manufacte : manufacturer_id (number) | 0.75 |
manufacturer | Give me the names and prices of furnitures which some companies are manufacturing. | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | furniture : name (text) , furniture_id (number) | furniture_manufacte : price_in_dollar (number) , furniture_id (number) | 0.666667 |
manufacturer | Find the market shares and names of furnitures which no any company is producing in our records. | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | furniture : market_rate (number) , name (text) , furniture_id (number) | furniture_manufacte : furniture_id (number) | 0.666667 |
manufacturer | Find the name of the company that produces both furnitures with less than 6 components and furnitures with more than 10 components. | manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number) | manufacturer : name (text) , manufacturer_id (number) | furniture : name (text) , furniture_id (number) , num_of_component (number) | furniture_manufacte : furniture_id (number) , manufacturer_id (number) | 0.416667 |
hr_1 | Display the first name and department name for each employee. | regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text) | employees : first_name (text) , department_id (number) | departments : department_name (text) , department_id (number) | 0.885714 |
hr_1 | What are the first name and department name of all employees? | regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text) | employees : first_name (text) , department_id (number) | departments : department_name (text) , department_id (number) | 0.885714 |
hr_1 | List the full name (first and last name), and salary for those employees who earn below 6000. | regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text) | employees : first_name (text) , last_name (text) , salary (number) | 0.914286 |
hr_1 | What are the full names and salaries for any employees earning less than 6000? | regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text) | employees : first_name (text) , last_name (text) , salary (number) | 0.914286 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.