Use case: Logistics, Scheduling & Event Planning
Instruction type: Multistep
Prompt style: Context prompting

Prompt:
I work in a UK high school and have been asked to schedule the timetable for year 8 classes. I have access to 13 teachers who I can assign to teach the different subjects the students need to learn. Teachers can only teach their specialism. The teachers are as follows with the subjects they are able to teach in brackets: Ms Walker (English), Mr Reed (English), Ms Li (Maths), Mr Khan (Maths), Ms Ahmed (Science), Mr Wilson (Science), Dr Carter (Science), Ms Dupont (French), Mr Garcia (Spanish), Ms Young (History/Geography), Mr Clarke (History/Geography), Ms Grant (PE), and Ms Rivera (Art/Music). The curriculum requirements for each class are as follows English 5, Maths 5, Science 5, MFL 3 (French or Spanish per class), 2 History, 2 Geography, 2 PE, 1 Art or Music. There are five classes in the year 8a, 8b, 8c, 8d, 8e. Each teacher must have at least one lesson period each day when they are not teaching. Prepare me a timetable that meets these requirements, showing for each class which subject they have each period and the teacher that will teach them.  Each day has 5 periods. Do not create a table or grid. Return your solution as a list for each class with the following format:
Class (XX)
(Day)
(period) - (subject) - (Teacher)

Then extract me the timetable of Mr Reed.

Evaluation criteria:
The response should contain a schedule for each of the 5 classes: 8a, 8b, 8c, 8d, 8e.
The response should provide timetables for the 5 days of the school week in each of the class schedules. These could correspond to Monday, Tuesday, Wednesday, Thursday, Friday.
The response should list 5 periods for each class, per school day.
The response should assign each class 5 Science lessons.
The response should assign each class 5 English lessons.
The response should assign each class 5 Maths lessons.
The response should assign each class 2 Geography lessons.
The response should assign each class 2 History lessons.
The response should assign each class 3 MFL modern foreign language lessons (either French or Spanish) to each class.
The response should assign each class 2 PE lessons.
The response should assign each class one lesson of Art or of Music, but not both.
The response should assign either Ms Walker or Mr Reed to each English lesson.
The response should assign Ms Li or Mr Khan to each Maths lesson.
The response should assign one of Ms Ahmed, Mr Wilson, or Dr Carter to each Science lesson.
The response should assign Ms Dupont to each French lesson.
The response should assign Mr Garcia to each Spanish lesson.
The response should assign Ms Young or Mr Clarke to each History lesson.
The response should assign Ms Young or Mr Clarke to each Geography lesson.
The response should assign Ms Grant to each PE lesson.
The response should assign each Art lesson to Ms Rivera, if applicable.
The response should assign each Music lesson to Ms Rivera, if applicable.
The response should ensure that each teacher is assigned to a maximum of one lesson during any given period on a given day. For example a teacher could not teach both 8a and 8c on period 2 of Thursday.
The response should provide a timetable for Mr Reed.
The response should ensure the lessons on Mr Reed's timetable match the lessons he is assigned to in the class timetables. For example, if the main timetable shows Mr Reed teaching Class 8b during Period 2 on Monday, then Mr Reed's extracted timetable should also show this assignment.
The response should ensure each of the teachers Ms Walker, Mr Reed, Ms Li, Mr Khan, Ms Ahmed, Mr Wilson, Dr Carter, Ms Dupont, Mr Garcia, Ms Young, Mr Clarke, Ms Grant and Ms Rivera, remains unassigned for at least one period of each day.
The response should structure the timetable for the classes in the following format:
Class (XX)
(Day)
(period) - (subject) - (Teacher)
The response should ensure each class is assigned a full schedule of 25 lessons.
The response should not be formatted as a table or grid.
The response should not assign a teacher to a subject that is not listed as one of their specialisms, which is listed as follows: Ms Walker (English), Mr Reed (English), Ms Li (Maths), Mr Khan (Maths), Ms Ahmed (Science), Mr Wilson (Science), Dr Carter (Science), Ms Dupont (French), Mr Garcia (Spanish), Ms Young (History/Geography), Mr Clarke (History/Geography), Ms Grant (PE), and Ms Rivera (Art/Music).