Break large select queries into blocks.