Question: What are the first names of the professors who do not teach a 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_jobcode (text) , emp_num (number) | class : prof_num (number) , class_code (text)


Question: What are the first names of all professors not teaching any classes?

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_jobcode (text) , emp_num (number) | class : prof_num (number) , class_code (text)


Question: What is the first names of the professors from the history department who do not teach a 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) | department : emp_num (number) , dept_code (text) , dept_name (text) | professor : emp_num (number) , dept_code (text) | class : prof_num (number) , class_code (text)


Question: What are the first names of all history professors who do not 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) | department : emp_num (number) , dept_code (text) , dept_name (text) | professor : emp_num (number) , dept_code (text) | class : prof_num (number) , class_code (text)


Question: What is the last name and office of the professor from the history 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_lname (text) , emp_num (number) | professor : prof_office (text) , emp_num (number) , dept_code (text) | department : emp_num (number) , dept_code (text) , dept_name (text)


Question: What are the last name and office of all history professors?

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_lname (text) , emp_num (number) | professor : prof_office (text) , emp_num (number) , dept_code (text) | department : emp_num (number) , dept_code (text) , dept_name (text)


Question: What is department name and office for the professor whose last name is Heffington?

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) , emp_num (number) , dept_code (text) | professor : prof_office (text) , emp_num (number) , dept_code (text) | employee : emp_num (number) , emp_lname (text)


Question: What is the name of the department and office location for the professor with the last name of Heffington?

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) , emp_num (number) , dept_code (text) | professor : prof_office (text) , emp_num (number) , dept_code (text) | employee : emp_num (number) , emp_lname (text)


Question: Find the last name and hire date of the professor who is in office DRE 102.

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_lname (text) , emp_hiredate (time) , emp_num (number) | professor : emp_num (number) , prof_office (text)


Question: What is the last name of the professor whose office is located in DRE 102, and when were they hired?

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_lname (text) , emp_hiredate (time) , emp_num (number) | professor : emp_num (number) , prof_office (text)


Question: What is the code of the course which the student whose last name is Smithson took?

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)

class : crs_code (text) , class_code (text) | enroll : class_code (text) , stu_num (number) | student : stu_num (number) , stu_lname (text)


Question: What are the course codes for every class that the student with the last name Smithson took?

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)

class : crs_code (text) , class_code (text) | enroll : class_code (text) , stu_num (number) | student : stu_num (number) , stu_lname (text)


Question: What are the description and credit of the course which the student whose last name is Smithson took?

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)

course : crs_description (text) , crs_credit (number) , crs_code (text) | class : class_code (text) , crs_code (text) | enroll : class_code (text) , stu_num (number) | student : stu_num (number) , stu_lname (text)


Question: How many credits is the course that the student with the last name Smithson took, and what is its 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)

course : crs_description (text) , crs_credit (number) , crs_code (text) | class : class_code (text) , crs_code (text) | enroll : class_code (text) , stu_num (number) | student : stu_num (number) , stu_lname (text)


Question: How many professors who has a either Ph.D. or MA 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)


Question: How many professors attained either Ph.D. or Masters degrees?

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)


Question: How many professors who are from either Accounting or Biology 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)

department : dept_code (text) , dept_name (text) | professor : dept_code (text)


Question: What is the number of professors who are in the Accounting or Biology departments?

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_code (text) , dept_name (text) | professor : dept_code (text)


Question: Find the first name of the professor who is teaching two courses with code CIS-220 and QM-261.

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) , crs_code (text) , class_code (text)


Question: What is the first name of the professor who is teaching CIS-220 and QM-261?

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) , crs_code (text) , class_code (text)


Question: Find the first name of student who is taking classes from accounting and Computer Info. Systems departments

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) , dept_code (text) | enroll : stu_num (number) , class_code (text) | class : class_code (text) , crs_code (text) | course : crs_code (text) , dept_code (text) | department : dept_code (text) , dept_name (text)


Question: What are the first names of all students taking accoutning and Computer Information Systems classes?

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) , dept_code (text) | enroll : stu_num (number) , class_code (text) | class : class_code (text) , crs_code (text) | course : crs_code (text) , dept_code (text) | department : dept_code (text) , dept_name (text)


Question: What is the average gpa of the students enrolled in the course with code 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_gpa (number) , stu_num (number) | enroll : stu_num (number) , class_code (text) | class : class_code (text) , crs_code (text)


Question: What is the average GPA of students 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_gpa (number) , stu_num (number) | enroll : stu_num (number) , class_code (text) | class : class_code (text) , crs_code (text)


Question: What is the first name, gpa and phone number of the top 5 students with highest gpa?

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_gpa (number) , stu_phone (text) , stu_fname (text) , stu_num (number)


Question: What is the first name, GPA, and phone number of the students with the top 5 GPAs?

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_gpa (number) , stu_phone (text) , stu_fname (text) , stu_num (number)


Question: What is the department name of the students with lowest gpa belongs to?

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) | student : dept_code (text) , stu_gpa (number) , stu_num (number)


Question: What is the name of the department with the student that has the lowest GPA?

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) | student : dept_code (text) , stu_gpa (number) , stu_num (number)


Question: Find the first name and gpa of the students whose gpa is lower than the average gpa of all students.

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_gpa (number) , stu_num (number)


Question: What is the first name and GPA of every student that has a GPA lower than average?

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_gpa (number) , stu_num (number)


Question: Find the name and address of the department that has the highest number of students.

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_address (text) , dept_code (text) | student : dept_code (text) , stu_num (number)


Question: What is the name and address of the department with the most students?

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_address (text) , dept_code (text) | student : dept_code (text) , stu_num (number)


Question: Find the name, address, number of students in the departments that have the top 3 highest number of students.

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_address (text) , dept_code (text) | student : dept_code (text) , stu_num (number)


Question: What is the name, address, and number of students in the departments that have the 3 most students?

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_address (text) , dept_code (text) | student : dept_code (text) , stu_num (number)


Question: Find the first name and office of the professor who is in the history department and has 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)


Question: What are the first names and office of the professors who are in the history department and have a Ph.D?

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)


Question: 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) , class_code (text)


Question: 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) , class_code (text)


Question: 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) , class_code (text)


Question: 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) , class_code (text)


Question: 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) , class_code (text)


Question: 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) , class_code (text)


Question: 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) , class_code (text)


Question: 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) , class_code (text)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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) , class_code (text) | department : emp_num (number) , dept_code (text) , dept_name (text) | professor : emp_num (number) , dept_code (text)


Question: 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) , class_code (text) | department : emp_num (number) , dept_code (text) , dept_name (text) | professor : emp_num (number) , dept_code (text)


Question: 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) , class_code (text) | department : emp_num (number) , dept_code (text) , dept_name (text)


Question: 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) , class_code (text) | department : emp_num (number) , dept_code (text) , dept_name (text)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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) , crs_code (text)


Question: 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) , crs_code (text)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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) , rank (number)


Question: 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) , rank (number)


Question: 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) , competition_id (number)


Question: 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) , competition_id (number)


Question: 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) , competition_id (number)


Question: 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) , competition_id (number)


Question: 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) , rank (number)


Question: 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) , rank (number)


Question: 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)


Question: 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)


Question: 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) , club_id (number)


Question: 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) , club_id (number)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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) , player_id (number)


Question: 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) , player_id (number)


Question: 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) , player_id (number) | club : club_id (number) , name (text)


Question: 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) , player_id (number) | club : club_id (number) , name (text)


Question: 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) , player_id (number)


Question: 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) , player_id (number)


Question: 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) , player_id (number)


Question: 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) , player_id (number)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)