fixed sequence query #4