Query editor
SELECTDATE_TRUNC('month', call_block_time) as month,SUM(CASE WHEN delta > 0 THEN CAST(delta AS DOUBLE) / 1e18 ELSE 0 END) as positive_changes,SUM(CASE WHEN delta < 0 THEN CAST(delta AS DOUBLE) / 1e18 ELSE 0 END) as negative_changesFROM playmafia_bnb.mafiaequipment_call_equipitemsWHERE call_success = trueGROUP BY DATE_TRUNC('month', call_block_time)ORDER BY month DESC