    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28263 FROM "__triples" t0 WHERE t0.p = 27699 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28263);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/WineRegion>(?X) :- <http://dbpedia.org/ontology/subregion>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28263 FROM "__triples" t0 WHERE t0.p = 26867 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28263);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/WineRegion>(?X) :- <http://dbpedia.org/ontology/growingGrape>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28263 FROM "__triples" t0 WHERE t0.p = 26845 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28263);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/WineRegion>(?X) :- <http://dbpedia.org/ontology/varietals>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28263 FROM "__triples" t0 WHERE t0.p = 26596 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28263);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/WineRegion>(?X1) :- <http://dbpedia.org/ontology/subregion>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28263 FROM "__triples" t0 WHERE t0.p = 26867 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28263);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/WineRegion>(?X) :- <http://dbpedia.org/ontology/isPartOfWineRegion>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28263 FROM "__triples" t0 WHERE t0.p = 27699 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28263);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/WineRegion>(?X) :- <http://dbpedia.org/ontology/numberOfWineries>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28263 FROM "__triples" t0 WHERE t0.p = 27638 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28263);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/WineRegion>(?X1) :- <http://dbpedia.org/ontology/wineRegion>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28263 FROM "__triples" t0 WHERE t0.p = 26494 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28263);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_WineRegion_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_WineRegion_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28263;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_WineRegion_delta_old" ON "dbrdf_WineRegion_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_WineRegion_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/WineRegion$delta_new>(?Y) :- <http://dbpedia.org/ontology/WineRegion$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_WineRegion_delta_new"(s) SELECT t1.o FROM "dbrdf_WineRegion_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28263);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28263 FROM "dbrdf_WineRegion_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_WineRegion_delta_old";
        INSERT INTO "dbrdf_WineRegion_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_WineRegion_delta_new" t0;
        TRUNCATE TABLE "dbrdf_WineRegion_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1761
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_goldMedalist_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_goldMedalist_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28264;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_goldMedalist_delta_old" ON "dbrdf_goldMedalist_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_goldMedalist_delta_old" ON "dbrdf_goldMedalist_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_goldMedalist_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/goldMedalist$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/goldMedalist$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_goldMedalist_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_goldMedalist_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28264 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/goldMedalist$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/goldMedalist$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_goldMedalist_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_goldMedalist_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28264 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28264, t0.o FROM "dbrdf_goldMedalist_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_goldMedalist_delta_old";
        INSERT INTO "dbrdf_goldMedalist_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_goldMedalist_delta_new" t0;
        TRUNCATE TABLE "dbrdf_goldMedalist_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1762
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_museum_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_museum_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28265;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_museum_delta_old" ON "dbrdf_museum_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_museum_delta_old" ON "dbrdf_museum_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_museum_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/museum$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/museum$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_museum_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_museum_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28265 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/museum$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/museum$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_museum_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_museum_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28265 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28265, t0.o FROM "dbrdf_museum_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_museum_delta_old";
        INSERT INTO "dbrdf_museum_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_museum_delta_new" t0;
        TRUNCATE TABLE "dbrdf_museum_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1763
    ---- DEPENDS ON: 1762, 1418, 1167, 1293, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Artwork>(?X) :- <http://dbpedia.org/ontology/painter>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28266 FROM "__triples" t0 WHERE t0.p = 27908 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28266);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artwork>(?X) :- <http://dbpedia.org/ontology/Sculpture>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28266 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27654 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28266);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artwork>(?X) :- <http://dbpedia.org/ontology/Painting>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28266 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27783 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28266);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artwork>(?X) :- <http://dbpedia.org/ontology/museum>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28266 FROM "__triples" t0 WHERE t0.p = 28265 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28266);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Artwork_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Artwork_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28266;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Artwork_delta_old" ON "dbrdf_Artwork_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Artwork_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Artwork$delta_new>(?Y) :- <http://dbpedia.org/ontology/Artwork$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Artwork_delta_new"(s) SELECT t1.o FROM "dbrdf_Artwork_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28266);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28266 FROM "dbrdf_Artwork_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Artwork_delta_old";
        INSERT INTO "dbrdf_Artwork_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Artwork_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Artwork_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1764
    ---- DEPENDS ON: 1762, 1697, 1626, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Museum>(?X1) :- <http://dbpedia.org/ontology/museum>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28268 FROM "__triples" t0 WHERE t0.p = 28265 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28268);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Museum>(?X) :- <http://dbpedia.org/ontology/collection>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28268 FROM "__triples" t0 WHERE t0.p = 28119 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28268);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Museum>(?X) :- <http://dbpedia.org/ontology/curator>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28268 FROM "__triples" t0 WHERE t0.p = 28197 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28268);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Museum_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Museum_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28267;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Museum_delta_old" ON "dbrdf_Museum_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Museum_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Museum_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Museum_delta_old0"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28268;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Museum_delta_old0" ON "dbrdf_Museum_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Museum_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://schema.org/Museum$delta_new>(?X) :- <http://dbpedia.org/ontology/Museum$delta_old>(?X) .
        INSERT INTO "dbrdf_Museum_delta_new"(s) SELECT t0.s FROM "dbrdf_Museum_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28267);


        -- <http://schema.org/Museum$delta_new>(?Y) :- <http://schema.org/Museum$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Museum_delta_new"(s) SELECT t1.o FROM "dbrdf_Museum_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28267);


        -- <http://dbpedia.org/ontology/Museum$delta_new>(?X) :- <http://schema.org/Museum$delta_old>(?X) .
        INSERT INTO "dbrdf_Museum_delta_new0"(s) SELECT t0.s FROM "dbrdf_Museum_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28268);


        -- <http://dbpedia.org/ontology/Museum$delta_new>(?Y) :- <http://dbpedia.org/ontology/Museum$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Museum_delta_new0"(s) SELECT t1.o FROM "dbrdf_Museum_delta_old0" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28268);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28267 FROM "dbrdf_Museum_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Museum_delta_old";
        INSERT INTO "dbrdf_Museum_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Museum_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Museum_delta_new";

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28268 FROM "dbrdf_Museum_delta_new0" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Museum_delta_old0";
        INSERT INTO "dbrdf_Museum_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Museum_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Museum_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1765
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_projectObjective_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_projectObjective_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28269;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_projectObjective_delta_old" ON "dbrdf_projectObjective_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_projectObjective_delta_old" ON "dbrdf_projectObjective_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_projectObjective_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/projectObjective$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/projectObjective$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_projectObjective_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_projectObjective_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28269 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/projectObjective$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/projectObjective$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_projectObjective_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_projectObjective_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28269 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28269, t0.o FROM "dbrdf_projectObjective_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_projectObjective_delta_old";
        INSERT INTO "dbrdf_projectObjective_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_projectObjective_delta_new" t0;
        TRUNCATE TABLE "dbrdf_projectObjective_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1766
    ---- DEPENDS ON: 1765, 750, 675, 540, 1590, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Project>(?X) :- <http://dbpedia.org/ontology/projectObjective>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28270 FROM "__triples" t0 WHERE t0.p = 28269 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28270);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Project>(?X) :- <http://dbpedia.org/ontology/projectStartDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28270 FROM "__triples" t0 WHERE t0.p = 27023 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28270);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Project>(?X) :- <http://dbpedia.org/ontology/projectKeyword>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28270 FROM "__triples" t0 WHERE t0.p = 27159 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28270);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Project>(?X) :- <http://dbpedia.org/ontology/ResearchProject>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28270 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28082 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28270);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Project>(?X) :- <http://dbpedia.org/ontology/projectEndDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28270 FROM "__triples" t0 WHERE t0.p = 27234 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28270);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Project_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Project_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28270;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Project_delta_old" ON "dbrdf_Project_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Project_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Project$delta_new>(?Y) :- <http://dbpedia.org/ontology/Project$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Project_delta_new"(s) SELECT t1.o FROM "dbrdf_Project_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28270);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28270 FROM "dbrdf_Project_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Project_delta_old";
        INSERT INTO "dbrdf_Project_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Project_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Project_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1767
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfVisitorsAsOf_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_numberOfVisitorsAsOf_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28271;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_numberOfVisitorsAsOf_delta_old" ON "dbrdf_numberOfVisitorsAsOf_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_numberOfVisitorsAsOf_delta_old" ON "dbrdf_numberOfVisitorsAsOf_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfVisitorsAsOf_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/numberOfVisitorsAsOf$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/numberOfVisitorsAsOf$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_numberOfVisitorsAsOf_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_numberOfVisitorsAsOf_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28271 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/numberOfVisitorsAsOf$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/numberOfVisitorsAsOf$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_numberOfVisitorsAsOf_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_numberOfVisitorsAsOf_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28271 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28271, t0.o FROM "dbrdf_numberOfVisitorsAsOf_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_numberOfVisitorsAsOf_delta_old";
        INSERT INTO "dbrdf_numberOfVisitorsAsOf_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_numberOfVisitorsAsOf_delta_new" t0;
        TRUNCATE TABLE "dbrdf_numberOfVisitorsAsOf_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1768
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_tatoo_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_tatoo_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28272;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_tatoo_delta_old" ON "dbrdf_tatoo_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_tatoo_delta_old" ON "dbrdf_tatoo_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_tatoo_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/tatoo$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/tatoo$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_tatoo_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_tatoo_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28272 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/tatoo$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/tatoo$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_tatoo_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_tatoo_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28272 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28272, t0.o FROM "dbrdf_tatoo_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_tatoo_delta_old";
        INSERT INTO "dbrdf_tatoo_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_tatoo_delta_new" t0;
        TRUNCATE TABLE "dbrdf_tatoo_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1769
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_notableCommander_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_notableCommander_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28273;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_notableCommander_delta_old" ON "dbrdf_notableCommander_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_notableCommander_delta_old" ON "dbrdf_notableCommander_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_notableCommander_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/notableCommander$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/notableCommander$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_notableCommander_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_notableCommander_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28273 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/notableCommander$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/notableCommander$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_notableCommander_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_notableCommander_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28273 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28273, t0.o FROM "dbrdf_notableCommander_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_notableCommander_delta_old";
        INSERT INTO "dbrdf_notableCommander_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_notableCommander_delta_new" t0;
        TRUNCATE TABLE "dbrdf_notableCommander_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1770
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_grades_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_grades_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28274;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_grades_delta_old" ON "dbrdf_grades_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_grades_delta_old" ON "dbrdf_grades_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_grades_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/grades$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/grades$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_grades_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_grades_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28274 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/grades$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/grades$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_grades_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_grades_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28274 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28274, t0.o FROM "dbrdf_grades_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_grades_delta_old";
        INSERT INTO "dbrdf_grades_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_grades_delta_new" t0;
        TRUNCATE TABLE "dbrdf_grades_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1771
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_distanceToCharingCross_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_distanceToCharingCross_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28275;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_distanceToCharingCross_delta_old" ON "dbrdf_distanceToCharingCross_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_distanceToCharingCross_delta_old" ON "dbrdf_distanceToCharingCross_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_distanceToCharingCross_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/distanceToCharingCross$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/distanceToCharingCross$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_distanceToCharingCross_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_distanceToCharingCross_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28275 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/distanceToCharingCross$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/distanceToCharingCross$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_distanceToCharingCross_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_distanceToCharingCross_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28275 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28275, t0.o FROM "dbrdf_distanceToCharingCross_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_distanceToCharingCross_delta_old";
        INSERT INTO "dbrdf_distanceToCharingCross_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_distanceToCharingCross_delta_new" t0;
        TRUNCATE TABLE "dbrdf_distanceToCharingCross_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1772
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_bloodType_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_bloodType_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28276;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_bloodType_delta_old" ON "dbrdf_bloodType_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_bloodType_delta_old" ON "dbrdf_bloodType_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_bloodType_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/bloodType$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/bloodType$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_bloodType_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_bloodType_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28276 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/bloodType$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/bloodType$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_bloodType_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_bloodType_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28276 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28276, t0.o FROM "dbrdf_bloodType_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_bloodType_delta_old";
        INSERT INTO "dbrdf_bloodType_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_bloodType_delta_new" t0;
        TRUNCATE TABLE "dbrdf_bloodType_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1773
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_brand_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_brand_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28277;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_brand_delta_old" ON "dbrdf_brand_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_brand_delta_old" ON "dbrdf_brand_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_brand_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/brand$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/brand$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_brand_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_brand_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28277 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/brand$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/brand$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_brand_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_brand_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28277 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28277, t0.o FROM "dbrdf_brand_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_brand_delta_old";
        INSERT INTO "dbrdf_brand_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_brand_delta_new" t0;
        TRUNCATE TABLE "dbrdf_brand_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1774
    ---- DEPENDS ON: 1773, 441, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/WrestlingEvent>(?X) :- <http://dbpedia.org/ontology/brand>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28278 FROM "__triples" t0 WHERE t0.p = 28277 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28278);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/WrestlingEvent>(?X) :- <http://dbpedia.org/ontology/promotion>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28278 FROM "__triples" t0 WHERE t0.p = 26924 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28278);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_WrestlingEvent_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_WrestlingEvent_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28278;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_WrestlingEvent_delta_old" ON "dbrdf_WrestlingEvent_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_WrestlingEvent_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/WrestlingEvent$delta_new>(?Y) :- <http://dbpedia.org/ontology/WrestlingEvent$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_WrestlingEvent_delta_new"(s) SELECT t1.o FROM "dbrdf_WrestlingEvent_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28278);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28278 FROM "dbrdf_WrestlingEvent_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_WrestlingEvent_delta_old";
        INSERT INTO "dbrdf_WrestlingEvent_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_WrestlingEvent_delta_new" t0;
        TRUNCATE TABLE "dbrdf_WrestlingEvent_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1775
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_giniCoefficientAsOf_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_giniCoefficientAsOf_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28279;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_giniCoefficientAsOf_delta_old" ON "dbrdf_giniCoefficientAsOf_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_giniCoefficientAsOf_delta_old" ON "dbrdf_giniCoefficientAsOf_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_giniCoefficientAsOf_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/giniCoefficientAsOf$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/giniCoefficientAsOf$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_giniCoefficientAsOf_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_giniCoefficientAsOf_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28279 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/giniCoefficientAsOf$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/giniCoefficientAsOf$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_giniCoefficientAsOf_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_giniCoefficientAsOf_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28279 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28279, t0.o FROM "dbrdf_giniCoefficientAsOf_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_giniCoefficientAsOf_delta_old";
        INSERT INTO "dbrdf_giniCoefficientAsOf_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_giniCoefficientAsOf_delta_new" t0;
        TRUNCATE TABLE "dbrdf_giniCoefficientAsOf_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1776
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_playingTime_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_playingTime_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28280;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_playingTime_delta_old" ON "dbrdf_playingTime_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_playingTime_delta_old" ON "dbrdf_playingTime_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_playingTime_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/playingTime$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/playingTime$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_playingTime_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_playingTime_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28280 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/playingTime$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/playingTime$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_playingTime_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_playingTime_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28280 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28280, t0.o FROM "dbrdf_playingTime_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_playingTime_delta_old";
        INSERT INTO "dbrdf_playingTime_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_playingTime_delta_new" t0;
        TRUNCATE TABLE "dbrdf_playingTime_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1777
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_patron_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_patron_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28281;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_patron_delta_old" ON "dbrdf_patron_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_patron_delta_old" ON "dbrdf_patron_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_patron_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/patron$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/patron$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_patron_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_patron_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28281 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/patron$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/patron$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_patron_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_patron_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28281 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28281, t0.o FROM "dbrdf_patron_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_patron_delta_old";
        INSERT INTO "dbrdf_patron_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_patron_delta_new" t0;
        TRUNCATE TABLE "dbrdf_patron_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1778
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_mouthMountain_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_mouthMountain_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28282;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_mouthMountain_delta_old" ON "dbrdf_mouthMountain_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_mouthMountain_delta_old" ON "dbrdf_mouthMountain_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_mouthMountain_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/mouthMountain$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/mouthMountain$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_mouthMountain_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_mouthMountain_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28282 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/mouthMountain$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/mouthMountain$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_mouthMountain_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_mouthMountain_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28282 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28282, t0.o FROM "dbrdf_mouthMountain_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_mouthMountain_delta_old";
        INSERT INTO "dbrdf_mouthMountain_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_mouthMountain_delta_new" t0;
        TRUNCATE TABLE "dbrdf_mouthMountain_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1779
    ---- DEPENDS ON: 1778, 1650, 1616, 1574, 1501, 1384, 1325, 1205, 1092, 1090, 1083, 1074, 898, 793, 702, 682, 619, 578, 418, 359, 199, 98, 1, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/mouthMountain>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 28282 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/riverBranchOf>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27874 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/sourceConfluenceRegion>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27561 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/sourceConfluencePlace>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27694 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X1) :- <http://dbpedia.org/ontology/inflow>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28284 FROM "__triples" t0 WHERE t0.p = 28108 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/mouthCountry>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 28066 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/riverBranch>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27186 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/rightTributary>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27166 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/riverMouth>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 28146 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X1) :- <http://dbpedia.org/ontology/crosses>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27062 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X1) :- <http://dbpedia.org/ontology/riverBranch>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27186 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/sourceConfluenceState>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27993 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/mouthRegion>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27279 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/mouthPlace>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27103 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/sourceConfluenceCountry>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27385 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X1) :- <http://dbpedia.org/ontology/river>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27579 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/sourceConfluenceMountain>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27577 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/sourceConfluencePosition>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27815 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X1) :- <http://dbpedia.org/ontology/riverBranchOf>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27874 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/mouthDistrict>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27570 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/leftTributary>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 26681 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X1) :- <http://dbpedia.org/ontology/leftTributary>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28284 FROM "__triples" t0 WHERE t0.p = 26681 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X1) :- <http://dbpedia.org/ontology/outflow>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28284 FROM "__triples" t0 WHERE t0.p = 26580 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X1) :- <http://dbpedia.org/ontology/rightTributary>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28284 FROM "__triples" t0 WHERE t0.p = 27166 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/mouthPosition>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 26901 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/mouthState>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 26842 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/River>(?X) :- <http://dbpedia.org/ontology/sourceConfluence>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "__triples" t0 WHERE t0.p = 26482 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_RiverBodyOfWater_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_RiverBodyOfWater_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28283;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_RiverBodyOfWater_delta_old" ON "dbrdf_RiverBodyOfWater_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_RiverBodyOfWater_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_River_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_River_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28284;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_River_delta_old" ON "dbrdf_River_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_River_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://schema.org/RiverBodyOfWater$delta_new>(?X) :- <http://dbpedia.org/ontology/River$delta_old>(?X) .
        INSERT INTO "dbrdf_RiverBodyOfWater_delta_new"(s) SELECT t0.s FROM "dbrdf_River_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28283);


        -- <http://schema.org/RiverBodyOfWater$delta_new>(?Y) :- <http://schema.org/RiverBodyOfWater$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_RiverBodyOfWater_delta_new"(s) SELECT t1.o FROM "dbrdf_RiverBodyOfWater_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28283);


        -- <http://dbpedia.org/ontology/River$delta_new>(?X) :- <http://schema.org/RiverBodyOfWater$delta_old>(?X) .
        INSERT INTO "dbrdf_River_delta_new"(s) SELECT t0.s FROM "dbrdf_RiverBodyOfWater_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28284);


        -- <http://dbpedia.org/ontology/River$delta_new>(?Y) :- <http://dbpedia.org/ontology/River$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_River_delta_new"(s) SELECT t1.o FROM "dbrdf_River_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28284);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28283 FROM "dbrdf_RiverBodyOfWater_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_RiverBodyOfWater_delta_old";
        INSERT INTO "dbrdf_RiverBodyOfWater_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_RiverBodyOfWater_delta_new" t0;
        TRUNCATE TABLE "dbrdf_RiverBodyOfWater_delta_new";

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28284 FROM "dbrdf_River_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_River_delta_old";
        INSERT INTO "dbrdf_River_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_River_delta_new" t0;
        TRUNCATE TABLE "dbrdf_River_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1780
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_releaseDate_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_releaseDate_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28285;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_releaseDate_delta_old" ON "dbrdf_releaseDate_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_releaseDate_delta_old" ON "dbrdf_releaseDate_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_releaseDate_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/releaseDate$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/releaseDate$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_releaseDate_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_releaseDate_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28285 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/releaseDate$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/releaseDate$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_releaseDate_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_releaseDate_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28285 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28285, t0.o FROM "dbrdf_releaseDate_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_releaseDate_delta_old";
        INSERT INTO "dbrdf_releaseDate_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_releaseDate_delta_new" t0;
        TRUNCATE TABLE "dbrdf_releaseDate_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1781
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_buildingStartYear_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_buildingStartYear_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28286;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_buildingStartYear_delta_old" ON "dbrdf_buildingStartYear_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_buildingStartYear_delta_old" ON "dbrdf_buildingStartYear_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_buildingStartYear_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/buildingStartYear$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/buildingStartYear$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_buildingStartYear_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_buildingStartYear_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28286 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/buildingStartYear$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/buildingStartYear$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_buildingStartYear_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_buildingStartYear_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28286 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28286, t0.o FROM "dbrdf_buildingStartYear_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_buildingStartYear_delta_old";
        INSERT INTO "dbrdf_buildingStartYear_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_buildingStartYear_delta_new" t0;
        TRUNCATE TABLE "dbrdf_buildingStartYear_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1782
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_extinctionDate_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_extinctionDate_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28287;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_extinctionDate_delta_old" ON "dbrdf_extinctionDate_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_extinctionDate_delta_old" ON "dbrdf_extinctionDate_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_extinctionDate_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/extinctionDate$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/extinctionDate$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_extinctionDate_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_extinctionDate_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28287 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/extinctionDate$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/extinctionDate$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_extinctionDate_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_extinctionDate_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28287 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28287, t0.o FROM "dbrdf_extinctionDate_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_extinctionDate_delta_old";
        INSERT INTO "dbrdf_extinctionDate_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_extinctionDate_delta_new" t0;
        TRUNCATE TABLE "dbrdf_extinctionDate_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1783
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_coachedTeam_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_coachedTeam_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28288;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_coachedTeam_delta_old" ON "dbrdf_coachedTeam_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_coachedTeam_delta_old" ON "dbrdf_coachedTeam_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_coachedTeam_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/coachedTeam$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/coachedTeam$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_coachedTeam_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_coachedTeam_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28288 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/coachedTeam$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/coachedTeam$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_coachedTeam_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_coachedTeam_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28288 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28288, t0.o FROM "dbrdf_coachedTeam_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_coachedTeam_delta_old";
        INSERT INTO "dbrdf_coachedTeam_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_coachedTeam_delta_new" t0;
        TRUNCATE TABLE "dbrdf_coachedTeam_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1784
    ---- DEPENDS ON: 1783, 1719, 1564, 1499, 1483, 665, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/CollegeCoach>(?X) :- <http://dbpedia.org/ontology/overallRecord>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28289 FROM "__triples" t0 WHERE t0.p = 28221 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28289);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/CollegeCoach>(?X) :- <http://dbpedia.org/ontology/coachedTeam>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28289 FROM "__triples" t0 WHERE t0.p = 28288 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28289);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/CollegeCoach>(?X) :- <http://dbpedia.org/ontology/currentRecord>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28289 FROM "__triples" t0 WHERE t0.p = 28056 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28289);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/CollegeCoach>(?X) :- <http://dbpedia.org/ontology/coachingRecord>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28289 FROM "__triples" t0 WHERE t0.p = 27149 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28289);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/CollegeCoach>(?X) :- <http://dbpedia.org/ontology/bowlRecord>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28289 FROM "__triples" t0 WHERE t0.p = 27991 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28289);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/CollegeCoach>(?X) :- <http://dbpedia.org/ontology/tournamentRecord>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28289 FROM "__triples" t0 WHERE t0.p = 27975 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28289);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_CollegeCoach_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_CollegeCoach_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28289;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_CollegeCoach_delta_old" ON "dbrdf_CollegeCoach_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_CollegeCoach_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/CollegeCoach$delta_new>(?Y) :- <http://dbpedia.org/ontology/CollegeCoach$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_CollegeCoach_delta_new"(s) SELECT t1.o FROM "dbrdf_CollegeCoach_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28289);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28289 FROM "dbrdf_CollegeCoach_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_CollegeCoach_delta_old";
        INSERT INTO "dbrdf_CollegeCoach_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_CollegeCoach_delta_new" t0;
        TRUNCATE TABLE "dbrdf_CollegeCoach_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1785
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_countryWithFirstSpaceflight_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_countryWithFirstSpaceflight_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28290;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_countryWithFirstSpaceflight_delta_old" ON "dbrdf_countryWithFirstSpaceflight_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_countryWithFirstSpaceflight_delta_old" ON "dbrdf_countryWithFirstSpaceflight_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_countryWithFirstSpaceflight_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/countryWithFirstSpaceflight$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/countryWithFirstSpaceflight$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_countryWithFirstSpaceflight_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_countryWithFirstSpaceflight_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28290 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/countryWithFirstSpaceflight$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/countryWithFirstSpaceflight$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_countryWithFirstSpaceflight_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_countryWithFirstSpaceflight_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28290 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28290, t0.o FROM "dbrdf_countryWithFirstSpaceflight_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_countryWithFirstSpaceflight_delta_old";
        INSERT INTO "dbrdf_countryWithFirstSpaceflight_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_countryWithFirstSpaceflight_delta_new" t0;
        TRUNCATE TABLE "dbrdf_countryWithFirstSpaceflight_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1786
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_foundingPerson_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_foundingPerson_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28291;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_foundingPerson_delta_old" ON "dbrdf_foundingPerson_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_foundingPerson_delta_old" ON "dbrdf_foundingPerson_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_foundingPerson_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/foundingPerson$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/foundingPerson$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_foundingPerson_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_foundingPerson_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28291 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/foundingPerson$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/foundingPerson$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_foundingPerson_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_foundingPerson_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28291 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28291, t0.o FROM "dbrdf_foundingPerson_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_foundingPerson_delta_old";
        INSERT INTO "dbrdf_foundingPerson_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_foundingPerson_delta_new" t0;
        TRUNCATE TABLE "dbrdf_foundingPerson_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1787
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_censusYear_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_censusYear_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28292;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_censusYear_delta_old" ON "dbrdf_censusYear_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_censusYear_delta_old" ON "dbrdf_censusYear_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_censusYear_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/censusYear$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/censusYear$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_censusYear_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_censusYear_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28292 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/censusYear$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/censusYear$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_censusYear_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_censusYear_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28292 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28292, t0.o FROM "dbrdf_censusYear_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_censusYear_delta_old";
        INSERT INTO "dbrdf_censusYear_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_censusYear_delta_new" t0;
        TRUNCATE TABLE "dbrdf_censusYear_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1788
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_programCost_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_programCost_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28293;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_programCost_delta_old" ON "dbrdf_programCost_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_programCost_delta_old" ON "dbrdf_programCost_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_programCost_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/programCost$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/programCost$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_programCost_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_programCost_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28293 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/programCost$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/programCost$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_programCost_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_programCost_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28293 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28293, t0.o FROM "dbrdf_programCost_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_programCost_delta_old";
        INSERT INTO "dbrdf_programCost_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_programCost_delta_new" t0;
        TRUNCATE TABLE "dbrdf_programCost_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1789
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_club_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_club_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28294;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_club_delta_old" ON "dbrdf_club_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_club_delta_old" ON "dbrdf_club_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_club_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/club$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/club$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_club_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_club_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28294 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/club$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/club$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_club_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_club_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28294 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28294, t0.o FROM "dbrdf_club_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_club_delta_old";
        INSERT INTO "dbrdf_club_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_club_delta_new" t0;
        TRUNCATE TABLE "dbrdf_club_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1790
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_HandballLeague_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_HandballLeague_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28295;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_HandballLeague_delta_old" ON "dbrdf_HandballLeague_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_HandballLeague_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/HandballLeague$delta_new>(?Y) :- <http://dbpedia.org/ontology/HandballLeague$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_HandballLeague_delta_new"(s) SELECT t1.o FROM "dbrdf_HandballLeague_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28295);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28295 FROM "dbrdf_HandballLeague_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_HandballLeague_delta_old";
        INSERT INTO "dbrdf_HandballLeague_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_HandballLeague_delta_new" t0;
        TRUNCATE TABLE "dbrdf_HandballLeague_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1791
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_academicDiscipline_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_academicDiscipline_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28296;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_academicDiscipline_delta_old" ON "dbrdf_academicDiscipline_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_academicDiscipline_delta_old" ON "dbrdf_academicDiscipline_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_academicDiscipline_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/academicDiscipline$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/academicDiscipline$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_academicDiscipline_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_academicDiscipline_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28296 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/academicDiscipline$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/academicDiscipline$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_academicDiscipline_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_academicDiscipline_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28296 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28296, t0.o FROM "dbrdf_academicDiscipline_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_academicDiscipline_delta_old";
        INSERT INTO "dbrdf_academicDiscipline_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_academicDiscipline_delta_new" t0;
        TRUNCATE TABLE "dbrdf_academicDiscipline_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1792
    ---- DEPENDS ON: 1791, 1284, 977, 822, 346, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/AcademicJournal>(?X) :- <http://dbpedia.org/ontology/academicDiscipline>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28297 FROM "__triples" t0 WHERE t0.p = 28296 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28297);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AcademicJournal>(?X) :- <http://dbpedia.org/ontology/isPeerReviewed>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28297 FROM "__triples" t0 WHERE t0.p = 27464 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28297);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AcademicJournal>(?X) :- <http://dbpedia.org/ontology/impactFactorAsOf>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28297 FROM "__triples" t0 WHERE t0.p = 27773 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28297);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AcademicJournal>(?X) :- <http://dbpedia.org/ontology/impactFactor>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28297 FROM "__triples" t0 WHERE t0.p = 26829 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28297);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AcademicJournal>(?X) :- <http://dbpedia.org/ontology/jstor>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28297 FROM "__triples" t0 WHERE t0.p = 27309 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28297);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_AcademicJournal_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_AcademicJournal_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28297;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_AcademicJournal_delta_old" ON "dbrdf_AcademicJournal_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_AcademicJournal_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/AcademicJournal$delta_new>(?Y) :- <http://dbpedia.org/ontology/AcademicJournal$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_AcademicJournal_delta_new"(s) SELECT t1.o FROM "dbrdf_AcademicJournal_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28297);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28297 FROM "dbrdf_AcademicJournal_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_AcademicJournal_delta_old";
        INSERT INTO "dbrdf_AcademicJournal_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_AcademicJournal_delta_new" t0;
        TRUNCATE TABLE "dbrdf_AcademicJournal_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1793
    ---- DEPENDS ON: 1577, 1571, 1232, 1028, 1006, 1169, 667, 1792, 456, 327, 1415, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/PeriodicalLiterature>(?X) :- <http://dbpedia.org/ontology/finalPublicationDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28298 FROM "__triples" t0 WHERE t0.p = 28063 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28298);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/PeriodicalLiterature>(?X) :- <http://dbpedia.org/ontology/firstPublicationYear>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28298 FROM "__triples" t0 WHERE t0.p = 28069 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28298);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/PeriodicalLiterature>(?X) :- <http://dbpedia.org/ontology/issn>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28298 FROM "__triples" t0 WHERE t0.p = 27515 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28298);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/PeriodicalLiterature>(?X) :- <http://dbpedia.org/ontology/Magazine>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28298 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27657 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28298);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/PeriodicalLiterature>(?X) :- <http://dbpedia.org/ontology/frequencyOfPublication>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28298 FROM "__triples" t0 WHERE t0.p = 27151 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28298);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/PeriodicalLiterature>(?X) :- <http://dbpedia.org/ontology/AcademicJournal>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28298 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28297 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28298);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/PeriodicalLiterature>(?X) :- <http://dbpedia.org/ontology/firstPublicationDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28298 FROM "__triples" t0 WHERE t0.p = 27493 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28298);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/PeriodicalLiterature>(?X) :- <http://dbpedia.org/ontology/openAccessContent>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28298 FROM "__triples" t0 WHERE t0.p = 26939 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28298);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/PeriodicalLiterature>(?X) :- <http://dbpedia.org/ontology/finalPublicationYear>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28298 FROM "__triples" t0 WHERE t0.p = 26809 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28298);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/PeriodicalLiterature>(?X) :- <http://dbpedia.org/ontology/Newspaper>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28298 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27905 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28298);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/PeriodicalLiterature>(?X) :- <http://dbpedia.org/ontology/zdb>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28298 FROM "__triples" t0 WHERE t0.p = 27721 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28298);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_PeriodicalLiterature_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_PeriodicalLiterature_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28298;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_PeriodicalLiterature_delta_old" ON "dbrdf_PeriodicalLiterature_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_PeriodicalLiterature_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/PeriodicalLiterature$delta_new>(?Y) :- <http://dbpedia.org/ontology/PeriodicalLiterature$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_PeriodicalLiterature_delta_new"(s) SELECT t1.o FROM "dbrdf_PeriodicalLiterature_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28298);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28298 FROM "dbrdf_PeriodicalLiterature_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_PeriodicalLiterature_delta_old";
        INSERT INTO "dbrdf_PeriodicalLiterature_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_PeriodicalLiterature_delta_new" t0;
        TRUNCATE TABLE "dbrdf_PeriodicalLiterature_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1794
    ---- DEPENDS ON: 1723, 1597, 1379, 1353, 1338, 1330, 1317, 1183, 1175, 1084, 1044, 179, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/trainerClub>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28299 FROM "__triples" t0 WHERE t0.p = 28225 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28299);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/appearancesInNationalTeam>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28299 FROM "__triples" t0 WHERE t0.p = 28089 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28299);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/managerYears>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28299 FROM "__triples" t0 WHERE t0.p = 27869 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28299);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/goalsInLeague>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28299 FROM "__triples" t0 WHERE t0.p = 27828 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28299);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/youthYears>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28299 FROM "__triples" t0 WHERE t0.p = 27531 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28299);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/nationalYears>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28299 FROM "__triples" t0 WHERE t0.p = 27843 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28299);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/appearancesInLeague>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28299 FROM "__triples" t0 WHERE t0.p = 27672 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28299);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/managerClub>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28299 FROM "__triples" t0 WHERE t0.p = 27807 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28299);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/years>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28299 FROM "__triples" t0 WHERE t0.p = 27571 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28299);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/trainerYears>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28299 FROM "__triples" t0 WHERE t0.p = 27820 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28299);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SoccerPlayer>(?X1) :- <http://dbpedia.org/ontology/soccerTournamentTopScorer>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28299 FROM "__triples" t0 WHERE t0.p = 27663 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28299);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/goalsInNationalTeam>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28299 FROM "__triples" t0 WHERE t0.p = 26661 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28299);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_SoccerPlayer_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SoccerPlayer_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28299;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SoccerPlayer_delta_old" ON "dbrdf_SoccerPlayer_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SoccerPlayer_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/SoccerPlayer$delta_new>(?Y) :- <http://dbpedia.org/ontology/SoccerPlayer$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_SoccerPlayer_delta_new"(s) SELECT t1.o FROM "dbrdf_SoccerPlayer_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28299);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28299 FROM "dbrdf_SoccerPlayer_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SoccerPlayer_delta_old";
        INSERT INTO "dbrdf_SoccerPlayer_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SoccerPlayer_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SoccerPlayer_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1795
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_flag_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_flag_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28300;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_flag_delta_old" ON "dbrdf_flag_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_flag_delta_old" ON "dbrdf_flag_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_flag_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/flag$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/flag$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_flag_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_flag_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28300 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/flag$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/flag$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_flag_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_flag_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28300 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28300, t0.o FROM "dbrdf_flag_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_flag_delta_old";
        INSERT INTO "dbrdf_flag_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_flag_delta_new" t0;
        TRUNCATE TABLE "dbrdf_flag_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1796
    ---- DEPENDS ON: 1795, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Flag>(?X) :- <http://dbpedia.org/ontology/flag>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28301 FROM "__triples" t0 WHERE t0.p = 28300 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28301);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Flag_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Flag_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28301;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Flag_delta_old" ON "dbrdf_Flag_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Flag_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Flag$delta_new>(?Y) :- <http://dbpedia.org/ontology/Flag$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Flag_delta_new"(s) SELECT t1.o FROM "dbrdf_Flag_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28301);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28301 FROM "dbrdf_Flag_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Flag_delta_old";
        INSERT INTO "dbrdf_Flag_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Flag_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Flag_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1797
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_aircraftTransport_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_aircraftTransport_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28302;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_aircraftTransport_delta_old" ON "dbrdf_aircraftTransport_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_aircraftTransport_delta_old" ON "dbrdf_aircraftTransport_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_aircraftTransport_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/aircraftTransport$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/aircraftTransport$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_aircraftTransport_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_aircraftTransport_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28302 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/aircraftTransport$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/aircraftTransport$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_aircraftTransport_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_aircraftTransport_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28302 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28302, t0.o FROM "dbrdf_aircraftTransport_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_aircraftTransport_delta_old";
        INSERT INTO "dbrdf_aircraftTransport_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_aircraftTransport_delta_new" t0;
        TRUNCATE TABLE "dbrdf_aircraftTransport_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1798
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_fate_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_fate_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28303;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_fate_delta_old" ON "dbrdf_fate_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_fate_delta_old" ON "dbrdf_fate_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_fate_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/fate$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/fate$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_fate_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_fate_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28303 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/fate$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/fate$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_fate_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_fate_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28303 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28303, t0.o FROM "dbrdf_fate_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_fate_delta_old";
        INSERT INTO "dbrdf_fate_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_fate_delta_new" t0;
        TRUNCATE TABLE "dbrdf_fate_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1799
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_locationCountry_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_locationCountry_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28304;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_locationCountry_delta_old" ON "dbrdf_locationCountry_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_locationCountry_delta_old" ON "dbrdf_locationCountry_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_locationCountry_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/locationCountry$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/locationCountry$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_locationCountry_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_locationCountry_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28304 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/locationCountry$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/locationCountry$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_locationCountry_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_locationCountry_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28304 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28304, t0.o FROM "dbrdf_locationCountry_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_locationCountry_delta_old";
        INSERT INTO "dbrdf_locationCountry_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_locationCountry_delta_new" t0;
        TRUNCATE TABLE "dbrdf_locationCountry_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1800
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_lineLength_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_lineLength_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28305;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_lineLength_delta_old" ON "dbrdf_lineLength_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_lineLength_delta_old" ON "dbrdf_lineLength_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_lineLength_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/lineLength$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/lineLength$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_lineLength_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_lineLength_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28305 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/lineLength$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/lineLength$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_lineLength_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_lineLength_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28305 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28305, t0.o FROM "dbrdf_lineLength_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_lineLength_delta_old";
        INSERT INTO "dbrdf_lineLength_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_lineLength_delta_new" t0;
        TRUNCATE TABLE "dbrdf_lineLength_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1801
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_serviceEndDate_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_serviceEndDate_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28306;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_serviceEndDate_delta_old" ON "dbrdf_serviceEndDate_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_serviceEndDate_delta_old" ON "dbrdf_serviceEndDate_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_serviceEndDate_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/serviceEndDate$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/serviceEndDate$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_serviceEndDate_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_serviceEndDate_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28306 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/serviceEndDate$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/serviceEndDate$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_serviceEndDate_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_serviceEndDate_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28306 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28306, t0.o FROM "dbrdf_serviceEndDate_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_serviceEndDate_delta_old";
        INSERT INTO "dbrdf_serviceEndDate_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_serviceEndDate_delta_new" t0;
        TRUNCATE TABLE "dbrdf_serviceEndDate_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1802
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_ClubMoss_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_ClubMoss_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28307;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_ClubMoss_delta_old" ON "dbrdf_ClubMoss_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_ClubMoss_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/ClubMoss$delta_new>(?Y) :- <http://dbpedia.org/ontology/ClubMoss$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_ClubMoss_delta_new"(s) SELECT t1.o FROM "dbrdf_ClubMoss_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28307);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28307 FROM "dbrdf_ClubMoss_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_ClubMoss_delta_old";
        INSERT INTO "dbrdf_ClubMoss_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_ClubMoss_delta_new" t0;
        TRUNCATE TABLE "dbrdf_ClubMoss_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1803
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_minimumTemperature_delta_old1"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_minimumTemperature_delta_old1"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28308;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_minimumTemperature_delta_old1" ON "dbrdf_minimumTemperature_delta_old1"(s, o); CREATE INDEX "IDX_1_dbrdf_minimumTemperature_delta_old1" ON "dbrdf_minimumTemperature_delta_old1"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_minimumTemperature_delta_new1"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/minimumTemperature$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/minimumTemperature$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_minimumTemperature_delta_new1"(s, o) SELECT t1.o, t0.o FROM "dbrdf_minimumTemperature_delta_old1" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28308 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/minimumTemperature$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/minimumTemperature$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_minimumTemperature_delta_new1"(s, o) SELECT t0.s, t1.o FROM "dbrdf_minimumTemperature_delta_old1" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28308 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28308, t0.o FROM "dbrdf_minimumTemperature_delta_new1" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_minimumTemperature_delta_old1";
        INSERT INTO "dbrdf_minimumTemperature_delta_old1"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_minimumTemperature_delta_new1" t0;
        TRUNCATE TABLE "dbrdf_minimumTemperature_delta_new1";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1804
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_translator_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_translator_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28309;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_translator_delta_old" ON "dbrdf_translator_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_translator_delta_old" ON "dbrdf_translator_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_translator_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/translator$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/translator$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_translator_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_translator_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28309 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/translator$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/translator$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_translator_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_translator_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28309 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28309, t0.o FROM "dbrdf_translator_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_translator_delta_old";
        INSERT INTO "dbrdf_translator_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_translator_delta_new" t0;
        TRUNCATE TABLE "dbrdf_translator_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1805
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_debut_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_debut_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28310;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_debut_delta_old" ON "dbrdf_debut_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_debut_delta_old" ON "dbrdf_debut_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_debut_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/debut$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/debut$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_debut_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_debut_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28310 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/debut$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/debut$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_debut_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_debut_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28310 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28310, t0.o FROM "dbrdf_debut_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_debut_delta_old";
        INSERT INTO "dbrdf_debut_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_debut_delta_new" t0;
        TRUNCATE TABLE "dbrdf_debut_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1806
    ---- DEPENDS ON: 1805, 732, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Wrestler>(?X) :- <http://dbpedia.org/ontology/debut>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28311 FROM "__triples" t0 WHERE t0.p = 28310 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28311);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Wrestler>(?X) :- <http://dbpedia.org/ontology/billed>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28311 FROM "__triples" t0 WHERE t0.p = 27216 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28311);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Wrestler_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Wrestler_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28311;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Wrestler_delta_old" ON "dbrdf_Wrestler_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Wrestler_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Wrestler$delta_new>(?Y) :- <http://dbpedia.org/ontology/Wrestler$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Wrestler_delta_new"(s) SELECT t1.o FROM "dbrdf_Wrestler_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28311);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28311 FROM "dbrdf_Wrestler_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Wrestler_delta_old";
        INSERT INTO "dbrdf_Wrestler_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Wrestler_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Wrestler_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1807
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_stationEvaDuration_delta_old0"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_stationEvaDuration_delta_old0"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28312;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_stationEvaDuration_delta_old0" ON "dbrdf_stationEvaDuration_delta_old0"(s, o); CREATE INDEX "IDX_1_dbrdf_stationEvaDuration_delta_old0" ON "dbrdf_stationEvaDuration_delta_old0"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_stationEvaDuration_delta_new0"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/stationEvaDuration$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/stationEvaDuration$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_stationEvaDuration_delta_new0"(s, o) SELECT t1.o, t0.o FROM "dbrdf_stationEvaDuration_delta_old0" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28312 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/stationEvaDuration$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/stationEvaDuration$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_stationEvaDuration_delta_new0"(s, o) SELECT t0.s, t1.o FROM "dbrdf_stationEvaDuration_delta_old0" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28312 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28312, t0.o FROM "dbrdf_stationEvaDuration_delta_new0" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_stationEvaDuration_delta_old0";
        INSERT INTO "dbrdf_stationEvaDuration_delta_old0"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_stationEvaDuration_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_stationEvaDuration_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1808
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_publisher_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_publisher_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28313;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_publisher_delta_old" ON "dbrdf_publisher_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_publisher_delta_old" ON "dbrdf_publisher_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_publisher_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/publisher$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/publisher$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_publisher_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_publisher_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28313 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/publisher$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/publisher$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_publisher_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_publisher_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28313 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28313, t0.o FROM "dbrdf_publisher_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_publisher_delta_old";
        INSERT INTO "dbrdf_publisher_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_publisher_delta_new" t0;
        TRUNCATE TABLE "dbrdf_publisher_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1809
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_meanTemperature_delta_old1"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_meanTemperature_delta_old1"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28314;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_meanTemperature_delta_old1" ON "dbrdf_meanTemperature_delta_old1"(s, o); CREATE INDEX "IDX_1_dbrdf_meanTemperature_delta_old1" ON "dbrdf_meanTemperature_delta_old1"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_meanTemperature_delta_new1"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Planet/meanTemperature$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/Planet/meanTemperature$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_meanTemperature_delta_new1"(s, o) SELECT t1.o, t0.o FROM "dbrdf_meanTemperature_delta_old1" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28314 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/Planet/meanTemperature$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/Planet/meanTemperature$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_meanTemperature_delta_new1"(s, o) SELECT t0.s, t1.o FROM "dbrdf_meanTemperature_delta_old1" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28314 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28314, t0.o FROM "dbrdf_meanTemperature_delta_new1" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_meanTemperature_delta_old1";
        INSERT INTO "dbrdf_meanTemperature_delta_old1"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_meanTemperature_delta_new1" t0;
        TRUNCATE TABLE "dbrdf_meanTemperature_delta_new1";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1810
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_layingDown_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_layingDown_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28315;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_layingDown_delta_old" ON "dbrdf_layingDown_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_layingDown_delta_old" ON "dbrdf_layingDown_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_layingDown_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/layingDown$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/layingDown$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_layingDown_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_layingDown_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28315 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/layingDown$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/layingDown$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_layingDown_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_layingDown_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28315 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28315, t0.o FROM "dbrdf_layingDown_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_layingDown_delta_old";
        INSERT INTO "dbrdf_layingDown_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_layingDown_delta_new" t0;
        TRUNCATE TABLE "dbrdf_layingDown_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1811
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_slogan_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_slogan_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28316;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_slogan_delta_old" ON "dbrdf_slogan_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_slogan_delta_old" ON "dbrdf_slogan_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_slogan_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/slogan$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/slogan$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_slogan_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_slogan_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28316 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/slogan$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/slogan$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_slogan_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_slogan_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28316 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28316, t0.o FROM "dbrdf_slogan_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_slogan_delta_old";
        INSERT INTO "dbrdf_slogan_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_slogan_delta_new" t0;
        TRUNCATE TABLE "dbrdf_slogan_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1812
    ---- DEPENDS ON: 1301, 239, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Stadium>(?X1) :- <http://dbpedia.org/ontology/homeStadium>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28317 FROM "__triples" t0 WHERE t0.p = 27791 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28317);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Arena>(?X1) :- <http://dbpedia.org/ontology/homeArena>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28319 FROM "__triples" t0 WHERE t0.p = 26721 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28319);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Stadium_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Stadium_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28317;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Stadium_delta_old" ON "dbrdf_Stadium_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Stadium_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_StadiumOrArena_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_StadiumOrArena_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28318;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_StadiumOrArena_delta_old" ON "dbrdf_StadiumOrArena_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_StadiumOrArena_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Arena_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Arena_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28319;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Arena_delta_old" ON "dbrdf_Arena_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Arena_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Stadium$delta_new>(?X) :- <http://schema.org/StadiumOrArena$delta_old>(?X) .
        INSERT INTO "dbrdf_Stadium_delta_new"(s) SELECT t0.s FROM "dbrdf_StadiumOrArena_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28317);


        -- <http://dbpedia.org/ontology/Stadium$delta_new>(?Y) :- <http://dbpedia.org/ontology/Stadium$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Stadium_delta_new"(s) SELECT t1.o FROM "dbrdf_Stadium_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28317);


        -- <http://schema.org/StadiumOrArena$delta_new>(?X) :- <http://dbpedia.org/ontology/Arena$delta_old>(?X) .
        INSERT INTO "dbrdf_StadiumOrArena_delta_new"(s) SELECT t0.s FROM "dbrdf_Arena_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28318);


        -- <http://schema.org/StadiumOrArena$delta_new>(?X) :- <http://dbpedia.org/ontology/Stadium$delta_old>(?X) .
        INSERT INTO "dbrdf_StadiumOrArena_delta_new"(s) SELECT t0.s FROM "dbrdf_Stadium_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28318);


        -- <http://schema.org/StadiumOrArena$delta_new>(?Y) :- <http://schema.org/StadiumOrArena$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_StadiumOrArena_delta_new"(s) SELECT t1.o FROM "dbrdf_StadiumOrArena_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28318);


        -- <http://dbpedia.org/ontology/Arena$delta_new>(?X) :- <http://schema.org/StadiumOrArena$delta_old>(?X) .
        INSERT INTO "dbrdf_Arena_delta_new"(s) SELECT t0.s FROM "dbrdf_StadiumOrArena_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28319);


        -- <http://dbpedia.org/ontology/Arena$delta_new>(?Y) :- <http://dbpedia.org/ontology/Arena$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Arena_delta_new"(s) SELECT t1.o FROM "dbrdf_Arena_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28319);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28317 FROM "dbrdf_Stadium_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Stadium_delta_old";
        INSERT INTO "dbrdf_Stadium_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Stadium_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Stadium_delta_new";

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28318 FROM "dbrdf_StadiumOrArena_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_StadiumOrArena_delta_old";
        INSERT INTO "dbrdf_StadiumOrArena_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_StadiumOrArena_delta_new" t0;
        TRUNCATE TABLE "dbrdf_StadiumOrArena_delta_new";

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28319 FROM "dbrdf_Arena_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Arena_delta_old";
        INSERT INTO "dbrdf_Arena_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Arena_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Arena_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1813
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_headquarter_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_headquarter_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28320;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_headquarter_delta_old" ON "dbrdf_headquarter_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_headquarter_delta_old" ON "dbrdf_headquarter_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_headquarter_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/headquarter$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/headquarter$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_headquarter_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_headquarter_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28320 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/headquarter$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/headquarter$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_headquarter_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_headquarter_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28320 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28320, t0.o FROM "dbrdf_headquarter_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_headquarter_delta_old";
        INSERT INTO "dbrdf_headquarter_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_headquarter_delta_new" t0;
        TRUNCATE TABLE "dbrdf_headquarter_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1814
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_mass_delta_old3"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_mass_delta_old3"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28321;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_mass_delta_old3" ON "dbrdf_mass_delta_old3"(s, o); CREATE INDEX "IDX_1_dbrdf_mass_delta_old3" ON "dbrdf_mass_delta_old3"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_mass_delta_new3"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Galaxy/mass$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/Galaxy/mass$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_mass_delta_new3"(s, o) SELECT t1.o, t0.o FROM "dbrdf_mass_delta_old3" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28321 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/Galaxy/mass$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/Galaxy/mass$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_mass_delta_new3"(s, o) SELECT t0.s, t1.o FROM "dbrdf_mass_delta_old3" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28321 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28321, t0.o FROM "dbrdf_mass_delta_new3" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_mass_delta_old3";
        INSERT INTO "dbrdf_mass_delta_old3"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_mass_delta_new3" t0;
        TRUNCATE TABLE "dbrdf_mass_delta_new3";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1815
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_branchTo_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_branchTo_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28322;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_branchTo_delta_old" ON "dbrdf_branchTo_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_branchTo_delta_old" ON "dbrdf_branchTo_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_branchTo_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/branchTo$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/branchTo$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_branchTo_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_branchTo_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28322 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/branchTo$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/branchTo$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_branchTo_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_branchTo_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28322 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28322, t0.o FROM "dbrdf_branchTo_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_branchTo_delta_old";
        INSERT INTO "dbrdf_branchTo_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_branchTo_delta_new" t0;
        TRUNCATE TABLE "dbrdf_branchTo_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1816
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_description_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_description_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28323;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_description_delta_old" ON "dbrdf_description_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_description_delta_old" ON "dbrdf_description_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_description_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/description$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/description$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_description_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_description_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28323 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/description$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/description$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_description_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_description_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28323 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28323, t0.o FROM "dbrdf_description_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_description_delta_old";
        INSERT INTO "dbrdf_description_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_description_delta_new" t0;
        TRUNCATE TABLE "dbrdf_description_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1817
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_passengersPerDay_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_passengersPerDay_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28324;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_passengersPerDay_delta_old" ON "dbrdf_passengersPerDay_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_passengersPerDay_delta_old" ON "dbrdf_passengersPerDay_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_passengersPerDay_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/passengersPerDay$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/passengersPerDay$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_passengersPerDay_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_passengersPerDay_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28324 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/passengersPerDay$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/passengersPerDay$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_passengersPerDay_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_passengersPerDay_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28324 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28324, t0.o FROM "dbrdf_passengersPerDay_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_passengersPerDay_delta_old";
        INSERT INTO "dbrdf_passengersPerDay_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_passengersPerDay_delta_new" t0;
        TRUNCATE TABLE "dbrdf_passengersPerDay_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1818
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_meaning_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_meaning_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28325;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_meaning_delta_old" ON "dbrdf_meaning_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_meaning_delta_old" ON "dbrdf_meaning_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_meaning_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/meaning$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/meaning$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_meaning_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_meaning_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28325 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/meaning$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/meaning$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_meaning_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_meaning_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28325 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28325, t0.o FROM "dbrdf_meaning_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_meaning_delta_old";
        INSERT INTO "dbrdf_meaning_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_meaning_delta_new" t0;
        TRUNCATE TABLE "dbrdf_meaning_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1819
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_militaryUnit_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_militaryUnit_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28326;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_militaryUnit_delta_old" ON "dbrdf_militaryUnit_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_militaryUnit_delta_old" ON "dbrdf_militaryUnit_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_militaryUnit_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/militaryUnit$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/militaryUnit$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_militaryUnit_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_militaryUnit_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28326 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/militaryUnit$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/militaryUnit$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_militaryUnit_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_militaryUnit_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28326 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28326, t0.o FROM "dbrdf_militaryUnit_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_militaryUnit_delta_old";
        INSERT INTO "dbrdf_militaryUnit_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_militaryUnit_delta_new" t0;
        TRUNCATE TABLE "dbrdf_militaryUnit_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1820
    ---- DEPENDS ON: 1819, 1801, 1596, 1541, 1223, 1159, 887, 868, 809, 492, 457, 70, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/MilitaryPerson>(?X) :- <http://dbpedia.org/ontology/militaryUnit>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28327 FROM "__triples" t0 WHERE t0.p = 28326 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28327);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MilitaryPerson>(?X) :- <http://dbpedia.org/ontology/serviceEndDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28327 FROM "__triples" t0 WHERE t0.p = 28306 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28327);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MilitaryPerson>(?X) :- <http://dbpedia.org/ontology/serviceNumber>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28327 FROM "__triples" t0 WHERE t0.p = 28033 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28327);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MilitaryPerson>(?X) :- <http://dbpedia.org/ontology/command>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28327 FROM "__triples" t0 WHERE t0.p = 27712 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28327);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MilitaryPerson>(?X) :- <http://dbpedia.org/ontology/militaryRank>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28327 FROM "__triples" t0 WHERE t0.p = 27646 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28327);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MilitaryPerson>(?X) :- <http://dbpedia.org/ontology/serviceStartDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28327 FROM "__triples" t0 WHERE t0.p = 27296 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28327);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MilitaryPerson>(?X) :- <http://dbpedia.org/ontology/serviceEndYear>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28327 FROM "__triples" t0 WHERE t0.p = 28088 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28327);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MilitaryPerson>(?X) :- <http://dbpedia.org/ontology/allegiance>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28327 FROM "__triples" t0 WHERE t0.p = 26940 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28327);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MilitaryPerson>(?X) :- <http://dbpedia.org/ontology/serviceStartYear>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28327 FROM "__triples" t0 WHERE t0.p = 27355 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28327);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MilitaryPerson>(?X) :- <http://dbpedia.org/ontology/militaryCommand>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28327 FROM "__triples" t0 WHERE t0.p = 26975 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28327);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MilitaryPerson>(?X) :- <http://dbpedia.org/ontology/noteOnPlaceOfBurial>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28327 FROM "__triples" t0 WHERE t0.p = 26552 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28327);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MilitaryPerson>(?X) :- <http://dbpedia.org/ontology/war>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28327 FROM "__triples" t0 WHERE t0.p = 27374 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28327);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_MilitaryPerson_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MilitaryPerson_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28327;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MilitaryPerson_delta_old" ON "dbrdf_MilitaryPerson_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MilitaryPerson_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/MilitaryPerson$delta_new>(?Y) :- <http://dbpedia.org/ontology/MilitaryPerson$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_MilitaryPerson_delta_new"(s) SELECT t1.o FROM "dbrdf_MilitaryPerson_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28327);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28327 FROM "dbrdf_MilitaryPerson_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_MilitaryPerson_delta_old";
        INSERT INTO "dbrdf_MilitaryPerson_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_MilitaryPerson_delta_new" t0;
        TRUNCATE TABLE "dbrdf_MilitaryPerson_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1821
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_author_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_author_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28328;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_author_delta_old" ON "dbrdf_author_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_author_delta_old" ON "dbrdf_author_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_author_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/author$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/author$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_author_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_author_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28328 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/author$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/author$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_author_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_author_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28328 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28328, t0.o FROM "dbrdf_author_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_author_delta_old";
        INSERT INTO "dbrdf_author_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_author_delta_new" t0;
        TRUNCATE TABLE "dbrdf_author_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1822
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_notableWine_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_notableWine_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28329;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_notableWine_delta_old" ON "dbrdf_notableWine_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_notableWine_delta_old" ON "dbrdf_notableWine_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_notableWine_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/notableWine$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/notableWine$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_notableWine_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_notableWine_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28329 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/notableWine$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/notableWine$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_notableWine_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_notableWine_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28329 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28329, t0.o FROM "dbrdf_notableWine_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_notableWine_delta_old";
        INSERT INTO "dbrdf_notableWine_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_notableWine_delta_new" t0;
        TRUNCATE TABLE "dbrdf_notableWine_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1823
    ---- DEPENDS ON: 1822, 362, 13, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Grape>(?X) :- <http://dbpedia.org/ontology/notableWine>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28330 FROM "__triples" t0 WHERE t0.p = 28329 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28330);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Grape>(?X1) :- <http://dbpedia.org/ontology/growingGrape>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28330 FROM "__triples" t0 WHERE t0.p = 26845 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28330);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Grape>(?X) :- <http://dbpedia.org/ontology/wineRegion>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28330 FROM "__triples" t0 WHERE t0.p = 26494 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28330);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Grape_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Grape_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28330;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Grape_delta_old" ON "dbrdf_Grape_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Grape_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Grape$delta_new>(?Y) :- <http://dbpedia.org/ontology/Grape$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Grape_delta_new"(s) SELECT t1.o FROM "dbrdf_Grape_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28330);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28330 FROM "dbrdf_Grape_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Grape_delta_old";
        INSERT INTO "dbrdf_Grape_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Grape_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Grape_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1824
    ---- DEPENDS ON: 1823, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/FloweringPlant>(?X) :- <http://dbpedia.org/ontology/Grape>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28331 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28330 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28331);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_FloweringPlant_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_FloweringPlant_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28331;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_FloweringPlant_delta_old" ON "dbrdf_FloweringPlant_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_FloweringPlant_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/FloweringPlant$delta_new>(?Y) :- <http://dbpedia.org/ontology/FloweringPlant$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_FloweringPlant_delta_new"(s) SELECT t1.o FROM "dbrdf_FloweringPlant_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28331);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28331 FROM "dbrdf_FloweringPlant_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_FloweringPlant_delta_old";
        INSERT INTO "dbrdf_FloweringPlant_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_FloweringPlant_delta_new" t0;
        TRUNCATE TABLE "dbrdf_FloweringPlant_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1825
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_secondDriver_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_secondDriver_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28332;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_secondDriver_delta_old" ON "dbrdf_secondDriver_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_secondDriver_delta_old" ON "dbrdf_secondDriver_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_secondDriver_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/secondDriver$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/secondDriver$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_secondDriver_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_secondDriver_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28332 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/secondDriver$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/secondDriver$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_secondDriver_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_secondDriver_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28332 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28332, t0.o FROM "dbrdf_secondDriver_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_secondDriver_delta_old";
        INSERT INTO "dbrdf_secondDriver_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_secondDriver_delta_new" t0;
        TRUNCATE TABLE "dbrdf_secondDriver_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1826
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_floorArea_delta_old0"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_floorArea_delta_old0"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28333;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_floorArea_delta_old0" ON "dbrdf_floorArea_delta_old0"(s, o); CREATE INDEX "IDX_1_dbrdf_floorArea_delta_old0" ON "dbrdf_floorArea_delta_old0"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_floorArea_delta_new0"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Building/floorArea$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/Building/floorArea$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_floorArea_delta_new0"(s, o) SELECT t1.o, t0.o FROM "dbrdf_floorArea_delta_old0" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28333 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/Building/floorArea$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/Building/floorArea$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_floorArea_delta_new0"(s, o) SELECT t0.s, t1.o FROM "dbrdf_floorArea_delta_old0" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28333 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28333, t0.o FROM "dbrdf_floorArea_delta_new0" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_floorArea_delta_old0";
        INSERT INTO "dbrdf_floorArea_delta_old0"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_floorArea_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_floorArea_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1827
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfLiveAlbums_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_numberOfLiveAlbums_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28334;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_numberOfLiveAlbums_delta_old" ON "dbrdf_numberOfLiveAlbums_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_numberOfLiveAlbums_delta_old" ON "dbrdf_numberOfLiveAlbums_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfLiveAlbums_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/numberOfLiveAlbums$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/numberOfLiveAlbums$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_numberOfLiveAlbums_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_numberOfLiveAlbums_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28334 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/numberOfLiveAlbums$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/numberOfLiveAlbums$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_numberOfLiveAlbums_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_numberOfLiveAlbums_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28334 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28334, t0.o FROM "dbrdf_numberOfLiveAlbums_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_numberOfLiveAlbums_delta_old";
        INSERT INTO "dbrdf_numberOfLiveAlbums_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_numberOfLiveAlbums_delta_new" t0;
        TRUNCATE TABLE "dbrdf_numberOfLiveAlbums_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1828
    ---- DEPENDS ON: 1810, 1649, 1613, 1435, 1095, 922, 607, 596, 538, 533, 458, 391, 387, 212, 62, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Ship>(?X) :- <http://dbpedia.org/ontology/layingDown>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "__triples" t0 WHERE t0.p = 28315 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28335);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Ship>(?X) :- <http://dbpedia.org/ontology/decommissioningDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "__triples" t0 WHERE t0.p = 28145 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28335);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Ship>(?X) :- <http://dbpedia.org/ontology/christeningDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "__triples" t0 WHERE t0.p = 27582 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28335);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Ship>(?X) :- <http://dbpedia.org/ontology/shipDraft>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "__triples" t0 WHERE t0.p = 27409 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28335);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Ship>(?X) :- <http://dbpedia.org/ontology/commissioningDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "__triples" t0 WHERE t0.p = 27080 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28335);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Ship>(?X) :- <http://dbpedia.org/ontology/shipBeam>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "__triples" t0 WHERE t0.p = 27016 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28335);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Ship>(?X) :- <http://dbpedia.org/ontology/captureDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "__triples" t0 WHERE t0.p = 26941 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28335);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Ship>(?X) :- <http://dbpedia.org/ontology/recommissioningDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "__triples" t0 WHERE t0.p = 26874 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28335);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Ship>(?X) :- <http://dbpedia.org/ontology/shipCrew>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "__triples" t0 WHERE t0.p = 26870 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28335);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Ship>(?X) :- <http://dbpedia.org/ontology/maidenVoyage>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "__triples" t0 WHERE t0.p = 27926 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28335);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Ship>(?X) :- <http://dbpedia.org/ontology/shipLaunch>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "__triples" t0 WHERE t0.p = 28105 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28335);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Ship>(?X) :- <http://dbpedia.org/ontology/acquirementDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "__triples" t0 WHERE t0.p = 27091 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28335);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Ship>(?X) :- <http://dbpedia.org/ontology/orderDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "__triples" t0 WHERE t0.p = 26694 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28335);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Ship>(?X) :- <http://dbpedia.org/ontology/homeport>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "__triples" t0 WHERE t0.p = 26543 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28335);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Ship>(?X) :- <http://dbpedia.org/ontology/shipDisplacement>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "__triples" t0 WHERE t0.p = 27021 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28335);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Ship_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Ship_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28335;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Ship_delta_old" ON "dbrdf_Ship_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Ship_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Ship$delta_new>(?Y) :- <http://dbpedia.org/ontology/Ship$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Ship_delta_new"(s) SELECT t1.o FROM "dbrdf_Ship_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28335);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28335 FROM "dbrdf_Ship_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Ship_delta_old";
        INSERT INTO "dbrdf_Ship_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Ship_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Ship_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1829
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_chairman_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_chairman_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28336;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_chairman_delta_old" ON "dbrdf_chairman_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_chairman_delta_old" ON "dbrdf_chairman_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_chairman_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/chairman$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/chairman$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_chairman_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_chairman_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28336 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/chairman$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/chairman$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_chairman_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_chairman_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28336 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28336, t0.o FROM "dbrdf_chairman_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_chairman_delta_old";
        INSERT INTO "dbrdf_chairman_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_chairman_delta_new" t0;
        TRUNCATE TABLE "dbrdf_chairman_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1830
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_firstFlight_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_firstFlight_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28337;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_firstFlight_delta_old" ON "dbrdf_firstFlight_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_firstFlight_delta_old" ON "dbrdf_firstFlight_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_firstFlight_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/firstFlight$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/firstFlight$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_firstFlight_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_firstFlight_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28337 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/firstFlight$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/firstFlight$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_firstFlight_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_firstFlight_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28337 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28337, t0.o FROM "dbrdf_firstFlight_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_firstFlight_delta_old";
        INSERT INTO "dbrdf_firstFlight_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_firstFlight_delta_new" t0;
        TRUNCATE TABLE "dbrdf_firstFlight_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1831
    ---- DEPENDS ON: 1830, 1667, 1523, 1484, 1356, 1186, 1108, 1037, 819, 640, 608, 349, 285, 189, 166, 124, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X) :- <http://dbpedia.org/ontology/firstFlight>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 28337 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X) :- <http://dbpedia.org/ontology/contractAward>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 28015 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X) :- <http://dbpedia.org/ontology/crews>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 27976 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X) :- <http://dbpedia.org/ontology/SpaceShuttle/distance>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 27846 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X) :- <http://dbpedia.org/ontology/satellitesDeployed>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 27675 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X) :- <http://dbpedia.org/ontology/missions>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 27595 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X) :- <http://dbpedia.org/ontology/firstFlightStartDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 27524 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X) :- <http://dbpedia.org/ontology/namedAfter>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 27092 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X) :- <http://dbpedia.org/ontology/issDockings>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 26832 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X) :- <http://dbpedia.org/ontology/SpaceShuttle/timeInSpace>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 26767 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X) :- <http://dbpedia.org/ontology/lastFlightEndDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 26648 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X) :- <http://dbpedia.org/ontology/mirDockings>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 26671 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X) :- <http://dbpedia.org/ontology/firstFlightEndDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 27124 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X1) :- <http://dbpedia.org/ontology/shuttle>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28338 FROM "__triples" t0 WHERE t0.p = 28164 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X) :- <http://dbpedia.org/ontology/lastFlightStartDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 27306 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SpaceShuttle>(?X) :- <http://dbpedia.org/ontology/lastFlight>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 26606 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28338);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_SpaceShuttle_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SpaceShuttle_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28338;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SpaceShuttle_delta_old" ON "dbrdf_SpaceShuttle_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SpaceShuttle_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/SpaceShuttle$delta_new>(?Y) :- <http://dbpedia.org/ontology/SpaceShuttle$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_SpaceShuttle_delta_new"(s) SELECT t1.o FROM "dbrdf_SpaceShuttle_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28338);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "dbrdf_SpaceShuttle_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SpaceShuttle_delta_old";
        INSERT INTO "dbrdf_SpaceShuttle_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SpaceShuttle_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SpaceShuttle_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1832
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_sisterStation_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_sisterStation_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28339;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_sisterStation_delta_old" ON "dbrdf_sisterStation_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_sisterStation_delta_old" ON "dbrdf_sisterStation_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_sisterStation_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/sisterStation$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/sisterStation$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_sisterStation_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_sisterStation_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28339 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/sisterStation$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/sisterStation$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_sisterStation_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_sisterStation_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28339 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28339, t0.o FROM "dbrdf_sisterStation_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_sisterStation_delta_old";
        INSERT INTO "dbrdf_sisterStation_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_sisterStation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_sisterStation_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1833
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_notableWork_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_notableWork_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28340;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_notableWork_delta_old" ON "dbrdf_notableWork_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_notableWork_delta_old" ON "dbrdf_notableWork_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_notableWork_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/notableWork$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/notableWork$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_notableWork_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_notableWork_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28340 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/notableWork$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/notableWork$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_notableWork_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_notableWork_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28340 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28340, t0.o FROM "dbrdf_notableWork_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_notableWork_delta_old";
        INSERT INTO "dbrdf_notableWork_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_notableWork_delta_new" t0;
        TRUNCATE TABLE "dbrdf_notableWork_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1834
    ---- DEPENDS ON: 1833, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Writer>(?X) :- <http://dbpedia.org/ontology/notableWork>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28341 FROM "__triples" t0 WHERE t0.p = 28340 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28341);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Writer_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Writer_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28341;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Writer_delta_old" ON "dbrdf_Writer_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Writer_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Writer$delta_new>(?Y) :- <http://dbpedia.org/ontology/Writer$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Writer_delta_new"(s) SELECT t1.o FROM "dbrdf_Writer_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28341);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28341 FROM "dbrdf_Writer_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Writer_delta_old";
        INSERT INTO "dbrdf_Writer_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Writer_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Writer_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1835
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_abstract_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_abstract_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28342;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_abstract_delta_old" ON "dbrdf_abstract_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_abstract_delta_old" ON "dbrdf_abstract_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_abstract_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/abstract$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/abstract$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_abstract_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_abstract_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28342 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/abstract$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/abstract$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_abstract_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_abstract_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28342 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28342, t0.o FROM "dbrdf_abstract_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_abstract_delta_old";
        INSERT INTO "dbrdf_abstract_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_abstract_delta_new" t0;
        TRUNCATE TABLE "dbrdf_abstract_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1836
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_plant_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_plant_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28343;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_plant_delta_old" ON "dbrdf_plant_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_plant_delta_old" ON "dbrdf_plant_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_plant_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/plant$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/plant$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_plant_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_plant_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28343 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/plant$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/plant$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_plant_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_plant_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28343 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28343, t0.o FROM "dbrdf_plant_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_plant_delta_old";
        INSERT INTO "dbrdf_plant_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_plant_delta_new" t0;
        TRUNCATE TABLE "dbrdf_plant_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1837
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_activeYearsStartDate_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_activeYearsStartDate_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28344;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_activeYearsStartDate_delta_old" ON "dbrdf_activeYearsStartDate_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_activeYearsStartDate_delta_old" ON "dbrdf_activeYearsStartDate_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_activeYearsStartDate_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/activeYearsStartDate$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/activeYearsStartDate$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_activeYearsStartDate_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_activeYearsStartDate_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28344 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/activeYearsStartDate$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/activeYearsStartDate$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_activeYearsStartDate_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_activeYearsStartDate_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28344 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28344, t0.o FROM "dbrdf_activeYearsStartDate_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_activeYearsStartDate_delta_old";
        INSERT INTO "dbrdf_activeYearsStartDate_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_activeYearsStartDate_delta_new" t0;
        TRUNCATE TABLE "dbrdf_activeYearsStartDate_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1838
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_winsAtJapan_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_winsAtJapan_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28345;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_winsAtJapan_delta_old" ON "dbrdf_winsAtJapan_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_winsAtJapan_delta_old" ON "dbrdf_winsAtJapan_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_winsAtJapan_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/winsAtJapan$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/winsAtJapan$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_winsAtJapan_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_winsAtJapan_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28345 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/winsAtJapan$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/winsAtJapan$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_winsAtJapan_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_winsAtJapan_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28345 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28345, t0.o FROM "dbrdf_winsAtJapan_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_winsAtJapan_delta_old";
        INSERT INTO "dbrdf_winsAtJapan_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_winsAtJapan_delta_new" t0;
        TRUNCATE TABLE "dbrdf_winsAtJapan_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1839
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_largestCountry_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_largestCountry_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28346;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_largestCountry_delta_old" ON "dbrdf_largestCountry_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_largestCountry_delta_old" ON "dbrdf_largestCountry_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_largestCountry_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/largestCountry$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/largestCountry$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_largestCountry_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_largestCountry_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28346 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/largestCountry$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/largestCountry$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_largestCountry_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_largestCountry_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28346 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28346, t0.o FROM "dbrdf_largestCountry_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_largestCountry_delta_old";
        INSERT INTO "dbrdf_largestCountry_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_largestCountry_delta_new" t0;
        TRUNCATE TABLE "dbrdf_largestCountry_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1840
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_highestBuildingInYear_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_highestBuildingInYear_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28347;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_highestBuildingInYear_delta_old" ON "dbrdf_highestBuildingInYear_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_highestBuildingInYear_delta_old" ON "dbrdf_highestBuildingInYear_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_highestBuildingInYear_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/highestBuildingInYear$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/highestBuildingInYear$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_highestBuildingInYear_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_highestBuildingInYear_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28347 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/highestBuildingInYear$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/highestBuildingInYear$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_highestBuildingInYear_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_highestBuildingInYear_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28347 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28347, t0.o FROM "dbrdf_highestBuildingInYear_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_highestBuildingInYear_delta_old";
        INSERT INTO "dbrdf_highestBuildingInYear_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_highestBuildingInYear_delta_new" t0;
        TRUNCATE TABLE "dbrdf_highestBuildingInYear_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1841
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_arrondissement_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_arrondissement_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28348;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_arrondissement_delta_old" ON "dbrdf_arrondissement_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_arrondissement_delta_old" ON "dbrdf_arrondissement_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_arrondissement_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/arrondissement$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/arrondissement$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_arrondissement_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_arrondissement_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28348 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/arrondissement$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/arrondissement$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_arrondissement_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_arrondissement_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28348 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28348, t0.o FROM "dbrdf_arrondissement_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_arrondissement_delta_old";
        INSERT INTO "dbrdf_arrondissement_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_arrondissement_delta_new" t0;
        TRUNCATE TABLE "dbrdf_arrondissement_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1842
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_ekatteCode_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_ekatteCode_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28349;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_ekatteCode_delta_old" ON "dbrdf_ekatteCode_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_ekatteCode_delta_old" ON "dbrdf_ekatteCode_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_ekatteCode_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/ekatteCode$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/ekatteCode$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_ekatteCode_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_ekatteCode_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28349 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/ekatteCode$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/ekatteCode$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_ekatteCode_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_ekatteCode_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28349 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28349, t0.o FROM "dbrdf_ekatteCode_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_ekatteCode_delta_old";
        INSERT INTO "dbrdf_ekatteCode_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_ekatteCode_delta_new" t0;
        TRUNCATE TABLE "dbrdf_ekatteCode_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1843
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_storyEditor_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_storyEditor_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28350;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_storyEditor_delta_old" ON "dbrdf_storyEditor_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_storyEditor_delta_old" ON "dbrdf_storyEditor_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_storyEditor_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/storyEditor$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/storyEditor$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_storyEditor_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_storyEditor_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28350 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/storyEditor$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/storyEditor$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_storyEditor_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_storyEditor_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28350 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28350, t0.o FROM "dbrdf_storyEditor_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_storyEditor_delta_old";
        INSERT INTO "dbrdf_storyEditor_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_storyEditor_delta_new" t0;
        TRUNCATE TABLE "dbrdf_storyEditor_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1844
    ---- DEPENDS ON: 1843, 1773, 1530, 1509, 1503, 1386, 1241, 954, 727, 650, 524, 480, 228, 136, 37, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X) :- <http://dbpedia.org/ontology/storyEditor>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28351 FROM "__triples" t0 WHERE t0.p = 28350 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28351);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X) :- <http://dbpedia.org/ontology/endingTheme>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28351 FROM "__triples" t0 WHERE t0.p = 28001 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28351);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X) :- <http://dbpedia.org/ontology/coProducer>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28351 FROM "__triples" t0 WHERE t0.p = 27995 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28351);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X1) :- <http://dbpedia.org/ontology/brand>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28351 FROM "__triples" t0 WHERE t0.p = 28277 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28351);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X) :- <http://dbpedia.org/ontology/creativeDirector>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28351 FROM "__triples" t0 WHERE t0.p = 27441 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28351);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X) :- <http://dbpedia.org/ontology/tvComId>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28351 FROM "__triples" t0 WHERE t0.p = 27134 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28351);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X) :- <http://dbpedia.org/ontology/voice>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28351 FROM "__triples" t0 WHERE t0.p = 26963 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28351);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X) :- <http://dbpedia.org/ontology/channel>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28351 FROM "__triples" t0 WHERE t0.p = 27876 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28351);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X) :- <http://dbpedia.org/ontology/numberOfEpisodes>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28351 FROM "__triples" t0 WHERE t0.p = 28022 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28351);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X) :- <http://dbpedia.org/ontology/numberOfSeasons>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28351 FROM "__triples" t0 WHERE t0.p = 26710 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28351);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X) :- <http://dbpedia.org/ontology/openingTheme>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28351 FROM "__triples" t0 WHERE t0.p = 27730 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28351);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X) :- <http://dbpedia.org/ontology/coExecutiveProducer>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28351 FROM "__triples" t0 WHERE t0.p = 27007 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28351);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X1) :- <http://dbpedia.org/ontology/show>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28351 FROM "__triples" t0 WHERE t0.p = 26518 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28351);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X) :- <http://dbpedia.org/ontology/presenter>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28351 FROM "__triples" t0 WHERE t0.p = 26618 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28351);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X) :- <http://dbpedia.org/ontology/showJudge>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28351 FROM "__triples" t0 WHERE t0.p = 27211 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28351);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_TelevisionShow_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_TelevisionShow_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28351;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_TelevisionShow_delta_old" ON "dbrdf_TelevisionShow_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_TelevisionShow_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/TelevisionShow$delta_new>(?Y) :- <http://dbpedia.org/ontology/TelevisionShow$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_TelevisionShow_delta_new"(s) SELECT t1.o FROM "dbrdf_TelevisionShow_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28351);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28351 FROM "dbrdf_TelevisionShow_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_TelevisionShow_delta_old";
        INSERT INTO "dbrdf_TelevisionShow_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_TelevisionShow_delta_new" t0;
        TRUNCATE TABLE "dbrdf_TelevisionShow_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1845
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_manager_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_manager_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28352;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_manager_delta_old" ON "dbrdf_manager_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_manager_delta_old" ON "dbrdf_manager_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_manager_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/manager$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/manager$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_manager_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_manager_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28352 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/manager$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/manager$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_manager_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_manager_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28352 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28352, t0.o FROM "dbrdf_manager_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_manager_delta_old";
        INSERT INTO "dbrdf_manager_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_manager_delta_new" t0;
        TRUNCATE TABLE "dbrdf_manager_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1846
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_relatedMeanOfTransportation_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_relatedMeanOfTransportation_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28353;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_relatedMeanOfTransportation_delta_old" ON "dbrdf_relatedMeanOfTransportation_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_relatedMeanOfTransportation_delta_old" ON "dbrdf_relatedMeanOfTransportation_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_relatedMeanOfTransportation_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/relatedMeanOfTransportation$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/relatedMeanOfTransportation$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_relatedMeanOfTransportation_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_relatedMeanOfTransportation_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28353 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/relatedMeanOfTransportation$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/relatedMeanOfTransportation$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_relatedMeanOfTransportation_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_relatedMeanOfTransportation_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28353 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28353, t0.o FROM "dbrdf_relatedMeanOfTransportation_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_relatedMeanOfTransportation_delta_old";
        INSERT INTO "dbrdf_relatedMeanOfTransportation_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_relatedMeanOfTransportation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_relatedMeanOfTransportation_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1847
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_goyaAward_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_goyaAward_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28354;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_goyaAward_delta_old" ON "dbrdf_goyaAward_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_goyaAward_delta_old" ON "dbrdf_goyaAward_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_goyaAward_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/goyaAward$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/goyaAward$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_goyaAward_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_goyaAward_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28354 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/goyaAward$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/goyaAward$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_goyaAward_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_goyaAward_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28354 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28354, t0.o FROM "dbrdf_goyaAward_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_goyaAward_delta_old";
        INSERT INTO "dbrdf_goyaAward_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_goyaAward_delta_new" t0;
        TRUNCATE TABLE "dbrdf_goyaAward_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1848
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_vein_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_vein_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28355;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_vein_delta_old" ON "dbrdf_vein_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_vein_delta_old" ON "dbrdf_vein_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_vein_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/vein$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/vein$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_vein_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_vein_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28355 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/vein$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/vein$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_vein_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_vein_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28355 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28355, t0.o FROM "dbrdf_vein_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_vein_delta_old";
        INSERT INTO "dbrdf_vein_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_vein_delta_new" t0;
        TRUNCATE TABLE "dbrdf_vein_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1849
    ---- DEPENDS ON: 1848, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Vein>(?X1) :- <http://dbpedia.org/ontology/vein>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28356 FROM "__triples" t0 WHERE t0.p = 28355 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28356);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Vein_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Vein_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28356;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Vein_delta_old" ON "dbrdf_Vein_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Vein_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Vein$delta_new>(?Y) :- <http://dbpedia.org/ontology/Vein$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Vein_delta_new"(s) SELECT t1.o FROM "dbrdf_Vein_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28356);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28356 FROM "dbrdf_Vein_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Vein_delta_old";
        INSERT INTO "dbrdf_Vein_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Vein_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Vein_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1850
    ---- DEPENDS ON: 1848, 1815, 1405, 1204, 1119, 1049, 1002, 969, 849, 837, 815, 786, 743, 655, 874, 598, 594, 552, 545, 494, 459, 382, 850, 838, 243, 1849, 152, 1406, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/vein>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 28355 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/branchTo>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 28322 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Artery>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27693 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/organSystem>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27606 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/graySubject>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27536 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X1) :- <http://dbpedia.org/ontology/branchTo>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28357 FROM "__triples" t0 WHERE t0.p = 28322 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Bone>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27489 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/dorlandsSuffix>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27456 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/nerve>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27336 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/lymph>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27324 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X1) :- <http://dbpedia.org/ontology/component>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27302 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/branchFrom>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27272 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X1) :- <http://dbpedia.org/ontology/isPartOfAnatomicalStructure>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27227 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X1) :- <http://dbpedia.org/ontology/organSystem>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27606 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/precursor>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27895 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X1) :- <http://dbpedia.org/ontology/drainsTo>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27139 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Brain>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27361 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X1) :- <http://dbpedia.org/ontology/drainsFrom>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27082 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/meshNumber>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27078 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X1) :- <http://dbpedia.org/ontology/supplies>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27028 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/drainsFrom>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27082 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Muscle>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 26977 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X1) :- <http://dbpedia.org/ontology/branchFrom>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27272 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/dorlandsPrefix>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27035 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/meshName>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 26865 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Nerve>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27337 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Lymph>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27325 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/drainsTo>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 27139 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X1) :- <http://dbpedia.org/ontology/innervates>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28357 FROM "__triples" t0 WHERE t0.p = 26942 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Vein>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28356 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/grayPage>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 26634 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Embryology>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27896 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/artery>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "__triples" t0 WHERE t0.p = 26725 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28357);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_AnatomicalStructure_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_AnatomicalStructure_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28357;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_AnatomicalStructure_delta_old" ON "dbrdf_AnatomicalStructure_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_AnatomicalStructure_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/AnatomicalStructure$delta_new>(?Y) :- <http://dbpedia.org/ontology/AnatomicalStructure$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_AnatomicalStructure_delta_new"(s) SELECT t1.o FROM "dbrdf_AnatomicalStructure_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28357);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28357 FROM "dbrdf_AnatomicalStructure_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_AnatomicalStructure_delta_old";
        INSERT INTO "dbrdf_AnatomicalStructure_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_AnatomicalStructure_delta_new" t0;
        TRUNCATE TABLE "dbrdf_AnatomicalStructure_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1851
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_functionEndDate_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_functionEndDate_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28358;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_functionEndDate_delta_old" ON "dbrdf_functionEndDate_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_functionEndDate_delta_old" ON "dbrdf_functionEndDate_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_functionEndDate_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/functionEndDate$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/functionEndDate$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_functionEndDate_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_functionEndDate_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28358 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/functionEndDate$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/functionEndDate$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_functionEndDate_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_functionEndDate_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28358 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28358, t0.o FROM "dbrdf_functionEndDate_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_functionEndDate_delta_old";
        INSERT INTO "dbrdf_functionEndDate_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_functionEndDate_delta_new" t0;
        TRUNCATE TABLE "dbrdf_functionEndDate_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1852
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Village_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Village_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28359;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Village_delta_old" ON "dbrdf_Village_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Village_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Village$delta_new>(?Y) :- <http://dbpedia.org/ontology/Village$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Village_delta_new"(s) SELECT t1.o FROM "dbrdf_Village_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28359);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28359 FROM "dbrdf_Village_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Village_delta_old";
        INSERT INTO "dbrdf_Village_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Village_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Village_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1853
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Arachnid_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Arachnid_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28360;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Arachnid_delta_old" ON "dbrdf_Arachnid_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Arachnid_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Arachnid$delta_new>(?Y) :- <http://dbpedia.org/ontology/Arachnid$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Arachnid_delta_new"(s) SELECT t1.o FROM "dbrdf_Arachnid_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28360);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28360 FROM "dbrdf_Arachnid_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Arachnid_delta_old";
        INSERT INTO "dbrdf_Arachnid_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Arachnid_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Arachnid_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1854
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_goldenCalfAward_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_goldenCalfAward_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28361;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_goldenCalfAward_delta_old" ON "dbrdf_goldenCalfAward_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_goldenCalfAward_delta_old" ON "dbrdf_goldenCalfAward_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_goldenCalfAward_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/goldenCalfAward$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/goldenCalfAward$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_goldenCalfAward_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_goldenCalfAward_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28361 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/goldenCalfAward$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/goldenCalfAward$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_goldenCalfAward_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_goldenCalfAward_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28361 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28361, t0.o FROM "dbrdf_goldenCalfAward_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_goldenCalfAward_delta_old";
        INSERT INTO "dbrdf_goldenCalfAward_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_goldenCalfAward_delta_new" t0;
        TRUNCATE TABLE "dbrdf_goldenCalfAward_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1855
    ---- DEPENDS ON: 1854, 1669, 1540, 1352, 1243, 981, 880, 444, 263, 187, 174, 1692, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Actor>(?X) :- <http://dbpedia.org/ontology/naacpImageAward>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 28166 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28362);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Actor>(?X) :- <http://dbpedia.org/ontology/goldenRaspberryAward>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 28032 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28362);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Actor>(?X) :- <http://dbpedia.org/ontology/goldenCalfAward>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 28361 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28362);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Actor>(?X) :- <http://dbpedia.org/ontology/geminiAward>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 27842 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28362);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Actor>(?X) :- <http://dbpedia.org/ontology/screenActorsGuildAward>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 27732 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28362);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Actor>(?X) :- <http://dbpedia.org/ontology/arielAward>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 27468 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28362);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Actor>(?X) :- <http://dbpedia.org/ontology/VoiceActor>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27367 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28362);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Actor>(?X) :- <http://dbpedia.org/ontology/iftaAward>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 26745 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28362);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Actor>(?X) :- <http://dbpedia.org/ontology/nationalFilmAward>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 26669 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28362);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Actor>(?X1) :- <http://dbpedia.org/ontology/starring>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28362 FROM "__triples" t0 WHERE t0.p = 26927 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28362);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Actor>(?X) :- <http://dbpedia.org/ontology/laurenceOlivierAward>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 26656 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28362);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Actor>(?X) :- <http://dbpedia.org/ontology/AdultActor>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28191 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28362);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Actor_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Actor_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28362;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Actor_delta_old" ON "dbrdf_Actor_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Actor_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Actor$delta_new>(?Y) :- <http://dbpedia.org/ontology/Actor$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Actor_delta_new"(s) SELECT t1.o FROM "dbrdf_Actor_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28362);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 FROM "dbrdf_Actor_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Actor_delta_old";
        INSERT INTO "dbrdf_Actor_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Actor_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Actor_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1856
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_majorShrine_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_majorShrine_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28363;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_majorShrine_delta_old" ON "dbrdf_majorShrine_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_majorShrine_delta_old" ON "dbrdf_majorShrine_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_majorShrine_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/majorShrine$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/majorShrine$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_majorShrine_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_majorShrine_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28363 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/majorShrine$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/majorShrine$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_majorShrine_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_majorShrine_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28363 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28363, t0.o FROM "dbrdf_majorShrine_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_majorShrine_delta_old";
        INSERT INTO "dbrdf_majorShrine_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_majorShrine_delta_new" t0;
        TRUNCATE TABLE "dbrdf_majorShrine_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1857
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_dynasty_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_dynasty_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28364;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_dynasty_delta_old" ON "dbrdf_dynasty_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_dynasty_delta_old" ON "dbrdf_dynasty_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_dynasty_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/dynasty$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/dynasty$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_dynasty_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_dynasty_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28364 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/dynasty$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/dynasty$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_dynasty_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_dynasty_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28364 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28364, t0.o FROM "dbrdf_dynasty_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_dynasty_delta_old";
        INSERT INTO "dbrdf_dynasty_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_dynasty_delta_new" t0;
        TRUNCATE TABLE "dbrdf_dynasty_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1858
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_firstAirDate_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_firstAirDate_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28365;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_firstAirDate_delta_old" ON "dbrdf_firstAirDate_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_firstAirDate_delta_old" ON "dbrdf_firstAirDate_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_firstAirDate_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/firstAirDate$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/firstAirDate$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_firstAirDate_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_firstAirDate_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28365 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/firstAirDate$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/firstAirDate$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_firstAirDate_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_firstAirDate_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28365 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28365, t0.o FROM "dbrdf_firstAirDate_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_firstAirDate_delta_old";
        INSERT INTO "dbrdf_firstAirDate_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_firstAirDate_delta_new" t0;
        TRUNCATE TABLE "dbrdf_firstAirDate_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1859
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_episodeNumber_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_episodeNumber_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28366;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_episodeNumber_delta_old" ON "dbrdf_episodeNumber_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_episodeNumber_delta_old" ON "dbrdf_episodeNumber_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_episodeNumber_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/episodeNumber$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/episodeNumber$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_episodeNumber_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_episodeNumber_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28366 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/episodeNumber$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/episodeNumber$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_episodeNumber_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_episodeNumber_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28366 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28366, t0.o FROM "dbrdf_episodeNumber_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_episodeNumber_delta_old";
        INSERT INTO "dbrdf_episodeNumber_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_episodeNumber_delta_new" t0;
        TRUNCATE TABLE "dbrdf_episodeNumber_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1860
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_soocerLeagueRelegated_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_soocerLeagueRelegated_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28367;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_soocerLeagueRelegated_delta_old" ON "dbrdf_soocerLeagueRelegated_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_soocerLeagueRelegated_delta_old" ON "dbrdf_soocerLeagueRelegated_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_soocerLeagueRelegated_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/soocerLeagueRelegated$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/soocerLeagueRelegated$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_soocerLeagueRelegated_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_soocerLeagueRelegated_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28367 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/soocerLeagueRelegated$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/soocerLeagueRelegated$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_soocerLeagueRelegated_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_soocerLeagueRelegated_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28367 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28367, t0.o FROM "dbrdf_soocerLeagueRelegated_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_soocerLeagueRelegated_delta_old";
        INSERT INTO "dbrdf_soocerLeagueRelegated_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_soocerLeagueRelegated_delta_new" t0;
        TRUNCATE TABLE "dbrdf_soocerLeagueRelegated_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1861
    ---- DEPENDS ON: 1860, 1064, 924, 434, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/SoccerLeagueSeason>(?X) :- <http://dbpedia.org/ontology/soocerLeagueRelegated>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28368 FROM "__triples" t0 WHERE t0.p = 28367 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28368);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SoccerLeagueSeason>(?X) :- <http://dbpedia.org/ontology/soocerLeaguePromoted>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28368 FROM "__triples" t0 WHERE t0.p = 27551 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28368);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SoccerLeagueSeason>(?X) :- <http://dbpedia.org/ontology/soocerLeagueSeason>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28368 FROM "__triples" t0 WHERE t0.p = 27411 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28368);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SoccerLeagueSeason>(?X) :- <http://dbpedia.org/ontology/soocerLeagueWinner>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28368 FROM "__triples" t0 WHERE t0.p = 26917 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28368);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SoccerLeagueSeason>(?X1) :- <http://dbpedia.org/ontology/soocerLeagueSeason>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28368 FROM "__triples" t0 WHERE t0.p = 27411 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28368);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_SoccerLeagueSeason_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SoccerLeagueSeason_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28368;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SoccerLeagueSeason_delta_old" ON "dbrdf_SoccerLeagueSeason_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SoccerLeagueSeason_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/SoccerLeagueSeason$delta_new>(?Y) :- <http://dbpedia.org/ontology/SoccerLeagueSeason$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_SoccerLeagueSeason_delta_new"(s) SELECT t1.o FROM "dbrdf_SoccerLeagueSeason_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28368);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28368 FROM "dbrdf_SoccerLeagueSeason_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SoccerLeagueSeason_delta_old";
        INSERT INTO "dbrdf_SoccerLeagueSeason_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SoccerLeagueSeason_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SoccerLeagueSeason_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1862
    ---- DEPENDS ON: 1861, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/SoccerLeague>(?X) :- <http://dbpedia.org/ontology/SoccerLeagueSeason>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28369 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28368 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28369);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_SoccerLeague_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SoccerLeague_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28369;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SoccerLeague_delta_old" ON "dbrdf_SoccerLeague_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SoccerLeague_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/SoccerLeague$delta_new>(?Y) :- <http://dbpedia.org/ontology/SoccerLeague$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_SoccerLeague_delta_new"(s) SELECT t1.o FROM "dbrdf_SoccerLeague_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28369);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28369 FROM "dbrdf_SoccerLeague_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SoccerLeague_delta_old";
        INSERT INTO "dbrdf_SoccerLeague_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SoccerLeague_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SoccerLeague_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1863
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_completionDate_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_completionDate_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28370;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_completionDate_delta_old" ON "dbrdf_completionDate_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_completionDate_delta_old" ON "dbrdf_completionDate_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_completionDate_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/completionDate$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/completionDate$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_completionDate_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_completionDate_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28370 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/completionDate$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/completionDate$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_completionDate_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_completionDate_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28370 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28370, t0.o FROM "dbrdf_completionDate_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_completionDate_delta_old";
        INSERT INTO "dbrdf_completionDate_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_completionDate_delta_new" t0;
        TRUNCATE TABLE "dbrdf_completionDate_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1864
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_musicBy_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_musicBy_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28371;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_musicBy_delta_old" ON "dbrdf_musicBy_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_musicBy_delta_old" ON "dbrdf_musicBy_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_musicBy_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/musicBy$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/musicBy$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_musicBy_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_musicBy_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28371 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/musicBy$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/musicBy$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_musicBy_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_musicBy_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28371 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28371, t0.o FROM "dbrdf_musicBy_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_musicBy_delta_old";
        INSERT INTO "dbrdf_musicBy_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_musicBy_delta_new" t0;
        TRUNCATE TABLE "dbrdf_musicBy_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1865
    ---- DEPENDS ON: 1864, 1342, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Musical>(?X) :- <http://dbpedia.org/ontology/lyrics>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28372 FROM "__triples" t0 WHERE t0.p = 27832 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28372);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Musical>(?X) :- <http://dbpedia.org/ontology/musicBy>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28372 FROM "__triples" t0 WHERE t0.p = 28371 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28372);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Musical_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Musical_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28372;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Musical_delta_old" ON "dbrdf_Musical_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Musical_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Musical$delta_new>(?Y) :- <http://dbpedia.org/ontology/Musical$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Musical_delta_new"(s) SELECT t1.o FROM "dbrdf_Musical_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28372);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28372 FROM "dbrdf_Musical_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Musical_delta_old";
        INSERT INTO "dbrdf_Musical_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Musical_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Musical_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1866
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_bestFinish_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_bestFinish_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28373;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_bestFinish_delta_old" ON "dbrdf_bestFinish_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_bestFinish_delta_old" ON "dbrdf_bestFinish_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_bestFinish_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/bestFinish$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/bestFinish$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_bestFinish_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_bestFinish_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28373 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/bestFinish$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/bestFinish$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_bestFinish_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_bestFinish_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28373 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28373, t0.o FROM "dbrdf_bestFinish_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_bestFinish_delta_old";
        INSERT INTO "dbrdf_bestFinish_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_bestFinish_delta_new" t0;
        TRUNCATE TABLE "dbrdf_bestFinish_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1867
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_winsAtAus_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_winsAtAus_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28374;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_winsAtAus_delta_old" ON "dbrdf_winsAtAus_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_winsAtAus_delta_old" ON "dbrdf_winsAtAus_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_winsAtAus_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/winsAtAus$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/winsAtAus$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_winsAtAus_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_winsAtAus_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28374 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/winsAtAus$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/winsAtAus$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_winsAtAus_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_winsAtAus_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28374 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28374, t0.o FROM "dbrdf_winsAtAus_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_winsAtAus_delta_old";
        INSERT INTO "dbrdf_winsAtAus_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_winsAtAus_delta_new" t0;
        TRUNCATE TABLE "dbrdf_winsAtAus_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1868
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_otherChannel_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_otherChannel_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28375;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_otherChannel_delta_old" ON "dbrdf_otherChannel_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_otherChannel_delta_old" ON "dbrdf_otherChannel_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_otherChannel_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/otherChannel$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/otherChannel$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_otherChannel_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_otherChannel_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28375 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/otherChannel$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/otherChannel$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_otherChannel_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_otherChannel_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28375 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28375, t0.o FROM "dbrdf_otherChannel_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_otherChannel_delta_old";
        INSERT INTO "dbrdf_otherChannel_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_otherChannel_delta_new" t0;
        TRUNCATE TABLE "dbrdf_otherChannel_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1869
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_saint_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_saint_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28376;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_saint_delta_old" ON "dbrdf_saint_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_saint_delta_old" ON "dbrdf_saint_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_saint_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/saint$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/saint$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_saint_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_saint_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28376 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/saint$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/saint$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_saint_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_saint_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28376 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28376, t0.o FROM "dbrdf_saint_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_saint_delta_old";
        INSERT INTO "dbrdf_saint_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_saint_delta_new" t0;
        TRUNCATE TABLE "dbrdf_saint_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1870
    ---- DEPENDS ON: 1869, 1856, 1502, 1152, 1137, 1116, 890, 385, 351, 274, 154, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Saint>(?X) :- <http://dbpedia.org/ontology/majorShrine>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28377 FROM "__triples" t0 WHERE t0.p = 28363 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28377);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Saint>(?X) :- <http://dbpedia.org/ontology/beatifiedPlace>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28377 FROM "__triples" t0 WHERE t0.p = 27624 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28377);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Saint>(?X) :- <http://dbpedia.org/ontology/suppreddedDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28377 FROM "__triples" t0 WHERE t0.p = 27603 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28377);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Saint>(?X1) :- <http://dbpedia.org/ontology/saint>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28377 FROM "__triples" t0 WHERE t0.p = 28376 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28377);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Saint>(?X) :- <http://dbpedia.org/ontology/beatifiedDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28377 FROM "__triples" t0 WHERE t0.p = 27994 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28377);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Saint>(?X) :- <http://dbpedia.org/ontology/canonizedBy>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28377 FROM "__triples" t0 WHERE t0.p = 27639 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28377);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Saint>(?X) :- <http://dbpedia.org/ontology/canonizedPlace>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28377 FROM "__triples" t0 WHERE t0.p = 26868 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28377);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Saint>(?X) :- <http://dbpedia.org/ontology/veneratedIn>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28377 FROM "__triples" t0 WHERE t0.p = 26756 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28377);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Saint>(?X) :- <http://dbpedia.org/ontology/canonizedDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28377 FROM "__triples" t0 WHERE t0.p = 27377 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28377);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Saint>(?X) :- <http://dbpedia.org/ontology/beatifiedBy>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28377 FROM "__triples" t0 WHERE t0.p = 26834 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28377);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Saint>(?X) :- <http://dbpedia.org/ontology/feastDay>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28377 FROM "__triples" t0 WHERE t0.p = 26636 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28377);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Saint_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Saint_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28377;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Saint_delta_old" ON "dbrdf_Saint_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Saint_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Saint$delta_new>(?Y) :- <http://dbpedia.org/ontology/Saint$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Saint_delta_new"(s) SELECT t1.o FROM "dbrdf_Saint_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28377);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28377 FROM "dbrdf_Saint_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Saint_delta_old";
        INSERT INTO "dbrdf_Saint_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Saint_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Saint_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1871
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_acceleration_delta_old0"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_acceleration_delta_old0"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28378;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_acceleration_delta_old0" ON "dbrdf_acceleration_delta_old0"(s, o); CREATE INDEX "IDX_1_dbrdf_acceleration_delta_old0" ON "dbrdf_acceleration_delta_old0"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_acceleration_delta_new0"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/AutomobileEngine/acceleration$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/AutomobileEngine/acceleration$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_acceleration_delta_new0"(s, o) SELECT t1.o, t0.o FROM "dbrdf_acceleration_delta_old0" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28378 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/AutomobileEngine/acceleration$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/AutomobileEngine/acceleration$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_acceleration_delta_new0"(s, o) SELECT t0.s, t1.o FROM "dbrdf_acceleration_delta_old0" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28378 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28378, t0.o FROM "dbrdf_acceleration_delta_new0" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_acceleration_delta_old0";
        INSERT INTO "dbrdf_acceleration_delta_old0"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_acceleration_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_acceleration_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1872
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfIslands_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_numberOfIslands_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28379;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_numberOfIslands_delta_old" ON "dbrdf_numberOfIslands_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_numberOfIslands_delta_old" ON "dbrdf_numberOfIslands_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfIslands_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/numberOfIslands$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/numberOfIslands$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_numberOfIslands_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_numberOfIslands_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28379 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/numberOfIslands$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/numberOfIslands$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_numberOfIslands_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_numberOfIslands_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28379 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28379, t0.o FROM "dbrdf_numberOfIslands_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_numberOfIslands_delta_old";
        INSERT INTO "dbrdf_numberOfIslands_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_numberOfIslands_delta_new" t0;
        TRUNCATE TABLE "dbrdf_numberOfIslands_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1873
    ---- DEPENDS ON: 1872, 1750, 1711, 1643, 1583, 1524, 1427, 1387, 1376, 1248, 1230, 1217, 1048, 1032, 836, 810, 805, 796, 776, 714, 587, 454, 360, 338, 308, 297, 279, 140, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/capitalPlace>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 28253 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X1) :- <http://dbpedia.org/ontology/leftChild>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28380 FROM "__triples" t0 WHERE t0.p = 28212 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/managementRegion>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 28137 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/governmentElevation>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 28075 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/highestState>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 28016 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/material>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27917 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/governmentPosition>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27866 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/capitalElevation>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27737 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X1) :- <http://dbpedia.org/ontology/island>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27719 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/lowestState>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27706 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/capitalRegion>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27519 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/capitalDistrict>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27535 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/leftChild>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 28212 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/rightChild>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27297 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/governmentMountain>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27292 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/capitalCountry>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27283 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/majorIsland>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27261 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X1) :- <http://dbpedia.org/ontology/rightChild>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27297 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/border>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27198 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/capitalPosition>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27323 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/government>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27071 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/numberOfIslands>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 28379 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/lowestRegion>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27877 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X1) :- <http://dbpedia.org/ontology/majorIsland>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27261 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/governmentRegion>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 26937 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/managementCountry>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 26790 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/governmentCountry>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 26843 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/highestRegion>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 26821 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/capitalMountain>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 26779 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/building>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 26761 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/governmentPlace>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 26622 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28380);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Island_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Island_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28380;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Island_delta_old" ON "dbrdf_Island_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Island_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Island$delta_new>(?Y) :- <http://dbpedia.org/ontology/Island$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Island_delta_new"(s) SELECT t1.o FROM "dbrdf_Island_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28380);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "dbrdf_Island_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Island_delta_old";
        INSERT INTO "dbrdf_Island_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Island_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Island_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1874
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_cmykCoordinateYellow_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_cmykCoordinateYellow_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28381;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_cmykCoordinateYellow_delta_old" ON "dbrdf_cmykCoordinateYellow_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_cmykCoordinateYellow_delta_old" ON "dbrdf_cmykCoordinateYellow_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_cmykCoordinateYellow_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/cmykCoordinateYellow$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/cmykCoordinateYellow$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_cmykCoordinateYellow_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_cmykCoordinateYellow_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28381 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/cmykCoordinateYellow$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/cmykCoordinateYellow$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_cmykCoordinateYellow_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_cmykCoordinateYellow_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28381 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28381, t0.o FROM "dbrdf_cmykCoordinateYellow_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_cmykCoordinateYellow_delta_old";
        INSERT INTO "dbrdf_cmykCoordinateYellow_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_cmykCoordinateYellow_delta_new" t0;
        TRUNCATE TABLE "dbrdf_cmykCoordinateYellow_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1875
    ---- DEPENDS ON: 1874, 1654, 1529, 1520, 1335, 1007, 928, 787, 611, 509, 469, 215, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Colour>(?X) :- <http://dbpedia.org/ontology/cmykCoordinateYellow>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28382 FROM "__triples" t0 WHERE t0.p = 28381 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28382);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Colour>(?X) :- <http://dbpedia.org/ontology/rgbCoordinateGreen>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28382 FROM "__triples" t0 WHERE t0.p = 28150 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28382);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Colour>(?X) :- <http://dbpedia.org/ontology/hsvCoordinateValue>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28382 FROM "__triples" t0 WHERE t0.p = 28021 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28382);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Colour>(?X) :- <http://dbpedia.org/ontology/cmykCoordinateBlack>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28382 FROM "__triples" t0 WHERE t0.p = 27825 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28382);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Colour>(?X) :- <http://dbpedia.org/ontology/hsvCoordinateSaturation>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28382 FROM "__triples" t0 WHERE t0.p = 27494 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28382);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Colour>(?X) :- <http://dbpedia.org/ontology/rgbCoordinateBlue>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28382 FROM "__triples" t0 WHERE t0.p = 27415 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28382);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Colour>(?X) :- <http://dbpedia.org/ontology/cmykCoordinateCyanic>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28382 FROM "__triples" t0 WHERE t0.p = 26992 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28382);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Colour>(?X1) :- <http://dbpedia.org/ontology/colour>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28382 FROM "__triples" t0 WHERE t0.p = 26952 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28382);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Colour>(?X) :- <http://dbpedia.org/ontology/cmykCoordinateMagenta>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28382 FROM "__triples" t0 WHERE t0.p = 27273 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28382);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Colour>(?X) :- <http://dbpedia.org/ontology/hsvCoordinateHue>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28382 FROM "__triples" t0 WHERE t0.p = 26697 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28382);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Colour>(?X) :- <http://dbpedia.org/ontology/rgbCoordinateRed>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28382 FROM "__triples" t0 WHERE t0.p = 27095 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28382);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Colour>(?X) :- <http://dbpedia.org/ontology/wavelength>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28382 FROM "__triples" t0 WHERE t0.p = 28012 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28382);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Colour_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Colour_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28382;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Colour_delta_old" ON "dbrdf_Colour_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Colour_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Colour$delta_new>(?Y) :- <http://dbpedia.org/ontology/Colour$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Colour_delta_new"(s) SELECT t1.o FROM "dbrdf_Colour_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28382);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28382 FROM "dbrdf_Colour_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Colour_delta_old";
        INSERT INTO "dbrdf_Colour_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Colour_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Colour_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1876
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_apparentMagnitude_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_apparentMagnitude_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28383;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_apparentMagnitude_delta_old" ON "dbrdf_apparentMagnitude_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_apparentMagnitude_delta_old" ON "dbrdf_apparentMagnitude_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_apparentMagnitude_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/apparentMagnitude$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/apparentMagnitude$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_apparentMagnitude_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_apparentMagnitude_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28383 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/apparentMagnitude$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/apparentMagnitude$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_apparentMagnitude_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_apparentMagnitude_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28383 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28383, t0.o FROM "dbrdf_apparentMagnitude_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_apparentMagnitude_delta_old";
        INSERT INTO "dbrdf_apparentMagnitude_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_apparentMagnitude_delta_new" t0;
        TRUNCATE TABLE "dbrdf_apparentMagnitude_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1877
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_genomeDB_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_genomeDB_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28384;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_genomeDB_delta_old" ON "dbrdf_genomeDB_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_genomeDB_delta_old" ON "dbrdf_genomeDB_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_genomeDB_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/genomeDB$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/genomeDB$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_genomeDB_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_genomeDB_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28384 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/genomeDB$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/genomeDB$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_genomeDB_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_genomeDB_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28384 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28384, t0.o FROM "dbrdf_genomeDB_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_genomeDB_delta_old";
        INSERT INTO "dbrdf_genomeDB_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_genomeDB_delta_new" t0;
        TRUNCATE TABLE "dbrdf_genomeDB_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1878
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_elo_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_elo_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28385;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_elo_delta_old" ON "dbrdf_elo_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_elo_delta_old" ON "dbrdf_elo_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_elo_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/elo$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/elo$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_elo_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_elo_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28385 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/elo$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/elo$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_elo_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_elo_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28385 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28385, t0.o FROM "dbrdf_elo_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_elo_delta_old";
        INSERT INTO "dbrdf_elo_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_elo_delta_new" t0;
        TRUNCATE TABLE "dbrdf_elo_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1879
    ---- DEPENDS ON: 1878, 1166, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/ChessPlayer>(?X) :- <http://dbpedia.org/ontology/elo>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28386 FROM "__triples" t0 WHERE t0.p = 28385 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28386);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/ChessPlayer>(?X) :- <http://dbpedia.org/ontology/eloRecord>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28386 FROM "__triples" t0 WHERE t0.p = 27653 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28386);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_ChessPlayer_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_ChessPlayer_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28386;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_ChessPlayer_delta_old" ON "dbrdf_ChessPlayer_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_ChessPlayer_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/ChessPlayer$delta_new>(?Y) :- <http://dbpedia.org/ontology/ChessPlayer$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_ChessPlayer_delta_new"(s) SELECT t1.o FROM "dbrdf_ChessPlayer_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28386);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28386 FROM "dbrdf_ChessPlayer_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_ChessPlayer_delta_old";
        INSERT INTO "dbrdf_ChessPlayer_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_ChessPlayer_delta_new" t0;
        TRUNCATE TABLE "dbrdf_ChessPlayer_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1880
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfLaunches_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_numberOfLaunches_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28387;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_numberOfLaunches_delta_old" ON "dbrdf_numberOfLaunches_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_numberOfLaunches_delta_old" ON "dbrdf_numberOfLaunches_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfLaunches_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/numberOfLaunches$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/numberOfLaunches$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_numberOfLaunches_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_numberOfLaunches_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28387 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/numberOfLaunches$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/numberOfLaunches$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_numberOfLaunches_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_numberOfLaunches_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28387 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28387, t0.o FROM "dbrdf_numberOfLaunches_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_numberOfLaunches_delta_old";
        INSERT INTO "dbrdf_numberOfLaunches_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_numberOfLaunches_delta_new" t0;
        TRUNCATE TABLE "dbrdf_numberOfLaunches_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1881
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfLanes_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_numberOfLanes_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28388;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_numberOfLanes_delta_old" ON "dbrdf_numberOfLanes_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_numberOfLanes_delta_old" ON "dbrdf_numberOfLanes_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfLanes_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/numberOfLanes$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/numberOfLanes$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_numberOfLanes_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_numberOfLanes_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28388 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/numberOfLanes$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/numberOfLanes$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_numberOfLanes_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_numberOfLanes_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28388 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28388, t0.o FROM "dbrdf_numberOfLanes_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_numberOfLanes_delta_old";
        INSERT INTO "dbrdf_numberOfLanes_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_numberOfLanes_delta_new" t0;
        TRUNCATE TABLE "dbrdf_numberOfLanes_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1882
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_watershed_delta_old0"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_watershed_delta_old0"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28389;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_watershed_delta_old0" ON "dbrdf_watershed_delta_old0"(s, o); CREATE INDEX "IDX_1_dbrdf_watershed_delta_old0" ON "dbrdf_watershed_delta_old0"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_watershed_delta_new0"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/watershed$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/watershed$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_watershed_delta_new0"(s, o) SELECT t1.o, t0.o FROM "dbrdf_watershed_delta_old0" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28389 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/watershed$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/watershed$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_watershed_delta_new0"(s, o) SELECT t0.s, t1.o FROM "dbrdf_watershed_delta_old0" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28389 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28389, t0.o FROM "dbrdf_watershed_delta_new0" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_watershed_delta_old0";
        INSERT INTO "dbrdf_watershed_delta_old0"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_watershed_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_watershed_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1883
    ---- DEPENDS ON: 1882, 1714, 1014, 1779, 668, 472, 260, 44, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/watershed>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28390 FROM "__triples" t0 WHERE t0.p = 28389 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28390);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/Canal>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28390 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28216 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28390);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/Stream/maximumDischarge>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28390 FROM "__triples" t0 WHERE t0.p = 27501 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28390);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/River>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28390 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28284 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28390);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/Stream/dischargeAverage>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28390 FROM "__triples" t0 WHERE t0.p = 27152 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28390);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/Stream/discharge>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28390 FROM "__triples" t0 WHERE t0.p = 26955 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28390);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/Stream/minimumDischarge>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28390 FROM "__triples" t0 WHERE t0.p = 26742 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28390);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/Stream/watershed>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28390 FROM "__triples" t0 WHERE t0.p = 26525 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28390);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Stream_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Stream_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28390;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Stream_delta_old" ON "dbrdf_Stream_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Stream_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Stream$delta_new>(?Y) :- <http://dbpedia.org/ontology/Stream$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Stream_delta_new"(s) SELECT t1.o FROM "dbrdf_Stream_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28390);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28390 FROM "dbrdf_Stream_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Stream_delta_old";
        INSERT INTO "dbrdf_Stream_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Stream_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Stream_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1884
    ---- DEPENDS ON: 1650, 1661, 1883, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/BodyOfWater>(?X1) :- <http://dbpedia.org/ontology/riverMouth>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28392 FROM "__triples" t0 WHERE t0.p = 28146 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28392);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/BodyOfWater>(?X) :- <http://dbpedia.org/ontology/Stream>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28392 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28390 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28392);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/BodyOfWater>(?X) :- <http://dbpedia.org/ontology/Lake>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28392 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28158 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28392);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_BodyOfWater_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_BodyOfWater_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28391;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_BodyOfWater_delta_old" ON "dbrdf_BodyOfWater_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_BodyOfWater_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_BodyOfWater_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_BodyOfWater_delta_old0"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28392;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_BodyOfWater_delta_old0" ON "dbrdf_BodyOfWater_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_BodyOfWater_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://schema.org/BodyOfWater$delta_new>(?X) :- <http://dbpedia.org/ontology/BodyOfWater$delta_old>(?X) .
        INSERT INTO "dbrdf_BodyOfWater_delta_new"(s) SELECT t0.s FROM "dbrdf_BodyOfWater_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28391);


        -- <http://schema.org/BodyOfWater$delta_new>(?Y) :- <http://schema.org/BodyOfWater$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_BodyOfWater_delta_new"(s) SELECT t1.o FROM "dbrdf_BodyOfWater_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28391);


        -- <http://dbpedia.org/ontology/BodyOfWater$delta_new>(?X) :- <http://schema.org/BodyOfWater$delta_old>(?X) .
        INSERT INTO "dbrdf_BodyOfWater_delta_new0"(s) SELECT t0.s FROM "dbrdf_BodyOfWater_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28392);


        -- <http://dbpedia.org/ontology/BodyOfWater$delta_new>(?Y) :- <http://dbpedia.org/ontology/BodyOfWater$delta_old>(?X0), owl:sameAs(?X0,?Y) .
