def METHOD_NAME(db):
    ta1 = baker.make("TreasuryAppropriationAccount", federal_account__id=1, federal_account_id=1)
    baker.make(
        "FinancialAccountsByProgramActivityObjectClass",
        treasury_account=ta1,
        object_class__major_object_class=10,
        object_class__object_class=111,
        program_activity__program_activity_code="0001",
    )
    baker.make(
        "AppropriationAccountBalances",
        reporting_period_start="2016-01-01",
        reporting_period_end="2016-06-01",
        submission__reporting_fiscal_year=2016,
        submission__reporting_fiscal_quarter=3,
        treasury_account_identifier=ta1,
        final_of_fy=True,
        unobligated_balance_cpe=10000,
        gross_outlay_amount_by_tas_cpe=1000000,
        obligations_incurred_total_by_tas_cpe=1000,
    )
    ta1a = baker.make("TreasuryAppropriationAccount", federal_account__id=1, federal_account_id=1)
    baker.make(
        "FinancialAccountsByProgramActivityObjectClass",
        treasury_account=ta1,
        object_class__major_object_class=40,
        object_class__object_class=444,
        program_activity__program_activity_code="0004",
    )
    baker.make(
        "AppropriationAccountBalances",
        reporting_period_start="2014-01-01",
        reporting_period_end="2014-06-01",
        submission__reporting_fiscal_year=2014,
        submission__reporting_fiscal_quarter=3,
        treasury_account_identifier=ta1a,
        final_of_fy=True,
        unobligated_balance_cpe=10000,
        gross_outlay_amount_by_tas_cpe=1000000,
        obligations_incurred_total_by_tas_cpe=1000,
    )
    ta2 = baker.make("TreasuryAppropriationAccount", federal_account__id=2, federal_account_id=2)
    baker.make(
        "FinancialAccountsByProgramActivityObjectClass",
        treasury_account=ta2,
        object_class__major_object_class=10,
        object_class__object_class=111,
        program_activity__program_activity_code="0001",
    )
    baker.make(
        "AppropriationAccountBalances",
        reporting_period_start="2016-01-01",
        reporting_period_end="2016-06-01",
        submission__reporting_fiscal_year=2016,
        submission__reporting_fiscal_quarter=3,
        treasury_account_identifier=ta2,
        final_of_fy=True,
        unobligated_balance_cpe=10000,
        gross_outlay_amount_by_tas_cpe=1000000,
        obligations_incurred_total_by_tas_cpe=1000,
    )
    baker.make(
        "AppropriationAccountBalances",
        reporting_period_start="2016-01-01",
        reporting_period_end="2016-06-01",
        submission__reporting_fiscal_year=2016,
        submission__reporting_fiscal_quarter=3,
        treasury_account_identifier=ta2,
        final_of_fy=True,
        unobligated_balance_cpe=10000,
        gross_outlay_amount_by_tas_cpe=1000000,
        obligations_incurred_total_by_tas_cpe=1000,
    )
    baker.make(
        "AppropriationAccountBalances",
        reporting_period_start="2014-01-01",
        reporting_period_end="2014-06-01",
        submission__reporting_fiscal_year=2014,
        submission__reporting_fiscal_quarter=3,
        treasury_account_identifier=ta1,
        final_of_fy=True,
        unobligated_balance_cpe=10000,
        gross_outlay_amount_by_tas_cpe=1000000,
        obligations_incurred_total_by_tas_cpe=1000,
    )
    baker.make(
        "AppropriationAccountBalances",
        reporting_period_start="2016-01-01",
        reporting_period_end="2016-06-01",
        submission__reporting_fiscal_year=2016,
        submission__reporting_fiscal_quarter=3,
        treasury_account_identifier=ta1,
        final_of_fy=True,
        unobligated_balance_cpe=10000,
        gross_outlay_amount_by_tas_cpe=1000000,
        obligations_incurred_total_by_tas_cpe=1000,
    )
    baker.make(
        "AppropriationAccountBalances",
        reporting_period_start="2016-01-01",
        reporting_period_end="2016-06-01",
        submission__reporting_fiscal_year=2016,
        submission__reporting_fiscal_quarter=3,
        treasury_account_identifier=ta1,
        final_of_fy=True,
        unobligated_balance_cpe=10000,
        gross_outlay_amount_by_tas_cpe=1000000,
        obligations_incurred_total_by_tas_cpe=1000,
    )