Parse transactions from statements