<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.liquigraph.org/schema/1.0/liquigraph.xsd">

    <changeset id="PUB-107-manual-corrections:1" author="j0shua">
        <query>
            <![CDATA[
                MATCH (pc:PublishingComposition {pubSongID: 3855})-[hsr:HAS_SOUND_RECORDING]->(gsr:GlobalSoundRecording)
                WHERE gsr.isrc IN ["QMBZ92058097", "QM6MZ2040356"]
                DELETE hsr
                RETURN 0
            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:2" author="j0shua">
        <query>
            <![CDATA[
                MATCH (pc:PublishingComposition {id: "236fa123-331e-446f-bbf8-1be84a3cffed"})
                DETACH DELETE pc
                RETURN 0
            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:3" author="j0shua">
        <query>
            <![CDATA[
                MATCH (pc:PublishingComposition)
                WHERE pc.pubSongID IN [2279, 2281, 2284, 2285, 2299,
                    2313, 2315, 2330, 2335, 2342,
                    2363, 2364, 2365, 2366, 2371]
                WITH pc

                MATCH (pc)<-[:HAS_WRITER_SHARE]-(siow:PublishingSongWriter {legalName: "Siow Wen Seng"})
                WHERE siow.ipi <> 751056361
                SET siow.ipi = 751056361,
                    siow.modifiedAt = datetime()

                WITH pc
                MATCH (pc)<-[:HAS_WRITER_SHARE]-(tan:PublishingSongWriter {legalName: "Tan Peng Sing"})
                WHERE tan.ipi <> 751057064
                SET
                    tan.ipi = 751057064,
                    tan.modifiedAt = datetime()

                return 0
            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:4" author="j0shua">
        <query>
            <![CDATA[
                MATCH (pc:PublishingComposition {pubSongID: 854 })
                MATCH (pc)<-[ps70:HAS_PUB_SHARE {split: "70"}]-(pp:PublishingPublisher {name: "Cussy Music Publishing"})

                MATCH (pc)<-[ws70:HAS_WRITER_SHARE {split: "70"}]-(psw:PublishingSongWriter {legalName: "Dino Pacifici"})
                MATCH (pc)<-[ws30:HAS_WRITER_SHARE {split: "30"}]-(psw)

                MATCH (pc)<-[scorpioShare:HAS_PUB_SHARE]-(scorpioPub:PublishingPublisher {name: "Scorpio Rising Music"})
                MATCH (scorpioPub)-[:HAS_AGREEMENT]->(scorpioAgreement:PublishingAgreement)<-[scorpioHA:HAS_AGREEMENT]-(pc)

                DELETE ps70, ws70, ws30, scorpioShare, scorpioHA
                RETURN 0

            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:5" author="j0shua">
        <query>
            <![CDATA[
                MATCH (pc:PublishingComposition {pubSongID: 1461})
                MATCH (v:Vendor {uuid: "b205b077-0cb1-4739-b8eb-0c91e65c40d1"})

                MERGE (psw:PublishingSongWriter {
                    legalName: "A. Ford",
                    labelUUID: "b205b077-0cb1-4739-b8eb-0c91e65c40d1",
                    pubWriterID: 83
                })
                ON CREATE SET
                    psw.id = apoc.create.uuid(),
                    psw.createdBy = "3aac4396-2b90-405b-805e-8e55b18aa324",
                    psw.createdAt = datetime()
                SET
                    psw.modifiedBy = "3aac4396-2b90-405b-805e-8e55b18aa324",
                    psw.modifiedAt = datetime()

                MERGE (v)-[:HAS_SIGNED_WRITER]->(psw)

                MERGE (psw)-[:HAS_WRITER_SHARE {
                    split: "10",
                    hasLyricsContribution: false,
                    hasMusicContribution: true
                }]->(pc)

                MERGE (psw)-[:HAS_AGREEMENT]->(pa:PublishingAgreement {
                    controlled: false,
                    createdAt: datetime()
                })
            ]]>
        </query>
    </changeset>
    <changeset id="PUB-107-manual-corrections:6" author="j0shua">
        <query>
            <!-- Colours: clean the old one:
                Two different songs were linked onto one Composition
                1. remove link from other Composition to GSR with this ISRC
                2. remove link from this Songwriter to the other Composition
             -->
            <![CDATA[

                MATCH (psw:PublishingComposition {pubSongID: 812})-[hsr:HAS_SOUND_RECORDING]->(gsr:GlobalSoundRecording)
                WHERE gsr.isrc = "USA370351101"
                DELETE hsr
            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:7" author="j0shua">
        <query>
            <![CDATA[

                MATCH (psw:PublishingComposition {pubSongID: 1388})-[hsr:HAS_SOUND_RECORDING]->(gsr:GlobalSoundRecording)
                WHERE gsr.isrc = "QZES91947642"
                DELETE hsr
            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:8" author="j0shua">
        <query>
            <![CDATA[

                MATCH (psw:PublishingComposition {pubSongID: 4412})-[hsr:HAS_SOUND_RECORDING]->(gsr:GlobalSoundRecording)
                WHERE gsr.isrc = "DK4V61709905"
                DELETE hsr
            ]]>
        </query>
    </changeset>
    <changeset id="PUB-107-manual-corrections:9" author="j0shua">
        <query>
            <![CDATA[

                MATCH (psw:PublishingComposition {pubSongID: 4550})-[hsr:HAS_SOUND_RECORDING]->(gsr:GlobalSoundRecording)
                WHERE gsr.isrc = "DK4V61709908"
                DELETE hsr
            ]]>
        </query>
    </changeset>
    <changeset id="PUB-107-manual-corrections:10" author="j0shua">
        <query>
            <![CDATA[

                MATCH (psw:PublishingComposition {pubSongID: 4556})-[hsr:HAS_SOUND_RECORDING]->(gsr:GlobalSoundRecording)
                WHERE gsr.isrc = "DK4V61709906"
                DELETE hsr
            ]]>
        </query>
    </changeset>
    <changeset id="PUB-107-manual-corrections:11" author="j0shua">
        <query>
            <![CDATA[

                MATCH (psw:PublishingComposition {pubSongID: 4580})-[hsr:HAS_SOUND_RECORDING]->(gsr:GlobalSoundRecording)
                WHERE gsr.isrc = "DK4V61709903"
                DELETE hsr
            ]]>
        </query>
    </changeset>
    <changeset id="PUB-107-manual-corrections:12" author="j0shua">
        <query>
            <![CDATA[

                MATCH (psw:PublishingComposition {pubSongID: 5537})-[hsr:HAS_SOUND_RECORDING]->(gsr:GlobalSoundRecording)
                WHERE gsr.isrc = "DK4V61709901"
                DELETE hsr
            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:13" author="j0shua">
        <query>
            <![CDATA[

                MATCH (psw:PublishingComposition {pubSongID: 4427})-[hsr:HAS_SOUND_RECORDING]->(gsr:GlobalSoundRecording)
                WHERE gsr.isrc = "DK4V61709909"
                DELETE hsr
            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:14" author="j0shua">
        <query>
            <![CDATA[

                MATCH (psw:PublishingComposition {pubSongID: 4637})-[hsr:HAS_SOUND_RECORDING]->(gsr:GlobalSoundRecording)
                WHERE gsr.isrc = "DK4V61709904"
                DELETE hsr
            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:15" author="j0shua">
        <query>
            <![CDATA[

                MATCH (psw:PublishingComposition {pubSongID: 4666})-[hsr:HAS_SOUND_RECORDING]->(gsr:GlobalSoundRecording)
                WHERE gsr.isrc = "DK4V61709907"
                DELETE hsr
            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:16" author="j0shua">
        <query>
            <![CDATA[
                MATCH (psw:PublishingSongWriter {pubWriterID: 11})-[hws:HAS_WRITER_SHARE]->(pc:PublishingComposition)
                WHERE pc.pubSongID = 812
                DELETE hws
            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:17" author="j0shua">
        <query>
            <!-- Revolution: 2 different songs were linked onto one Composition
                1. remove link from other Composition to GSR with this ISRC: CANC21600124
                2. remove link from this Songwriter to the other Composition
             -->
            <![CDATA[

                MATCH (psw:PublishingComposition {pubSongID: 812})-[hsr:HAS_SOUND_RECORDING]->(gsr:GlobalSoundRecording)
                WHERE gsr.isrc = "USA370351101"
                DELETE hsr
            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:18" author="j0shua">
        <query>
            <![CDATA[
                MATCH (psw:PublishingSongWriter {pubWriterID: 11})-[hws:HAS_WRITER_SHARE]->(pc:PublishingComposition)
                WHERE pc.pubSongID = 812
                DELETE hws
            ]]>
        </query>
    </changeset>

    <!-- import colours -->
    <changeset id="PUB-107-manual-corrections:19" author="j0shua">
        <query>
            <![CDATA[
            MATCH (label:Label {uuid: "07356694-198e-4afd-b1d4-927a8a3ce777" })
            WITH label

            MERGE (i:IncrementId {nodeName: "PubSongIDCounter"})
            ON MATCH SET i.id = i.id + 1

            MERGE (label)-[:HAS_COMPOSITION]->(pc:PublishingComposition {
                labelUUID: "07356694-198e-4afd-b1d4-927a8a3ce777",
                pubSongID: i.id
            })
            ON CREATE SET
                pc.id = apoc.create.uuid(),
                pc.createdAt = datetime(),
                pc.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
            SET
                pc.title = "Colours",
                pc.draft = false,
                pc.iswc = "T0705811002",
                pc.alternateTitles = [],
                pc.submittedAt = datetime(),
                pc.modifiedAt = datetime(),
                pc.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

            MERGE (label)-[:HAS_SIGNED_WRITER]->(psw0:PublishingSongWriter {
                labelUUID: "07356694-198e-4afd-b1d4-927a8a3ce777",
                pubWriterID: toInteger(11),
                legalName: "Dino Pacifici"
            })
            ON CREATE SET
                psw0.id = apoc.create.uuid(),
                psw0.createdAt = datetime(),
                psw0.modifiedAt = datetime(),
                psw0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
            SET
                psw0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                    ,
                        psw0.ipi = 66391070,
                        psw0.pro = "SOCAN"

            MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp0:PublishingPublisher {
                labelUUID: "07356694-198e-4afd-b1d4-927a8a3ce777",
                pubPublisherID: toInteger(4),
                name: "Cussy Music Publishing"
            })
            ON CREATE SET
                pp0.id = apoc.create.uuid(),
                pp0.createdAt = datetime(),
                pp0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

            SET
                pp0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                pp0.ipi = 266406364,
                pp0.pro = "SOCAN"

            MERGE (pa0:PublishingAgreement {
                controlled: true,
                excludedTerritories: "AD, AE, AG, AL, AM, AR, AT, AU, BA, BB, BD, BE, BF, BG, BH, BO, BR, BS, BT, BW, BY, BZ, CA, CH, CL, CO, CR, CV, CY, CZ, DE, DK, DM, DO, DZ, EC, EE, EG, ES, FI, FJ, FM, FR, GB, GD, GE, GH, GM, GR, GT, GW, GY, HK, HN, HR, HT, HU, ID, IE, IL, IS, IT, JM, JO, JP, KE, KI, KN, KR, KW, KZ, LB, LC, LI, LK, LR, LS, LT, LU, LV, MA, MC, MD, ME, MH, MK, ML, MT, MV, MW, MX, MY, NA, NE, NG, NI, NL, NO, NR, NZ, OM, PA, PE, PG, PH, PK, PL, PS, PT, PW, PY, QA, RO, RS, RU, SA, SB, SC, SE, SG, SI, SK, SL, SM, SN, SR, ST, SV, TH, TL, TN, TO, TR, TT, TV, TW, TZ, UA, UG, US, UY, VC, VN, VU, WS, XK, ZA"
            })<-[:HAS_AGREEMENT]-(psw0)
            ON CREATE SET
                pa0.id = apoc.create.uuid(),
                pa0.createdAt = datetime(),
                pa0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
            SET
                pa0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                pa0.modifiedAt = datetime()

                MERGE (pp0)-[:HAS_AGREEMENT {split: "100"}]->(pa0)
                MERGE (pp0)-[:HAS_PUB_SHARE {split: "100" }]->(pc)


            MERGE (psw0)-[:HAS_WRITER_SHARE {
                split: "100",
                hasMusicContribution: true,
                hasLyricsContribution: true
            }]->(pc)


            WITH pc
            MATCH (gsr:GlobalSoundRecording {isrc: "USA370351101"})
            MERGE (gsr)<-[:HAS_SOUND_RECORDING]-(pc)
            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:20" author="j0shua">
        <query>
            <![CDATA[
            MATCH (label:Label {uuid: "07356694-198e-4afd-b1d4-927a8a3ce777" })

            WITH label

            MERGE (i:IncrementId {nodeName: "PubSongIDCounter"})
            ON MATCH SET i.id = i.id + 1

            MERGE (label)-[:HAS_COMPOSITION]->(pc:PublishingComposition {
                labelUUID: "07356694-198e-4afd-b1d4-927a8a3ce777",
                pubSongID: i.id
            })
            ON CREATE SET
                pc.id = apoc.create.uuid(),
                pc.createdAt = datetime(),
                pc.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
            SET
                pc.title = "Revolution",
                pc.draft = false,

                pc.alternateTitles = [],
                pc.submittedAt = datetime(),
                pc.modifiedAt = datetime(),
                pc.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

            MERGE (label)-[:HAS_SIGNED_WRITER]->(psw0:PublishingSongWriter {
                labelUUID: "07356694-198e-4afd-b1d4-927a8a3ce777",
                pubWriterID: toInteger(22),
                legalName: "Tamara Galdames Morales"
            })
            ON CREATE SET
                psw0.id = apoc.create.uuid(),
                psw0.createdAt = datetime(),
                psw0.modifiedAt = datetime(),
                psw0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
            SET
                psw0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                psw0.ipi = 819335133,
                psw0.pro = "SOCAN"

            MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp0:PublishingPublisher {
                labelUUID: "07356694-198e-4afd-b1d4-927a8a3ce777",
                pubPublisherID: toInteger(4),
                name: "Cussy Music Publishing"
            })
            ON CREATE SET
                pp0.id = apoc.create.uuid(),
                pp0.createdAt = datetime(),
                pp0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

            SET
                pp0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                pp0.ipi = 266406364,
                pp0.pro = "SOCAN"

            MERGE (pa0:PublishingAgreement {
                controlled: true,
                excludedTerritories: "AD, AE, AG, AL, AM, AR, AT, AU, BA, BB, BD, BE, BF, BG, BH, BO, BR, BS, BT, BW, BY, BZ, CA, CH, CL, CO, CR, CV, CY, CZ, DE, DK, DM, DO, DZ, EC, EE, EG, ES, FI, FJ, FM, FR, GB, GD, GE, GH, GM, GR, GT, GW, GY, HK, HN, HR, HT, HU, ID, IE, IL, IS, IT, JM, JO, JP, KE, KI, KN, KR, KW, KZ, LB, LC, LI, LK, LR, LS, LT, LU, LV, MA, MC, MD, ME, MH, MK, ML, MT, MV, MW, MX, MY, NA, NE, NG, NI, NL, NO, NR, NZ, OM, PA, PE, PG, PH, PK, PL, PS, PT, PW, PY, QA, RO, RS, RU, SA, SB, SC, SE, SG, SI, SK, SL, SM, SN, SR, ST, SV, TH, TL, TN, TO, TR, TT, TV, TW, TZ, UA, UG, US, UY, VC, VN, VU, WS, XK, ZA"
            })<-[:HAS_AGREEMENT]-(psw0)
            ON CREATE SET
                pa0.id = apoc.create.uuid(),
                pa0.createdAt = datetime(),
                pa0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
            SET
                pa0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                pa0.modifiedAt = datetime()

            MERGE (pp0)-[:HAS_AGREEMENT {split: "100"}]->(pa0)
            MERGE (pp0)-[:HAS_PUB_SHARE {split: "100" }]->(pc)


            MERGE (psw0)-[:HAS_WRITER_SHARE {
                split: "100",
                hasMusicContribution: true,
                hasLyricsContribution: true
            }]->(pc)

            WITH pc
            MATCH (gsr:GlobalSoundRecording {isrc: "CANC21600124"})
            MERGE (gsr)<-[:HAS_SOUND_RECORDING]-(pc)
            ]]>
        </query>
    </changeset>
    <changeset id="PUB-107-manual-corrections:21" author="j0shua">
        <query>
            <![CDATA[
            MATCH (label:Label {uuid: "4f8a444f-5854-4c15-b30b-afe6029cea8c" })

            WITH label

            MERGE (i:IncrementId {nodeName: "PubSongIDCounter"})
            ON MATCH SET i.id = i.id + 1

            MERGE (label)-[:HAS_COMPOSITION]->(pc:PublishingComposition {
                labelUUID: "4f8a444f-5854-4c15-b30b-afe6029cea8c",
                pubSongID: i.id
            })
            ON CREATE SET
                pc.id = apoc.create.uuid(),
                pc.createdAt = datetime(),
                pc.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
            SET
                pc.title = "G.O.A.T.",
                pc.draft = false,

                pc.alternateTitles = [],
                pc.submittedAt = datetime(),
                pc.modifiedAt = datetime(),
                pc.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw0:PublishingSongWriter {
                    labelUUID: "4f8a444f-5854-4c15-b30b-afe6029cea8c",
                    pubWriterID: toInteger(47),
                    legalName: "Derrick Oduro"
                })
                ON CREATE SET
                    psw0.id = apoc.create.uuid(),
                    psw0.createdAt = datetime(),
                    psw0.modifiedAt = datetime(),
                    psw0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    psw0.ipi = 365305566,
                    psw0.pro = "BUMA/STEMRA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp0:PublishingPublisher {
                    labelUUID: "4f8a444f-5854-4c15-b30b-afe6029cea8c",
                    pubPublisherID: toInteger(2),
                    name: "Songs of Orchard Publishing"
                })
                ON CREATE SET
                    pp0.id = apoc.create.uuid(),
                    pp0.createdAt = datetime(),
                    pp0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pp0.ipi = 1013026629,
                    pp0.pro = "BMI"

                MERGE (pa0:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: ""
                })<-[:HAS_AGREEMENT]-(psw0)
                ON CREATE SET
                    pa0.id = apoc.create.uuid(),
                    pa0.createdAt = datetime(),
                    pa0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa0.modifiedAt = datetime()

                MERGE (pp0)-[:HAS_AGREEMENT {split: "100"}]->(pa0)
                MERGE (pp0)-[:HAS_PUB_SHARE {split: "50" }]->(pc)


                MERGE (psw0)-[:HAS_WRITER_SHARE {
                    split: "50",
                    hasMusicContribution: false,
                    hasLyricsContribution: true
                }]->(pc)

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw1:PublishingSongWriter {
                    labelUUID: "4f8a444f-5854-4c15-b30b-afe6029cea8c",
                    pubWriterID: toInteger(54),
                    legalName: "Xavier De Haan"
                })
                ON CREATE SET
                    psw1.id = apoc.create.uuid(),
                    psw1.createdAt = datetime(),
                    psw1.modifiedAt = datetime(),
                    psw1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    psw1.ipi = 849111436

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp1:PublishingPublisher {
                    labelUUID: "4f8a444f-5854-4c15-b30b-afe6029cea8c",
                    pubPublisherID: toInteger(22),
                    name: "Straight Shooter Publishing"
                })
                ON CREATE SET
                    pp1.id = apoc.create.uuid(),
                    pp1.createdAt = datetime(),
                    pp1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                MERGE (pa1:PublishingAgreement {
                    controlled: false,
                    excludedTerritories: ""
                })<-[:HAS_AGREEMENT]-(psw1)
                ON CREATE SET
                    pa1.id = apoc.create.uuid(),
                    pa1.createdAt = datetime(),
                    pa1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa1.modifiedAt = datetime()

                MERGE (pp1)-[:HAS_AGREEMENT {split: "100"}]->(pa1)
                MERGE (pp1)-[:HAS_PUB_SHARE {split: "50" }]->(pc)


                MERGE (psw1)-[:HAS_WRITER_SHARE {
                    split: "50",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)


                WITH pc
                MATCH (gsr:GlobalSoundRecording {isrc: "QZES91947642"})
                MERGE (gsr)<-[:HAS_SOUND_RECORDING]-(pc)
            ]]>
        </query>
    </changeset>
    <changeset id="PUB-107-manual-corrections:22" author="j0shua">
        <query>
            <![CDATA[
            MATCH (label:Label {uuid: "cde0f3ca-df71-4066-b390-7bb17d5e4a58" })

            WITH label

            MERGE (i:IncrementId {nodeName: "PubSongIDCounter"})
            ON MATCH SET i.id = i.id + 1

            MERGE (label)-[:HAS_COMPOSITION]->(pc:PublishingComposition {
                labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                pubSongID: i.id
            })
            ON CREATE SET
                pc.id = apoc.create.uuid(),
                pc.createdAt = datetime(),
                pc.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
            SET
                pc.title = "Brother",
                pc.draft = false,

                pc.alternateTitles = [],
                pc.submittedAt = datetime(),
                pc.modifiedAt = datetime(),
                pc.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw0:PublishingSongWriter {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubWriterID: toInteger(399),
                    legalName: "Andreas Kruger"
                })
                ON CREATE SET
                    psw0.id = apoc.create.uuid(),
                    psw0.createdAt = datetime(),
                    psw0.modifiedAt = datetime(),
                    psw0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    psw0.ipi = 521672274,
                    psw0.pro = "KODA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp0:PublishingPublisher {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubPublisherID: toInteger(108),
                    name: "Prime Songs"
                })
                ON CREATE SET
                    pp0.id = apoc.create.uuid(),
                    pp0.createdAt = datetime(),
                    pp0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pp0.ipi = 885533793,
                    pp0.pro = "KODA"

                MERGE (pa0:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: "DK"
                })<-[:HAS_AGREEMENT]-(psw0)
                ON CREATE SET
                    pa0.id = apoc.create.uuid(),
                    pa0.createdAt = datetime(),
                    pa0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa0.modifiedAt = datetime()

                MERGE (pp0)-[:HAS_AGREEMENT {split: "100"}]->(pa0)
                MERGE (pp0)-[:HAS_PUB_SHARE {split: "66.66" }]->(pc)


                MERGE (psw0)-[:HAS_WRITER_SHARE {
                    split: "66.66",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw1:PublishingSongWriter {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubWriterID: toInteger(429),
                    legalName: "Joakim Stilling"
                })
                ON CREATE SET
                    psw1.id = apoc.create.uuid(),
                    psw1.createdAt = datetime(),
                    psw1.modifiedAt = datetime(),
                    psw1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    psw1.ipi = 675322732,
                    psw1.pro = "KODA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp1:PublishingPublisher {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubPublisherID: toInteger(108),
                    name: "Prime Songs"
                })
                ON CREATE SET
                    pp1.id = apoc.create.uuid(),
                    pp1.createdAt = datetime(),
                    pp1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pp1.ipi = 885533793,
                    pp1.pro = "KODA"

                MERGE (pa1:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: "DK"
                })<-[:HAS_AGREEMENT]-(psw1)
                ON CREATE SET
                    pa1.id = apoc.create.uuid(),
                    pa1.createdAt = datetime(),
                    pa1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa1.modifiedAt = datetime()

                MERGE (pp1)-[:HAS_AGREEMENT {split: "100"}]->(pa1)
                MERGE (pp1)-[:HAS_PUB_SHARE {split: "16.67" }]->(pc)


                MERGE (psw1)-[:HAS_WRITER_SHARE {
                    split: "16.67",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw2:PublishingSongWriter {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubWriterID: toInteger(406),
                    legalName: "Christian Hjort Lauritzen"
                })
                ON CREATE SET
                    psw2.id = apoc.create.uuid(),
                    psw2.createdAt = datetime(),
                    psw2.modifiedAt = datetime(),
                    psw2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    psw2.ipi = 663720737,
                    psw2.pro = "KODA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp2:PublishingPublisher {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubPublisherID: toInteger(108),
                    name: "Prime Songs"
                })
                ON CREATE SET
                    pp2.id = apoc.create.uuid(),
                    pp2.createdAt = datetime(),
                    pp2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pp2.ipi = 885533793,
                    pp2.pro = "KODA"


                MERGE (pa2:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: "DK"
                })<-[:HAS_AGREEMENT]-(psw2)
                ON CREATE SET
                    pa2.id = apoc.create.uuid(),
                    pa2.createdAt = datetime(),
                    pa2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa2.modifiedAt = datetime()

                MERGE (pp2)-[:HAS_AGREEMENT {split: "100"}]->(pa2)
                MERGE (pp2)-[:HAS_PUB_SHARE {split: "16.67", forceSave: true }]->(pc)


                MERGE (psw2)-[:HAS_WRITER_SHARE {
                    split: "16.67",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)


                WITH pc
                MATCH (gsr:GlobalSoundRecording {isrc: "DK4V61709905"})
                MERGE (gsr)<-[:HAS_SOUND_RECORDING]-(pc)
            ]]>
        </query>
    </changeset>
    <changeset id="PUB-107-manual-corrections:23" author="j0shua">
        <query>
            <![CDATA[
                MATCH (label:Label {uuid: "cde0f3ca-df71-4066-b390-7bb17d5e4a58" })

                WITH label

                MERGE (i:IncrementId {nodeName: "PubSongIDCounter"})
                ON MATCH SET i.id = i.id + 1

                MERGE (label)-[:HAS_COMPOSITION]->(pc:PublishingComposition {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubSongID: i.id
                })
                ON CREATE SET
                    pc.id = apoc.create.uuid(),
                    pc.createdAt = datetime(),
                    pc.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pc.title = "Make It Out",
                    pc.draft = false,

                    pc.alternateTitles = [],
                    pc.submittedAt = datetime(),
                    pc.modifiedAt = datetime(),
                    pc.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                    MERGE (label)-[:HAS_SIGNED_WRITER]->(psw0:PublishingSongWriter {
                        labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                        pubWriterID: toInteger(399),
                        legalName: "Andreas Kruger"
                    })
                    ON CREATE SET
                        psw0.id = apoc.create.uuid(),
                        psw0.createdAt = datetime(),
                        psw0.modifiedAt = datetime(),
                        psw0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                    SET
                        psw0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                        psw0.ipi = 521672274,
                        psw0.pro = "KODA"

                    MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp0:PublishingPublisher {
                        labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                        pubPublisherID: toInteger(108),
                        name: "Prime Songs"
                    })
                    ON CREATE SET
                        pp0.id = apoc.create.uuid(),
                        pp0.createdAt = datetime(),
                        pp0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                    SET
                        pp0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                        pp0.ipi = 885533793,
                        pp0.pro = "KODA"

                    MERGE (pa0:PublishingAgreement {
                        controlled: true,
                        excludedTerritories: "DK"
                    })<-[:HAS_AGREEMENT]-(psw0)
                    ON CREATE SET
                        pa0.id = apoc.create.uuid(),
                        pa0.createdAt = datetime(),
                        pa0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                    SET
                        pa0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                        pa0.modifiedAt = datetime()

                    MERGE (pp0)-[:HAS_AGREEMENT {split: "100"}]->(pa0)
                    MERGE (pp0)-[:HAS_PUB_SHARE {split: "66.66" }]->(pc)


                    MERGE (psw0)-[:HAS_WRITER_SHARE {
                        split: "66.66",
                        hasMusicContribution: true,
                        hasLyricsContribution: false
                    }]->(pc)

                    MERGE (label)-[:HAS_SIGNED_WRITER]->(psw1:PublishingSongWriter {
                        labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                        pubWriterID: toInteger(429),
                        legalName: "Joakim Stilling"
                    })
                    ON CREATE SET
                        psw1.id = apoc.create.uuid(),
                        psw1.createdAt = datetime(),
                        psw1.modifiedAt = datetime(),
                        psw1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                    SET
                        psw1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                        psw1.ipi = 675322732,
                        psw1.pro = "KODA"

                    MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp1:PublishingPublisher {
                        labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                        pubPublisherID: toInteger(108),
                        name: "Prime Songs"
                    })
                    ON CREATE SET
                        pp1.id = apoc.create.uuid(),
                        pp1.createdAt = datetime(),
                        pp1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                    SET
                        pp1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                        pp1.ipi = 885533793,
                        pp1.pro = "KODA"

                    MERGE (pa1:PublishingAgreement {
                        controlled: true,
                        excludedTerritories: "DK"
                    })<-[:HAS_AGREEMENT]-(psw1)
                    ON CREATE SET
                        pa1.id = apoc.create.uuid(),
                        pa1.createdAt = datetime(),
                        pa1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                    SET
                        pa1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                        pa1.modifiedAt = datetime()

                        MERGE (pp1)-[:HAS_AGREEMENT {split: "100"}]->(pa1)
                        MERGE (pp1)-[:HAS_PUB_SHARE {split: "16.67" }]->(pc)


                    MERGE (psw1)-[:HAS_WRITER_SHARE {
                        split: "16.67",
                        hasMusicContribution: true,
                        hasLyricsContribution: false
                    }]->(pc)

                    MERGE (label)-[:HAS_SIGNED_WRITER]->(psw2:PublishingSongWriter {
                        labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                        pubWriterID: toInteger(406),
                        legalName: "Christian Hjort Lauritzen"
                    })
                    ON CREATE SET
                        psw2.id = apoc.create.uuid(),
                        psw2.createdAt = datetime(),
                        psw2.modifiedAt = datetime(),
                        psw2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                    SET
                        psw2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                        psw2.ipi = 663720737,
                        psw2.pro = "KODA"

                    MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp2:PublishingPublisher {
                        labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                        pubPublisherID: toInteger(108),
                        name: "Prime Songs"
                    })
                    ON CREATE SET
                        pp2.id = apoc.create.uuid(),
                        pp2.createdAt = datetime(),
                        pp2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                    SET
                        pp2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                        pp2.ipi = 885533793,
                        pp2.pro = "KODA"

                    MERGE (pa2:PublishingAgreement {
                        controlled: true,
                        excludedTerritories: "DK"
                    })<-[:HAS_AGREEMENT]-(psw2)
                    ON CREATE SET
                        pa2.id = apoc.create.uuid(),
                        pa2.createdAt = datetime(),
                        pa2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                    SET
                        pa2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                        pa2.modifiedAt = datetime()

                    MERGE (pp2)-[:HAS_AGREEMENT {split: "100"}]->(pa2)
                    MERGE (pp2)-[:HAS_PUB_SHARE {split: "16.67", forceSave:true }]->(pc)


                    MERGE (psw2)-[:HAS_WRITER_SHARE {
                        split: "16.67",
                        hasMusicContribution: true,
                        hasLyricsContribution: false
                    }]->(pc)


                    WITH pc
                    MATCH (gsr:GlobalSoundRecording {isrc: "DK4V61709908"})
                    MERGE (gsr)<-[:HAS_SOUND_RECORDING]-(pc)
            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:24" author="j0shua">
        <query>
            <![CDATA[
                MATCH (label:Label {uuid: "cde0f3ca-df71-4066-b390-7bb17d5e4a58" })

                WITH label

                MERGE (i:IncrementId {nodeName: "PubSongIDCounter"})
                ON MATCH SET i.id = i.id + 1

                MERGE (label)-[:HAS_COMPOSITION]->(pc:PublishingComposition {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubSongID: i.id
                })
                ON CREATE SET
                    pc.id = apoc.create.uuid(),
                    pc.createdAt = datetime(),
                    pc.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pc.title = "My Turn",
                    pc.draft = false,

                    pc.alternateTitles = [],
                    pc.submittedAt = datetime(),
                    pc.modifiedAt = datetime(),
                    pc.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                    MERGE (label)-[:HAS_SIGNED_WRITER]->(psw0:PublishingSongWriter {
                        labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                        pubWriterID: toInteger(399),
                        legalName: "Andreas Kruger"
                    })
                    ON CREATE SET
                        psw0.id = apoc.create.uuid(),
                        psw0.createdAt = datetime(),
                        psw0.modifiedAt = datetime(),
                        psw0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                    SET
                        psw0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                            ,
                                psw0.ipi = 521672274,
                                psw0.pro = "KODA"

                    MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp0:PublishingPublisher {
                        labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                        pubPublisherID: toInteger(108),
                        name: "Prime Songs"
                    })
                    ON CREATE SET
                        pp0.id = apoc.create.uuid(),
                        pp0.createdAt = datetime(),
                        pp0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                    SET
                        pp0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                            ,
                                pp0.ipi = 885533793,
                                pp0.pro = "KODA"

                    MERGE (pa0:PublishingAgreement {
                        controlled: true,
                        excludedTerritories: "DK"
                    })<-[:HAS_AGREEMENT]-(psw0)
                    ON CREATE SET
                        pa0.id = apoc.create.uuid(),
                        pa0.createdAt = datetime(),
                        pa0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                    SET
                        pa0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                        pa0.modifiedAt = datetime()

                        MERGE (pp0)-[:HAS_AGREEMENT {split: "100"}]->(pa0)
                        MERGE (pp0)-[:HAS_PUB_SHARE {split: "66.66" }]->(pc)


                    MERGE (psw0)-[:HAS_WRITER_SHARE {
                        split: "66.66",
                        hasMusicContribution: true,
                        hasLyricsContribution: false
                    }]->(pc)

                    MERGE (label)-[:HAS_SIGNED_WRITER]->(psw1:PublishingSongWriter {
                        labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                        pubWriterID: toInteger(429),
                        legalName: "Joakim Stilling"
                    })
                    ON CREATE SET
                        psw1.id = apoc.create.uuid(),
                        psw1.createdAt = datetime(),
                        psw1.modifiedAt = datetime(),
                        psw1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                    SET
                        psw1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                            ,
                                psw1.ipi = 675322732,
                                psw1.pro = "KODA"

                    MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp1:PublishingPublisher {
                        labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                        pubPublisherID: toInteger(108),
                        name: "Prime Songs"
                    })
                    ON CREATE SET
                        pp1.id = apoc.create.uuid(),
                        pp1.createdAt = datetime(),
                        pp1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                    SET
                        pp1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                            ,
                                pp1.ipi = 885533793,
                                pp1.pro = "KODA"

                    MERGE (pa1:PublishingAgreement {
                        controlled: true,
                        excludedTerritories: "DK"
                    })<-[:HAS_AGREEMENT]-(psw1)
                    ON CREATE SET
                        pa1.id = apoc.create.uuid(),
                        pa1.createdAt = datetime(),
                        pa1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                    SET
                        pa1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                        pa1.modifiedAt = datetime()

                        MERGE (pp1)-[:HAS_AGREEMENT {split: "100"}]->(pa1)
                        MERGE (pp1)-[:HAS_PUB_SHARE {split: "16.67" }]->(pc)


                    MERGE (psw1)-[:HAS_WRITER_SHARE {
                        split: "16.67",
                        hasMusicContribution: true,
                        hasLyricsContribution: false
                    }]->(pc)

                    MERGE (label)-[:HAS_SIGNED_WRITER]->(psw2:PublishingSongWriter {
                        labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                        pubWriterID: toInteger(406),
                        legalName: "Christian Hjort Lauritzen"
                    })
                    ON CREATE SET
                        psw2.id = apoc.create.uuid(),
                        psw2.createdAt = datetime(),
                        psw2.modifiedAt = datetime(),
                        psw2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                    SET
                        psw2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                        psw2.ipi = 663720737,
                        psw2.pro = "KODA"

                        MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp2:PublishingPublisher {
                            labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                            pubPublisherID: toInteger(108),
                            name: "Prime Songs"
                        })
                        ON CREATE SET
                            pp2.id = apoc.create.uuid(),
                            pp2.createdAt = datetime(),
                            pp2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                        SET
                            pp2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                                ,
                                    pp2.ipi = 885533793,
                                    pp2.pro = "KODA"

                    MERGE (pa2:PublishingAgreement {
                        controlled: true,
                        excludedTerritories: "DK"
                    })<-[:HAS_AGREEMENT]-(psw2)
                    ON CREATE SET
                        pa2.id = apoc.create.uuid(),
                        pa2.createdAt = datetime(),
                        pa2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                    SET
                        pa2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                        pa2.modifiedAt = datetime()

                    MERGE (pp2)-[:HAS_AGREEMENT {split: "100"}]->(pa2)
                    MERGE (pp2)-[:HAS_PUB_SHARE {split: "16.67", forceSave:true }]->(pc)


                    MERGE (psw2)-[:HAS_WRITER_SHARE {
                        split: "16.67",
                        hasMusicContribution: true,
                        hasLyricsContribution: false
                    }]->(pc)


                    WITH pc
                    MATCH (gsr:GlobalSoundRecording {isrc: "DK4V61709906"})
                    MERGE (gsr)<-[:HAS_SOUND_RECORDING]-(pc)

            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:25" author="j0shua">
        <query>
            <![CDATA[
                MATCH (label:Label {uuid: "cde0f3ca-df71-4066-b390-7bb17d5e4a58" })

                WITH label

                MERGE (i:IncrementId {nodeName: "PubSongIDCounter"})
                ON MATCH SET i.id = i.id + 1

                MERGE (label)-[:HAS_COMPOSITION]->(pc:PublishingComposition {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubSongID: i.id
                })
                ON CREATE SET
                    pc.id = apoc.create.uuid(),
                    pc.createdAt = datetime(),
                    pc.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pc.title = "One Night Thing",
                    pc.draft = false,

                    pc.alternateTitles = [],
                    pc.submittedAt = datetime(),
                    pc.modifiedAt = datetime(),
                    pc.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw0:PublishingSongWriter {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubWriterID: toInteger(399),
                    legalName: "Andreas Kruger"
                })
                ON CREATE SET
                    psw0.id = apoc.create.uuid(),
                    psw0.createdAt = datetime(),
                    psw0.modifiedAt = datetime(),
                    psw0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                            psw0.ipi = 521672274,
                            psw0.pro = "KODA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp0:PublishingPublisher {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubPublisherID: toInteger(108),
                    name: "Prime Songs"
                })
                ON CREATE SET
                    pp0.id = apoc.create.uuid(),
                    pp0.createdAt = datetime(),
                    pp0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pp0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                    pp0.ipi = 885533793,
                    pp0.pro = "KODA"

                MERGE (pa0:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: "DK"
                })<-[:HAS_AGREEMENT]-(psw0)
                ON CREATE SET
                    pa0.id = apoc.create.uuid(),
                    pa0.createdAt = datetime(),
                    pa0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa0.modifiedAt = datetime()

                    MERGE (pp0)-[:HAS_AGREEMENT {split: "100"}]->(pa0)
                    MERGE (pp0)-[:HAS_PUB_SHARE {split: "66.66" }]->(pc)


                MERGE (psw0)-[:HAS_WRITER_SHARE {
                    split: "66.66",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw1:PublishingSongWriter {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubWriterID: toInteger(429),
                    legalName: "Joakim Stilling"
                })
                ON CREATE SET
                    psw1.id = apoc.create.uuid(),
                    psw1.createdAt = datetime(),
                    psw1.modifiedAt = datetime(),
                    psw1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                            psw1.ipi = 675322732,
                            psw1.pro = "KODA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp1:PublishingPublisher {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubPublisherID: toInteger(108),
                    name: "Prime Songs"
                })
                ON CREATE SET
                    pp1.id = apoc.create.uuid(),
                    pp1.createdAt = datetime(),
                    pp1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                            pp1.ipi = 885533793,
                            pp1.pro = "KODA"

                MERGE (pa1:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: "DK"
                })<-[:HAS_AGREEMENT]-(psw1)
                ON CREATE SET
                    pa1.id = apoc.create.uuid(),
                    pa1.createdAt = datetime(),
                    pa1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa1.modifiedAt = datetime()

                MERGE (pp1)-[:HAS_AGREEMENT {split: "100"}]->(pa1)
                MERGE (pp1)-[:HAS_PUB_SHARE {split: "16.67" }]->(pc)


                MERGE (psw1)-[:HAS_WRITER_SHARE {
                    split: "16.67",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw2:PublishingSongWriter {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubWriterID: toInteger(406),
                    legalName: "Christian Hjort Lauritzen"
                })
                ON CREATE SET
                    psw2.id = apoc.create.uuid(),
                    psw2.createdAt = datetime(),
                    psw2.modifiedAt = datetime(),
                    psw2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                            psw2.ipi = 663720737,
                            psw2.pro = "KODA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp2:PublishingPublisher {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubPublisherID: toInteger(108),
                    name: "Prime Songs"
                })
                ON CREATE SET
                    pp2.id = apoc.create.uuid(),
                    pp2.createdAt = datetime(),
                    pp2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                            pp2.ipi = 885533793,
                            pp2.pro = "KODA"

                MERGE (pa2:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: "DK"
                })<-[:HAS_AGREEMENT]-(psw2)
                ON CREATE SET
                    pa2.id = apoc.create.uuid(),
                    pa2.createdAt = datetime(),
                    pa2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa2.modifiedAt = datetime()

                MERGE (pp2)-[:HAS_AGREEMENT {split: "100"}]->(pa2)
                MERGE (pp2)-[:HAS_PUB_SHARE {split: "16.67", forceSave:true }]->(pc)

                MERGE (psw2)-[:HAS_WRITER_SHARE {
                    split: "16.67",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)


                WITH pc
                MATCH (gsr:GlobalSoundRecording {isrc: "DK4V61709903"})
                MERGE (gsr)<-[:HAS_SOUND_RECORDING]-(pc)

            ]]>
        </query>
    </changeset>
    <changeset id="PUB-107-manual-corrections:26" author="j0shua">
        <query>
            <![CDATA[
                MATCH (label:Label {uuid: "cde0f3ca-df71-4066-b390-7bb17d5e4a58" })

                WITH label

                MERGE (i:IncrementId {nodeName: "PubSongIDCounter"})
                ON MATCH SET i.id = i.id + 1

                MERGE (label)-[:HAS_COMPOSITION]->(pc:PublishingComposition {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubSongID: i.id
                })
                ON CREATE SET
                    pc.id = apoc.create.uuid(),
                    pc.createdAt = datetime(),
                    pc.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pc.title = "Ablaze",
                    pc.draft = false,

                    pc.alternateTitles = [],
                    pc.submittedAt = datetime(),
                    pc.modifiedAt = datetime(),
                    pc.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw0:PublishingSongWriter {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubWriterID: toInteger(399),
                    legalName: "Andreas Kruger"
                })
                ON CREATE SET
                    psw0.id = apoc.create.uuid(),
                    psw0.createdAt = datetime(),
                    psw0.modifiedAt = datetime(),
                    psw0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                    psw0.ipi = 521672274,
                    psw0.pro = "KODA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp0:PublishingPublisher {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubPublisherID: toInteger(108),
                    name: "Prime Songs"
                })
                ON CREATE SET
                    pp0.id = apoc.create.uuid(),
                    pp0.createdAt = datetime(),
                    pp0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                            pp0.ipi = 885533793,
                            pp0.pro = "KODA"

                MERGE (pa0:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: "DK"
                })<-[:HAS_AGREEMENT]-(psw0)
                ON CREATE SET
                    pa0.id = apoc.create.uuid(),
                    pa0.createdAt = datetime(),
                    pa0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa0.modifiedAt = datetime()

                    MERGE (pp0)-[:HAS_AGREEMENT {split: "100"}]->(pa0)
                    MERGE (pp0)-[:HAS_PUB_SHARE {split: "66.66" }]->(pc)


                MERGE (psw0)-[:HAS_WRITER_SHARE {
                    split: "66.66",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw1:PublishingSongWriter {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubWriterID: toInteger(429),
                    legalName: "Joakim Stilling"
                })
                ON CREATE SET
                    psw1.id = apoc.create.uuid(),
                    psw1.createdAt = datetime(),
                    psw1.modifiedAt = datetime(),
                    psw1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                            psw1.ipi = 675322732,
                            psw1.pro = "KODA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp1:PublishingPublisher {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubPublisherID: toInteger(108),
                    name: "Prime Songs"
                })
                ON CREATE SET
                    pp1.id = apoc.create.uuid(),
                    pp1.createdAt = datetime(),
                    pp1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                            pp1.ipi = 885533793,
                            pp1.pro = "KODA"

                MERGE (pa1:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: "DK"
                })<-[:HAS_AGREEMENT]-(psw1)
                ON CREATE SET
                    pa1.id = apoc.create.uuid(),
                    pa1.createdAt = datetime(),
                    pa1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa1.modifiedAt = datetime()

                MERGE (pp1)-[:HAS_AGREEMENT {split: "100"}]->(pa1)
                MERGE (pp1)-[:HAS_PUB_SHARE {split: "16.67" }]->(pc)


                MERGE (psw1)-[:HAS_WRITER_SHARE {
                    split: "16.67",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw2:PublishingSongWriter {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubWriterID: toInteger(406),
                    legalName: "Christian Hjort Lauritzen"
                })
                ON CREATE SET
                    psw2.id = apoc.create.uuid(),
                    psw2.createdAt = datetime(),
                    psw2.modifiedAt = datetime(),
                    psw2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                            psw2.ipi = 663720737,
                            psw2.pro = "KODA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp2:PublishingPublisher {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubPublisherID: toInteger(108),
                    name: "Prime Songs"
                })
                ON CREATE SET
                    pp2.id = apoc.create.uuid(),
                    pp2.createdAt = datetime(),
                    pp2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                            pp2.ipi = 885533793,
                            pp2.pro = "KODA"

                MERGE (pa2:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: "DK"
                })<-[:HAS_AGREEMENT]-(psw2)
                ON CREATE SET
                    pa2.id = apoc.create.uuid(),
                    pa2.createdAt = datetime(),
                    pa2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa2.modifiedAt = datetime()

                    MERGE (pp2)-[:HAS_AGREEMENT {split: "100"}]->(pa2)
                    MERGE (pp2)-[:HAS_PUB_SHARE {split: "16.67", forceSave:true }]->(pc)


                MERGE (psw2)-[:HAS_WRITER_SHARE {
                    split: "16.67",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)


                WITH pc
                MATCH (gsr:GlobalSoundRecording {isrc: "DK4V61709901"})
                MERGE (gsr)<-[:HAS_SOUND_RECORDING]-(pc)

            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:27" author="j0shua">
        <query>
            <![CDATA[
                MATCH (label:Label {uuid: "cde0f3ca-df71-4066-b390-7bb17d5e4a58" })

                WITH label

                MERGE (i:IncrementId {nodeName: "PubSongIDCounter"})
                ON MATCH SET i.id = i.id + 1

                MERGE (label)-[:HAS_COMPOSITION]->(pc:PublishingComposition {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubSongID: i.id
                })
                ON CREATE SET
                    pc.id = apoc.create.uuid(),
                    pc.createdAt = datetime(),
                    pc.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pc.title = "Cities",
                    pc.draft = false,

                    pc.alternateTitles = [],
                    pc.submittedAt = datetime(),
                    pc.modifiedAt = datetime(),
                    pc.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw0:PublishingSongWriter {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubWriterID: toInteger(399),
                    legalName: "Andreas Kruger"
                })
                ON CREATE SET
                    psw0.id = apoc.create.uuid(),
                    psw0.createdAt = datetime(),
                    psw0.modifiedAt = datetime(),
                    psw0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                            psw0.ipi = 521672274,
                            psw0.pro = "KODA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp0:PublishingPublisher {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubPublisherID: toInteger(108),
                    name: "Prime Songs"
                })
                ON CREATE SET
                    pp0.id = apoc.create.uuid(),
                    pp0.createdAt = datetime(),
                    pp0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                            pp0.ipi = 885533793,
                            pp0.pro = "KODA"

                MERGE (pa0:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: "DK"
                })<-[:HAS_AGREEMENT]-(psw0)
                ON CREATE SET
                    pa0.id = apoc.create.uuid(),
                    pa0.createdAt = datetime(),
                    pa0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa0.modifiedAt = datetime()

                    MERGE (pp0)-[:HAS_AGREEMENT {split: "100"}]->(pa0)
                    MERGE (pp0)-[:HAS_PUB_SHARE {split: "66.66" }]->(pc)


                MERGE (psw0)-[:HAS_WRITER_SHARE {
                    split: "66.66",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw1:PublishingSongWriter {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubWriterID: toInteger(429),
                    legalName: "Joakim Stilling"
                })
                ON CREATE SET
                    psw1.id = apoc.create.uuid(),
                    psw1.createdAt = datetime(),
                    psw1.modifiedAt = datetime(),
                    psw1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                            psw1.ipi = 675322732,
                            psw1.pro = "KODA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp1:PublishingPublisher {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubPublisherID: toInteger(108),
                    name: "Prime Songs"
                })
                ON CREATE SET
                    pp1.id = apoc.create.uuid(),
                    pp1.createdAt = datetime(),
                    pp1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                    pp1.ipi = 885533793,
                    pp1.pro = "KODA"

                MERGE (pa1:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: "DK"
                })<-[:HAS_AGREEMENT]-(psw1)
                ON CREATE SET
                    pa1.id = apoc.create.uuid(),
                    pa1.createdAt = datetime(),
                    pa1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa1.modifiedAt = datetime()

                    MERGE (pp1)-[:HAS_AGREEMENT {split: "100"}]->(pa1)
                    MERGE (pp1)-[:HAS_PUB_SHARE {split: "16.67" }]->(pc)


                MERGE (psw1)-[:HAS_WRITER_SHARE {
                    split: "16.67",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw2:PublishingSongWriter {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubWriterID: toInteger(406),
                    legalName: "Christian Hjort Lauritzen"
                })
                ON CREATE SET
                    psw2.id = apoc.create.uuid(),
                    psw2.createdAt = datetime(),
                    psw2.modifiedAt = datetime(),
                    psw2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                    psw2.ipi = 663720737,
                    psw2.pro = "KODA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp2:PublishingPublisher {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubPublisherID: toInteger(108),
                    name: "Prime Songs"
                })
                ON CREATE SET
                    pp2.id = apoc.create.uuid(),
                    pp2.createdAt = datetime(),
                    pp2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                            pp2.ipi = 885533793,
                            pp2.pro = "KODA"

                MERGE (pa2:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: "DK"
                })<-[:HAS_AGREEMENT]-(psw2)
                ON CREATE SET
                    pa2.id = apoc.create.uuid(),
                    pa2.createdAt = datetime(),
                    pa2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa2.modifiedAt = datetime()

                MERGE (pp2)-[:HAS_AGREEMENT {split: "100"}]->(pa2)
                MERGE (pp2)-[:HAS_PUB_SHARE {split: "16.67", forceSave:true }]->(pc)


                MERGE (psw2)-[:HAS_WRITER_SHARE {
                    split: "16.67",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)


                WITH pc
                MATCH (gsr:GlobalSoundRecording {isrc: "DK4V61709909"})
                MERGE (gsr)<-[:HAS_SOUND_RECORDING]-(pc)
            ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:28" author="j0shua">
        <query>
            <![CDATA[
                MATCH (label:Label {uuid: "cde0f3ca-df71-4066-b390-7bb17d5e4a58" })

                WITH label

                MERGE (i:IncrementId {nodeName: "PubSongIDCounter"})
                ON MATCH SET i.id = i.id + 1

                MERGE (label)-[:HAS_COMPOSITION]->(pc:PublishingComposition {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubSongID: i.id
                })
                ON CREATE SET
                    pc.id = apoc.create.uuid(),
                    pc.createdAt = datetime(),
                    pc.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pc.title = "Soul & Chemicals",
                    pc.draft = false,

                    pc.alternateTitles = [],
                    pc.submittedAt = datetime(),
                    pc.modifiedAt = datetime(),
                    pc.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw0:PublishingSongWriter {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubWriterID: toInteger(399),
                    legalName: "Andreas Kruger"
                })
                ON CREATE SET
                    psw0.id = apoc.create.uuid(),
                    psw0.createdAt = datetime(),
                    psw0.modifiedAt = datetime(),
                    psw0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                    psw0.ipi = 521672274,
                    psw0.pro = "KODA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp0:PublishingPublisher {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubPublisherID: toInteger(108),
                    name: "Prime Songs"
                })
                ON CREATE SET
                    pp0.id = apoc.create.uuid(),
                    pp0.createdAt = datetime(),
                    pp0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                    pp0.ipi = 885533793,
                    pp0.pro = "KODA"

                MERGE (pa0:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: "DK"
                })<-[:HAS_AGREEMENT]-(psw0)
                ON CREATE SET
                    pa0.id = apoc.create.uuid(),
                    pa0.createdAt = datetime(),
                    pa0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa0.modifiedAt = datetime()

                MERGE (pp0)-[:HAS_AGREEMENT {split: "100"}]->(pa0)
                MERGE (pp0)-[:HAS_PUB_SHARE {split: "66.66" }]->(pc)


                MERGE (psw0)-[:HAS_WRITER_SHARE {
                    split: "66.66",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw1:PublishingSongWriter {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubWriterID: toInteger(429),
                    legalName: "Joakim Stilling"
                })
                ON CREATE SET
                    psw1.id = apoc.create.uuid(),
                    psw1.createdAt = datetime(),
                    psw1.modifiedAt = datetime(),
                    psw1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                    psw1.ipi = 675322732,
                    psw1.pro = "KODA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp1:PublishingPublisher {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubPublisherID: toInteger(108),
                    name: "Prime Songs"
                })
                ON CREATE SET
                    pp1.id = apoc.create.uuid(),
                    pp1.createdAt = datetime(),
                    pp1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pp1.ipi = 885533793,
                    pp1.pro = "KODA"

                MERGE (pa1:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: "DK"
                })<-[:HAS_AGREEMENT]-(psw1)
                ON CREATE SET
                    pa1.id = apoc.create.uuid(),
                    pa1.createdAt = datetime(),
                    pa1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa1.modifiedAt = datetime()

                MERGE (pp1)-[:HAS_AGREEMENT {split: "100"}]->(pa1)
                MERGE (pp1)-[:HAS_PUB_SHARE {split: "16.67" }]->(pc)


                MERGE (psw1)-[:HAS_WRITER_SHARE {
                    split: "16.67",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)

                MERGE (label)-[:HAS_SIGNED_WRITER]->(psw2:PublishingSongWriter {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubWriterID: toInteger(406),
                    legalName: "Christian Hjort Lauritzen"
                })
                ON CREATE SET
                    psw2.id = apoc.create.uuid(),
                    psw2.createdAt = datetime(),
                    psw2.modifiedAt = datetime(),
                    psw2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    psw2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                            psw2.ipi = 663720737,
                            psw2.pro = "KODA"

                MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp2:PublishingPublisher {
                    labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                    pubPublisherID: toInteger(108),
                    name: "Prime Songs"
                })
                ON CREATE SET
                    pp2.id = apoc.create.uuid(),
                    pp2.createdAt = datetime(),
                    pp2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

                SET
                    pp2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                        ,
                    pp2.ipi = 885533793,
                    pp2.pro = "KODA"

                MERGE (pa2:PublishingAgreement {
                    controlled: true,
                    excludedTerritories: "DK"
                })<-[:HAS_AGREEMENT]-(psw2)
                ON CREATE SET
                    pa2.id = apoc.create.uuid(),
                    pa2.createdAt = datetime(),
                    pa2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                SET
                    pa2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                    pa2.modifiedAt = datetime()

                MERGE (pp2)-[:HAS_AGREEMENT {split: "100"}]->(pa2)
                MERGE (pp2)-[:HAS_PUB_SHARE {split: "16.67", forceSave: true }]->(pc)


                MERGE (psw2)-[:HAS_WRITER_SHARE {
                    split: "16.67",
                    hasMusicContribution: true,
                    hasLyricsContribution: false
                }]->(pc)


                WITH pc
                MATCH (gsr:GlobalSoundRecording {isrc: "DK4V61709904"})
                MERGE (gsr)<-[:HAS_SOUND_RECORDING]-(pc)

        ]]>
        </query>
    </changeset>


    <changeset id="PUB-107-manual-corrections:29" author="j0shua">
        <query>
        <![CDATA[
            MATCH (label:Label {uuid: "cde0f3ca-df71-4066-b390-7bb17d5e4a58" })

            WITH label

            MERGE (i:IncrementId {nodeName: "PubSongIDCounter"})
            ON MATCH SET i.id = i.id + 1

            MERGE (label)-[:HAS_COMPOSITION]->(pc:PublishingComposition {
                labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                pubSongID: i.id
            })
            ON CREATE SET
                pc.id = apoc.create.uuid(),
                pc.createdAt = datetime(),
                pc.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
            SET
                pc.title = "The Promise",
                pc.draft = false,

                pc.alternateTitles = [],
                pc.submittedAt = datetime(),
                pc.modifiedAt = datetime(),
                pc.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

            MERGE (label)-[:HAS_SIGNED_WRITER]->(psw0:PublishingSongWriter {
                labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                pubWriterID: toInteger(399),
                legalName: "Andreas Kruger"
            })
            ON CREATE SET
                psw0.id = apoc.create.uuid(),
                psw0.createdAt = datetime(),
                psw0.modifiedAt = datetime(),
                psw0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
            SET
                psw0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                    ,
                        psw0.ipi = 521672274,
                        psw0.pro = "KODA"

            MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp0:PublishingPublisher {
                labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                pubPublisherID: toInteger(108),
                name: "Prime Songs"
            })
            ON CREATE SET
                pp0.id = apoc.create.uuid(),
                pp0.createdAt = datetime(),
                pp0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

            SET
                pp0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                pp0.ipi = 885533793,
                pp0.pro = "KODA"

            MERGE (pa0:PublishingAgreement {
                controlled: true,
                excludedTerritories: "DK"
            })<-[:HAS_AGREEMENT]-(psw0)
            ON CREATE SET
                pa0.id = apoc.create.uuid(),
                pa0.createdAt = datetime(),
                pa0.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
            SET
                pa0.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                pa0.modifiedAt = datetime()

            MERGE (pp0)-[:HAS_AGREEMENT {split: "100"}]->(pa0)
            MERGE (pp0)-[:HAS_PUB_SHARE {split: "66.66" }]->(pc)


            MERGE (psw0)-[:HAS_WRITER_SHARE {
                split: "66.66",
                hasMusicContribution: true,
                hasLyricsContribution: false
            }]->(pc)

            MERGE (label)-[:HAS_SIGNED_WRITER]->(psw1:PublishingSongWriter {
                labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                pubWriterID: toInteger(429),
                legalName: "Joakim Stilling"
            })
            ON CREATE SET
                psw1.id = apoc.create.uuid(),
                psw1.createdAt = datetime(),
                psw1.modifiedAt = datetime(),
                psw1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
            SET
                psw1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                psw1.ipi = 675322732,
                psw1.pro = "KODA"

            MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp1:PublishingPublisher {
                labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                pubPublisherID: toInteger(108),
                name: "Prime Songs"
            })
            ON CREATE SET
                pp1.id = apoc.create.uuid(),
                pp1.createdAt = datetime(),
                pp1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

            SET
                pp1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                pp1.ipi = 885533793,
                pp1.pro = "KODA"

            MERGE (pa1:PublishingAgreement {
                controlled: true,
                excludedTerritories: "DK"
            })<-[:HAS_AGREEMENT]-(psw1)
            ON CREATE SET
                pa1.id = apoc.create.uuid(),
                pa1.createdAt = datetime(),
                pa1.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
            SET
                pa1.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                pa1.modifiedAt = datetime()

            MERGE (pp1)-[:HAS_AGREEMENT {split: "100"}]->(pa1)
            MERGE (pp1)-[:HAS_PUB_SHARE {split: "16.67" }]->(pc)


            MERGE (psw1)-[:HAS_WRITER_SHARE {
                split: "16.67",
                hasMusicContribution: true,
                hasLyricsContribution: false
            }]->(pc)

            MERGE (label)-[:HAS_SIGNED_WRITER]->(psw2:PublishingSongWriter {
                labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                pubWriterID: toInteger(406),
                legalName: "Christian Hjort Lauritzen"
            })
            ON CREATE SET
                psw2.id = apoc.create.uuid(),
                psw2.createdAt = datetime(),
                psw2.modifiedAt = datetime(),
                psw2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
            SET
                psw2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
                    ,
                        psw2.ipi = 663720737,
                        psw2.pro = "KODA"

            MERGE (label)-[:HAS_ASSOCIATED_PUBLISHER]->(pp2:PublishingPublisher {
                labelUUID: "cde0f3ca-df71-4066-b390-7bb17d5e4a58",
                pubPublisherID: toInteger(108),
                name: "Prime Songs"
            })
            ON CREATE SET
                pp2.id = apoc.create.uuid(),
                pp2.createdAt = datetime(),
                pp2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'

            SET
                pp2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                pp2.ipi = 885533793,
                pp2.pro = "KODA"

            MERGE (pa2:PublishingAgreement {
                controlled: true,
                excludedTerritories: "DK"
            })<-[:HAS_AGREEMENT]-(psw2)
            ON CREATE SET
                pa2.id = apoc.create.uuid(),
                pa2.createdAt = datetime(),
                pa2.createdBy = '3aac4396-2b90-405b-805e-8e55b18aa324'
            SET
                pa2.modifiedBy = '3aac4396-2b90-405b-805e-8e55b18aa324',
                pa2.modifiedAt = datetime()

            MERGE (pp2)-[:HAS_AGREEMENT {split: "100"}]->(pa2)
            MERGE (pp2)-[:HAS_PUB_SHARE {split: "16.67", forceSave:true }]->(pc)


            MERGE (psw2)-[:HAS_WRITER_SHARE {
                split: "16.67",
                hasMusicContribution: true,
                hasLyricsContribution: false
            }]->(pc)


            WITH pc
            MATCH (gsr:GlobalSoundRecording {isrc: "DK4V61709907"})
            MERGE (gsr)<-[:HAS_SOUND_RECORDING]-(pc)

        ]]>
        </query>
    </changeset>

    <changeset id="PUB-107-manual-corrections:30" author="j0shua">
        <query>
            <![CDATA[
                MATCH (pp:PublishingPublisher)-[hps:HAS_PUB_SHARE]->(pc:PublishingComposition)
                WHERE exists(hps.forceSave)
                remove hps.forceSave
            ]]>
        </query>
     </changeset>
</changelog>

