How SQL execution orders varies across databases