how to compose query to list having more than 5000 items

Apr 26 at 12:31 PM
how to compose query to list having more than 5000 items?