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

Convert text to sql: Find the number of students that have at least one grade "B". | 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 count ( distinct stuid ) from enrolled_in where grade = 'B'

### Instruction:

Convert text to sql: How many students have had at least one "B" grade? | 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 count ( distinct stuid ) from enrolled_in where grade = 'B'

### Instruction:

Convert text to sql: Find the max and min grade point for all letter grade. | 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 ( gradepoint ) , min ( gradepoint ) from gradeconversion
### Instruction:

Convert text to sql: What are the maximum and minumum grade points? | 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 ( gradepoint ) , min ( gradepoint ) from gradeconversion

### Instruction:

Convert text to sql: Find the first names of students whose first names contain letter "a". | 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 fname from student where fname like '%a%'

### Instruction:

Convert text to sql: What are the first names for students who have an "a" in their first 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 distinct fname from student where fname like '%a%'
### Instruction:

Convert text to sql: Find the first names and last names of male (sex is M) faculties who live in building NEB. | 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 fname , lname from faculty where sex = 'M' and building = 'NEB'

### Instruction:

Convert text to sql: What are the full names of faculties with sex M and who live in building NEB? | 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 fname , lname from faculty where sex = 'M' and building = 'NEB'

### Instruction:

Convert text to sql: Find the rooms of faculties with rank professor who live in building NEB. | 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 room from faculty where rank = 'Professor' and building = 'NEB'
### Instruction:

Convert text to sql: What are the rooms for members of the faculty who are professors and who live in building NEB? | 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 room from faculty where rank = 'Professor' and building = 'NEB'

### Instruction:

Convert text to sql: Find the department name that is in Building "Mergenthaler". | 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 dname from department where building = 'Mergenthaler'

### Instruction:

Convert text to sql: What is the name of the department in the Building Mergenthaler? | 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 dname from department where building = 'Mergenthaler'
### Instruction:

Convert text to sql: List all information about courses sorted by credits in the ascending order. | 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 course order by credits asc

### Instruction:

Convert text to sql: What is all the information about courses, ordered by credits ascending? | 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 course order by credits asc

### Instruction:

Convert text to sql: List the course name of courses sorted by credits. | 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 cname from course order by credits asc
### Instruction:

Convert text to sql: What are the course names, ordered by credits? | 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 cname from course order by credits asc

### Instruction:

Convert text to sql: Find the first name of students in the descending order of age. | 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 fname from student order by age desc

### Instruction:

Convert text to sql: What are the first names of students, ordered by age from greatest to least? | 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 fname from student order by age desc
### Instruction:

Convert text to sql: Find the last name of female (sex is F) students in the descending order of age. | 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 lname from student where sex = 'F' order by age desc

### Instruction:

Convert text to sql: What are the last names of female students, ordered by age descending? | 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 lname from student where sex = 'F' order by age desc

### Instruction:

Convert text to sql: Find the last names of faculties in building Barton in alphabetic order. | 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 lname from faculty where building = 'Barton' order by lname asc
### Instruction:

Convert text to sql: What are the last names of faculty in building Barton, sorted by last 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 lname from faculty where building = 'Barton' order by lname asc

### Instruction:

Convert text to sql: Find the first names of faculties of rank Professor in alphabetic order. | 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 fname from faculty where rank = 'Professor' order by fname asc

### Instruction:

Convert text to sql: What are the first names for all faculty professors, ordered by first 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 fname from faculty where rank = 'Professor' order by fname asc