Query editor
selectDATE_TRUNC('{{period}}', tbl.block_deadline_ts) as ts,DATE_TRUNC('{{period}}', tbl.block_time) as tx_ts,tbl.solver_name,tbl.solver_address,sum(tbl.res_profit_from_tx_dec) as res_profit_from_tx_dec,sum(tbl.res_capped_payment_dec) as res_capped_payment_dec,sum(tbl.res_slippage_dec) as res_slippage_dec,sum(tbl.res_total_network_fee_dec) as res_total_network_fee_dec,sum(tbl.res_total_execution_cost_dec) as res_total_execution_cost_dec,sum(tbl.total_protocol_fee_dec) as total_protocol_fee_dec,count(1) as auction_id_cnt,sum(if(tbl.cnt_mint > 0, 1, 0)) as cnt_with_mint,sum(if(tbl.cnt_burn > 0, 1, 0)) as cnt_with_burn,sum(if(tbl.src_is_ondo or tbl.dst_is_ondo, 1, 0)) as cnt_with_ondo,sum(if(tbl.pmm_transfers_count > 0, 1, 0)) as cnt_with_pmmfrom "query_7799517(blockchain='{{blockchain}}',start_time='{{start_time}}',end_time='{{end_time}}')" as tblgroup by 1, 2, 3, 4