db_id
stringclasses 20
values | question
stringlengths 18
174
| db_info
stringclasses 20
values | ground_truth
stringlengths 20
474
|
---|---|---|---|
battle_death | What is the ship id and name that caused most total injuries? | # battle ( id , name , date , bulgarian_commander , latin_commander , result )
# ship ( lost_in_battle , id , name , 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 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 |
battle_death | What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'? | # battle ( id , name , date , bulgarian_commander , latin_commander , result )
# ship ( lost_in_battle , id , name , 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 name from battle where bulgarian_commander = 'Kaloyan' and latin_commander = 'Baldwin I' |
battle_death | How many different results are there for the battles? | # battle ( id , name , date , bulgarian_commander , latin_commander , result )
# ship ( lost_in_battle , id , name , 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 count ( distinct result ) from battle |
battle_death | How many battles did not lose any ship with tonnage '225'? | # battle ( id , name , date , bulgarian_commander , latin_commander , result )
# ship ( lost_in_battle , id , name , 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 count ( * ) from battle where id not in ( select lost_in_battle from ship where tonnage = '225' ) |
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 ( lost_in_battle , id , name , 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' |
battle_death | Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'. | # battle ( id , name , date , bulgarian_commander , latin_commander , result )
# ship ( lost_in_battle , id , name , 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 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' |
battle_death | What are the notes of the death events which has substring 'East'? | # battle ( id , name , date , bulgarian_commander , latin_commander , result )
# ship ( lost_in_battle , id , name , 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 note from death where note like '%East%' |
student_transcripts_tracking | what are all the addresses including line 1 and line 2? | # 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 )
# 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 |
student_transcripts_tracking | What is the first and second line for all addresses? | # 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 )
# 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 |
student_transcripts_tracking | How many courses in total are listed? | # 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 )
# 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 |
student_transcripts_tracking | How many courses are there? | # 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 )
# 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 |
student_transcripts_tracking | How is the math course described? | # 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 )
# 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 course_description from courses where course_name = 'math' |
student_transcripts_tracking | What are the descriptions for all the math courses? | # 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 )
# 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 course_description from courses where course_name = 'math' |
student_transcripts_tracking | What is the zip code of the address in the city Port Chelsea? | # 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 )
# 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' |
student_transcripts_tracking | What is the zip code for Port Chelsea? | # 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 )
# 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' |
student_transcripts_tracking | Which department offers the most number of degrees? List department name and 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 )
# 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 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 |
student_transcripts_tracking | What is the name and id of the department with the most number of degrees ? | # 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 )
# 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 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 |
student_transcripts_tracking | How many departments offer any degree? | # 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 )
# 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 department_id ) from degree_programs |
student_transcripts_tracking | How many different departments offer degrees? | # 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 )
# 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 department_id ) from degree_programs |
student_transcripts_tracking | How many different degree names are offered? | # 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 )
# 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 degree_summary_name ) from degree_programs |
student_transcripts_tracking | How many different degrees are offered? | # 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 )
# 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 degree_summary_name ) from degree_programs |
student_transcripts_tracking | How many degrees does the engineering department offer? | # 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 )
# 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 departments join degree_programs on departments.department_id = degree_programs.department_id where departments.department_name = 'engineer' |
student_transcripts_tracking | How many degrees does the engineering department have? | # 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 )
# 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 departments join degree_programs on departments.department_id = degree_programs.department_id where departments.department_name = 'engineer' |
student_transcripts_tracking | What are the names and descriptions of all the sections? | # 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 )
# 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 |
student_transcripts_tracking | What are the names and descriptions for all the sections? | # 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 )
# 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 |
student_transcripts_tracking | What are the names and id of courses having at most 2 sections? | # 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 )
# 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 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 |
student_transcripts_tracking | What are the names and ids of every course with less than 2 sections? | # 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 )
# 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 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 |
student_transcripts_tracking | List the section_name in reversed lexicographical order. | # 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 )
# 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 |
student_transcripts_tracking | What are the names of the sections in reverse alphabetical order? | # 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 )
# 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 |
student_transcripts_tracking | What is the semester which most student registered in? Show both the name and the 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 )
# 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 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 |
student_transcripts_tracking | For each semester, what is the name and id of the one with the most students registered? | # 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 )
# 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 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 |
student_transcripts_tracking | What is the description of the department whose name has the substring the computer? | # 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 )
# 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 department_description from departments where department_name like '%computer%' |
student_transcripts_tracking | What is the department description for the one whose name has the word computer? | # 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 )
# 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 department_description from departments where department_name like '%computer%' |
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. | # 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 )
# 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 , 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 |
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? | # 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 )
# 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 , 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 |
student_transcripts_tracking | Who is enrolled in a Bachelor degree program? List the 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 )
# 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 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' |
student_transcripts_tracking | What are the first, middle, and last names for everybody enrolled in a Bachelors program? | # 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 )
# 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' |
student_transcripts_tracking | Find the kind of program which most number of students are enrolled in? | # 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 )
# 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_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 |
student_transcripts_tracking | What is the degree summary name that has the most number of students enrolled? | # 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 )
# 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_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 |
student_transcripts_tracking | Find the program which most number of students are enrolled in. List both the id and the summary. | # 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 )
# 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 |
student_transcripts_tracking | What is the program id and the summary of the degree that has the most students enrolled? | # 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 )
# 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 |
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. | # 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 )
# 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.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 |
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? | # 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 )
# 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.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 |
student_transcripts_tracking | Which semesters do not have any student enrolled? List the semester 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 )
# 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 semester_name from semesters where semester_id not in ( select semester_id from student_enrolment ) |
student_transcripts_tracking | What is the name of the semester with no students enrolled? | # 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 )
# 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 ) |
student_transcripts_tracking | What are all the course names of the courses which ever have students enrolled in? | # 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 )
# 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 courses.course_name from courses join student_enrolment_courses on courses.course_id = student_enrolment_courses.course_id |
student_transcripts_tracking | What are the names of all courses that have some students enrolled? | # 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 )
# 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 courses.course_name from courses join student_enrolment_courses on courses.course_id = student_enrolment_courses.course_id |
student_transcripts_tracking | What's the name of the course with most number of enrollments? | # 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 )
# 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 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 |
student_transcripts_tracking | What is the name of the course with the most students enrolled? | # 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 )
# 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 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 |
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. | # 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 )
# 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.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 |
student_transcripts_tracking | What are the last name of the students who live in North Carolina but have not registered in any degree programs? | # 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 )
# 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.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 |
student_transcripts_tracking | Show the date and id of the transcript with at least 2 course results. | # 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 )
# 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 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 |
student_transcripts_tracking | What is the date and id of the transcript with at least 2 courses listed? | # 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 )
# 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 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 |
student_transcripts_tracking | What is the phone number of the man with the first name Timmothy and the last name Ward? | # 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 )
# 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' |
student_transcripts_tracking | What is the mobile phone number of the student named Timmothy Ward ? | # 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 )
# 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' |
student_transcripts_tracking | Who is the first student to register? List the first name, middle name and 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 )
# 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 first_name , middle_name , last_name from students order by date_first_registered asc limit 1 |
student_transcripts_tracking | What is the first, middle, and last name of the first student to register? | # 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 )
# 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_first_registered asc limit 1 |
student_transcripts_tracking | Who is the earliest graduate of the school? List the first name, middle name and 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 )
# 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 first_name , middle_name , last_name from students order by date_left asc limit 1 |
student_transcripts_tracking | What is the first, middle, and last name of the earliest school graduate? | # 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 )
# 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 |
student_transcripts_tracking | Whose permanent address is different from his or her current address? List his or her first 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 )
# 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 first_name from students where current_address_id != permanent_address_id |
student_transcripts_tracking | What is the first name of the student whose permanent address is different from his or her current one? | # 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 )
# 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 |
student_transcripts_tracking | Which address holds the most number of students currently? List the address id and all lines. | # 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 )
# 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 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 |
student_transcripts_tracking | What is the id, line 1, and line 2 of the address with the most students? | # 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 )
# 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 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 |
student_transcripts_tracking | On average, when were the transcripts printed? | # 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 )
# 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 avg ( transcript_date ) from transcripts |
student_transcripts_tracking | What is the average transcript date? | # 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 )
# 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 avg ( transcript_date ) from transcripts |
student_transcripts_tracking | When is the first transcript released? List the date and 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 )
# 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 transcript_date , other_details from transcripts order by transcript_date asc limit 1 |
student_transcripts_tracking | What is the earliest date of a transcript release, and what details can you tell me? | # 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 )
# 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 transcript_date , other_details from transcripts order by transcript_date asc limit 1 |
student_transcripts_tracking | How many transcripts are released? | # 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 )
# 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 transcripts |
student_transcripts_tracking | How many transcripts are listed? | # 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 )
# 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 transcripts |
student_transcripts_tracking | What is the last transcript release date? | # 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 )
# 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 transcript_date from transcripts order by transcript_date desc limit 1 |
student_transcripts_tracking | When was the last transcript released? | # 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 )
# 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 transcript_date from transcripts order by transcript_date desc limit 1 |
student_transcripts_tracking | How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment 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 )
# 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 ( * ) , student_course_id from transcript_contents group by student_course_id order by count ( * ) desc limit 1 |
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? | # 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 )
# 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 ( * ) , student_course_id from transcript_contents group by student_course_id order by count ( * ) desc limit 1 |
student_transcripts_tracking | Show the date of the transcript which shows the least number of results, also list the 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 )
# 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 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 |
student_transcripts_tracking | What is the date and id of the transcript with the least number of results? | # 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 )
# 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 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 |
student_transcripts_tracking | Find the semester when both Master students and Bachelor students got enrolled in. | # 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 )
# 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 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' |
student_transcripts_tracking | What is the id of the semester that had both Masters and Bachelors students enrolled? | # 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 )
# 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 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' |
student_transcripts_tracking | How many different addresses do the students currently live? | # 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 )
# 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 |
student_transcripts_tracking | What are the different addresses that have students living there? | # 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 )
# 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 |
student_transcripts_tracking | List all the student details in reversed lexicographical order. | # 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 )
# 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 other_student_details from students order by other_student_details desc |
student_transcripts_tracking | What other details can you tell me about students in reverse alphabetical order? | # 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 )
# 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 other_student_details from students order by other_student_details desc |
student_transcripts_tracking | Describe the section h. | # 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 )
# 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_description from sections where section_name = 'h' |
student_transcripts_tracking | What is the description for the section named h? | # 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 )
# 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_description from sections where section_name = 'h' |
student_transcripts_tracking | Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 . | # 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 )
# 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' |
student_transcripts_tracking | What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ? | # 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 )
# 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' |
tvshow | List the title of all cartoons in alphabetical order. | # 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 ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select title from cartoon order by title asc |
tvshow | What are the titles of the cartoons sorted alphabetically? | # 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 ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select title from cartoon order by title asc |
tvshow | List all cartoon directed by "Ben Jones". | # 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 ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select title from cartoon where directed_by = 'Ben Jones' |
tvshow | What are the names of all cartoons directed by Ben Jones? | # 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 ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select title from cartoon where directed_by = 'Ben Jones' |
tvshow | How many cartoons were written by "Joseph Kuhr"? | # 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 ( 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 ( * ) from cartoon where written_by = 'Joseph Kuhr' |
tvshow | What is the number of cartoones written by Joseph Kuhr? | # 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 ( 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 ( * ) from cartoon where written_by = 'Joseph Kuhr' |
tvshow | list all cartoon titles and their directors ordered by their air date | # 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 ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select title , directed_by from cartoon order by original_air_date asc |
tvshow | What is the name and directors of all the cartoons that are ordered by air date? | # 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 ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select title , directed_by from cartoon order by original_air_date asc |
tvshow | List the title of all cartoon directed by "Ben Jones" or "Brandon Vietti". | # 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 ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select title from cartoon where directed_by = 'Ben Jones' or directed_by = 'Brandon Vietti' |
tvshow | What are the titles of all cartoons directed by Ben Jones or Brandon Vietti? | # 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 ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select title from cartoon where directed_by = 'Ben Jones' or directed_by = 'Brandon Vietti' |
tvshow | Which country has the most of TV Channels? List the country and number of TV Channels it has. | # 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 ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# 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 |
tvshow | What is the country with the most number of TV Channels and how many does it have? | # 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 ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# 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 |
tvshow | List the number of different series names and contents in the TV Channel table. | # 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 ( 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 |
tvshow | How many different series and contents are listed in the TV Channel table? | # 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 ( 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 |
tvshow | What is the content of TV Channel with serial name "Sky Radio"? | # 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 ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select content from tv_channel where series_name = 'Sky Radio' |