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)


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)


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)


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


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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


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)


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)


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)


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)


Question: List the names of clubs that do not have any players.

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)

club : name (text) , club_id (number) | player : name (text) , club_id (number)


Question: What are the names of all clubs that do not have any players?

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)

club : name (text) , club_id (number) | player : name (text) , club_id (number)


Question: What are the positions with both players having more than 20 points and less than 10 points.

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)

player : position (text) , points (number)


Question: What are the positions of both players that have more than 20 20 points and less than 10 points?

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)

player : position (text) , points (number)


Question: Show total points of all players.

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)


Question: What is the total number of points for all players?

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)


Question: how many different positions are there?

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)


Question: How many different position for players are listed?

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)


Question: what are the name of players who get more than the average points.

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)


Question: What are the names of all players that got more than the average number of points?

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)


Question: find the number of players whose points are lower than 30 in each position.

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)

player : position (text) , points (number) , player_id (number)


Question: What is the number of players who have points less than 30 for each position?

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)

player : position (text) , points (number) , player_id (number)


Question: which country did participated in the most number of Tournament competitions?

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)

competition : country (text) , competition_type (text) , competition_id (number)


Question: what is the name of the country that participated in the most tournament competitions?

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)

competition : country (text) , competition_type (text) , competition_id (number)


Question: which countries did participated in both Friendly and Tournament type competitions.

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)

competition : country (text) , competition_type (text)


Question: What are the countries that participated in both friendly and tournament type competitions?

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)

competition : country (text) , competition_type (text)


Question: Find the countries that have never participated in any competition with Friendly type.

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)

competition : country (text) , competition_type (text)


Question: What are the countries that have never participated in any friendly-type competitions?

club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)

competition : country (text) , competition_type (text)


Question: How many furniture components are there in total?

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)


Question: Return the name and id of the furniture with the highest market rate.

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)

furniture : name (text) , furniture_id (number) , market_rate (number)


Question: find the total market rate of the furnitures that have the top 2 market shares.

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)


Question: Find the component amounts and names of all furnitures that have more than 10 components.

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)

furniture : num_of_component (number) , name (text)


Question: Find the name and component amount of the least popular furniture.

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)

furniture : name (text) , num_of_component (number) , market_rate (number)


Question: Find the names of furnitures whose prices are lower than the highest price.

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)

furniture : name (text) , furniture_id (number) | furniture_manufacte : furniture_id (number) , price_in_dollar (number)


Question: Which manufacturer has the most number of shops? List its name and year of opening.

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)

manufacturer : open_year (number) , name (text) , num_of_shops (number)


Question: Find the average number of factories for the manufacturers that have more than 20 shops.

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)

manufacturer : num_of_factories (number) , num_of_shops (number)


Question: List all manufacturer names and ids ordered by their opening year.

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)

manufacturer : name (text) , manufacturer_id (number) , open_year (number)


Question: Give me the name and year of opening of the manufacturers that have either less than 10 factories or more than 10 shops.

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)

manufacturer : name (text) , open_year (number) , num_of_shops (number) , num_of_factories (number)


Question: what is the average number of factories and maximum number of shops for manufacturers that opened before 1990.

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)

manufacturer : num_of_shops (number) , num_of_factories (number) , open_year (number)


Question: Find the id and number of shops for the company that produces the most expensive furniture.

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)

manufacturer : manufacturer_id (number) , num_of_shops (number) | furniture_manufacte : manufacturer_id (number) , price_in_dollar (number)


Question: Find the number of funiture types produced by each manufacturer as well as the company names.

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)

manufacturer : name (text) , manufacturer_id (number) | furniture_manufacte : manufacturer_id (number)


Question: Give me the names and prices of furnitures which some companies are manufacturing.

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)

furniture : name (text) , furniture_id (number) | furniture_manufacte : price_in_dollar (number) , furniture_id (number)


Question: Find the market shares and names of furnitures which no any company is producing in our records.

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)

furniture : market_rate (number) , name (text) , furniture_id (number) | furniture_manufacte : furniture_id (number)


Question: Find the name of the company that produces both furnitures with less than 6 components and furnitures with more than 10 components.

manufacturer : manufacturer_id (number) , open_year (number) , name (text) , num_of_factories (number) , num_of_shops (number) | furniture : furniture_id (number) , name (text) , num_of_component (number) , market_rate (number) | furniture_manufacte : manufacturer_id (number) , furniture_id (number) , price_in_dollar (number)

manufacturer : name (text) , manufacturer_id (number) | furniture : name (text) , furniture_id (number) , num_of_component (number) | furniture_manufacte : furniture_id (number) , manufacturer_id (number)


Question: Display the first name and department name for each employee.

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , department_id (number) | departments : department_name (text) , department_id (number)


Question: What are the first name and department name of all employees?

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , department_id (number) | departments : department_name (text) , department_id (number)


Question: List the full name (first and last name), and salary for those employees who earn below 6000.

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , last_name (text) , salary (number)


Question: What are the full names and salaries for any employees earning less than 6000?

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , last_name (text) , salary (number)


Question: Display the first name, and department number for all employees whose last name is "McEwen".

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , department_id (number) , last_name (text)


Question: What are the first names and department numbers for employees with last name McEwen?

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , department_id (number) , last_name (text)


Question: Return all the information for all employees without any department number.

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : department_id (number) , employee_id (number)


Question: What are all the employees without a department number?

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : department_id (number) , employee_id (number)


Question: Display all the information about the department Marketing.

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

departments : department_name (text) , department_id (number)


Question: What is all the information about the Marketing department?

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

departments : department_name (text) , department_id (number)


Question: when is the hire date for those employees whose first name does not containing the letter M?

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : hire_date (time) , first_name (text)


Question: On what dates were employees without the letter M in their first names hired?

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : hire_date (time) , first_name (text)


Question: display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M.

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , last_name (text) , hire_date (time) , salary (number) , department_id (number)


Question: What are the full name, hire date, salary, and department id for employees without the letter M in their first name?

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , last_name (text) , hire_date (time) , salary (number) , department_id (number)


Question: display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M and make the result set in ascending order by department number.

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , last_name (text) , hire_date (time) , salary (number) , department_id (number)


Question: What are the full name, hire data, salary and department id for employees without the letter M in their first name, ordered by ascending department id?

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , last_name (text) , hire_date (time) , salary (number) , department_id (number)


Question: what is the phone number of employees whose salary is in the range of 8000 and 12000?

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : phone_number (text) , salary (number)


Question: Return the phone numbers of employees with salaries between 8000 and 12000.

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : phone_number (text) , salary (number)


Question: display all the information of employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40.

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : salary (number) , commission_pct (number) , department_id (number) , employee_id (number)


Question: Return all information about employees with salaries between 8000 and 12000 for which commission is not null or where their department id is not 40.

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : salary (number) , commission_pct (number) , department_id (number) , employee_id (number)


Question: What are the full name (first and last name) and salary for all employees who does not have any value for commission?

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , last_name (text) , salary (number) , commission_pct (number)


Question: Return the full names and salaries of employees with null commissions.

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , last_name (text) , salary (number) , commission_pct (number)


Question: Display the first and last name, and salary for those employees whose first name is ending with the letter m.

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , last_name (text) , salary (number)


Question: Return the full names and salaries for employees with first names that end with the letter m.

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , last_name (text) , salary (number)


Question: Find job id and date of hire for those employees who was hired between November 5th, 2007 and July 5th, 2009.

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : job_id (text) , hire_date (time)


Question: What are the job ids and dates of hire for employees hired after November 5th, 2007 and before July 5th, 2009?

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : job_id (text) , hire_date (time)


Question: What are the first and last name for those employees who works either in department 70 or 90?

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , last_name (text) , department_id (number)


Question: What are the full names of employees who with in department 70 or 90?

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : first_name (text) , last_name (text) , department_id (number)


Question: Find the salary and manager number for those employees who is working under a manager.

regions : region_id (number) , region_name (text) | countries : country_id (text) , country_name (text) , region_id (number) | departments : department_id (number) , department_name (text) , manager_id (number) , location_id (number) | jobs : job_id (text) , job_title (text) , min_salary (number) , max_salary (number) | employees : employee_id (number) , first_name (text) , last_name (text) , email (text) , phone_number (text) , hire_date (time) , job_id (text) , salary (number) , commission_pct (number) , manager_id (number) , department_id (number) | job_history : employee_id (number) , start_date (time) , end_date (time) , job_id (text) , department_id (number) | locations : location_id (number) , street_address (text) , postal_code (text) , city (text) , state_province (text) , country_id (text)

employees : salary (number) , manager_id (number)