query accounts($block: Block_height, $where: Account_filter, $orderBy: Account_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int){
    accounts(block: $block, where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
        id
        pools{
            id
            createdAtBlockNumber
            createdAtTimestamp
            poolSize
            t0debt
            inflator
            borrowRate
            lendRate
            borrowFeeRate
            depositFeeRate
            pledgedCollateral
            totalInterestEarned
            txCount
            poolType
            loansCount
            maxBorrower
            quoteTokenFlashloaned
            collateralFlashloaned
            hpb
            hpbIndex
            htp
            htpIndex
            lup
            lupIndex
            reserves
            claimableReserves
            claimableReservesRemaining
            burnEpoch
            totalAjnaBurned
            minDebtAmount
            actualUtilization
            targetUtilization
            totalBondEscrowed
            quoteTokenBalance
            collateralBalance
            subsetHash
            tokenIdsPledged
            bucketTokenIds
            tokenIdsAllowed
        }
        kicks{
            id
            kicker
            locked
            claimable
            borrower
            debt
            collateral
            bond
            startingPrice
            blockNumber
            blockTimestamp
            transactionHash
        }
        lends{
            id
            bucketIndex
            poolAddress
            lender
            lpb
            lpbValueInQuote
            depositTime
        }
        loans{
            id
            poolAddress
            borrower
            inLiquidation
            collateralPledged
            thresholdPrice
            tokenIdsPledged
            t0debt
            t0Np
        }
        settles{
            id
            borrower
            settledDebt
            blockNumber
            blockTimestamp
            transactionHash
        }
        takes{
            id
            taker
            borrower
            auctionPrice
            amount
            collateral
            bondChange
            isReward
            blockNumber
            blockTimestamp
            transactionHash
        }
        reserveAuctions{
            id
            claimableReservesRemaining
            lastTakePrice
            burnEpoch
            ajnaBurned
        }
        proposalsCreated{
            id
            proposalId
            description
            executed
            screeningVotesReceived
            fundingVotesReceived
            fundingVotesNegative
            fundingVotesPositive
            totalTokensRequested
        }
        proposalsExecuted{
            id
            proposalId
            description
            executed
            screeningVotesReceived
            fundingVotesReceived
            fundingVotesNegative
            fundingVotesPositive
            totalTokensRequested
        }
        delegatedTo{
            id
            rewardsClaimed
            tokensDelegated
            txCount
        }
        delegatedFrom{
            id
            rewardsClaimed
            tokensDelegated
            txCount
        }
        rewardsClaimed
        distributionPeriodVotes{
            id
            initialFundingStageVotingPowerRecordedPostVote
            remainingFundingStageVotingPowerRecordedPostVote
            initialScreeningStageVotingPowerRecordedPostVote
            remainingScreeningStageVotingPowerRecordedPostVote
        }
        tokensDelegated
        positions{
            id
            tokenId
            owner
            tokenURI
        }
        txCount
    }
}