<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://www.liquigraph.org/schema/1.0/liquigraph.xsd">
    <changeset id="PUB-540-dance-plant-cleanup:1" author="ratoui">
        <cypherquery>
            <![CDATA[
                MATCH (v:Vendor {vendorId: 16476})-[:HAS_COMPOSITION]->(pc:PublishingComposition) 
                WHERE pc.pubSongID IN [
                    719,
                    729,
                    735,
                    772,
                    790,
                    795,
                    804,
                    809,
                    811,
                    874,
                    904,
                    934,
                    956,
                    965,
                    994,
                    1022,
                    1046,
                    1054,
                    1064,
                    1082,
                    1085,
                    1086,
                    1107,
                    1121,
                    1146,
                    1167,
                    1173,
                    1190,
                    1207,
                    1228,
                    1233,
                    1236,
                    1245,
                    1255,
                    1256,
                    1269,
                    1293,
                    1297,
                    1300,
                    1327,
                    1328,
                    1329,
                    1331,
                    1335,
                    1338,
                    1339,
                    1341,
                    1342,
                    1344,
                    1359,
                    6902,
                    6908,
                    6909,
                    6911,
                    6917,
                    6922,
                    6929,
                    6941,
                    6943,
                    6950,
                    6951,
                    6955,
                    6959,
                    6963,
                    6964,
                    6965,
                    6967,
                    6968,
                    6974,
                    6980,
                    6994,
                    6996,
                    7014,
                    7015,
                    7020,
                    7021,
                    7024,
                    7027,
                    7031,
                    7032,
                    7035,
                    7036,
                    7039,
                    7040,
                    7048,
                    7070,
                    7071,
                    7074,
                    7089,
                    7105,
                    7115,
                    7120,
                    7124,
                    7125,
                    7126,
                    7128,
                    7132,
                    7135,
                    7147,
                    7152,
                    7154,
                    7156,
                    7165,
                    7169,
                    7179,
                    7187,
                    7188,
                    7199,
                    7202,
                    7204,
                    7211,
                    7213,
                    7215,
                    7217,
                    7218,
                    7221,
                    7226,
                    7231,
                    7234,
                    7247,
                    7252,
                    7257,
                    7260,
                    7268,
                    7275,
                    7280,
                    7286,
                    7287,
                    7293,
                    7294,
                    7295,
                    7300,
                    7302,
                    7304,
                    7310,
                    7312,
                    7313,
                    7315,
                    7325,
                    7329,
                    7335,
                    7338,
                    7350,
                    7359,
                    7361,
                    7373,
                    7374,
                    7381,
                    7389,
                    7391,
                    7402,
                    7404,
                    7412,
                    7413,
                    7419,
                    7421,
                    7428,
                    7429,
                    7432,
                    7440,
                    7443,
                    7459,
                    7461,
                    7465,
                    7472,
                    7480,
                    7482,
                    7489,
                    7490,
                    7494,
                    7496,
                    7497,
                    7506,
                    7514,
                    7515,
                    7518,
                    7526] 
                WITH pc
                MATCH (pc)-[:HAS_AGREEMENT]->(a:PublishingAgreement)<-[:HAS_AGREEMENT]-(sw:PublishingSongWriter)
                OPTIONAL MATCH (a)<-[:HAS_AGREEMENT]-(p:PublishingPublisher)
                DETACH DELETE pc, a, sw, p
            ]]>
        </cypherquery>
    </changeset>
</changelog>
