Conditions:

You don’t need to use exactly these conditions, as long as your query selects most of the sandwich transaction triples.

An example

https://explorer.jito.wtf/bundle/ef07916721b22593de2087102daee9931741935cb5e8320912749399cbba9964

Optimization condition

block_time >= TRY_CAST('2025-05-25 00:00:00' AS TIMESTAMP)
AND block_time < TRY_CAST('2025-05-25 08:00:00' AS TIMESTAMP)

Recommened output table schema

block_slot
tx_id_before
tx_id_target
tx_id_after

You may add attacker_profit column if your solution has this information

Relevant data is in: