Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the last transcript release date?</question>
[SQL]:

Output: <SQL_QUERY>SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1</SQL_QUERY>

Question: SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1

Question: What is the last transcript release date?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>When was the last transcript released?</question>
[SQL]:

Output: <SQL_QUERY>SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1</SQL_QUERY>

Question: SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1

Question: When was the last transcript released?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) ,  student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1</SQL_QUERY>

Question: SELECT count(*) ,  student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1

Question: How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) ,  student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1</SQL_QUERY>

Question: SELECT count(*) ,  student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1

Question: What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Show the date of the transcript which shows the least number of results, also list the id.</question>
[SQL]:

Output: <SQL_QUERY>SELECT T2.transcript_date ,  T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id  =  T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1</SQL_QUERY>

Question: SELECT T2.transcript_date ,  T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id  =  T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1

Question: Show the date of the transcript which shows the least number of results, also list the id.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the date and id of the transcript with the least number of results?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T2.transcript_date ,  T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id  =  T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1</SQL_QUERY>

Question: SELECT T2.transcript_date ,  T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id  =  T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1

Question: What is the date and id of the transcript with the least number of results?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the semester when both Master students and Bachelor students got enrolled in.</question>
[SQL]:

Output: <SQL_QUERY>SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Bachelor'</SQL_QUERY>

Question: SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Bachelor'

Question: Find the semester when both Master students and Bachelor students got enrolled in.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the id of the semester that had both Masters and Bachelors students enrolled?</question>
[SQL]:

Output: <SQL_QUERY>SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Bachelor'</SQL_QUERY>

Question: SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Bachelor'

Question: What is the id of the semester that had both Masters and Bachelors students enrolled?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many different addresses do the students currently live?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(DISTINCT current_address_id) FROM Students</SQL_QUERY>

Question: SELECT count(DISTINCT current_address_id) FROM Students

Question: How many different addresses do the students currently live?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the different addresses that have students living there?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(DISTINCT current_address_id) FROM Students</SQL_QUERY>

Question: SELECT count(DISTINCT current_address_id) FROM Students

Question: What are the different addresses that have students living there?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>List all the student details in reversed lexicographical order.</question>
[SQL]:

Output: <SQL_QUERY>SELECT other_student_details FROM Students ORDER BY other_student_details DESC</SQL_QUERY>

Question: SELECT other_student_details FROM Students ORDER BY other_student_details DESC

Question: List all the student details in reversed lexicographical order.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What other details can you tell me about students in reverse alphabetical order?</question>
[SQL]:

Output: <SQL_QUERY>SELECT other_student_details FROM Students ORDER BY other_student_details DESC</SQL_QUERY>

Question: SELECT other_student_details FROM Students ORDER BY other_student_details DESC

Question: What other details can you tell me about students in reverse alphabetical order?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Describe the section h.</question>
[SQL]:

Output: <SQL_QUERY>SELECT section_description FROM Sections WHERE section_name  =  'h'</SQL_QUERY>

Question: SELECT section_description FROM Sections WHERE section_name  =  'h'

Question: Describe the section h.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the description for the section named h?</question>
[SQL]:

Output: <SQL_QUERY>SELECT section_description FROM Sections WHERE section_name  =  'h'</SQL_QUERY>

Question: SELECT section_description FROM Sections WHERE section_name  =  'h'

Question: What is the description for the section named h?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .</question>
[SQL]:

Output: <SQL_QUERY>select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id  =  t2.address_id where t2.country  =  'haiti' or t1.cell_mobile_number  =  '09700166582'</SQL_QUERY>

Question: select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id  =  t2.address_id where t2.country  =  'haiti' or t1.cell_mobile_number  =  '09700166582'

Question: Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | student_transcripts_tracking |  Addresses : address_id (text) , line_1 (number) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | Courses : course_id (text) , course_name (number) , course_description (text) , other_details (text) | Departments : department_id (text) , department_name (number) , department_description (text) , other_details (text) | Degree_Programs : degree_program_id (text) , department_id (number) , degree_summary_name (text) , degree_summary_description (text) , other_details (text) | Sections : section_id (text) , course_id (number) , section_name (text) , section_description (text) , other_details (text) | Semesters : semester_id (text) , semester_name (number) , semester_description (text) , other_details (text) | Students : student_id (text) , current_address_id (number) , permanent_address_id (text) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , ssn (text) , date_first_registered (text) , date_left (number) , other_student_details (text) | Student_Enrolment : student_enrolment_id (text) , degree_program_id (number) , semester_id (text) , student_id (text) , other_details (text) | Student_Enrolment_Courses : student_course_id (text) , course_id (number) , student_enrolment_id (text) | Transcripts : transcript_id (text) , transcript_date (number) , other_details (text) | Transcript_Contents : student_course_id (text) , transcript_id (number);</schema>"
<primary_keys>[Primary Keys]: addresses : address_id, courses : course_id, departments : department_id, degree_programs : degree_program_id, sections : section_id, semesters : semester_id, students : student_id, student_enrolment : student_enrolment_id, student_enrolment_courses : student_course_id, transcripts : transcript_id</primary_keys>"
<foreign_keys>[Foreign Keys]: degree_programs : department_id = departments : department_id | sections : course_id = courses : course_id | students : permanent_address_id = addresses : address_id | students : current_address_id = addresses : address_id | student_enrolment : student_id = students : student_id | student_enrolment : semester_id = semesters : semester_id | student_enrolment : degree_program_id = degree_programs : degree_program_id | student_enrolment_courses : student_enrolment_id = student_enrolment : student_enrolment_id | student_enrolment_courses : course_id = courses : course_id | transcript_contents : transcript_id = transcripts : transcript_id | transcript_contents : student_course_id = student_enrolment_courses : student_course_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?</question>
[SQL]:

Output: <SQL_QUERY>select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id  =  t2.address_id where t2.country  =  'haiti' or t1.cell_mobile_number  =  '09700166582'</SQL_QUERY>

Question: select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id  =  t2.address_id where t2.country  =  'haiti' or t1.cell_mobile_number  =  '09700166582'

Question: What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>List the title of all cartoons in alphabetical order.</question>
[SQL]:

Output: <SQL_QUERY>SELECT Title FROM Cartoon ORDER BY title</SQL_QUERY>

Question: SELECT Title FROM Cartoon ORDER BY title

Question: List the title of all cartoons in alphabetical order.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the titles of the cartoons sorted alphabetically?</question>
[SQL]:

Output: <SQL_QUERY>SELECT Title FROM Cartoon ORDER BY title</SQL_QUERY>

Question: SELECT Title FROM Cartoon ORDER BY title

Question: What are the titles of the cartoons sorted alphabetically?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>List all cartoon directed by "Ben Jones".</question>
[SQL]:

Output: <SQL_QUERY>SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones";</SQL_QUERY>

Question: SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones";

Question: List all cartoon directed by "Ben Jones".


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the names of all cartoons directed by Ben Jones?</question>
[SQL]:

Output: <SQL_QUERY>SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones";</SQL_QUERY>

Question: SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones";

Question: What are the names of all cartoons directed by Ben Jones?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many cartoons were written by "Joseph Kuhr"?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM Cartoon WHERE Written_by = "Joseph Kuhr";</SQL_QUERY>

Question: SELECT count(*) FROM Cartoon WHERE Written_by = "Joseph Kuhr";

Question: How many cartoons were written by "Joseph Kuhr"?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the number of cartoones written by Joseph Kuhr?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM Cartoon WHERE Written_by = "Joseph Kuhr";</SQL_QUERY>

Question: SELECT count(*) FROM Cartoon WHERE Written_by = "Joseph Kuhr";

Question: What is the number of cartoones written by Joseph Kuhr?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>list all cartoon titles and their directors ordered by their air date</question>
[SQL]:

Output: <SQL_QUERY>SELECT title ,  Directed_by FROM Cartoon ORDER BY Original_air_date</SQL_QUERY>

Question: SELECT title ,  Directed_by FROM Cartoon ORDER BY Original_air_date

Question: list all cartoon titles and their directors ordered by their air date


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the name and directors of all the cartoons that are ordered by air date?</question>
[SQL]:

Output: <SQL_QUERY>SELECT title ,  Directed_by FROM Cartoon ORDER BY Original_air_date</SQL_QUERY>

Question: SELECT title ,  Directed_by FROM Cartoon ORDER BY Original_air_date

Question: What is the name and directors of all the cartoons that are ordered by air date?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>List the title of all cartoon directed by "Ben Jones" or "Brandon Vietti".</question>
[SQL]:

Output: <SQL_QUERY>SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" OR Directed_by = "Brandon Vietti";</SQL_QUERY>

Question: SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" OR Directed_by = "Brandon Vietti";

Question: List the title of all cartoon directed by "Ben Jones" or "Brandon Vietti".


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?</question>
[SQL]:

Output: <SQL_QUERY>SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" OR Directed_by = "Brandon Vietti";</SQL_QUERY>

Question: SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" OR Directed_by = "Brandon Vietti";

Question: What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which country has the most of TV Channels? List the country and number of TV Channels it has.</question>
[SQL]:

Output: <SQL_QUERY>SELECT Country ,  count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;</SQL_QUERY>

Question: SELECT Country ,  count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;

Question: Which country has the most of TV Channels? List the country and number of TV Channels it has.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the country with the most number of TV Channels and how many does it have?</question>
[SQL]:

Output: <SQL_QUERY>SELECT Country ,  count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;</SQL_QUERY>

Question: SELECT Country ,  count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;

Question: What is the country with the most number of TV Channels and how many does it have?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>List the number of different series names and contents in the TV Channel table.</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(DISTINCT series_name) ,  count(DISTINCT content) FROM TV_Channel;</SQL_QUERY>

Question: SELECT count(DISTINCT series_name) ,  count(DISTINCT content) FROM TV_Channel;

Question: List the number of different series names and contents in the TV Channel table.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many different series and contents are listed in the TV Channel table?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(DISTINCT series_name) ,  count(DISTINCT content) FROM TV_Channel;</SQL_QUERY>

Question: SELECT count(DISTINCT series_name) ,  count(DISTINCT content) FROM TV_Channel;

Question: How many different series and contents are listed in the TV Channel table?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the content of TV Channel with serial name "Sky Radio"?</question>
[SQL]:

Output: <SQL_QUERY>SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio";</SQL_QUERY>

Question: SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio";

Question: What is the content of TV Channel with serial name "Sky Radio"?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the content of the series Sky Radio?</question>
[SQL]:

Output: <SQL_QUERY>SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio";</SQL_QUERY>

Question: SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio";

Question: What is the content of the series Sky Radio?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the Package Option of TV Channel with serial name "Sky Radio"?</question>
[SQL]:

Output: <SQL_QUERY>SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio";</SQL_QUERY>

Question: SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio";

Question: What is the Package Option of TV Channel with serial name "Sky Radio"?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the Package Options of the TV Channels whose series names are Sky Radio?</question>
[SQL]:

Output: <SQL_QUERY>SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio";</SQL_QUERY>

Question: SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio";

Question: What are the Package Options of the TV Channels whose series names are Sky Radio?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many TV Channel using language English?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM TV_Channel WHERE LANGUAGE = "English";</SQL_QUERY>

Question: SELECT count(*) FROM TV_Channel WHERE LANGUAGE = "English";

Question: How many TV Channel using language English?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many TV Channels use the English language?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM TV_Channel WHERE LANGUAGE = "English";</SQL_QUERY>

Question: SELECT count(*) FROM TV_Channel WHERE LANGUAGE = "English";

Question: How many TV Channels use the English language?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>List the language used least number of TV Channel. List language and number of TV Channel.</question>
[SQL]:

Output: <SQL_QUERY>SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;</SQL_QUERY>

Question: SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;

Question: List the language used least number of TV Channel. List language and number of TV Channel.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the languages used by the least number of TV Channels and how many channels use it?</question>
[SQL]:

Output: <SQL_QUERY>SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;</SQL_QUERY>

Question: SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;

Question: What are the languages used by the least number of TV Channels and how many channels use it?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>List each language and the number of TV Channels using it.</question>
[SQL]:

Output: <SQL_QUERY>SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE</SQL_QUERY>

Question: SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE

Question: List each language and the number of TV Channels using it.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>For each language, list the number of TV Channels that use it.</question>
[SQL]:

Output: <SQL_QUERY>SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE</SQL_QUERY>

Question: SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE

Question: For each language, list the number of TV Channels that use it.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the TV Channel that shows the cartoon "The Rise of the Blue Beetle!"? List the TV Channel's series name.</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = "The Rise of the Blue Beetle!";</SQL_QUERY>

Question: SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = "The Rise of the Blue Beetle!";

Question: What is the TV Channel that shows the cartoon "The Rise of the Blue Beetle!"? List the TV Channel's series name.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the series name of the TV Channel that shows the cartoon "The Rise of the Blue Beetle"?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = "The Rise of the Blue Beetle!";</SQL_QUERY>

Question: SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = "The Rise of the Blue Beetle!";

Question: What is the series name of the TV Channel that shows the cartoon "The Rise of the Blue Beetle"?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>List the title of all  Cartoons showed on TV Channel with series name "Sky Radio".</question>
[SQL]:

Output: <SQL_QUERY>SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio";</SQL_QUERY>

Question: SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio";

Question: List the title of all  Cartoons showed on TV Channel with series name "Sky Radio".


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the title of all the cartools that are on the TV Channel with the series name "Sky Radio"?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio";</SQL_QUERY>

Question: SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio";

Question: What is the title of all the cartools that are on the TV Channel with the series name "Sky Radio"?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | tvshow |  TV_Channel : id (text) , series_name (text) , country (text) , language (text) , content (text) , pixel_aspect_ratio_par (text) , hight_definition_tv (text) , pay_per_view_ppv (text) , package_option (text) | TV_series : id (text) , episode (text) , air_date (text) , rating (text) , share (text) , 18_49_rating_share (text) , viewers_m (text) , weekly_rank (text) , channel (text) | Cartoon : id (text) , title (text) , directed_by (text) , written_by (text) , original_air_date (text) , production_code (text) , channel (text);</schema>"
<primary_keys>[Primary Keys]: tv_channel : id, tv_series : id, cartoon : id</primary_keys>"
<foreign_keys>[Foreign Keys]: tv_series : channel = tv_channel : id | cartoon : channel = tv_channel : id</foreign_keys>"
Answer the following question with a SQL Statement:<question>List the Episode of all TV series sorted by rating.</question>
[SQL]:

Output: <SQL_QUERY>SELECT Episode FROM TV_series ORDER BY rating</SQL_QUERY>

Question: SELECT Episode FROM TV_series ORDER BY rating

Question: List the Episode of all TV series sorted by rating.