index
int32
0
1.03k
db_id
stringclasses
20 values
question
stringlengths
18
174
db_info
stringlengths
1
1.79k
ground_truth
stringlengths
20
474
500
battle_death
What is the ship id and name that caused most total injuries?
| `ship`: `id`, `name`, `lost_in_battle` | `death`: `caused_by_ship_id`, `injured` | `battle`: `id` | `ship.lost_in_battle = battle.id` | `death.caused_by_ship_id = ship.id` |
select ship.id , ship.name from death join ship on death.caused_by_ship_id = ship.id group by ship.id order by count ( * ) desc limit 1
501
battle_death
What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?
| battle: name, bulgarian_commander, latin_commander, id, date, result | ship: id, lost_in_battle, name, tonnage, ship_type, location, disposition_of_ship | death: id, caused_by_ship_id, note, killed, injured | ship.lost_in_battle = battle.id | death.caused_by_ship_id = ship.id |
select name from battle where bulgarian_commander = 'Kaloyan' and latin_commander = 'Baldwin I'
502
battle_death
How many different results are there for the battles?
| battle: result, id, name, date, bulgarian_commander, latin_commander | ship: lost_in_battle, id, name, tonnage, ship_type, location, disposition_of_ship | death: caused_by_ship_id, id, note, killed, injured |
select count ( distinct result ) from battle
503
battle_death
How many battles did not lose any ship with tonnage '225'?
| battle: id, name, date, bulgarian_commander, latin_commander, result | ship: tonnage, lost_in_battle, id, name, ship_type, location, disposition_of_ship | death: caused_by_ship_id, id, note, killed, injured |
select count ( * ) from battle where id not in ( select lost_in_battle from ship where tonnage = '225' )
504
battle_death
List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'
| battle: id, name, date, bulgarian_commander, latin_commander, result | ship: name, id, lost_in_battle, tonnage, ship_type, location, disposition_of_ship | death: caused_by_ship_id, id, note, killed, injured | ship.lost_in_battle=battle.id | death.caused_by_ship_id=ship.id |
select battle.name , battle.date from battle join ship on battle.id = ship.lost_in_battle where ship.name = 'Lettice' intersect select battle.name , battle.date from battle join ship on battle.id = ship.lost_in_battle where ship.name = 'HMS Atalanta'
505
battle_death
Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.
| battle: name, result, bulgarian_commander, id, date, latin_commander | ship: lost_in_battle, location, id, name, tonnage, ship_type, disposition_of_ship | death: caused_by_ship_id, id, note, killed, injured | ship.lost_in_battle = battle.id | death.caused_by_ship_id = ship.id |
select name , result , bulgarian_commander from battle except select battle.name , battle.result , battle.bulgarian_commander from battle join ship on battle.id = ship.lost_in_battle where ship.location = 'English Channel'
506
battle_death
What are the notes of the death events which has substring 'East'?
| death: note, id, killed, injured, caused_by_ship_id | ship: id, lost_in_battle | battle: id |
select note from death where note like '%East%'
507
student_transcripts_tracking
what are all the addresses including line 1 and line 2?
| addresses: line_1, line_2, address_id, line_3, city, zip_postcode, state_province_county, country, other_address_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | courses: course_id, course_name, course_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | 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 |
select line_1 , line_2 from addresses
508
student_transcripts_tracking
What is the first and second line for all addresses?
| addresses: line_1, line_2, address_id, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | 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 |
select line_1 , line_2 from addresses
509
student_transcripts_tracking
How many courses in total are listed?
| courses: course_id, course_name, course_description, other_details |
select count ( * ) from courses
510
student_transcripts_tracking
How many courses are there?
| courses: course_id, course_name, course_description, other_details | addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | departments : department_id , department_name , department_description , other_details | degree_programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | sections : section_id , course_id , section_name , section_description , other_details | semesters : semester_id , semester_name , semester_description , other_details | students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | student_enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | transcripts : transcript_id , transcript_date , other_details | transcript_contents : student_course_id , transcript_id | 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 |
select count ( * ) from courses
511
student_transcripts_tracking
How is the math course described?
| courses: course_description, course_name, course_id | sections: course_id | student_enrolment_courses: course_id | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id |
select course_description from courses where course_name = 'math'
512
student_transcripts_tracking
What are the descriptions for all the math courses?
| courses: course_description, course_name, course_id | departments: department_name, department_id | degree_programs: department_id | sections: course_id | addresses: address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | degree_programs: degree_program_id , degree_summary_name , degree_summary_description , other_details | sections: section_id , section_name, section_description, other_details | semesters: semester_id , semester_name , semester_description , other_details | students: student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id , student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id |
select course_description from courses where course_name = 'math'
513
student_transcripts_tracking
What is the zip code of the address in the city Port Chelsea?
| addresses: zip_postcode, city, address_id, line_1, line_2, line_3, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | 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 |
select zip_postcode from addresses where city = 'Port Chelsea'
514
student_transcripts_tracking
What is the zip code for Port Chelsea?
| addresses: city, zip_postcode, line_1, line_2, line_3, state_province_county, country, other_address_details, address_id | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | 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 |
select zip_postcode from addresses where city = 'Port Chelsea'
515
student_transcripts_tracking
Which department offers the most number of degrees? List department name and id.
| degree_programs: degree_program_id, department_id | departments: department_id, department_name |
select departments.department_name , degree_programs.department_id from degree_programs join departments on degree_programs.department_id = departments.department_id group by degree_programs.department_id order by count ( * ) desc limit 1
516
student_transcripts_tracking
What is the name and id of the department with the most number of degrees ?
| degree_programs: degree_program_id, department_id | departments: department_id, department_name |
select departments.department_name , degree_programs.department_id from degree_programs join departments on degree_programs.department_id = departments.department_id group by degree_programs.department_id order by count ( * ) desc limit 1
517
student_transcripts_tracking
How many departments offer any degree?
| departments: department_id, department_name | degree_programs: department_id, degree_program_id |
select count ( distinct department_id ) from degree_programs
518
student_transcripts_tracking
How many different departments offer degrees?
| departments: department_id, department_name, department_description, other_details | degree_programs: department_id, degree_program_id, degree_summary_name, degree_summary_description, other_details |
select count ( distinct department_id ) from degree_programs
519
student_transcripts_tracking
How many different degree names are offered?
| degree_programs: degree_summary_name |
select count ( distinct degree_summary_name ) from degree_programs
520
student_transcripts_tracking
How many different degrees are offered?
|
select count ( distinct degree_summary_name ) from degree_programs
521
student_transcripts_tracking
How many degrees does the engineering department offer?
| departments: department_id, department_name | degree_programs: degree_program_id, department_id |
select count ( * ) from departments join degree_programs on departments.department_id = degree_programs.department_id where departments.department_name = 'engineer'
522
student_transcripts_tracking
How many degrees does the engineering department have?
| departments: department_name, department_id | degree_programs: department_id, degree_program_id |
select count ( * ) from departments join degree_programs on departments.department_id = degree_programs.department_id where departments.department_name = 'engineer'
523
student_transcripts_tracking
What are the names and descriptions of all the sections?
| sections: section_name, section_description, section_id, course_id, other_details |
select section_name , section_description from sections
524
student_transcripts_tracking
What are the names and descriptions for all the sections?
| sections: section_name, section_description, section_id, course_id, other_details | courses: course_id, course_name, course_description, other_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | 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 |
select section_name , section_description from sections
525
student_transcripts_tracking
What are the names and id of courses having at most 2 sections?
| courses: course_id, course_name | sections: section_id, course_id |
select courses.course_name , courses.course_id from courses join sections on courses.course_id = sections.course_id group by courses.course_id having count ( * ) <= 2
526
student_transcripts_tracking
What are the names and ids of every course with less than 2 sections?
| courses: course_id, course_name, course_description, other_details | sections: course_id, section_id, section_name, section_description, other_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | sections.course_id = courses.course_id |
select courses.course_name , courses.course_id from courses join sections on courses.course_id = sections.course_id group by courses.course_id having count ( * ) <= 2
527
student_transcripts_tracking
List the section_name in reversed lexicographical order.
| sections: section_name, section_id, course_id, section_description, other_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id |
select section_name from sections order by section_name desc
528
student_transcripts_tracking
What are the names of the sections in reverse alphabetical order?
| sections: section_name, section_id, course_id, section_description, other_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | 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 |
select section_name from sections order by section_name desc
529
student_transcripts_tracking
What is the semester which most student registered in? Show both the name and the id.
| semesters: semester_id, semester_name, semester_description, other_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | student_enrolment.student_id = students.student_id | student_enrolment.semester_id = semesters.semester_id | students.permanent_address_id = addresses.address_id | students.current_address_id = addresses.address_id | degree_programs.department_id = departments.department_id | sections.course_id = courses.course_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 |
select semesters.semester_name , semesters.semester_id from semesters join student_enrolment on semesters.semester_id = student_enrolment.semester_id group by semesters.semester_id order by count ( * ) desc limit 1
530
student_transcripts_tracking
For each semester, what is the name and id of the one with the most students registered?
| semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | courses: course_id, course_name, course_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details |
select semesters.semester_name , semesters.semester_id from semesters join student_enrolment on semesters.semester_id = student_enrolment.semester_id group by semesters.semester_id order by count ( * ) desc limit 1
531
student_transcripts_tracking
What is the description of the department whose name has the substring the computer?
| departments: department_name, department_description, department_id, other_details |
select department_description from departments where department_name like '%computer%'
532
student_transcripts_tracking
What is the department description for the one whose name has the word computer?
| departments: department_name, department_description |
select department_description from departments where department_name like '%computer%'
533
student_transcripts_tracking
Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.
| students: student_id, first_name, middle_name, last_name, current_address_id, permanent_address_id, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | courses: course_id, course_name, course_description, other_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | departments: department_id, department_name, department_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_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 | 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 | transcript_contents.transcript_id = transcripts.transcript_id | transcript_contents.student_course_id = student_enrolment_courses.student_course_id |
select students.first_name , students.middle_name , students.last_name , students.student_id from students join student_enrolment on students.student_id = student_enrolment.student_id group by students.student_id having count ( * ) = 2
534
student_transcripts_tracking
What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?
| students: student_id, first_name, middle_name, last_name, current_address_id, permanent_address_id, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | courses: course_id, course_name, course_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | departments: department_id, department_name, department_description, other_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id |
select students.first_name , students.middle_name , students.last_name , students.student_id from students join student_enrolment on students.student_id = student_enrolment.student_id group by students.student_id having count ( * ) = 2
535
student_transcripts_tracking
Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.
| students: student_id, first_name, middle_name, last_name | degree_programs: degree_program_id | student_enrolment: student_id, degree_program_id | addresses: address_id | courses: course_id | departments: department_id | sections: section_id | semesters: semester_id | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id | transcript_contents: student_course_id, transcript_id | 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 |
select distinct students.first_name , students.middle_name , students.last_name from students join student_enrolment on students.student_id = student_enrolment.student_id join degree_programs on student_enrolment.degree_program_id = degree_programs.degree_program_id where degree_programs.degree_summary_name = 'Bachelor'
536
student_transcripts_tracking
What are the first, middle, and last names for everybody enrolled in a Bachelors program?
| students: student_id, first_name, middle_name, last_name, current_address_id, permanent_address_id, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | addresses: address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | courses: course_id , course_name , course_description , other_details | departments: department_id , department_name , department_description , other_details | sections: section_id , course_id , section_name , section_description , other_details | semesters: semester_id , semester_name , semester_description , other_details | student_enrolment_courses: student_course_id , course_id , student_enrolment_id | transcripts: transcript_id , transcript_date , other_details | transcript_contents: student_course_id , transcript_id | 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 |
select distinct students.first_name , students.middle_name , students.last_name from students join student_enrolment on students.student_id = student_enrolment.student_id join degree_programs on student_enrolment.degree_program_id = degree_programs.degree_program_id where degree_programs.degree_summary_name = 'Bachelor'
537
student_transcripts_tracking
Find the kind of program which most number of students are enrolled in?
| student_enrolment: student_enrolment_id, degree_program_id, student_id | degree_programs: degree_program_id, degree_summary_name, department_id | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | semesters: semester_id, semester_name, semester_description, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | students.permanent_address_id = addresses.address_id | students.current_address_id = addresses.address_id | student_enrolment.student_id = students.student_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 |
select degree_programs.degree_summary_name from degree_programs join student_enrolment on degree_programs.degree_program_id = student_enrolment.degree_program_id group by degree_programs.degree_summary_name order by count ( * ) desc limit 1
538
student_transcripts_tracking
What is the degree summary name that has the most number of students enrolled?
| student_enrolment: student_id, degree_program_id, semester_id, student_enrolment_id, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | student_enrolment.student_id = students.student_id | student_enrolment.degree_program_id = degree_programs.degree_program_id | students.permanent_address_id = addresses.address_id | students.current_address_id = addresses.address_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 | degree_programs.department_id = departments.department_id | sections.course_id = courses.course_id |
select degree_programs.degree_summary_name from degree_programs join student_enrolment on degree_programs.degree_program_id = student_enrolment.degree_program_id group by degree_programs.degree_summary_name order by count ( * ) desc limit 1
539
student_transcripts_tracking
Find the program which most number of students are enrolled in. List both the id and the summary.
| degree_programs: degree_program_id, degree_summary_name | student_enrolment: degree_program_id, student_id | students: student_id | departments: department_id, department_name, department_description, other_details | courses: course_id, course_name, course_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | transcript_contents: student_course_id, transcript_id | 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 |
select degree_programs.degree_program_id , degree_programs.degree_summary_name from degree_programs join student_enrolment on degree_programs.degree_program_id = student_enrolment.degree_program_id group by degree_programs.degree_program_id order by count ( * ) desc limit 1
540
student_transcripts_tracking
What is the program id and the summary of the degree that has the most students enrolled?
| degree_programs: degree_program_id, degree_summary_name, department_id, degree_summary_description, other_details | student_enrolment: student_enrolment_id, degree_program_id, student_id, semester_id, other_details | departments: department_id , department_name , department_description , other_details | courses: course_id , course_name , course_description , other_details | students: student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | addresses: address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | sections: section_id , course_id , section_name , section_description , other_details | semesters: semester_id , semester_name , semester_description , other_details | student_enrolment_courses: student_course_id , course_id , student_enrolment_id | transcripts: transcript_id , transcript_date , other_details | transcript_contents: student_course_id , transcript_id | 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 |
select degree_programs.degree_program_id , degree_programs.degree_summary_name from degree_programs join student_enrolment on degree_programs.degree_program_id = student_enrolment.degree_program_id group by degree_programs.degree_program_id order by count ( * ) desc limit 1
541
student_transcripts_tracking
Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id.
| students: student_id, first_name, middle_name, last_name, current_address_id, permanent_address_id, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, student_id, degree_program_id, semester_id, other_details | student_enrolment_courses: student_course_id, student_enrolment_id, course_id | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_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 | transcripts.transcript_id = transcript_contents.transcript_id |
select students.student_id , students.first_name , students.middle_name , students.last_name , count ( * ) , students.student_id from students join student_enrolment on students.student_id = student_enrolment.student_id group by students.student_id order by count ( * ) desc limit 1
542
student_transcripts_tracking
What is the first, middle, and last name, along with the id and number of enrollments, for the student who enrolled the most in any program?
| students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_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 | degree_programs.department_id = departments.department_id | sections.course_id = courses.course_id |
select students.student_id , students.first_name , students.middle_name , students.last_name , count ( * ) , students.student_id from students join student_enrolment on students.student_id = student_enrolment.student_id group by students.student_id order by count ( * ) desc limit 1
543
student_transcripts_tracking
Which semesters do not have any student enrolled? List the semester name.
| semesters: semester_name, semester_id | student_enrolment: semester_id, student_id | students: student_id | addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | courses : course_id , course_name , course_description , other_details | departments : department_id , department_name , department_description , other_details | degree_programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | sections : section_id , course_id , section_name , section_description , other_details | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | transcripts : transcript_id , transcript_date , other_details | transcript_contents : student_course_id , transcript_id | 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 |
select semester_name from semesters where semester_id not in ( select semester_id from student_enrolment )
544
student_transcripts_tracking
What is the name of the semester with no students enrolled?
| semesters: semester_name, semester_id | student_enrolment: semester_id, student_id | students: student_id | degree_programs: degree_program_id | student_enrolment_courses: student_enrolment_id | sections: section_id, course_id, section_name, section_description, other_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | student_enrolment.degree_program_id = degree_programs.degree_program_id | student_enrolment.semester_id = semesters.semester_id | student_enrolment.student_id = students.student_id | student_enrolment_courses.student_enrolment_id = student_enrolment.student_enrolment_id |
select semester_name from semesters where semester_id not in ( select semester_id from student_enrolment )
545
student_transcripts_tracking
What are all the course names of the courses which ever have students enrolled in?
| courses: course_name, course_id, course_description, other_details | student_enrolment_courses: course_id, student_enrolment_id, student_course_id | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details |
select distinct courses.course_name from courses join student_enrolment_courses on courses.course_id = student_enrolment_courses.course_id
546
student_transcripts_tracking
What are the names of all courses that have some students enrolled?
| courses: course_id, course_name | student_enrolment_courses: course_id, student_enrolment_id | student_enrolment: student_enrolment_id | student_enrolment_courses.course_id = courses.course_id | student_enrolment_courses.student_enrolment_id = student_enrolment.student_enrolment_id |
select distinct courses.course_name from courses join student_enrolment_courses on courses.course_id = student_enrolment_courses.course_id
547
student_transcripts_tracking
What's the name of the course with most number of enrollments?
| courses: course_id, course_name | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | addresses: address_id | sections: section_id, course_id | semesters: semester_id | students: student_id, current_address_id, permanent_address_id | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id | transcripts: transcript_id | transcript_contents: student_course_id, transcript_id | departments: department_id | degree_programs: degree_program_id, department_id | student_enrolment_courses.student_enrolment_id = student_enrolment.student_enrolment_id | student_enrolment_courses.course_id = courses.course_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 | transcript_contents.transcript_id = transcripts.transcript_id | transcript_contents.student_course_id = student_enrolment_courses.student_course_id | students.permanent_address_id = addresses.address_id | students.current_address_id = addresses.address_id | degree_programs.department_id = departments.department_id |
select courses.course_name from courses join student_enrolment_courses on courses.course_id = student_enrolment_courses.course_id group by courses.course_name order by count ( * ) desc limit 1
548
student_transcripts_tracking
What is the name of the course with the most students enrolled?
| courses: course_name, course_id | student_enrolment_courses: course_id, student_course_id, student_enrolment_id | students: student_id | student_enrolment: student_id | addresses: address_id | departments: department_id | degree_programs: degree_program_id | sections: section_id | semesters: semester_id | transcripts: transcript_id | transcript_contents: student_course_id, transcript_id | student_enrolment_courses.student_enrolment_id = student_enrolment.student_enrolment_id | student_enrolment_courses.course_id = courses.course_id | student_enrolment.student_id = students.student_id | transcripts.transcript_id = transcript_contents.transcript_id | transcript_contents.student_course_id = student_enrolment_courses.student_course_id |
select courses.course_name from courses join student_enrolment_courses on courses.course_id = student_enrolment_courses.course_id group by courses.course_name order by count ( * ) desc limit 1
549
student_transcripts_tracking
Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.
| students: last_name, current_address_id | addresses: state_province_county, address_id | student_enrolment: student_id, degree_program_id | degree_programs: degree_program_id |
select students.last_name from students join addresses on students.current_address_id = addresses.address_id where addresses.state_province_county = 'NorthCarolina' except select distinct students.last_name from students join student_enrolment on students.student_id = student_enrolment.student_id
550
student_transcripts_tracking
What are the last name of the students who live in North Carolina but have not registered in any degree programs?
| students: last_name, current_address_id | addresses: address_id, state_province_county | student_enrolment: student_id, degree_program_id | students.current_address_id = addresses.address_id |
select students.last_name from students join addresses on students.current_address_id = addresses.address_id where addresses.state_province_county = 'NorthCarolina' except select distinct students.last_name from students join student_enrolment on students.student_id = student_enrolment.student_id
551
student_transcripts_tracking
Show the date and id of the transcript with at least 2 course results.
| Transcripts: transcript_id, transcript_date, other_details | Student_enrolment_courses: student_course_id, course_id, student_enrolment_id | Transcript_contents: student_course_id, transcript_id | Addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | Courses: course_id, course_name, course_description, other_details | Departments: department_id, department_name, department_description, other_details | Degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | Sections: section_id, course_id, section_name, section_description, other_details | Semesters: semester_id, semester_name, semester_description, other_details | Students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | Student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | 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 |
select transcripts.transcript_date , transcript_contents.transcript_id from transcript_contents join transcripts on transcript_contents.transcript_id = transcripts.transcript_id group by transcript_contents.transcript_id having count ( * ) >= 2
552
student_transcripts_tracking
What is the date and id of the transcript with at least 2 courses listed?
| transcript_contents: student_course_id, transcript_id | transcripts: transcript_id, transcript_date | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | transcript_contents.transcript_id = transcripts.transcript_id | transcript_contents.student_course_id = student_enrolment_courses.student_course_id | student_enrolment_courses.student_enrolment_id = student_enrolment.student_enrolment_id | student_enrolment_courses.course_id = courses.course_id |
select transcripts.transcript_date , transcript_contents.transcript_id from transcript_contents join transcripts on transcript_contents.transcript_id = transcripts.transcript_id group by transcript_contents.transcript_id having count ( * ) >= 2
553
student_transcripts_tracking
What is the phone number of the man with the first name Timmothy and the last name Ward?
| students: first_name, last_name, cell_mobile_number, student_id, current_address_id, permanent_address_id, middle_name, email_address ,ssn, date_first_registered, date_left, other_student_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | departments: department_id, department_name, department_description, other_details | courses: course_id, course_name, course_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | 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 |
select cell_mobile_number from students where first_name = 'Timmothy' and last_name = 'Ward'
554
student_transcripts_tracking
What is the mobile phone number of the student named Timmothy Ward ?
| students: first_name, last_name, cell_mobile_number, student_id, current_address_id, permanent_address_id, email_address, ssn, date_first_registered, date_left, other_student_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | 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 |
select cell_mobile_number from students where first_name = 'timmothy' and last_name = 'ward'
555
student_transcripts_tracking
Who is the first student to register? List the first name, middle name and last name.
| students: student_id, date_first_registered, first_name, middle_name, last_name, current_address_id, permanent_address_id, cell_mobile_number, email_address, ssn, date_left, other_student_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id |
select first_name , middle_name , last_name from students order by date_first_registered asc limit 1
556
student_transcripts_tracking
What is the first, middle, and last name of the first student to register?
| students: date_first_registered, first_name, middle_name, last_name, student_id, current_address_id, permanent_address_id, cell_mobile_number, email_address, ssn, date_left, other_student_details |
select first_name , middle_name , last_name from students order by date_first_registered asc limit 1
557
student_transcripts_tracking
Who is the earliest graduate of the school? List the first name, middle name and last name.
| students: date_first_registered, first_name, middle_name, last_name | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | 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 |
select first_name , middle_name , last_name from students order by date_left asc limit 1
558
student_transcripts_tracking
What is the first, middle, and last name of the earliest school graduate?
| students: date_first_registered, first_name, middle_name, last_name, student_id | transcripts: transcript_date, transcript_id | transcript_contents: transcript_id, student_course_id | student_enrolment: student_id | student_enrolment_courses: student_enrolment_id, course_id | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students.current_address_id = addresses.address_id | students.permanent_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 | degree_programs.department_id = departments.department_id | sections.course_id = courses.course_id |
select first_name , middle_name , last_name from students order by date_left asc limit 1
559
student_transcripts_tracking
Whose permanent address is different from his or her current address? List his or her first name.
| students: current_address_id, permanent_address_id, first_name, student_id | addresses: address_id | courses: course_id | departments: department_id | degree_programs: degree_program_id, department_id | sections: section_id, course_id | semesters: semester_id | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id | transcript_contents: student_course_id, transcript_id | 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 |
select first_name from students where current_address_id != permanent_address_id
560
student_transcripts_tracking
What is the first name of the student whose permanent address is different from his or her current one?
| students: first_name , current_address_id , permanent_address_id | addresses: address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | courses: course_id , course_name , course_description , other_details | departments: department_id , department_name , department_description , other_details | degree_programs: degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | sections: section_id , course_id , section_name , section_description , other_details | semesters: semester_id , semester_name , semester_description , other_details | student_enrolment: student_enrolment_id , degree_program_id , semester_id , student_id , other_details | student_enrolment_courses: student_course_id , course_id , student_enrolment_id | transcripts: transcript_id , transcript_date , other_details | transcript_contents: student_course_id , transcript_id | 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 |
select first_name from students where current_address_id != permanent_address_id
561
student_transcripts_tracking
Which address holds the most number of students currently? List the address id and all lines.
| students: current_address_id, student_id | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | students.current_address_id = addresses.address_id |
select addresses.address_id , addresses.line_1 , addresses.line_2 from addresses join students on addresses.address_id = students.current_address_id group by addresses.address_id order by count ( * ) desc limit 1
562
student_transcripts_tracking
What is the id, line 1, and line 2 of the address with the most students?
| students: current_address_id, student_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | students.permanent_address_id = addresses.address_id | students.current_address_id = addresses.address_id |
select addresses.address_id , addresses.line_1 , addresses.line_2 from addresses join students on addresses.address_id = students.current_address_id group by addresses.address_id order by count ( * ) desc limit 1
563
student_transcripts_tracking
On average, when were the transcripts printed?
| transcripts: transcript_date, transcript_id, other_details | transcript_contents: transcript_id, student_course_id | addresses : address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses : course_id, course_name, course_description, other_details | departments : department_id, department_name, department_description, other_details | degree_programs : degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections : section_id, course_id, section_name, section_description, other_details | semesters : semester_id, semester_name, semester_description, other_details | students : student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment : student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses : student_course_id, course_id, student_enrolment_id |
select avg ( transcript_date ) from transcripts
564
student_transcripts_tracking
What is the average transcript date?
| transcripts: transcript_date, transcript_id, other_details |
select avg ( transcript_date ) from transcripts
565
student_transcripts_tracking
When is the first transcript released? List the date and details.
| transcripts: transcript_date, other_details, transcript_id | transcript_contents: transcript_id, student_course_id | student_enrolment_courses: course_id, student_enrolment_id | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_name, course_id, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: department_id, degree_program_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: degree_program_id, semester_id, student_id, student_enrolment_id, other_details |
select transcript_date , other_details from transcripts order by transcript_date asc limit 1
566
student_transcripts_tracking
What is the earliest date of a transcript release, and what details can you tell me?
| Transcripts: transcript_date, transcript_id, other_details | Transcript_contents: transcript_id, student_course_id | Student_enrolment_courses: student_course_id, course_id, student_enrolment_id | Courses: course_id, course_name, course_description, other_details | Addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | Departments: department_id, department_name, department_description, other_details | Degree_Programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | Sections: section_id, course_id, section_name, section_description, other_details | Semesters: semester_id, semester_name, semester_description, other_details | Students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | Student_Enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | transcript_contents.transcript_id = transcripts.transcript_id |
select transcript_date , other_details from transcripts order by transcript_date asc limit 1
567
student_transcripts_tracking
How many transcripts are released?
| transcripts: transcript_id, transcript_date, other_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcript_contents: student_course_id, transcript_id | 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 |
select count ( * ) from transcripts
568
student_transcripts_tracking
How many transcripts are listed?
| transcripts: transcript_id, transcript_date, other_details | transcript_contents: transcript_id, student_course_id | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | 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 |
select count ( * ) from transcripts
569
student_transcripts_tracking
What is the last transcript release date?
| transcripts: transcript_id, transcript_date, other_details |
select transcript_date from transcripts order by transcript_date desc limit 1
570
student_transcripts_tracking
When was the last transcript released?
| transcripts: transcript_date, transcript_id, other_details | transcript_contents: transcript_id, student_course_id | student_enrolment_courses: student_course_id, student_enrolment_id, course_id | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | semesters: semester_id, semester_name, semester_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | departments: department_id, department_name, department_description, other_details | courses: course_id, course_name, course_description, other_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details |
select transcript_date from transcripts order by transcript_date desc limit 1
571
student_transcripts_tracking
How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.
| student_enrolment_courses: student_course_id, student_enrolment_id, course_id | transcripts: transcript_id | transcript_contents: student_course_id, transcript_id | courses: course_id | addresses: address_id, country, state_province_county, zip_postcode, city, line_1, line_2, line_3, other_address_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, permanent_address_id, current_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | 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 |
select count ( * ) , student_course_id from transcript_contents group by student_course_id order by count ( * ) desc limit 1
572
student_transcripts_tracking
What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id?
| student_enrolment_courses: course_id, student_enrolment_id, student_course_id | transcript_contents: student_course_id, transcript_id | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | transcripts: transcript_id, transcript_date, other_details | 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 |
select count ( * ) , student_course_id from transcript_contents group by student_course_id order by count ( * ) desc limit 1
573
student_transcripts_tracking
Show the date of the transcript which shows the least number of results, also list the id.
| transcripts: transcript_id, transcript_date | transcript_contents: transcript_id, student_course_id | transcript_contents.transcript_id = transcripts.transcript_id |
select transcripts.transcript_date , transcript_contents.transcript_id from transcript_contents join transcripts on transcript_contents.transcript_id = transcripts.transcript_id group by transcript_contents.transcript_id order by count ( * ) asc limit 1
574
student_transcripts_tracking
What is the date and id of the transcript with the least number of results?
| transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcript_contents.transcript_id = transcripts.transcript_id | transcript_contents.student_course_id = student_enrolment_courses.student_course_id |
select transcripts.transcript_date , transcript_contents.transcript_id from transcript_contents join transcripts on transcript_contents.transcript_id = transcripts.transcript_id group by transcript_contents.transcript_id order by count ( * ) asc limit 1
575
student_transcripts_tracking
Find the semester when both Master students and Bachelor students got enrolled in.
| student_enrolment: semester_id, student_id, degree_program_id, student_enrolment_id, other_details | students: student_id, other_student_details, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left | degree_programs: degree_program_id, degree_summary_name, department_id, degree_summary_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id |
select distinct student_enrolment.semester_id from degree_programs join student_enrolment on degree_programs.degree_program_id = student_enrolment.degree_program_id where degree_summary_name = 'Master' intersect select distinct student_enrolment.semester_id from degree_programs join student_enrolment on degree_programs.degree_program_id = student_enrolment.degree_program_id where degree_summary_name = 'Bachelor'
576
student_transcripts_tracking
What is the id of the semester that had both Masters and Bachelors students enrolled?
| degree_programs: degree_program_id, degree_summary_name, department_id | student_enrollment: student_enrolment_id, degree_program_id, semester_id, student_id | semesters: semester_id | degree_programs.department_id = departments.department_id | student_enrolment.degree_program_id = degree_programs.degree_program_id | student_enrolment.semester_id = semesters.semester_id | student_enrolment.student_id = students.student_id |
select distinct student_enrolment.semester_id from degree_programs join student_enrolment on degree_programs.degree_program_id = student_enrolment.degree_program_id where degree_summary_name = 'Master' intersect select distinct student_enrolment.semester_id from degree_programs join student_enrolment on degree_programs.degree_program_id = student_enrolment.degree_program_id where degree_summary_name = 'Bachelor'
577
student_transcripts_tracking
How many different addresses do the students currently live?
| students: student_id, current_address_id | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | students.permanent_address_id = addresses.address_id | students.current_address_id = addresses.address_id |
select count ( distinct current_address_id ) from students
578
student_transcripts_tracking
What are the different addresses that have students living there?
| addresses: line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details, address_id | students: current_address_id, permanent_address_id, student_id | courses : course_id , course_name , course_description , other_details | departments : department_id , department_name , department_description , other_details | degree_programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | sections : section_id , course_id , section_name , section_description , other_details | semesters : semester_id , semester_name , semester_description , other_details | student_enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | student_enrolment_courses : student_course_id , course_id , student_enrolment_id | transcripts : transcript_id , transcript_date , other_details | transcript_contents : student_course_id , transcript_id | 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 |
select count ( distinct current_address_id ) from students
579
student_transcripts_tracking
List all the student details in reversed lexicographical order.
| students: first_name, middle_name, last_name, student_id, current_address_id, permanent_address_id, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details |
select other_student_details from students order by other_student_details desc
580
student_transcripts_tracking
What other details can you tell me about students in reverse alphabetical order?
| students: last_name, student_id, first_name, middle_name, current_address_id, permanent_address_id, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_id, degree_program_id, semester_id, student_enrolment_id, other_details | student_enrolment_courses: student_enrolment_id, course_id, student_course_id | courses: course_id, course_name, course_description, other_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | departments: department_id, department_name, department_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_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 | degree_programs.department_id = departments.department_id | sections.course_id = courses.course_id |
select other_student_details from students order by other_student_details desc
581
student_transcripts_tracking
Describe the section h.
| sections: section_id, section_name, section_description, other_details, course_id | courses: course_id, course_name, course_description, other_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id |
select section_description from sections where section_name = 'h'
582
student_transcripts_tracking
What is the description for the section named h?
| sections: section_name, section_description | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id |
select section_description from sections where section_name = 'h'
583
student_transcripts_tracking
Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .
| students: student_id, current_address_id, permanent_address_id, first_name, middle_name, last_name, cell_mobile_number, email_address, ssn, date_first_registered, date_left, other_student_details | addresses: address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | 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 |
select students.first_name from students join addresses on students.permanent_address_id = addresses.address_id where addresses.country = 'haiti' or students.cell_mobile_number = '09700166582'
584
student_transcripts_tracking
What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?
| students: student_id, permanent_address_id, first_name, cell_mobile_number, middle_name, last_name | addresses: address_id, country, state_province_county, city, line_1, line_2, line_3, other_address_details, zip_postcode | courses: course_id, course_name, course_description, other_details | departments: department_id, department_name, department_description, other_details | degree_programs: degree_program_id, department_id, degree_summary_name, degree_summary_description, other_details | sections: section_id, course_id, section_name, section_description, other_details | semesters: semester_id, semester_name, semester_description, other_details | student_enrolment: student_enrolment_id, degree_program_id, semester_id, student_id, other_details | student_enrolment_courses: student_course_id, course_id, student_enrolment_id | transcripts: transcript_id, transcript_date, other_details | transcript_contents: student_course_id, transcript_id | 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 |
select students.first_name from students join addresses on students.permanent_address_id = addresses.address_id where addresses.country = 'haiti' or students.cell_mobile_number = '09700166582'
585
tvshow
List the title of all cartoons in alphabetical order.
| cartoon: title, channel, id, directed_by, written_by, original_air_date, production_code | tv_channel: series_name, id, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | tv_series: id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon.channel = tv_channel.id |
select title from cartoon order by title asc
586
tvshow
What are the titles of the cartoons sorted alphabetically?
| cartoon: title, id, directed_by, written_by, original_air_date, production_code, channel | tv_channel: id, series_name, country, language, content, pixel_aspect_ratio_par, high_definition_tv, pay_per_view_ppv, package_option | tv_series: id, channel, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
select title from cartoon order by title asc
587
tvshow
List all cartoon directed by "Ben Jones".
| cartoon: directed_by, title, id, channel, written_by, original_air_date, production_code | tv_channel: id | tv_series: id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank, channel |
select title from cartoon where directed_by = 'Ben Jones'
588
tvshow
What are the names of all cartoons directed by Ben Jones?
| cartoon: title, directed_by, id, written_by, original_air_date, production_code, channel | tv_channel: id, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | tv_series: id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank, channel | cartoon.channel = tv_channel.id | tv_series.channel = tv_channel.id |
select title from cartoon where directed_by = 'Ben Jones'
589
tvshow
How many cartoons were written by "Joseph Kuhr"?
| cartoon: written_by, title, channel | tv_channel: id | tv_series: id |
select count ( * ) from cartoon where written_by = 'Joseph Kuhr'
590
tvshow
What is the number of cartoones written by Joseph Kuhr?
| cartoon: written_by, title, channel, id, directed_by, original_air_date, production_code | tv_channel: id | tv_series: id |
select count ( * ) from cartoon where written_by = 'Joseph Kuhr'
591
tvshow
list all cartoon titles and their directors ordered by their air date
| cartoon: title, directed_by, original_air_date, channel | tv_series: air_date, channel | tv_channel: id |
select title , directed_by from cartoon order by original_air_date asc
592
tvshow
What is the name and directors of all the cartoons that are ordered by air date?
| cartoon: title, directed_by, channel, original_air_date, id, written_by, production_code | tv_series: air_date, channel, id, episode, rating, share, 18_49_rating_share, viewers_m, weekly_rank | tv_channel: id, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | cartoon.channel = tv_channel.id | tv_series.channel = tv_channel.id |
select title , directed_by from cartoon order by original_air_date asc
593
tvshow
List the title of all cartoon directed by "Ben Jones" or "Brandon Vietti".
| cartoon: title, directed_by, channel, id, written_by, original_air_date, production_code | tv_series: id, channel, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | tv_channel: id, channel, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option |
select title from cartoon where directed_by = 'Ben Jones' or directed_by = 'Brandon Vietti'
594
tvshow
What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?
| cartoon: directed_by, title, id, channel, written_by, original_air_date, production_code | tv_channel: id, series_name, country, language, content, pixel_aspect_ratio_par, high_definition_tv, pay_per_view_ppv, package_option | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon.channel = tv_channel.id | tv_series.channel = tv_channel.id |
select title from cartoon where directed_by = 'Ben Jones' or directed_by = 'Brandon Vietti'
595
tvshow
Which country has the most of TV Channels? List the country and number of TV Channels it has.
| tv_channel: country, id, series_name, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: channel, id, title, directed_by, written_by, original_air_date, production_code | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
select country , count ( * ) from tv_channel group by country order by count ( * ) desc limit 1
596
tvshow
What is the country with the most number of TV Channels and how many does it have?
| tv_channel: country, id, series_name, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: channel, id, title, directed_by, written_by, original_air_date, production_code | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
select country , count ( * ) from tv_channel group by country order by count ( * ) desc limit 1
597
tvshow
List the number of different series names and contents in the TV Channel table.
| tv_channel: series_name, content, id, country, language, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | tv_series: id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank, channel | cartoon: id, title, directed_by, written_by, original_air_date, production_code, channel | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
select count ( distinct series_name ) , count ( distinct content ) from tv_channel
598
tvshow
How many different series and contents are listed in the TV Channel table?
| tv_channel: series_name, content, id, country, language, pixel_aspect_ratio_par, high_definition_tv, pay_per_view_ppv, package_option | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: channel, id, title, directed_by, written_by, original_air_date, production_code | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
select count ( distinct series_name ) , count ( distinct content ) from tv_channel
599
tvshow
What is the content of TV Channel with serial name "Sky Radio"?
| tv_channel: series_name, content, id, language, country, package_option, pay_per_view_ppv, pixel_aspect_ratio_par, hight_definition_tv | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: channel, id, title, directed_by, written_by, original_air_date, production_code | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
select content from tv_channel where series_name = 'Sky Radio'