Question: Give id of the instructor who advises students in the History department.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

advisor : i_id (text) , s_id (text) | student : id (text) , dept_name (text)


Question: Find the name and salary of the instructors who are advisors of any student from History department?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , salary (number) , id (text) , dept_name (text) | student : name (text) , id (text) , dept_name (text) | advisor : i_id (text) , s_id (text)


Question: What are the names and salaries of instructors who advises students in the History department?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , salary (number) , id (text) , dept_name (text) | student : name (text) , id (text) , dept_name (text) | advisor : i_id (text) , s_id (text)


Question: Find the id of the courses that do not have any prerequisite?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

course : course_id (text) | prereq : course_id (text)


Question: What are the ids of courses without prerequisites?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

course : course_id (text) | prereq : course_id (text)


Question: Find the name of the courses that do not have any prerequisite?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

course : title (text) , course_id (text) | prereq : course_id (text)


Question: What are the names of courses without prerequisites?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

course : title (text) , course_id (text) | prereq : course_id (text)


Question: What is the title of the prerequisite class of International Finance course?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

course : title (text) , course_id (text) | prereq : course_id (text) , prereq_id (text)


Question: Give the title of the prerequisite to the course International Finance.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

course : title (text) , course_id (text) | prereq : course_id (text) , prereq_id (text)


Question: Find the title of course whose prerequisite is course Differential Geometry.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

course : title (text) , course_id (text) | prereq : course_id (text) , prereq_id (text)


Question: What is the title of the course with Differential Geometry as a prerequisite?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

course : title (text) , course_id (text) | prereq : course_id (text) , prereq_id (text)


Question: Find the names of students who have taken any course in the fall semester of year 2003.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

student : name (text) , id (text) | takes : id (text) , semester (text) , year (number)


Question: What are the names of students who took a course in the Fall of 2003?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

student : name (text) , id (text) | takes : id (text) , semester (text) , year (number)


Question: What is the title of the course that was offered at building Chandler during the fall semester in the year of 2010?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

course : title (text) , course_id (text) | section : course_id (text) , building (text) , semester (text) , year (number)


Question: Give the title of the course offered in Chandler during the Fall of 2010.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

course : title (text) , course_id (text) | section : course_id (text) , building (text) , semester (text) , year (number)


Question: Find the name of the instructors who taught C Programming course before.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , id (text) | teaches : id (text) , course_id (text) | course : course_id (text) , title (text)


Question: What are the names of instructors who have taught C Programming courses?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , id (text) | teaches : id (text) , course_id (text) | course : course_id (text) , title (text)


Question: Find the name and salary of instructors who are advisors of the students from the Math department.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , salary (number) , id (text) , dept_name (text) | student : name (text) , id (text) , dept_name (text) | advisor : i_id (text) , s_id (text)


Question: What are the names and salaries of instructors who advise students in the Math department?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , salary (number) , id (text) , dept_name (text) | student : name (text) , id (text) , dept_name (text) | advisor : i_id (text) , s_id (text)


Question: Find the name of instructors who are advisors of the students from the Math department, and sort the results by students' total credit.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , id (text) , dept_name (text) | student : name (text) , id (text) , dept_name (text) , tot_cred (number) | advisor : i_id (text) , s_id (text)


Question: What are the names of all instructors who advise students in the math depart sorted by total credits of the student.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , id (text) , dept_name (text) | student : name (text) , id (text) , dept_name (text) , tot_cred (number) | advisor : i_id (text) , s_id (text)


Question: What is the course title of the prerequisite of course Mobile Computing?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

course : title (text) , course_id (text) | prereq : course_id (text) , prereq_id (text)


Question: What is the title of the course that is a prerequisite for Mobile Computing?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

course : title (text) , course_id (text) | prereq : course_id (text) , prereq_id (text)


Question: Find the name of instructor who is the advisor of the student who has the highest number of total credits.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , id (text) | student : name (text) , id (text) , tot_cred (number) | advisor : i_id (text) , s_id (text)


Question: What is the name of the instructor who advises the student with the greatest number of total credits?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , id (text) | student : name (text) , id (text) , tot_cred (number) | advisor : i_id (text) , s_id (text)


Question: Find the name of instructors who didn't teach any courses?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , id (text) | teaches : id (text)


Question: What are the names of instructors who didn't teach?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , id (text) | teaches : id (text)


Question: Find the id of instructors who didn't teach any courses?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : id (text) | teaches : id (text)


Question: What are the ids of instructors who didnt' teach?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : id (text) | teaches : id (text)


Question: Find the names of instructors who didn't each any courses in any Spring semester.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , id (text) | teaches : id (text) , semester (text)


Question: What are the names of instructors who didn't teach courses in the Spring?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , id (text) | teaches : id (text) , semester (text)


Question: Find the name of the department which has the highest average salary of professors.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : dept_name (text) , salary (number) , id (text)


Question: Which department has the highest average instructor salary?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : dept_name (text) , salary (number) , id (text)


Question: Find the number and averaged salary of all instructors who are in the department with the highest budget.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : salary (number) , dept_name (text) , id (text) | department : dept_name (text) , budget (number)


Question: How many instructors are in the department with the highest budget, and what is their average salary?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : salary (number) , dept_name (text) , id (text) | department : dept_name (text) , budget (number)


Question: What is the title and credits of the course that is taught in the largest classroom (with the highest capacity)?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

course : title (text) , credits (number) , course_id (text) | classroom : building (text) , room_number (text) , capacity (number) | section : building (text) , room_number (text) , course_id (text)


Question: Give the title and credits for the course that is taught in the classroom with the greatest capacity.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

course : title (text) , credits (number) , course_id (text) | classroom : building (text) , room_number (text) , capacity (number) | section : building (text) , room_number (text) , course_id (text)


Question: Find the name of students who didn't take any course from Biology department.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

student : name (text) , id (text) , dept_name (text) | takes : id (text) , course_id (text) | course : course_id (text) , dept_name (text)


Question: What are the names of students who haven't taken any Biology courses?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

student : name (text) , id (text) , dept_name (text) | takes : id (text) , course_id (text) | course : course_id (text) , dept_name (text)


Question: Find the total number of students and total number of instructors for each department.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : id (text) , dept_name (text) | student : id (text) , dept_name (text) | department : dept_name (text)


Question: How many students and instructors are in each department?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : id (text) , dept_name (text) | student : id (text) , dept_name (text) | department : dept_name (text)


Question: Find the name of students who have taken the prerequisite course of the course with title International Finance.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

student : name (text) , id (text) | takes : id (text) , course_id (text) | course : course_id (text) , title (text) | prereq : course_id (text) , prereq_id (text)


Question: What are the names of students who have taken the prerequisite for the course International Finance?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

student : name (text) , id (text) | takes : id (text) , course_id (text) | course : course_id (text) , title (text) | prereq : course_id (text) , prereq_id (text)


Question: Find the name and salary of instructors whose salary is below the average salary of the instructors in the Physics department.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , salary (number) , dept_name (text) , id (text)


Question: What are the names and salaries for instructors who earn less than the average salary of instructors in the Physics department?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , salary (number) , dept_name (text) , id (text)


Question: Find the name of students who took some course offered by Statistics department.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

student : name (text) , id (text) , dept_name (text) | course : course_id (text) , dept_name (text) | takes : course_id (text) , id (text)


Question: What are the names of students who have taken Statistics courses?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

student : name (text) , id (text) , dept_name (text) | course : course_id (text) , dept_name (text) | takes : course_id (text) , id (text)


Question: Find the building, room number, semester and year of all courses offered by Psychology department sorted by course titles.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

section : building (text) , room_number (text) , semester (text) , year (number) , course_id (text) | course : course_id (text) , dept_name (text) , title (text)


Question: What are the building, room number, semester and year of courses in the Psychology department, sorted using course title?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

section : building (text) , room_number (text) , semester (text) , year (number) , course_id (text) | course : course_id (text) , dept_name (text) , title (text)


Question: Find the names of all instructors in computer science department

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , dept_name (text) , id (text)


Question: What are the names of all instructors in the Comp. Sci. department?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , dept_name (text) , id (text)


Question: Find the names of all instructors in Comp. Sci. department with salary > 80000.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , dept_name (text) , salary (number) , id (text)


Question: What are the names of the instructors in the Comp. Sci. department who earn more than 80000?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , dept_name (text) , salary (number) , id (text)


Question: Find the names of all instructors who have taught some course and the course_id.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , id (text) | teaches : course_id (text) , id (text)


Question: What are the names of all instructors who have taught a course, as well as the corresponding course id?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , id (text) | teaches : course_id (text) , id (text)


Question: Find the names of all instructors in the Art department who have taught some course and the course_id.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , id (text) , dept_name (text) | teaches : course_id (text) , id (text)


Question: What are the names of Art instructors who have taught a course, and the corresponding course id?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , id (text) , dept_name (text) | teaches : course_id (text) , id (text)


Question: Find the names of all instructors whose name includes the substring “dar”.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)


Question: What are the names of all instructors with names that include "dar"?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)


Question: List in alphabetic order the names of all distinct instructors.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)


Question: List the distinct names of the instructors, ordered by name.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)


Question: Find courses that ran in Fall 2009 or in Spring 2010.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

section : course_id (text) , semester (text) , year (number)


Question: What are the ids for courses in the Fall of 2009 or the Spring of 2010?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

section : course_id (text) , semester (text) , year (number)


Question: Find courses that ran in Fall 2009 and in Spring 2010.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

section : course_id (text) , semester (text) , year (number)


Question: What are the ids for courses that were offered in both Fall of 2009 and Spring of 2010?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

section : course_id (text) , semester (text) , year (number)


Question: Find courses that ran in Fall 2009 but not in Spring 2010.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

section : course_id (text) , semester (text) , year (number)


Question: What are the ids of courses offered in Fall of 2009 but not in Spring of 2010?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

section : course_id (text) , semester (text) , year (number)


Question: Find the salaries of all distinct instructors that are less than the largest salary.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : salary (number) , id (text)


Question: What are the distinct salaries of all instructors who earned less than the maximum salary?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : salary (number) , id (text)


Question: Find the total number of instructors who teach a course in the Spring 2010 semester.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

teaches : id (text) , semester (text) , year (number)


Question: How many instructors teach a course in the Spring of 2010?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

teaches : id (text) , semester (text) , year (number)


Question: Find the names and average salaries of all departments whose average salary is greater than 42000.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : dept_name (text) , salary (number) , id (text)


Question: What are the names and average salaries for departments with average salary higher than 42000?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : dept_name (text) , salary (number) , id (text)


Question: Find names of instructors with salary greater than that of some (at least one) instructor in the Biology department.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , salary (number) , dept_name (text) , id (text)


Question: What are the names of instructors who earn more than at least one instructor from the Biology department?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , salary (number) , dept_name (text) , id (text)


Question: Find the names of all instructors whose salary is greater than the salary of all instructors in the Biology department.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , salary (number) , dept_name (text) , id (text)


Question: What are the names of all instructors with a higher salary than any of the instructors in the Biology department?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , salary (number) , dept_name (text) , id (text)


Question: How many debates are there?

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)


Question: List the venues of debates in ascending order of the number of audience.

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

debate : venue (text) , num_of_audience (number) , debate_id (number)


Question: What are the date and venue of each debate?

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

debate : date (text) , venue (text) , debate_id (number)


Question: List the dates of debates with number of audience bigger than 150

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

debate : date (text) , num_of_audience (number) , debate_id (number)


Question: Show the names of people aged either 35 or 36.

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

people : name (text) , age (number) , people_id (number)


Question: What is the party of the youngest people?

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

people : party (text) , age (number) , people_id (number)


Question: Show different parties of people along with the number of people in each party.

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

people : party (text) , people_id (number)


Question: Show the party that has the most people.

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

people : party (text) , people_id (number)


Question: Show the distinct venues of debates

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

debate : venue (text) , debate_id (number)


Question: Show the names of people, and dates and venues of debates they are on the affirmative side.

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

people : name (text) , people_id (number) | debate : date (text) , venue (text) , debate_id (number) | debate_people : debate_id (number) , affirmative (number)


Question: Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

people : name (text) , people_id (number) | debate : date (text) , venue (text) , debate_id (number) | debate_people : debate_id (number) , negative (number)


Question: Show the names of people that are on affirmative side of debates with number of audience bigger than 200.

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

people : name (text) , people_id (number) | debate : debate_id (number) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number)


Question: Show the names of people and the number of times they have been on the affirmative side of debates.

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

people : name (text) , people_id (number) | debate_people : affirmative (number) , debate_id (number)


Question: Show the names of people who have been on the negative side of debates at least twice.

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

people : name (text) , people_id (number) | debate_people : negative (number) , debate_id (number)


Question: List the names of people that have not been on the affirmative side of debates.

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

people : name (text) , people_id (number) | debate_people : affirmative (number) , debate_id (number)


Question: List the names of all the customers in alphabetical order.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number)


Question: Sort the customer names in alphabetical order.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number)


Question: Find all the policy type codes associated with the customer "Dayana Robel"

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

policies : policy_type_code (text) , customer_id (number) , policy_id (number) | customers : customer_id (number) , customer_details (text)


Question: What are the type codes of the policies used by the customer "Dayana Robel"?

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

policies : policy_type_code (text) , customer_id (number) , policy_id (number) | customers : customer_id (number) , customer_details (text)


Question: Which type of policy is most frequently used? Give me the policy type code.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

policies : policy_type_code (text) , policy_id (number)


Question: Find the type code of the most frequently used policy.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

policies : policy_type_code (text) , policy_id (number)


Question: Find all the policy types that are used by more than 2 customers.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

policies : policy_type_code (text) , policy_id (number)


Question: Which types of policy are chosen by more than 2 customers? Give me the policy type codes.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

policies : policy_type_code (text) , policy_id (number)