GraphQL Bulk Operation and Pagination Question

I have built my GraphQL Query for a Bulk operation using only the fields from Products, Variants, and Metafields that I actually need.

$bulkOperationQuery = <<

However I am getting a Gateway Timeout when executing the Query.

I am checking the Status of the Bulk operation:

```php
$checkStatusQuery = <<

and it returns status COMPLETED with a 5 second delay.

Looking for advice on how to simplify or break down the Query if that's possible as well as Pagination with Previous and Next page.