Update query order specs