Problem statement:
I have a table of the following information:
equipment equipment_state equipment_state_in equipment_state_out shift_begin