Database: financial
Question: What is the average amount of loan which are still on running contract with statement issuance after each transaction?
SQL: SELECT AVG(T2.amount) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id WHERE T2.status IN ('C', 'D') AND T1.frequency = 'POPLATEK PO OBRATU'