In this model, trucks arrive and use docks for loading and unloading. At first, type 1 trucks arrive. However, when type 2 trucks arrive, they have priority for loading.
I tried to build SQL syntax by integrating WHERE with ORDER, but it didn't work.