Query editor
with parameters as (selectdate_add('day',-30,current_date) as analysis_date),transaction_lookup_context as (selectt.id as tx_id,/** Number of distinct Address Lookup Tables referenced* by the transaction message.*/cast(coalesce(cardinality(t.address_table_lookups),0) as bigint) as number_of_lookup_tables,/** Total number of resolved accounts used by the transaction:** static accounts* + writable accounts loaded through ALT* + readonly accounts loaded through ALT*/cast(coalesce(cardinality(t.account_keys),0) as bigint) as number_of_accounts,/** Accounts actually selected and loaded through ALT.** Writable and readonly addresses are combined because the* requested output is one row per account, regardless of its* access mode.** array_union also removes duplicates, ensuring that one* transaction contributes at most one observation per account.*/array_union(coalesce(t.loaded_addresses.writable,cast(array[] as array(varchar))),coalesce(