jeaffbozosUntitled Query
    WITH
    offer_loan_tx AS (
    SELECT
    block_time,
    instructions[1].account_arguments[4] AS escrow
    FROM
    solana.transactions
    WHERE
    block_time > (NOW() - INTERVAL '21' DAY)
    AND contains(
    account_keys,
    'SHARKobtfF1bHhxD2eqftjHBdVSCbKo9JtgK71FhELP'
    )
    AND contains(
    log_messages,
    'Program log: Instruction: OfferLoan'
    )
    AND cardinality(instructions) > 1
    AND cardinality(instructions[1].account_arguments) > 5
    ),
    take_loan_tx AS (
    SELECT
    block_time,
    instructions[1].account_arguments[6] AS nft,
    instructions[1].account_arguments[7] AS escrow
    FROM
    solana.transactions
    WHERE
    block_time > (NOW() - INTERVAL '21' DAY)
    AND contains(
    account_keys,
    'SHARKobtfF1bHhxD2eqftjHBdVSCbKo9JtgK71FhELP'
    )
    AND contains(
    log_messages,
    'Program log: Instruction: TakeLoan'
    Run a query to Download Data