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

Convert text to sql: How many distinct programs are broadcast at "Night" time? | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select count ( distinct program_id ) from broadcast where time_of_day = 'Night'

### Instruction:

Convert text to sql: Find the names of programs that are never broadcasted in the morning. | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select name from program except select program.name from program join broadcast on program.program_id = broadcast.program_id where broadcast.time_of_day = 'Morning'

### Instruction:

Convert text to sql: Which programs are never broadcasted in the morning? Give me the names of the programs. | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select name from program except select program.name from program join broadcast on program.program_id = broadcast.program_id where broadcast.time_of_day = 'Morning'

### Instruction:

Convert text to sql: find the program owners that have some programs in both morning and night time. | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select program.owner from program join broadcast on program.program_id = broadcast.program_id where broadcast.time_of_day = 'Morning' intersect select program.owner from program join broadcast on program.program_id = broadcast.program_id where broadcast.time_of_day = 'Night'
### Instruction:

Convert text to sql: Who are the owners of the programs that broadcast both in the morning and at night? | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select program.owner from program join broadcast on program.program_id = broadcast.program_id where broadcast.time_of_day = 'Morning' intersect select program.owner from program join broadcast on program.program_id = broadcast.program_id where broadcast.time_of_day = 'Night'

### Instruction:

Convert text to sql: List all program origins in the alphabetical order. | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select origin from program order by origin asc

### Instruction:

Convert text to sql: What is the list of program origins ordered alphabetically? | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select origin from program order by origin asc

### Instruction:

Convert text to sql: what is the number of different channel owners? | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select count ( distinct owner ) from channel
### Instruction:

Convert text to sql: Count the number of distinct channel owners. | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select count ( distinct owner ) from channel

### Instruction:

Convert text to sql: find the names of programs whose origin is not in Beijing. | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select name from program where origin != 'Beijing'

### Instruction:

Convert text to sql: Which programs' origins are not "Beijing"? Give me the program names. | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select name from program where origin != 'Beijing'

### Instruction:

Convert text to sql: What are the names of the channels owned by CCTV or HBS? | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select name from channel where owner = 'CCTV' or owner = 'HBS'

### Instruction:

Convert text to sql: List the names of all the channels owned by either CCTV or HBS | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select name from channel where owner = 'CCTV' or owner = 'HBS'
### Instruction:

Convert text to sql: Find the total rating ratio for each channel owner. | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select sum ( rating_in_percent ) , owner from channel group by owner

### Instruction:

Convert text to sql: What is the total rating of channel for each channel owner? | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select sum ( rating_in_percent ) , owner from channel group by owner

### Instruction:

Convert text to sql: Find the name of the program that is broadcast most frequently. | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select program.name from program join broadcast on program.program_id = broadcast.program_id group by broadcast.program_id order by count ( * ) desc limit 1

### Instruction:

Convert text to sql: Which program is broadcast most frequently? Give me the program name. | program : program_id , name , origin , launch , owner | channel : channel_id , name , owner , share_in_percent , rating_in_percent | broadcast : channel_id , program_id , time_of_day | broadcast_share : channel_id , program_id , date , share_in_percent | broadcast.program_id = program.program_id | broadcast.channel_id = channel.channel_id | broadcast_share.program_id = program.program_id | broadcast_share.channel_id = channel.channel_id | 

### Response:

select program.name from program join broadcast on program.program_id = broadcast.program_id group by broadcast.program_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: How many courses are there in total? | course_authors_and_tutors : author_id , author_tutor_atb , login_name , password , personal_name , middle_name , family_name , gender_mf , address_line_1 | students : student_id , date_of_registration , date_of_latest_logon , login_name , password , personal_name , middle_name , family_name | subjects : subject_id , subject_name | courses : course_id , author_id , subject_id , course_name , course_description | student_course_enrolment : registration_id , student_id , course_id , date_of_enrolment , date_of_completion | student_tests_taken : registration_id , date_test_taken , test_result | courses.subject_id = subjects.subject_id | courses.author_id = course_authors_and_tutors.author_id | student_course_enrolment.student_id = students.student_id | student_course_enrolment.course_id = courses.course_id | student_tests_taken.registration_id = student_course_enrolment.registration_id | 

### Response:

select count ( * ) from courses

### Instruction:

Convert text to sql: Find the total number of courses offered. | course_authors_and_tutors : author_id , author_tutor_atb , login_name , password , personal_name , middle_name , family_name , gender_mf , address_line_1 | students : student_id , date_of_registration , date_of_latest_logon , login_name , password , personal_name , middle_name , family_name | subjects : subject_id , subject_name | courses : course_id , author_id , subject_id , course_name , course_description | student_course_enrolment : registration_id , student_id , course_id , date_of_enrolment , date_of_completion | student_tests_taken : registration_id , date_test_taken , test_result | courses.subject_id = subjects.subject_id | courses.author_id = course_authors_and_tutors.author_id | student_course_enrolment.student_id = students.student_id | student_course_enrolment.course_id = courses.course_id | student_tests_taken.registration_id = student_course_enrolment.registration_id | 

### Response:

select count ( * ) from courses

### Instruction:

Convert text to sql: What are the descriptions of the courses with name "database"? | course_authors_and_tutors : author_id , author_tutor_atb , login_name , password , personal_name , middle_name , family_name , gender_mf , address_line_1 | students : student_id , date_of_registration , date_of_latest_logon , login_name , password , personal_name , middle_name , family_name | subjects : subject_id , subject_name | courses : course_id , author_id , subject_id , course_name , course_description | student_course_enrolment : registration_id , student_id , course_id , date_of_enrolment , date_of_completion | student_tests_taken : registration_id , date_test_taken , test_result | courses.subject_id = subjects.subject_id | courses.author_id = course_authors_and_tutors.author_id | student_course_enrolment.student_id = students.student_id | student_course_enrolment.course_id = courses.course_id | student_tests_taken.registration_id = student_course_enrolment.registration_id | 

### Response:

select course_description from courses where course_name = 'database'
### Instruction:

Convert text to sql: Return the description for the courses named "database". | course_authors_and_tutors : author_id , author_tutor_atb , login_name , password , personal_name , middle_name , family_name , gender_mf , address_line_1 | students : student_id , date_of_registration , date_of_latest_logon , login_name , password , personal_name , middle_name , family_name | subjects : subject_id , subject_name | courses : course_id , author_id , subject_id , course_name , course_description | student_course_enrolment : registration_id , student_id , course_id , date_of_enrolment , date_of_completion | student_tests_taken : registration_id , date_test_taken , test_result | courses.subject_id = subjects.subject_id | courses.author_id = course_authors_and_tutors.author_id | student_course_enrolment.student_id = students.student_id | student_course_enrolment.course_id = courses.course_id | student_tests_taken.registration_id = student_course_enrolment.registration_id | 

### Response:

select course_description from courses where course_name = 'database'

### Instruction:

Convert text to sql: What are the addresses of the course authors or tutors with personal name "Cathrine" | course_authors_and_tutors : author_id , author_tutor_atb , login_name , password , personal_name , middle_name , family_name , gender_mf , address_line_1 | students : student_id , date_of_registration , date_of_latest_logon , login_name , password , personal_name , middle_name , family_name | subjects : subject_id , subject_name | courses : course_id , author_id , subject_id , course_name , course_description | student_course_enrolment : registration_id , student_id , course_id , date_of_enrolment , date_of_completion | student_tests_taken : registration_id , date_test_taken , test_result | courses.subject_id = subjects.subject_id | courses.author_id = course_authors_and_tutors.author_id | student_course_enrolment.student_id = students.student_id | student_course_enrolment.course_id = courses.course_id | student_tests_taken.registration_id = student_course_enrolment.registration_id | 

### Response:

select address_line_1 from course_authors_and_tutors where personal_name = 'Cathrine'
### Instruction:

Convert text to sql: Return the addresses of the course authors or tutors whose personal name is "Cathrine". | course_authors_and_tutors : author_id , author_tutor_atb , login_name , password , personal_name , middle_name , family_name , gender_mf , address_line_1 | students : student_id , date_of_registration , date_of_latest_logon , login_name , password , personal_name , middle_name , family_name | subjects : subject_id , subject_name | courses : course_id , author_id , subject_id , course_name , course_description | student_course_enrolment : registration_id , student_id , course_id , date_of_enrolment , date_of_completion | student_tests_taken : registration_id , date_test_taken , test_result | courses.subject_id = subjects.subject_id | courses.author_id = course_authors_and_tutors.author_id | student_course_enrolment.student_id = students.student_id | student_course_enrolment.course_id = courses.course_id | student_tests_taken.registration_id = student_course_enrolment.registration_id | 

### Response:

select address_line_1 from course_authors_and_tutors where personal_name = 'Cathrine'

### Instruction:

Convert text to sql: List the addresses of all the course authors or tutors. | course_authors_and_tutors : author_id , author_tutor_atb , login_name , password , personal_name , middle_name , family_name , gender_mf , address_line_1 | students : student_id , date_of_registration , date_of_latest_logon , login_name , password , personal_name , middle_name , family_name | subjects : subject_id , subject_name | courses : course_id , author_id , subject_id , course_name , course_description | student_course_enrolment : registration_id , student_id , course_id , date_of_enrolment , date_of_completion | student_tests_taken : registration_id , date_test_taken , test_result | courses.subject_id = subjects.subject_id | courses.author_id = course_authors_and_tutors.author_id | student_course_enrolment.student_id = students.student_id | student_course_enrolment.course_id = courses.course_id | student_tests_taken.registration_id = student_course_enrolment.registration_id | 

### Response:

select address_line_1 from course_authors_and_tutors
### Instruction:

Convert text to sql: What is the address of each course author or tutor? | course_authors_and_tutors : author_id , author_tutor_atb , login_name , password , personal_name , middle_name , family_name , gender_mf , address_line_1 | students : student_id , date_of_registration , date_of_latest_logon , login_name , password , personal_name , middle_name , family_name | subjects : subject_id , subject_name | courses : course_id , author_id , subject_id , course_name , course_description | student_course_enrolment : registration_id , student_id , course_id , date_of_enrolment , date_of_completion | student_tests_taken : registration_id , date_test_taken , test_result | courses.subject_id = subjects.subject_id | courses.author_id = course_authors_and_tutors.author_id | student_course_enrolment.student_id = students.student_id | student_course_enrolment.course_id = courses.course_id | student_tests_taken.registration_id = student_course_enrolment.registration_id | 

### Response:

select address_line_1 from course_authors_and_tutors

### Instruction:

Convert text to sql: List all the login names and family names of course author and tutors. | course_authors_and_tutors : author_id , author_tutor_atb , login_name , password , personal_name , middle_name , family_name , gender_mf , address_line_1 | students : student_id , date_of_registration , date_of_latest_logon , login_name , password , personal_name , middle_name , family_name | subjects : subject_id , subject_name | courses : course_id , author_id , subject_id , course_name , course_description | student_course_enrolment : registration_id , student_id , course_id , date_of_enrolment , date_of_completion | student_tests_taken : registration_id , date_test_taken , test_result | courses.subject_id = subjects.subject_id | courses.author_id = course_authors_and_tutors.author_id | student_course_enrolment.student_id = students.student_id | student_course_enrolment.course_id = courses.course_id | student_tests_taken.registration_id = student_course_enrolment.registration_id | 

### Response:

select login_name , family_name from course_authors_and_tutors
### Instruction:

Convert text to sql: What are the login names and family names of course author and tutors? | course_authors_and_tutors : author_id , author_tutor_atb , login_name , password , personal_name , middle_name , family_name , gender_mf , address_line_1 | students : student_id , date_of_registration , date_of_latest_logon , login_name , password , personal_name , middle_name , family_name | subjects : subject_id , subject_name | courses : course_id , author_id , subject_id , course_name , course_description | student_course_enrolment : registration_id , student_id , course_id , date_of_enrolment , date_of_completion | student_tests_taken : registration_id , date_test_taken , test_result | courses.subject_id = subjects.subject_id | courses.author_id = course_authors_and_tutors.author_id | student_course_enrolment.student_id = students.student_id | student_course_enrolment.course_id = courses.course_id | student_tests_taken.registration_id = student_course_enrolment.registration_id | 

### Response:

select login_name , family_name from course_authors_and_tutors

### Instruction:

Convert text to sql: List all the dates of enrollment and completion of students. | course_authors_and_tutors : author_id , author_tutor_atb , login_name , password , personal_name , middle_name , family_name , gender_mf , address_line_1 | students : student_id , date_of_registration , date_of_latest_logon , login_name , password , personal_name , middle_name , family_name | subjects : subject_id , subject_name | courses : course_id , author_id , subject_id , course_name , course_description | student_course_enrolment : registration_id , student_id , course_id , date_of_enrolment , date_of_completion | student_tests_taken : registration_id , date_test_taken , test_result | courses.subject_id = subjects.subject_id | courses.author_id = course_authors_and_tutors.author_id | student_course_enrolment.student_id = students.student_id | student_course_enrolment.course_id = courses.course_id | student_tests_taken.registration_id = student_course_enrolment.registration_id | 

### Response:

select date_of_enrolment , date_of_completion from student_course_enrolment