richardr1126/spider-skeleton-context-instruct huggingface dataset:
### Instruction:

Convert text to sql: Which building does the instructor who teaches the most number of courses live in? | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select faculty.building from course join faculty on course.instructor = faculty.facid group by course.instructor order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Give the building that the instructor who teaches the greatest number of courses lives in. | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select faculty.building from course join faculty on course.instructor = faculty.facid group by course.instructor order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What are the name of courses that have at least five enrollments? | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select course.cname from course join enrolled_in on course.cid = enrolled_in.cid group by enrolled_in.cid having count ( * ) >= 5
### Instruction:

Convert text to sql: Give the names of the courses with at least five enrollments. | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select course.cname from course join enrolled_in on course.cid = enrolled_in.cid group by enrolled_in.cid having count ( * ) >= 5
### Instruction:

Convert text to sql: Find the first name and last name of the instructor of course that has course name | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ where _ | select faculty.fname , faculty.lname from course join faculty on course.instructor = faculty.facid where course.cname = 'COMPUTER LITERACY'
### Instruction:

Convert text to sql: What is the full name of the instructor who has a course named COMPUTER LITERACY? | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ where _ | select faculty.fname , faculty.lname from course join faculty on course.instructor = faculty.facid where course.cname = 'COMPUTER LITERACY'
### Instruction:

Convert text to sql: Find the department name and room of the course INTRODUCTION TO COMPUTER SCIENCE. | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ where _ | select department.dname , department.room from course join department on course.dno = department.dno where course.cname = 'INTRODUCTION TO COMPUTER SCIENCE'
### Instruction:

Convert text to sql: What are the department name and room for the course INTRODUCTION TO COMPUTER SCIENCE? | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ where _ | select department.dname , department.room from course join department on course.dno = department.dno where course.cname = 'INTRODUCTION TO COMPUTER SCIENCE'
### Instruction:

Convert text to sql: Find the student first and last names and grade points of all enrollments. | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ | select student.fname , student.lname , gradeconversion.gradepoint from enrolled_in join gradeconversion join student on enrolled_in.grade = gradeconversion.lettergrade and enrolled_in.stuid = student.stuid
### Instruction:

Convert text to sql: What are the full names and gradepoints for all enrollments? | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ | select student.fname , student.lname , gradeconversion.gradepoint from enrolled_in join gradeconversion join student on enrolled_in.grade = gradeconversion.lettergrade and enrolled_in.stuid = student.stuid
### Instruction:

Convert text to sql: Find the distinct student first names of all students that have grade point at least 3.8 in one course. | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select distinct _ from _ where _ | select distinct student.fname from enrolled_in join gradeconversion join student on enrolled_in.grade = gradeconversion.lettergrade and enrolled_in.stuid = student.stuid where gradeconversion.gradepoint >= 3.8
### Instruction:

Convert text to sql: What are the distinct first names for students with a grade point of 3.8 or above in at least one course? | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select distinct _ from _ where _ | select distinct student.fname from enrolled_in join gradeconversion join student on enrolled_in.grade = gradeconversion.lettergrade and enrolled_in.stuid = student.stuid where gradeconversion.gradepoint >= 3.8
### Instruction:

Convert text to sql: Find the full names of faculties who are members of department with department number 520. | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ where _ | select faculty.fname , faculty.lname from faculty join member_of on faculty.facid = member_of.facid where member_of.dno = 520
### Instruction:

Convert text to sql: What are the full names of faculty members who are a part of department 520? | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ where _ | select faculty.fname , faculty.lname from faculty join member_of on faculty.facid = member_of.facid where member_of.dno = 520
### Instruction:

Convert text to sql: What are the first names and last names of the students that minor in the department with DNO 140. | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ where _ | select student.fname , student.lname from minor_in join student on minor_in.stuid = student.stuid where minor_in.dno = 140
### Instruction:

Convert text to sql: What are the full names of students minoring in department 140? | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ where _ | select student.fname , student.lname from minor_in join student on minor_in.stuid = student.stuid where minor_in.dno = 140
### Instruction:

Convert text to sql: Find the last names of faculties who are members of computer science department. | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ where _ | select faculty.lname from department join faculty on department.dno = member_of.dno join member_of on faculty.facid = member_of.facid where department.dname = 'Computer Science'
### Instruction:

Convert text to sql: What are the last names of faculty who are part of the computer science department? | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select _ from _ where _ | select faculty.lname from department join faculty on department.dno = member_of.dno join member_of on faculty.facid = member_of.facid where department.dname = 'Computer Science'
### Instruction:

Convert text to sql: Find the average grade point of student whose last name is Smith. | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select avg ( _ ) from _ where _ | select avg ( gradeconversion.gradepoint ) from enrolled_in join gradeconversion join student on enrolled_in.grade = gradeconversion.lettergrade and enrolled_in.stuid = student.stuid where student.lname = 'Smith'
### Instruction:

Convert text to sql: What is the average gradepoint for students with the last name Smith? | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select avg ( _ ) from _ where _ | select avg ( gradeconversion.gradepoint ) from enrolled_in join gradeconversion join student on enrolled_in.grade = gradeconversion.lettergrade and enrolled_in.stuid = student.stuid where student.lname = 'Smith'
### Instruction:

Convert text to sql: What is the maximum and minimum grade point of students who live in NYC? | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select max ( _ ) , min ( _ ) from _ where _ | select max ( gradeconversion.gradepoint ) , min ( gradeconversion.gradepoint ) from enrolled_in join gradeconversion join student on enrolled_in.grade = gradeconversion.lettergrade and enrolled_in.stuid = student.stuid where student.city_code = 'NYC'
### Instruction:

Convert text to sql: Give the maximum and minimum gradepoints for students living in NYC? | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | department : dno , division , dname , room , building , dphone | member_of : facid , dno , appt_type | course : cid , cname , credits , instructor , days , hours , dno | minor_in : stuid , dno | enrolled_in : stuid , cid , grade | gradeconversion : lettergrade , gradepoint | member_of.dno = department.dno | member_of.facid = faculty.facid | course.dno = department.dno | course.instructor = faculty.facid | minor_in.dno = department.dno | minor_in.stuid = student.stuid | enrolled_in.grade = gradeconversion.lettergrade | enrolled_in.cid = course.cid | enrolled_in.stuid = student.stuid | 

### Response:

select max ( _ ) , min ( _ ) from _ where _ | select max ( gradeconversion.gradepoint ) , min ( gradeconversion.gradepoint ) from enrolled_in join gradeconversion join student on enrolled_in.grade = gradeconversion.lettergrade and enrolled_in.stuid = student.stuid where student.city_code = 'NYC'