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

    -- [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, 28261 FROM "__triples" t0 WHERE t0.p = 27089 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28261);
    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, 28261 FROM "__triples" t0 WHERE t0.p = 27042 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28261);
    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, 28261 FROM "__triples" t0 WHERE t0.p = 26946 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28261);
    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, 28261 FROM "__triples" t0 WHERE t0.p = 26662 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28261);
    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, 28261 FROM "__triples" t0 WHERE t0.p = 27792 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28261);
    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, 28261 FROM "__triples" t0 WHERE t0.p = 27369 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28261);
    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, 28261 FROM "__triples" t0 WHERE t0.p = 27668 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28261);
    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, 28261 FROM "__triples" t0 WHERE t0.p = 28255 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28261);
    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 = 28261;
    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 = 28261);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28261 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 1763
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_twinCity_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_twinCity_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28262;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_twinCity_delta_old" ON "dbrdf_twinCity_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_twinCity_delta_old" ON "dbrdf_twinCity_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_twinCity_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/twinCity$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/twinCity$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_twinCity_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_twinCity_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 = 28262 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/twinCity$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/twinCity$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_twinCity_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_twinCity_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 = 28262 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28262, t0.o FROM "dbrdf_twinCity_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_twinCity_delta_old";
        INSERT INTO "dbrdf_twinCity_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_twinCity_delta_new" t0;
        TRUNCATE TABLE "dbrdf_twinCity_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1764
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_floorCount_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_floorCount_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28263;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_floorCount_delta_old" ON "dbrdf_floorCount_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_floorCount_delta_old" ON "dbrdf_floorCount_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_floorCount_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/floorCount$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/floorCount$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_floorCount_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_floorCount_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 = 28263 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/floorCount$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/floorCount$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_floorCount_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_floorCount_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 = 28263 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28263, t0.o FROM "dbrdf_floorCount_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_floorCount_delta_old";
        INSERT INTO "dbrdf_floorCount_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_floorCount_delta_new" t0;
        TRUNCATE TABLE "dbrdf_floorCount_delta_new";

    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_goldenRaspberryAward_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_goldenRaspberryAward_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_goldenRaspberryAward_delta_old" ON "dbrdf_goldenRaspberryAward_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_goldenRaspberryAward_delta_old" ON "dbrdf_goldenRaspberryAward_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_goldenRaspberryAward_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/goldenRaspberryAward$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/goldenRaspberryAward$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_goldenRaspberryAward_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_goldenRaspberryAward_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/goldenRaspberryAward$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/goldenRaspberryAward$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_goldenRaspberryAward_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_goldenRaspberryAward_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_goldenRaspberryAward_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_goldenRaspberryAward_delta_old";
        INSERT INTO "dbrdf_goldenRaspberryAward_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_goldenRaspberryAward_delta_new" t0;
        TRUNCATE TABLE "dbrdf_goldenRaspberryAward_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1766
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_serviceNumber_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_serviceNumber_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_serviceNumber_delta_old" ON "dbrdf_serviceNumber_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_serviceNumber_delta_old" ON "dbrdf_serviceNumber_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_serviceNumber_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/serviceNumber$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/serviceNumber$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_serviceNumber_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_serviceNumber_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/serviceNumber$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/serviceNumber$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_serviceNumber_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_serviceNumber_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_serviceNumber_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_serviceNumber_delta_old";
        INSERT INTO "dbrdf_serviceNumber_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_serviceNumber_delta_new" t0;
        TRUNCATE TABLE "dbrdf_serviceNumber_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_areaTotal_delta_old0"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_areaTotal_delta_old0"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28266;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_areaTotal_delta_old0" ON "dbrdf_areaTotal_delta_old0"(s, o); CREATE INDEX "IDX_1_dbrdf_areaTotal_delta_old0" ON "dbrdf_areaTotal_delta_old0"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_areaTotal_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/PopulatedPlace/areaTotal$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/PopulatedPlace/areaTotal$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_areaTotal_delta_new0"(s, o) SELECT t1.o, t0.o FROM "dbrdf_areaTotal_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 = 28266 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/PopulatedPlace/areaTotal$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/PopulatedPlace/areaTotal$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_areaTotal_delta_new0"(s, o) SELECT t0.s, t1.o FROM "dbrdf_areaTotal_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 = 28266 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28266, t0.o FROM "dbrdf_areaTotal_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_areaTotal_delta_old0";
        INSERT INTO "dbrdf_areaTotal_delta_old0"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_areaTotal_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_areaTotal_delta_new0";

    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_numberOfVineyards_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_numberOfVineyards_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28267;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_numberOfVineyards_delta_old" ON "dbrdf_numberOfVineyards_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_numberOfVineyards_delta_old" ON "dbrdf_numberOfVineyards_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfVineyards_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/numberOfVineyards$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/numberOfVineyards$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_numberOfVineyards_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_numberOfVineyards_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 = 28267 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/numberOfVineyards$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/numberOfVineyards$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_numberOfVineyards_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_numberOfVineyards_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 = 28267 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28267, t0.o FROM "dbrdf_numberOfVineyards_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_numberOfVineyards_delta_old";
        INSERT INTO "dbrdf_numberOfVineyards_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_numberOfVineyards_delta_new" t0;
        TRUNCATE TABLE "dbrdf_numberOfVineyards_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_cost_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_cost_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28268;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_cost_delta_old" ON "dbrdf_cost_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_cost_delta_old" ON "dbrdf_cost_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_cost_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/cost$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/cost$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_cost_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_cost_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 = 28268 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/cost$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/cost$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_cost_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_cost_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 = 28268 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28268, t0.o FROM "dbrdf_cost_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_cost_delta_old";
        INSERT INTO "dbrdf_cost_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_cost_delta_new" t0;
        TRUNCATE TABLE "dbrdf_cost_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_currency_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_currency_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_currency_delta_old" ON "dbrdf_currency_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_currency_delta_old" ON "dbrdf_currency_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_currency_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/currency$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/currency$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_currency_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_currency_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/currency$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/currency$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_currency_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_currency_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_currency_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_currency_delta_old";
        INSERT INTO "dbrdf_currency_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_currency_delta_new" t0;
        TRUNCATE TABLE "dbrdf_currency_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1771
    ---- DEPENDS ON: 1770, 1167, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Currency>(?X1) :- <http://dbpedia.org/ontology/currency>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28270 FROM "__triples" t0 WHERE t0.p = 28269 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o 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/Currency>(?X) :- <http://dbpedia.org/ontology/usingCountry>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28270 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 = 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_Currency_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Currency_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_Currency_delta_old" ON "dbrdf_Currency_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Currency_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/Currency$delta_new>(?Y) :- <http://dbpedia.org/ontology/Currency$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Currency_delta_new"(s) SELECT t1.o FROM "dbrdf_Currency_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_Currency_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_Currency_delta_old";
        INSERT INTO "dbrdf_Currency_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Currency_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Currency_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_board_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_board_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_board_delta_old" ON "dbrdf_board_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_board_delta_old" ON "dbrdf_board_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_board_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/board$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/board$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_board_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_board_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/board$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/board$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_board_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_board_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_board_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_board_delta_old";
        INSERT INTO "dbrdf_board_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_board_delta_new" t0;
        TRUNCATE TABLE "dbrdf_board_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_wineProduced_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_wineProduced_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_wineProduced_delta_old" ON "dbrdf_wineProduced_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_wineProduced_delta_old" ON "dbrdf_wineProduced_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_wineProduced_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/wineProduced$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/wineProduced$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_wineProduced_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_wineProduced_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/wineProduced$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/wineProduced$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_wineProduced_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_wineProduced_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_wineProduced_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_wineProduced_delta_old";
        INSERT INTO "dbrdf_wineProduced_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_wineProduced_delta_new" t0;
        TRUNCATE TABLE "dbrdf_wineProduced_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1774
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_nearestCity_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_nearestCity_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_nearestCity_delta_old" ON "dbrdf_nearestCity_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_nearestCity_delta_old" ON "dbrdf_nearestCity_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_nearestCity_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/nearestCity$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/nearestCity$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_nearestCity_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_nearestCity_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/nearestCity$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/nearestCity$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_nearestCity_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_nearestCity_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_nearestCity_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_nearestCity_delta_old";
        INSERT INTO "dbrdf_nearestCity_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_nearestCity_delta_new" t0;
        TRUNCATE TABLE "dbrdf_nearestCity_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_maximumBoatLength_delta_old0"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_maximumBoatLength_delta_old0"(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_maximumBoatLength_delta_old0" ON "dbrdf_maximumBoatLength_delta_old0"(s, o); CREATE INDEX "IDX_1_dbrdf_maximumBoatLength_delta_old0" ON "dbrdf_maximumBoatLength_delta_old0"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_maximumBoatLength_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/Canal/maximumBoatLength$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/Canal/maximumBoatLength$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_maximumBoatLength_delta_new0"(s, o) SELECT t1.o, t0.o FROM "dbrdf_maximumBoatLength_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 = 28274 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/Canal/maximumBoatLength$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/Canal/maximumBoatLength$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_maximumBoatLength_delta_new0"(s, o) SELECT t0.s, t1.o FROM "dbrdf_maximumBoatLength_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 = 28274 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28274, t0.o FROM "dbrdf_maximumBoatLength_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_maximumBoatLength_delta_old0";
        INSERT INTO "dbrdf_maximumBoatLength_delta_old0"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_maximumBoatLength_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_maximumBoatLength_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1776
    ---- DEPENDS ON: 1775, 1744, 1673, 1630, 1463, 1429, 1313, 1308, 1202, 1134, 1132, 961, 892, 770, 657, 647, 572, 402, 335, 274, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Canal>(?X) :- <http://dbpedia.org/ontology/Canal/originalMaximumBoatLength>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28276 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 = 28276);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Canal>(?X) :- <http://dbpedia.org/ontology/endPoint>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28276 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 = 28276);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

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

    -- [Rule] <http://dbpedia.org/ontology/Canal>(?X) :- <http://dbpedia.org/ontology/dateAct>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28276 FROM "__triples" t0 WHERE t0.p = 27054 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28276);
    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_Canal_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Canal_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28275;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Canal_delta_old" ON "dbrdf_Canal_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Canal_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Canal_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Canal_delta_old0"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28276;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Canal_delta_old0" ON "dbrdf_Canal_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Canal_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/Canal$delta_new>(?X) :- <http://dbpedia.org/ontology/Canal$delta_old>(?X) .
        INSERT INTO "dbrdf_Canal_delta_new"(s) SELECT t0.s FROM "dbrdf_Canal_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28275);


        -- <http://schema.org/Canal$delta_new>(?Y) :- <http://schema.org/Canal$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Canal_delta_new"(s) SELECT t1.o FROM "dbrdf_Canal_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 = 28275);


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


        -- <http://dbpedia.org/ontology/Canal$delta_new>(?Y) :- <http://dbpedia.org/ontology/Canal$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Canal_delta_new0"(s) SELECT t1.o FROM "dbrdf_Canal_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 = 28276);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28275 FROM "dbrdf_Canal_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_Canal_delta_old";
        INSERT INTO "dbrdf_Canal_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Canal_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Canal_delta_new";

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28276 FROM "dbrdf_Canal_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_Canal_delta_old0";
        INSERT INTO "dbrdf_Canal_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Canal_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Canal_delta_new0";

    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_ageRange_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_ageRange_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_ageRange_delta_old" ON "dbrdf_ageRange_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_ageRange_delta_old" ON "dbrdf_ageRange_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_ageRange_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/ageRange$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/ageRange$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_ageRange_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_ageRange_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/ageRange$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/ageRange$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_ageRange_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_ageRange_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_ageRange_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_ageRange_delta_old";
        INSERT INTO "dbrdf_ageRange_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_ageRange_delta_new" t0;
        TRUNCATE TABLE "dbrdf_ageRange_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_sex_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_sex_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28278;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_sex_delta_old" ON "dbrdf_sex_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_sex_delta_old" ON "dbrdf_sex_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_sex_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/sex$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/sex$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_sex_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_sex_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 = 28278 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/sex$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/sex$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_sex_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_sex_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 = 28278 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28278, t0.o FROM "dbrdf_sex_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_sex_delta_old";
        INSERT INTO "dbrdf_sex_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_sex_delta_new" t0;
        TRUNCATE TABLE "dbrdf_sex_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1779
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_parentCompany_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_parentCompany_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_parentCompany_delta_old" ON "dbrdf_parentCompany_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_parentCompany_delta_old" ON "dbrdf_parentCompany_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_parentCompany_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/parentCompany$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/parentCompany$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_parentCompany_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_parentCompany_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/parentCompany$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/parentCompany$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_parentCompany_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_parentCompany_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_parentCompany_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_parentCompany_delta_old";
        INSERT INTO "dbrdf_parentCompany_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_parentCompany_delta_new" t0;
        TRUNCATE TABLE "dbrdf_parentCompany_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_capacity_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_capacity_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_capacity_delta_old" ON "dbrdf_capacity_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_capacity_delta_old" ON "dbrdf_capacity_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_capacity_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/capacity$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/capacity$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_capacity_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_capacity_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/capacity$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/capacity$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_capacity_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_capacity_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_capacity_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_capacity_delta_old";
        INSERT INTO "dbrdf_capacity_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_capacity_delta_new" t0;
        TRUNCATE TABLE "dbrdf_capacity_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_nssdcId_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_nssdcId_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_nssdcId_delta_old" ON "dbrdf_nssdcId_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_nssdcId_delta_old" ON "dbrdf_nssdcId_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_nssdcId_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/nssdcId$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/nssdcId$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_nssdcId_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_nssdcId_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/nssdcId$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/nssdcId$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_nssdcId_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_nssdcId_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_nssdcId_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_nssdcId_delta_old";
        INSERT INTO "dbrdf_nssdcId_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_nssdcId_delta_new" t0;
        TRUNCATE TABLE "dbrdf_nssdcId_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1782
    ---- DEPENDS ON: 1781, 883, 134, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

    -- [Rule] <http://dbpedia.org/ontology/SpaceStation>(?X1) :- <http://dbpedia.org/ontology/targetSpaceStation>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28282 FROM "__triples" t0 WHERE t0.p = 27367 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28282);
    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_SpaceStation_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SpaceStation_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28282;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SpaceStation_delta_old" ON "dbrdf_SpaceStation_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SpaceStation_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/SpaceStation$delta_new>(?Y) :- <http://dbpedia.org/ontology/SpaceStation$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_SpaceStation_delta_new"(s) SELECT t1.o FROM "dbrdf_SpaceStation_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 = 28282);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28282 FROM "dbrdf_SpaceStation_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_SpaceStation_delta_old";
        INSERT INTO "dbrdf_SpaceStation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SpaceStation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SpaceStation_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_mouthCountry_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_mouthCountry_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28283;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_mouthCountry_delta_old" ON "dbrdf_mouthCountry_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_mouthCountry_delta_old" ON "dbrdf_mouthCountry_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_mouthCountry_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/mouthCountry$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/mouthCountry$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_mouthCountry_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_mouthCountry_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 = 28283 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/mouthCountry$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/mouthCountry$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_mouthCountry_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_mouthCountry_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 = 28283 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28283, t0.o FROM "dbrdf_mouthCountry_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_mouthCountry_delta_old";
        INSERT INTO "dbrdf_mouthCountry_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_mouthCountry_delta_new" t0;
        TRUNCATE TABLE "dbrdf_mouthCountry_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1784
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_firstPublicationYear_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_firstPublicationYear_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28284;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_firstPublicationYear_delta_old" ON "dbrdf_firstPublicationYear_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_firstPublicationYear_delta_old" ON "dbrdf_firstPublicationYear_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_firstPublicationYear_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/firstPublicationYear$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/firstPublicationYear$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_firstPublicationYear_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_firstPublicationYear_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 = 28284 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/firstPublicationYear$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/firstPublicationYear$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_firstPublicationYear_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_firstPublicationYear_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 = 28284 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28284, t0.o FROM "dbrdf_firstPublicationYear_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_firstPublicationYear_delta_old";
        INSERT INTO "dbrdf_firstPublicationYear_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_firstPublicationYear_delta_new" t0;
        TRUNCATE TABLE "dbrdf_firstPublicationYear_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_AmericanFootballTeam_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_AmericanFootballTeam_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28285;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_AmericanFootballTeam_delta_old" ON "dbrdf_AmericanFootballTeam_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_AmericanFootballTeam_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/AmericanFootballTeam$delta_new>(?Y) :- <http://dbpedia.org/ontology/AmericanFootballTeam$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_AmericanFootballTeam_delta_new"(s) SELECT t1.o FROM "dbrdf_AmericanFootballTeam_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 = 28285);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28285 FROM "dbrdf_AmericanFootballTeam_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_AmericanFootballTeam_delta_old";
        INSERT INTO "dbrdf_AmericanFootballTeam_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_AmericanFootballTeam_delta_new" t0;
        TRUNCATE TABLE "dbrdf_AmericanFootballTeam_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_Ginkgo_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Ginkgo_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28286;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Ginkgo_delta_old" ON "dbrdf_Ginkgo_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Ginkgo_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/Ginkgo$delta_new>(?Y) :- <http://dbpedia.org/ontology/Ginkgo$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Ginkgo_delta_new"(s) SELECT t1.o FROM "dbrdf_Ginkgo_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 = 28286);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28286 FROM "dbrdf_Ginkgo_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_Ginkgo_delta_old";
        INSERT INTO "dbrdf_Ginkgo_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Ginkgo_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Ginkgo_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_gaelicName_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_gaelicName_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_gaelicName_delta_old" ON "dbrdf_gaelicName_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_gaelicName_delta_old" ON "dbrdf_gaelicName_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_gaelicName_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/gaelicName$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/gaelicName$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_gaelicName_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_gaelicName_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/gaelicName$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/gaelicName$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_gaelicName_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_gaelicName_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_gaelicName_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_gaelicName_delta_old";
        INSERT INTO "dbrdf_gaelicName_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_gaelicName_delta_new" t0;
        TRUNCATE TABLE "dbrdf_gaelicName_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_officialOpenedBy_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_officialOpenedBy_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_officialOpenedBy_delta_old" ON "dbrdf_officialOpenedBy_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_officialOpenedBy_delta_old" ON "dbrdf_officialOpenedBy_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_officialOpenedBy_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/officialOpenedBy$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/officialOpenedBy$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_officialOpenedBy_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_officialOpenedBy_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/officialOpenedBy$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/officialOpenedBy$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_officialOpenedBy_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_officialOpenedBy_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_officialOpenedBy_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_officialOpenedBy_delta_old";
        INSERT INTO "dbrdf_officialOpenedBy_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_officialOpenedBy_delta_new" t0;
        TRUNCATE TABLE "dbrdf_officialOpenedBy_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1789
    ---- DEPENDS ON: 1788, 1457, 1381, 1112, 743, 287, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Olympics>(?X) :- <http://dbpedia.org/ontology/officialOpenedBy>(?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/Olympics>(?X) :- <http://dbpedia.org/ontology/torchBearer>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28289 FROM "__triples" t0 WHERE t0.p = 27871 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/Olympics>(?X) :- <http://dbpedia.org/ontology/olympicOathSwornByJudge>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28289 FROM "__triples" t0 WHERE t0.p = 27598 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/Olympics>(?X) :- <http://dbpedia.org/ontology/olympicOathSwornByAthlete>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28289 FROM "__triples" t0 WHERE t0.p = 27226 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/Olympics>(?X) :- <http://dbpedia.org/ontology/numberOfParticipatingAthletes>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28289 FROM "__triples" t0 WHERE t0.p = 27947 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/Olympics>(?X) :- <http://dbpedia.org/ontology/numberOfParticipatingNations>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28289 FROM "__triples" t0 WHERE t0.p = 26769 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_Olympics_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Olympics_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_Olympics_delta_old" ON "dbrdf_Olympics_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Olympics_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/Olympics$delta_new>(?Y) :- <http://dbpedia.org/ontology/Olympics$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Olympics_delta_new"(s) SELECT t1.o FROM "dbrdf_Olympics_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_Olympics_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_Olympics_delta_old";
        INSERT INTO "dbrdf_Olympics_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Olympics_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Olympics_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_numberOfOfficials_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_numberOfOfficials_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_numberOfOfficials_delta_old" ON "dbrdf_numberOfOfficials_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_numberOfOfficials_delta_old" ON "dbrdf_numberOfOfficials_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfOfficials_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/numberOfOfficials$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/numberOfOfficials$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_numberOfOfficials_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_numberOfOfficials_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/numberOfOfficials$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/numberOfOfficials$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_numberOfOfficials_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_numberOfOfficials_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_numberOfOfficials_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_numberOfOfficials_delta_old";
        INSERT INTO "dbrdf_numberOfOfficials_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_numberOfOfficials_delta_new" t0;
        TRUNCATE TABLE "dbrdf_numberOfOfficials_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1791
    ---- DEPENDS ON: 1790, 1664, 1601, 1594, 1385, 1352, 1331, 1136, 1028, 953, 905, 860, 230, 42, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

    -- [Rule] <http://dbpedia.org/ontology/OlympicResult>(?X) :- <http://dbpedia.org/ontology/games>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28291 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 = 28291);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

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

    -- [Rule] <http://dbpedia.org/ontology/OlympicResult>(?X) :- <http://dbpedia.org/ontology/oldcode>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28291 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 = 28291);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/OlympicResult>(?X) :- <http://dbpedia.org/ontology/nationalOlympicCommittee>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28291 FROM "__triples" t0 WHERE t0.p = 26524 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28291);
    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_OlympicResult_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_OlympicResult_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28291;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_OlympicResult_delta_old" ON "dbrdf_OlympicResult_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_OlympicResult_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/OlympicResult$delta_new>(?Y) :- <http://dbpedia.org/ontology/OlympicResult$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_OlympicResult_delta_new"(s) SELECT t1.o FROM "dbrdf_OlympicResult_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 = 28291);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28291 FROM "dbrdf_OlympicResult_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_OlympicResult_delta_old";
        INSERT INTO "dbrdf_OlympicResult_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_OlympicResult_delta_new" t0;
        TRUNCATE TABLE "dbrdf_OlympicResult_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1792
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_committeeInLegislature_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_committeeInLegislature_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_committeeInLegislature_delta_old" ON "dbrdf_committeeInLegislature_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_committeeInLegislature_delta_old" ON "dbrdf_committeeInLegislature_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_committeeInLegislature_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/committeeInLegislature$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/committeeInLegislature$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_committeeInLegislature_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_committeeInLegislature_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/committeeInLegislature$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/committeeInLegislature$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_committeeInLegislature_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_committeeInLegislature_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_committeeInLegislature_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_committeeInLegislature_delta_old";
        INSERT INTO "dbrdf_committeeInLegislature_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_committeeInLegislature_delta_new" t0;
        TRUNCATE TABLE "dbrdf_committeeInLegislature_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1793
    ---- DEPENDS ON: 1792, 1227, 1187, 958, 732, 720, 467, 367, 306, 238, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Legislature>(?X) :- <http://dbpedia.org/ontology/numberOfMembers>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28293 FROM "__triples" t0 WHERE t0.p = 27443 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28293);
    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_Legislature_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Legislature_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28293;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Legislature_delta_old" ON "dbrdf_Legislature_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Legislature_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/Legislature$delta_new>(?Y) :- <http://dbpedia.org/ontology/Legislature$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Legislature_delta_new"(s) SELECT t1.o FROM "dbrdf_Legislature_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 = 28293);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28293 FROM "dbrdf_Legislature_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_Legislature_delta_old";
        INSERT INTO "dbrdf_Legislature_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Legislature_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Legislature_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1794
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_serviceEndYear_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_serviceEndYear_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_serviceEndYear_delta_old" ON "dbrdf_serviceEndYear_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_serviceEndYear_delta_old" ON "dbrdf_serviceEndYear_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_serviceEndYear_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/serviceEndYear$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/serviceEndYear$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_serviceEndYear_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_serviceEndYear_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/serviceEndYear$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/serviceEndYear$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_serviceEndYear_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_serviceEndYear_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_serviceEndYear_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_serviceEndYear_delta_old";
        INSERT INTO "dbrdf_serviceEndYear_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_serviceEndYear_delta_new" t0;
        TRUNCATE TABLE "dbrdf_serviceEndYear_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_regionType_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_regionType_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28295;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_regionType_delta_old" ON "dbrdf_regionType_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_regionType_delta_old" ON "dbrdf_regionType_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_regionType_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/regionType$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/regionType$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_regionType_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_regionType_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 = 28295 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/regionType$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/regionType$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_regionType_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_regionType_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 = 28295 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28295, t0.o FROM "dbrdf_regionType_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_regionType_delta_old";
        INSERT INTO "dbrdf_regionType_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_regionType_delta_new" t0;
        TRUNCATE TABLE "dbrdf_regionType_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1796
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_appearancesInNationalTeam_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_appearancesInNationalTeam_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_appearancesInNationalTeam_delta_old" ON "dbrdf_appearancesInNationalTeam_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_appearancesInNationalTeam_delta_old" ON "dbrdf_appearancesInNationalTeam_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_appearancesInNationalTeam_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/appearancesInNationalTeam$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/appearancesInNationalTeam$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_appearancesInNationalTeam_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_appearancesInNationalTeam_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/appearancesInNationalTeam$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/appearancesInNationalTeam$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_appearancesInNationalTeam_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_appearancesInNationalTeam_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_appearancesInNationalTeam_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_appearancesInNationalTeam_delta_old";
        INSERT INTO "dbrdf_appearancesInNationalTeam_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_appearancesInNationalTeam_delta_new" t0;
        TRUNCATE TABLE "dbrdf_appearancesInNationalTeam_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1797
    ---- DEPENDS ON: 1713, 1157, 988, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Race>(?X) :- <http://dbpedia.org/ontology/recentWinner>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28297 FROM "__triples" t0 WHERE t0.p = 28210 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/Race>(?X) :- <http://dbpedia.org/ontology/mostWins>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28297 FROM "__triples" t0 WHERE t0.p = 27473 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/Race>(?X) :- <http://dbpedia.org/ontology/firstWinner>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28297 FROM "__triples" t0 WHERE t0.p = 27643 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_Race_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Race_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_Race_delta_old" ON "dbrdf_Race_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Race_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/Race$delta_new>(?Y) :- <http://dbpedia.org/ontology/Race$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Race_delta_new"(s) SELECT t1.o FROM "dbrdf_Race_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_Race_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_Race_delta_old";
        INSERT INTO "dbrdf_Race_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Race_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Race_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_apoapsis_delta_old2"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_apoapsis_delta_old2"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28298;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_apoapsis_delta_old2" ON "dbrdf_apoapsis_delta_old2"(s, o); CREATE INDEX "IDX_1_dbrdf_apoapsis_delta_old2" ON "dbrdf_apoapsis_delta_old2"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_apoapsis_delta_new2"(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/apoapsis$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/Planet/apoapsis$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_apoapsis_delta_new2"(s, o) SELECT t1.o, t0.o FROM "dbrdf_apoapsis_delta_old2" 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 = 28298 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/Planet/apoapsis$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/Planet/apoapsis$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_apoapsis_delta_new2"(s, o) SELECT t0.s, t1.o FROM "dbrdf_apoapsis_delta_old2" 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 = 28298 AND ex.o = t1.o);


        -- Propagate $delta_new

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

    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_topSpeed_delta_old0"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_topSpeed_delta_old0"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28299;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_topSpeed_delta_old0" ON "dbrdf_topSpeed_delta_old0"(s, o); CREATE INDEX "IDX_1_dbrdf_topSpeed_delta_old0" ON "dbrdf_topSpeed_delta_old0"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_topSpeed_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/topSpeed$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/AutomobileEngine/topSpeed$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_topSpeed_delta_new0"(s, o) SELECT t1.o, t0.o FROM "dbrdf_topSpeed_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 = 28299 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/AutomobileEngine/topSpeed$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/AutomobileEngine/topSpeed$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_topSpeed_delta_new0"(s, o) SELECT t0.s, t1.o FROM "dbrdf_topSpeed_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 = 28299 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28299, t0.o FROM "dbrdf_topSpeed_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_topSpeed_delta_old0";
        INSERT INTO "dbrdf_topSpeed_delta_old0"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_topSpeed_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_topSpeed_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1800
    ---- DEPENDS ON: 1517, 1160, 1069, 969, 739, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/FigureSkater>(?X) :- <http://dbpedia.org/ontology/currentPartner>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28300 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 = 28300);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/FigureSkater>(?X) :- <http://dbpedia.org/ontology/formerCoach>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28300 FROM "__triples" t0 WHERE t0.p = 28008 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28300);
    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_FigureSkater_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_FigureSkater_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28300;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_FigureSkater_delta_old" ON "dbrdf_FigureSkater_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_FigureSkater_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/FigureSkater$delta_new>(?Y) :- <http://dbpedia.org/ontology/FigureSkater$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_FigureSkater_delta_new"(s) SELECT t1.o FROM "dbrdf_FigureSkater_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 = 28300);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28300 FROM "dbrdf_FigureSkater_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_FigureSkater_delta_old";
        INSERT INTO "dbrdf_FigureSkater_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_FigureSkater_delta_new" t0;
        TRUNCATE TABLE "dbrdf_FigureSkater_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_omim_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_omim_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28301;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_omim_delta_old" ON "dbrdf_omim_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_omim_delta_old" ON "dbrdf_omim_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_omim_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/omim$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/omim$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_omim_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_omim_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 = 28301 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/omim$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/omim$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_omim_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_omim_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 = 28301 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28301, t0.o FROM "dbrdf_omim_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_omim_delta_old";
        INSERT INTO "dbrdf_omim_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_omim_delta_new" t0;
        TRUNCATE TABLE "dbrdf_omim_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_artist_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_artist_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_artist_delta_old" ON "dbrdf_artist_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_artist_delta_old" ON "dbrdf_artist_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_artist_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/artist$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/artist$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_artist_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_artist_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/artist$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/artist$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_artist_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_artist_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_artist_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_artist_delta_old";
        INSERT INTO "dbrdf_artist_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_artist_delta_new" t0;
        TRUNCATE TABLE "dbrdf_artist_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_circulation_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_circulation_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_circulation_delta_old" ON "dbrdf_circulation_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_circulation_delta_old" ON "dbrdf_circulation_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_circulation_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/circulation$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/circulation$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_circulation_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_circulation_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/circulation$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/circulation$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_circulation_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_circulation_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_circulation_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_circulation_delta_old";
        INSERT INTO "dbrdf_circulation_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_circulation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_circulation_delta_new";

    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_highestPosition_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_highestPosition_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_highestPosition_delta_old" ON "dbrdf_highestPosition_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_highestPosition_delta_old" ON "dbrdf_highestPosition_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_highestPosition_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/highestPosition$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/highestPosition$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_highestPosition_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_highestPosition_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/highestPosition$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/highestPosition$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_highestPosition_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_highestPosition_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_highestPosition_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_highestPosition_delta_old";
        INSERT INTO "dbrdf_highestPosition_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_highestPosition_delta_new" t0;
        TRUNCATE TABLE "dbrdf_highestPosition_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1805
    ---- DEPENDS ON: 1804, 1676, 1646, 1055, 858, 400, 316, 46, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing>(?X1) :- <http://dbpedia.org/ontology/highestPosition>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28305 FROM "__triples" t0 WHERE t0.p = 28304 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28305);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing>(?X1) :- <http://dbpedia.org/ontology/sourceConfluencePosition>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28305 FROM "__triples" t0 WHERE t0.p = 28143 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28305);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing>(?X1) :- <http://dbpedia.org/ontology/mouthPosition>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28305 FROM "__triples" t0 WHERE t0.p = 27540 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28305);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing>(?X1) :- <http://dbpedia.org/ontology/lowestPosition>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28305 FROM "__triples" t0 WHERE t0.p = 27341 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28305);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing>(?X1) :- <http://dbpedia.org/ontology/restingPlacePosition>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28305 FROM "__triples" t0 WHERE t0.p = 26882 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28305);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing>(?X1) :- <http://dbpedia.org/ontology/capitalPosition>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28305 FROM "__triples" t0 WHERE t0.p = 26798 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28305);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing>(?X1) :- <http://dbpedia.org/ontology/governmentPosition>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28305 FROM "__triples" t0 WHERE t0.p = 28173 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28305);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing>(?X1) :- <http://dbpedia.org/ontology/sourcePosition>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28305 FROM "__triples" t0 WHERE t0.p = 26528 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28305);
    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_SpatialThing_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SpatialThing_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28305;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SpatialThing_delta_old" ON "dbrdf_SpatialThing_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SpatialThing_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing$delta_new>(?Y) :- <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_SpatialThing_delta_new"(s) SELECT t1.o FROM "dbrdf_SpatialThing_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 = 28305);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28305 FROM "dbrdf_SpatialThing_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_SpatialThing_delta_old";
        INSERT INTO "dbrdf_SpatialThing_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SpatialThing_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SpatialThing_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1806
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_subtitle_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_subtitle_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_subtitle_delta_old" ON "dbrdf_subtitle_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_subtitle_delta_old" ON "dbrdf_subtitle_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_subtitle_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/subtitle$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/subtitle$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_subtitle_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_subtitle_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/subtitle$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/subtitle$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_subtitle_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_subtitle_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_subtitle_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_subtitle_delta_old";
        INSERT INTO "dbrdf_subtitle_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_subtitle_delta_new" t0;
        TRUNCATE TABLE "dbrdf_subtitle_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_intercommunality_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_intercommunality_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28307;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_intercommunality_delta_old" ON "dbrdf_intercommunality_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_intercommunality_delta_old" ON "dbrdf_intercommunality_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_intercommunality_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/intercommunality$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/intercommunality$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_intercommunality_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_intercommunality_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 = 28307 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/intercommunality$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/intercommunality$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_intercommunality_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_intercommunality_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 = 28307 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28307, t0.o FROM "dbrdf_intercommunality_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_intercommunality_delta_old";
        INSERT INTO "dbrdf_intercommunality_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_intercommunality_delta_new" t0;
        TRUNCATE TABLE "dbrdf_intercommunality_delta_new";

    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_publiclyAccessible_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_publiclyAccessible_delta_old"(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_publiclyAccessible_delta_old" ON "dbrdf_publiclyAccessible_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_publiclyAccessible_delta_old" ON "dbrdf_publiclyAccessible_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_publiclyAccessible_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/publiclyAccessible$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/publiclyAccessible$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_publiclyAccessible_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_publiclyAccessible_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 = 28308 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/publiclyAccessible$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/publiclyAccessible$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_publiclyAccessible_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_publiclyAccessible_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 = 28308 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28308, t0.o FROM "dbrdf_publiclyAccessible_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_publiclyAccessible_delta_old";
        INSERT INTO "dbrdf_publiclyAccessible_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_publiclyAccessible_delta_new" t0;
        TRUNCATE TABLE "dbrdf_publiclyAccessible_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_availableSmartCard_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_availableSmartCard_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_availableSmartCard_delta_old" ON "dbrdf_availableSmartCard_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_availableSmartCard_delta_old" ON "dbrdf_availableSmartCard_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_availableSmartCard_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/availableSmartCard$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/availableSmartCard$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_availableSmartCard_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_availableSmartCard_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/availableSmartCard$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/availableSmartCard$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_availableSmartCard_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_availableSmartCard_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_availableSmartCard_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_availableSmartCard_delta_old";
        INSERT INTO "dbrdf_availableSmartCard_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_availableSmartCard_delta_new" t0;
        TRUNCATE TABLE "dbrdf_availableSmartCard_delta_new";

    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_agencyStationCode_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_agencyStationCode_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_agencyStationCode_delta_old" ON "dbrdf_agencyStationCode_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_agencyStationCode_delta_old" ON "dbrdf_agencyStationCode_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_agencyStationCode_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/agencyStationCode$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/agencyStationCode$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_agencyStationCode_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_agencyStationCode_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/agencyStationCode$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/agencyStationCode$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_agencyStationCode_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_agencyStationCode_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_agencyStationCode_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_agencyStationCode_delta_old";
        INSERT INTO "dbrdf_agencyStationCode_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_agencyStationCode_delta_new" t0;
        TRUNCATE TABLE "dbrdf_agencyStationCode_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_weight_delta_old3"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_weight_delta_old3"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28311;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_weight_delta_old3" ON "dbrdf_weight_delta_old3"(s, o); CREATE INDEX "IDX_1_dbrdf_weight_delta_old3" ON "dbrdf_weight_delta_old3"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_weight_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/Weapon/weight$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/Weapon/weight$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_weight_delta_new3"(s, o) SELECT t1.o, t0.o FROM "dbrdf_weight_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 = 28311 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/Weapon/weight$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/Weapon/weight$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_weight_delta_new3"(s, o) SELECT t0.s, t1.o FROM "dbrdf_weight_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 = 28311 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28311, t0.o FROM "dbrdf_weight_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_weight_delta_old3";
        INSERT INTO "dbrdf_weight_delta_old3"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_weight_delta_new3" t0;
        TRUNCATE TABLE "dbrdf_weight_delta_new3";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1812
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfFilms_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_numberOfFilms_delta_old"(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_numberOfFilms_delta_old" ON "dbrdf_numberOfFilms_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_numberOfFilms_delta_old" ON "dbrdf_numberOfFilms_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfFilms_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/numberOfFilms$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/numberOfFilms$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_numberOfFilms_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_numberOfFilms_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 = 28312 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/numberOfFilms$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/numberOfFilms$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_numberOfFilms_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_numberOfFilms_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 = 28312 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28312, t0.o FROM "dbrdf_numberOfFilms_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_numberOfFilms_delta_old";
        INSERT INTO "dbrdf_numberOfFilms_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_numberOfFilms_delta_new" t0;
        TRUNCATE TABLE "dbrdf_numberOfFilms_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1813
    ---- DEPENDS ON: 1812, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/AdultActor>(?X) :- <http://dbpedia.org/ontology/numberOfFilms>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28313 FROM "__triples" t0 WHERE t0.p = 28312 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28313);
    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_AdultActor_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_AdultActor_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28313;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_AdultActor_delta_old" ON "dbrdf_AdultActor_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_AdultActor_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/AdultActor$delta_new>(?Y) :- <http://dbpedia.org/ontology/AdultActor$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_AdultActor_delta_new"(s) SELECT t1.o FROM "dbrdf_AdultActor_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 = 28313);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28313 FROM "dbrdf_AdultActor_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_AdultActor_delta_old";
        INSERT INTO "dbrdf_AdultActor_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_AdultActor_delta_new" t0;
        TRUNCATE TABLE "dbrdf_AdultActor_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1814
    ---- DEPENDS ON: 850, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/GivenName>(?X) :- <http://dbpedia.org/ontology/nameDay>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28314 FROM "__triples" t0 WHERE t0.p = 27333 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28314);
    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_GivenName_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_GivenName_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28314;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_GivenName_delta_old" ON "dbrdf_GivenName_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_GivenName_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/GivenName$delta_new>(?Y) :- <http://dbpedia.org/ontology/GivenName$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_GivenName_delta_new"(s) SELECT t1.o FROM "dbrdf_GivenName_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 = 28314);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28314 FROM "dbrdf_GivenName_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_GivenName_delta_old";
        INSERT INTO "dbrdf_GivenName_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_GivenName_delta_new" t0;
        TRUNCATE TABLE "dbrdf_GivenName_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1815
    ---- DEPENDS ON: 1814, 1628, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- [Rule] <http://dbpedia.org/ontology/Name>(?X) :- <http://dbpedia.org/ontology/Surname>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28315 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28123 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28315);
    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_Name_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Name_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28315;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Name_delta_old" ON "dbrdf_Name_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Name_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/Name$delta_new>(?Y) :- <http://dbpedia.org/ontology/Name$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Name_delta_new"(s) SELECT t1.o FROM "dbrdf_Name_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 = 28315);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28315 FROM "dbrdf_Name_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_Name_delta_old";
        INSERT INTO "dbrdf_Name_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Name_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Name_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_guest_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_guest_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_guest_delta_old" ON "dbrdf_guest_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_guest_delta_old" ON "dbrdf_guest_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_guest_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/guest$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/guest$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_guest_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_guest_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/guest$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/guest$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_guest_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_guest_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_guest_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_guest_delta_old";
        INSERT INTO "dbrdf_guest_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_guest_delta_new" t0;
        TRUNCATE TABLE "dbrdf_guest_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_managementRegion_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_managementRegion_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28317;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_managementRegion_delta_old" ON "dbrdf_managementRegion_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_managementRegion_delta_old" ON "dbrdf_managementRegion_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_managementRegion_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/managementRegion$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/managementRegion$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_managementRegion_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_managementRegion_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 = 28317 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/managementRegion$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/managementRegion$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_managementRegion_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_managementRegion_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 = 28317 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28317, t0.o FROM "dbrdf_managementRegion_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_managementRegion_delta_old";
        INSERT INTO "dbrdf_managementRegion_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_managementRegion_delta_new" t0;
        TRUNCATE TABLE "dbrdf_managementRegion_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_seniority_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_seniority_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28318;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_seniority_delta_old" ON "dbrdf_seniority_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_seniority_delta_old" ON "dbrdf_seniority_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_seniority_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/seniority$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/seniority$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_seniority_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_seniority_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 = 28318 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/seniority$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/seniority$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_seniority_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_seniority_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 = 28318 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28318, t0.o FROM "dbrdf_seniority_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_seniority_delta_old";
        INSERT INTO "dbrdf_seniority_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_seniority_delta_new" t0;
        TRUNCATE TABLE "dbrdf_seniority_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_campus_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_campus_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28319;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_campus_delta_old" ON "dbrdf_campus_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_campus_delta_old" ON "dbrdf_campus_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_campus_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/campus$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/campus$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_campus_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_campus_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 = 28319 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/campus$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/campus$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_campus_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_campus_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 = 28319 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28319, t0.o FROM "dbrdf_campus_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_campus_delta_old";
        INSERT INTO "dbrdf_campus_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_campus_delta_new" t0;
        TRUNCATE TABLE "dbrdf_campus_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1820
    ---- DEPENDS ON: 1819, 1051, 895, 826, 783, 379, 363, 200, 119, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/College>(?X) :- <http://dbpedia.org/ontology/sisterCollege>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28320 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 = 28320);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

    -- [Rule] <http://dbpedia.org/ontology/College>(?X1) :- <http://dbpedia.org/ontology/sisterCollege>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28320 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 = 28320);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

    -- [Rule] <http://dbpedia.org/ontology/University>(?X) :- <http://dbpedia.org/ontology/other>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28322 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 = 28322);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

    -- [Rule] <http://dbpedia.org/ontology/University>(?X) :- <http://dbpedia.org/ontology/provost>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28322 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 = 28322);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

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

    -- [Rule] <http://dbpedia.org/ontology/University>(?X) :- <http://dbpedia.org/ontology/officerInCharge>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28322 FROM "__triples" t0 WHERE t0.p = 26682 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28322);
    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_College_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_College_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28320;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_College_delta_old" ON "dbrdf_College_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_College_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_CollegeOrUniversity_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_CollegeOrUniversity_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28321;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_CollegeOrUniversity_delta_old" ON "dbrdf_CollegeOrUniversity_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_CollegeOrUniversity_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_University_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_University_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28322;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_University_delta_old" ON "dbrdf_University_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_University_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/College$delta_new>(?X) :- <http://schema.org/CollegeOrUniversity$delta_old>(?X) .
        INSERT INTO "dbrdf_College_delta_new"(s) SELECT t0.s FROM "dbrdf_CollegeOrUniversity_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28320);


        -- <http://dbpedia.org/ontology/College$delta_new>(?Y) :- <http://dbpedia.org/ontology/College$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_College_delta_new"(s) SELECT t1.o FROM "dbrdf_College_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 = 28320);


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


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


        -- <http://schema.org/CollegeOrUniversity$delta_new>(?Y) :- <http://schema.org/CollegeOrUniversity$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_CollegeOrUniversity_delta_new"(s) SELECT t1.o FROM "dbrdf_CollegeOrUniversity_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 = 28321);


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


        -- <http://dbpedia.org/ontology/University$delta_new>(?Y) :- <http://dbpedia.org/ontology/University$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_University_delta_new"(s) SELECT t1.o FROM "dbrdf_University_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 = 28322);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28320 FROM "dbrdf_College_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_College_delta_old";
        INSERT INTO "dbrdf_College_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_College_delta_new" t0;
        TRUNCATE TABLE "dbrdf_College_delta_new";

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28321 FROM "dbrdf_CollegeOrUniversity_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_CollegeOrUniversity_delta_old";
        INSERT INTO "dbrdf_CollegeOrUniversity_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_CollegeOrUniversity_delta_new" t0;
        TRUNCATE TABLE "dbrdf_CollegeOrUniversity_delta_new";

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28322 FROM "dbrdf_University_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_University_delta_old";
        INSERT INTO "dbrdf_University_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_University_delta_new" t0;
        TRUNCATE TABLE "dbrdf_University_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_riverMouth_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_riverMouth_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_riverMouth_delta_old" ON "dbrdf_riverMouth_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_riverMouth_delta_old" ON "dbrdf_riverMouth_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_riverMouth_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/riverMouth$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/riverMouth$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_riverMouth_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_riverMouth_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/riverMouth$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/riverMouth$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_riverMouth_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_riverMouth_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_riverMouth_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_riverMouth_delta_old";
        INSERT INTO "dbrdf_riverMouth_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_riverMouth_delta_new" t0;
        TRUNCATE TABLE "dbrdf_riverMouth_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1822
    ---- DEPENDS ON: 1821, 1783, 1750, 1646, 1376, 1369, 1238, 1228, 1092, 1055, 1041, 1018, 1011, 940, 871, 772, 710, 426, 386, 382, 243, 224, 1, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [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, 28325 FROM "__triples" t0 WHERE t0.p = 27859 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 27725 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 27715 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 27526 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28325);
    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, 28325 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 = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 27496 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 28143 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 27425 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 27354 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 27354 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 27255 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28325);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [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, 28325 FROM "__triples" t0 WHERE t0.p = 27578 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 27425 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 27193 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 26908 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 28283 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 28323 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 26706 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 27725 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 28249 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28325);
    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, 28325 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 = 28325);
    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, 28325 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 = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 26864 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 27715 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 27540 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28325);
    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, 28325 FROM "__triples" t0 WHERE t0.p = 27503 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28325);
    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, 28325 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 = 28325);
    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 = 28324;
    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 = 28325;
    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 = 28324);


        -- <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 = 28324);


        -- <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 = 28325);


        -- <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 = 28325);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28324 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, 28325 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 1823
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_visitorsPercentageChange_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_visitorsPercentageChange_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_visitorsPercentageChange_delta_old" ON "dbrdf_visitorsPercentageChange_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_visitorsPercentageChange_delta_old" ON "dbrdf_visitorsPercentageChange_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_visitorsPercentageChange_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/visitorsPercentageChange$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/visitorsPercentageChange$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_visitorsPercentageChange_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_visitorsPercentageChange_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/visitorsPercentageChange$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/visitorsPercentageChange$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_visitorsPercentageChange_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_visitorsPercentageChange_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_visitorsPercentageChange_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_visitorsPercentageChange_delta_old";
        INSERT INTO "dbrdf_visitorsPercentageChange_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_visitorsPercentageChange_delta_new" t0;
        TRUNCATE TABLE "dbrdf_visitorsPercentageChange_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1824
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_diameter_delta_old3"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_diameter_delta_old3"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28327;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_diameter_delta_old3" ON "dbrdf_diameter_delta_old3"(s, o); CREATE INDEX "IDX_1_dbrdf_diameter_delta_old3" ON "dbrdf_diameter_delta_old3"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_diameter_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/Weapon/diameter$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/Weapon/diameter$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_diameter_delta_new3"(s, o) SELECT t1.o, t0.o FROM "dbrdf_diameter_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 = 28327 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/Weapon/diameter$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/Weapon/diameter$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_diameter_delta_new3"(s, o) SELECT t0.s, t1.o FROM "dbrdf_diameter_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 = 28327 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28327, t0.o FROM "dbrdf_diameter_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_diameter_delta_old3";
        INSERT INTO "dbrdf_diameter_delta_old3"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_diameter_delta_new3" t0;
        TRUNCATE TABLE "dbrdf_diameter_delta_new3";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1825
    ---- DEPENDS ON: 1824, 1811, 1511, 736, 187, 127, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Weapon>(?X) :- <http://dbpedia.org/ontology/Weapon/width>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28328 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 = 28328);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Weapon>(?X) :- <http://dbpedia.org/ontology/Weapon/length>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28328 FROM "__triples" t0 WHERE t0.p = 26609 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28328);
    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_Weapon_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Weapon_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28328;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Weapon_delta_old" ON "dbrdf_Weapon_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Weapon_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/Weapon$delta_new>(?Y) :- <http://dbpedia.org/ontology/Weapon$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Weapon_delta_new"(s) SELECT t1.o FROM "dbrdf_Weapon_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 = 28328);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28328 FROM "dbrdf_Weapon_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_Weapon_delta_old";
        INSERT INTO "dbrdf_Weapon_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Weapon_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Weapon_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_casSupplemental_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_casSupplemental_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_casSupplemental_delta_old" ON "dbrdf_casSupplemental_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_casSupplemental_delta_old" ON "dbrdf_casSupplemental_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_casSupplemental_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/casSupplemental$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/casSupplemental$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_casSupplemental_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_casSupplemental_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/casSupplemental$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/casSupplemental$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_casSupplemental_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_casSupplemental_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_casSupplemental_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_casSupplemental_delta_old";
        INSERT INTO "dbrdf_casSupplemental_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_casSupplemental_delta_new" t0;
        TRUNCATE TABLE "dbrdf_casSupplemental_delta_new";

    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_baftaAward_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_baftaAward_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28330;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_baftaAward_delta_old" ON "dbrdf_baftaAward_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_baftaAward_delta_old" ON "dbrdf_baftaAward_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_baftaAward_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/baftaAward$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/baftaAward$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_baftaAward_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_baftaAward_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 = 28330 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/baftaAward$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/baftaAward$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_baftaAward_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_baftaAward_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 = 28330 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28330, t0.o FROM "dbrdf_baftaAward_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_baftaAward_delta_old";
        INSERT INTO "dbrdf_baftaAward_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_baftaAward_delta_new" t0;
        TRUNCATE TABLE "dbrdf_baftaAward_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1828
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_shoreLength_delta_old0"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_shoreLength_delta_old0"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28331;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_shoreLength_delta_old0" ON "dbrdf_shoreLength_delta_old0"(s, o); CREATE INDEX "IDX_1_dbrdf_shoreLength_delta_old0" ON "dbrdf_shoreLength_delta_old0"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_shoreLength_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/shoreLength$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/shoreLength$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_shoreLength_delta_new0"(s, o) SELECT t1.o, t0.o FROM "dbrdf_shoreLength_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 = 28331 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/shoreLength$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/shoreLength$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_shoreLength_delta_new0"(s, o) SELECT t0.s, t1.o FROM "dbrdf_shoreLength_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 = 28331 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28331, t0.o FROM "dbrdf_shoreLength_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_shoreLength_delta_old0";
        INSERT INTO "dbrdf_shoreLength_delta_old0"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_shoreLength_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_shoreLength_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1829
    ---- DEPENDS ON: 1828, 1506, 1369, 1304, 1233, 952, 799, 772, 561, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Lake>(?X) :- <http://dbpedia.org/ontology/frozen>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28333 FROM "__triples" t0 WHERE t0.p = 27437 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28333);
    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_LakeBodyOfWater_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_LakeBodyOfWater_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28332;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_LakeBodyOfWater_delta_old" ON "dbrdf_LakeBodyOfWater_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_LakeBodyOfWater_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Lake_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Lake_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28333;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Lake_delta_old" ON "dbrdf_Lake_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Lake_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/LakeBodyOfWater$delta_new>(?X) :- <http://dbpedia.org/ontology/Lake$delta_old>(?X) .
        INSERT INTO "dbrdf_LakeBodyOfWater_delta_new"(s) SELECT t0.s FROM "dbrdf_Lake_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28332);


        -- <http://schema.org/LakeBodyOfWater$delta_new>(?Y) :- <http://schema.org/LakeBodyOfWater$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_LakeBodyOfWater_delta_new"(s) SELECT t1.o FROM "dbrdf_LakeBodyOfWater_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 = 28332);


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


        -- <http://dbpedia.org/ontology/Lake$delta_new>(?Y) :- <http://dbpedia.org/ontology/Lake$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Lake_delta_new"(s) SELECT t1.o FROM "dbrdf_Lake_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 = 28333);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28332 FROM "dbrdf_LakeBodyOfWater_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_LakeBodyOfWater_delta_old";
        INSERT INTO "dbrdf_LakeBodyOfWater_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_LakeBodyOfWater_delta_new" t0;
        TRUNCATE TABLE "dbrdf_LakeBodyOfWater_delta_new";

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28333 FROM "dbrdf_Lake_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_Lake_delta_old";
        INSERT INTO "dbrdf_Lake_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Lake_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Lake_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_number_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_number_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_number_delta_old" ON "dbrdf_number_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_number_delta_old" ON "dbrdf_number_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_number_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/number$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/number$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_number_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_number_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/number$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/number$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_number_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_number_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_number_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_number_delta_old";
        INSERT INTO "dbrdf_number_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_number_delta_new" t0;
        TRUNCATE TABLE "dbrdf_number_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1831
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_NationalSoccerClub_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_NationalSoccerClub_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_NationalSoccerClub_delta_old" ON "dbrdf_NationalSoccerClub_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_NationalSoccerClub_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/NationalSoccerClub$delta_new>(?Y) :- <http://dbpedia.org/ontology/NationalSoccerClub$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_NationalSoccerClub_delta_new"(s) SELECT t1.o FROM "dbrdf_NationalSoccerClub_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_NationalSoccerClub_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_NationalSoccerClub_delta_old";
        INSERT INTO "dbrdf_NationalSoccerClub_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_NationalSoccerClub_delta_new" t0;
        TRUNCATE TABLE "dbrdf_NationalSoccerClub_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_naacpImageAward_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_naacpImageAward_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_naacpImageAward_delta_old" ON "dbrdf_naacpImageAward_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_naacpImageAward_delta_old" ON "dbrdf_naacpImageAward_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_naacpImageAward_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/naacpImageAward$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/naacpImageAward$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_naacpImageAward_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_naacpImageAward_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/naacpImageAward$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/naacpImageAward$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_naacpImageAward_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_naacpImageAward_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_naacpImageAward_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_naacpImageAward_delta_old";
        INSERT INTO "dbrdf_naacpImageAward_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_naacpImageAward_delta_new" t0;
        TRUNCATE TABLE "dbrdf_naacpImageAward_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1833
    ---- DEPENDS ON: 1581, 751, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/RadioStation>(?X) :- <http://dbpedia.org/ontology/facilityId>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "__triples" t0 WHERE t0.p = 28073 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/RadioStation>(?X) :- <http://dbpedia.org/ontology/airDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 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 = 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_RadioStation_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_RadioStation_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28337;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_RadioStation_delta_old" ON "dbrdf_RadioStation_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_RadioStation_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_RadioStation_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_RadioStation_delta_old0"(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_RadioStation_delta_old0" ON "dbrdf_RadioStation_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_RadioStation_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/RadioStation$delta_new>(?X) :- <http://dbpedia.org/ontology/RadioStation$delta_old>(?X) .
        INSERT INTO "dbrdf_RadioStation_delta_new"(s) SELECT t0.s FROM "dbrdf_RadioStation_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28337);


        -- <http://schema.org/RadioStation$delta_new>(?Y) :- <http://schema.org/RadioStation$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_RadioStation_delta_new"(s) SELECT t1.o FROM "dbrdf_RadioStation_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 = 28337);


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


        -- <http://dbpedia.org/ontology/RadioStation$delta_new>(?Y) :- <http://dbpedia.org/ontology/RadioStation$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_RadioStation_delta_new0"(s) SELECT t1.o FROM "dbrdf_RadioStation_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 = 28338);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28337 FROM "dbrdf_RadioStation_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_RadioStation_delta_old";
        INSERT INTO "dbrdf_RadioStation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_RadioStation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_RadioStation_delta_new";

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28338 FROM "dbrdf_RadioStation_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_RadioStation_delta_old0";
        INSERT INTO "dbrdf_RadioStation_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_RadioStation_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_RadioStation_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1834
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_perCapitaIncome_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_perCapitaIncome_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_perCapitaIncome_delta_old" ON "dbrdf_perCapitaIncome_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_perCapitaIncome_delta_old" ON "dbrdf_perCapitaIncome_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_perCapitaIncome_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/perCapitaIncome$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/perCapitaIncome$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_perCapitaIncome_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_perCapitaIncome_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/perCapitaIncome$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/perCapitaIncome$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_perCapitaIncome_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_perCapitaIncome_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_perCapitaIncome_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_perCapitaIncome_delta_old";
        INSERT INTO "dbrdf_perCapitaIncome_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_perCapitaIncome_delta_new" t0;
        TRUNCATE TABLE "dbrdf_perCapitaIncome_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_setupTime_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_setupTime_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_setupTime_delta_old" ON "dbrdf_setupTime_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_setupTime_delta_old" ON "dbrdf_setupTime_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_setupTime_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/setupTime$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/setupTime$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_setupTime_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_setupTime_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/setupTime$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/setupTime$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_setupTime_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_setupTime_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_setupTime_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_setupTime_delta_old";
        INSERT INTO "dbrdf_setupTime_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_setupTime_delta_new" t0;
        TRUNCATE TABLE "dbrdf_setupTime_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_lunarModule_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_lunarModule_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28341;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_lunarModule_delta_old" ON "dbrdf_lunarModule_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_lunarModule_delta_old" ON "dbrdf_lunarModule_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_lunarModule_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/lunarModule$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/lunarModule$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_lunarModule_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_lunarModule_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 = 28341 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/lunarModule$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/lunarModule$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_lunarModule_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_lunarModule_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 = 28341 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28341, t0.o FROM "dbrdf_lunarModule_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_lunarModule_delta_old";
        INSERT INTO "dbrdf_lunarModule_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_lunarModule_delta_new" t0;
        TRUNCATE TABLE "dbrdf_lunarModule_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_sport_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_sport_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_sport_delta_old" ON "dbrdf_sport_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_sport_delta_old" ON "dbrdf_sport_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_sport_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/sport$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/sport$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_sport_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_sport_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/sport$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/sport$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_sport_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_sport_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_sport_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_sport_delta_old";
        INSERT INTO "dbrdf_sport_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_sport_delta_new" t0;
        TRUNCATE TABLE "dbrdf_sport_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1838
    ---- DEPENDS ON: 1837, 1706, 945, 511, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Sport>(?X1) :- <http://dbpedia.org/ontology/sportDiscipline>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28343 FROM "__triples" t0 WHERE t0.p = 27430 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28343);
    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_Sport_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Sport_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28343;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Sport_delta_old" ON "dbrdf_Sport_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Sport_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/Sport$delta_new>(?Y) :- <http://dbpedia.org/ontology/Sport$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Sport_delta_new"(s) SELECT t1.o FROM "dbrdf_Sport_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 = 28343);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28343 FROM "dbrdf_Sport_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_Sport_delta_old";
        INSERT INTO "dbrdf_Sport_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Sport_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Sport_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1839
    ---- DEPENDS ON: 680, 1838, 82, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

    -- [Rule] <http://dbpedia.org/ontology/Activity>(?X) :- <http://dbpedia.org/ontology/equipment>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28344 FROM "__triples" t0 WHERE t0.p = 26564 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28344);
    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_Activity_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Activity_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28344;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Activity_delta_old" ON "dbrdf_Activity_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Activity_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/Activity$delta_new>(?Y) :- <http://dbpedia.org/ontology/Activity$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Activity_delta_new"(s) SELECT t1.o FROM "dbrdf_Activity_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 = 28344);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28344 FROM "dbrdf_Activity_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_Activity_delta_old";
        INSERT INTO "dbrdf_Activity_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Activity_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Activity_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_callsignMeaning_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_callsignMeaning_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_callsignMeaning_delta_old" ON "dbrdf_callsignMeaning_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_callsignMeaning_delta_old" ON "dbrdf_callsignMeaning_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_callsignMeaning_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/callsignMeaning$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/callsignMeaning$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_callsignMeaning_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_callsignMeaning_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/callsignMeaning$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/callsignMeaning$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_callsignMeaning_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_callsignMeaning_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_callsignMeaning_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_callsignMeaning_delta_old";
        INSERT INTO "dbrdf_callsignMeaning_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_callsignMeaning_delta_new" t0;
        TRUNCATE TABLE "dbrdf_callsignMeaning_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_schoolCode_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_schoolCode_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_schoolCode_delta_old" ON "dbrdf_schoolCode_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_schoolCode_delta_old" ON "dbrdf_schoolCode_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_schoolCode_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/schoolCode$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/schoolCode$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_schoolCode_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_schoolCode_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/schoolCode$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/schoolCode$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_schoolCode_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_schoolCode_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_schoolCode_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_schoolCode_delta_old";
        INSERT INTO "dbrdf_schoolCode_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_schoolCode_delta_new" t0;
        TRUNCATE TABLE "dbrdf_schoolCode_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_regime_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_regime_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_regime_delta_old" ON "dbrdf_regime_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_regime_delta_old" ON "dbrdf_regime_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_regime_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/regime$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/regime$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_regime_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_regime_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/regime$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/regime$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_regime_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_regime_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_regime_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_regime_delta_old";
        INSERT INTO "dbrdf_regime_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_regime_delta_new" t0;
        TRUNCATE TABLE "dbrdf_regime_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_timeshiftChannel_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_timeshiftChannel_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_timeshiftChannel_delta_old" ON "dbrdf_timeshiftChannel_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_timeshiftChannel_delta_old" ON "dbrdf_timeshiftChannel_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_timeshiftChannel_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/timeshiftChannel$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/timeshiftChannel$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_timeshiftChannel_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_timeshiftChannel_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/timeshiftChannel$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/timeshiftChannel$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_timeshiftChannel_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_timeshiftChannel_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_timeshiftChannel_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_timeshiftChannel_delta_old";
        INSERT INTO "dbrdf_timeshiftChannel_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_timeshiftChannel_delta_new" t0;
        TRUNCATE TABLE "dbrdf_timeshiftChannel_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1844
    ---- DEPENDS ON: 1843, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/TelevisionStation>(?X) :- <http://dbpedia.org/ontology/timeshiftChannel>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28350 FROM "__triples" t0 WHERE t0.p = 28348 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28350);
    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_TelevisionStation_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_TelevisionStation_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28349;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_TelevisionStation_delta_old" ON "dbrdf_TelevisionStation_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_TelevisionStation_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_TelevisionStation_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_TelevisionStation_delta_old0"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28350;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_TelevisionStation_delta_old0" ON "dbrdf_TelevisionStation_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_TelevisionStation_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/TelevisionStation$delta_new>(?X) :- <http://dbpedia.org/ontology/TelevisionStation$delta_old>(?X) .
        INSERT INTO "dbrdf_TelevisionStation_delta_new"(s) SELECT t0.s FROM "dbrdf_TelevisionStation_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28349);


        -- <http://schema.org/TelevisionStation$delta_new>(?Y) :- <http://schema.org/TelevisionStation$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_TelevisionStation_delta_new"(s) SELECT t1.o FROM "dbrdf_TelevisionStation_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 = 28349);


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


        -- <http://dbpedia.org/ontology/TelevisionStation$delta_new>(?Y) :- <http://dbpedia.org/ontology/TelevisionStation$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_TelevisionStation_delta_new0"(s) SELECT t1.o FROM "dbrdf_TelevisionStation_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 = 28350);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28349 FROM "dbrdf_TelevisionStation_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_TelevisionStation_delta_old";
        INSERT INTO "dbrdf_TelevisionStation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_TelevisionStation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_TelevisionStation_delta_new";

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28350 FROM "dbrdf_TelevisionStation_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_TelevisionStation_delta_old0";
        INSERT INTO "dbrdf_TelevisionStation_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_TelevisionStation_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_TelevisionStation_delta_new0";

    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_curator_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_curator_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28351;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_curator_delta_old" ON "dbrdf_curator_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_curator_delta_old" ON "dbrdf_curator_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_curator_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/curator$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/curator$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_curator_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_curator_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 = 28351 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/curator$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/curator$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_curator_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_curator_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 = 28351 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28351, t0.o FROM "dbrdf_curator_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_curator_delta_old";
        INSERT INTO "dbrdf_curator_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_curator_delta_new" t0;
        TRUNCATE TABLE "dbrdf_curator_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_spike_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_spike_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_spike_delta_old" ON "dbrdf_spike_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_spike_delta_old" ON "dbrdf_spike_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_spike_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/spike$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/spike$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_spike_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_spike_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/spike$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/spike$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_spike_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_spike_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_spike_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_spike_delta_old";
        INSERT INTO "dbrdf_spike_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_spike_delta_new" t0;
        TRUNCATE TABLE "dbrdf_spike_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1847
    ---- DEPENDS ON: 1846, 1255, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- [Rule] <http://dbpedia.org/ontology/VolleyballPlayer>(?X) :- <http://dbpedia.org/ontology/block>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28353 FROM "__triples" t0 WHERE t0.p = 27742 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28353);
    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_VolleyballPlayer_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_VolleyballPlayer_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28353;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_VolleyballPlayer_delta_old" ON "dbrdf_VolleyballPlayer_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_VolleyballPlayer_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/VolleyballPlayer$delta_new>(?Y) :- <http://dbpedia.org/ontology/VolleyballPlayer$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_VolleyballPlayer_delta_new"(s) SELECT t1.o FROM "dbrdf_VolleyballPlayer_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 = 28353);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28353 FROM "dbrdf_VolleyballPlayer_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_VolleyballPlayer_delta_old";
        INSERT INTO "dbrdf_VolleyballPlayer_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_VolleyballPlayer_delta_new" t0;
        TRUNCATE TABLE "dbrdf_VolleyballPlayer_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Hospital>(?X) :- <http://dbpedia.org/ontology/bedCount>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28354 FROM "__triples" t0 WHERE t0.p = 27402 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28354);
    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_Hospital_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Hospital_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28354;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Hospital_delta_old" ON "dbrdf_Hospital_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Hospital_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Hospital_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Hospital_delta_old0"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28355;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Hospital_delta_old0" ON "dbrdf_Hospital_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Hospital_delta_new0"(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/Hospital$delta_new>(?X) :- <http://schema.org/Hospital$delta_old>(?X) .
        INSERT INTO "dbrdf_Hospital_delta_new"(s) SELECT t0.s FROM "dbrdf_Hospital_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28354);


        -- <http://dbpedia.org/ontology/Hospital$delta_new>(?Y) :- <http://dbpedia.org/ontology/Hospital$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Hospital_delta_new"(s) SELECT t1.o FROM "dbrdf_Hospital_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 = 28354);


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


        -- <http://schema.org/Hospital$delta_new>(?Y) :- <http://schema.org/Hospital$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Hospital_delta_new0"(s) SELECT t1.o FROM "dbrdf_Hospital_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 = 28355);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28354 FROM "dbrdf_Hospital_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_Hospital_delta_old";
        INSERT INTO "dbrdf_Hospital_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Hospital_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Hospital_delta_new";

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28355 FROM "dbrdf_Hospital_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_Hospital_delta_old0";
        INSERT INTO "dbrdf_Hospital_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Hospital_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Hospital_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1849
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_draftTeam_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_draftTeam_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28356;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_draftTeam_delta_old" ON "dbrdf_draftTeam_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_draftTeam_delta_old" ON "dbrdf_draftTeam_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_draftTeam_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/draftTeam$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/draftTeam$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_draftTeam_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_draftTeam_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 = 28356 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/draftTeam$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/draftTeam$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_draftTeam_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_draftTeam_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 = 28356 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28356, t0.o FROM "dbrdf_draftTeam_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_draftTeam_delta_old";
        INSERT INTO "dbrdf_draftTeam_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_draftTeam_delta_new" t0;
        TRUNCATE TABLE "dbrdf_draftTeam_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1850
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_office_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_office_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28357;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_office_delta_old" ON "dbrdf_office_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_office_delta_old" ON "dbrdf_office_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_office_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/office$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/office$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_office_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_office_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 = 28357 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/office$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/office$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_office_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_office_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 = 28357 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28357, t0.o FROM "dbrdf_office_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_office_delta_old";
        INSERT INTO "dbrdf_office_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_office_delta_new" t0;
        TRUNCATE TABLE "dbrdf_office_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_conservationStatus_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_conservationStatus_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_conservationStatus_delta_old" ON "dbrdf_conservationStatus_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_conservationStatus_delta_old" ON "dbrdf_conservationStatus_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_conservationStatus_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/conservationStatus$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/conservationStatus$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_conservationStatus_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_conservationStatus_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/conservationStatus$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/conservationStatus$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_conservationStatus_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_conservationStatus_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_conservationStatus_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_conservationStatus_delta_old";
        INSERT INTO "dbrdf_conservationStatus_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_conservationStatus_delta_new" t0;
        TRUNCATE TABLE "dbrdf_conservationStatus_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_poleDriverCountry_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_poleDriverCountry_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28359;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_poleDriverCountry_delta_old" ON "dbrdf_poleDriverCountry_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_poleDriverCountry_delta_old" ON "dbrdf_poleDriverCountry_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_poleDriverCountry_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/poleDriverCountry$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/poleDriverCountry$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_poleDriverCountry_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_poleDriverCountry_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 = 28359 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/poleDriverCountry$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/poleDriverCountry$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_poleDriverCountry_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_poleDriverCountry_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 = 28359 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28359, t0.o FROM "dbrdf_poleDriverCountry_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_poleDriverCountry_delta_old";
        INSERT INTO "dbrdf_poleDriverCountry_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_poleDriverCountry_delta_new" t0;
        TRUNCATE TABLE "dbrdf_poleDriverCountry_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1853
    ---- DEPENDS ON: 1516, 1431, 1068, 842, 529, 161, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Protein>(?X) :- <http://dbpedia.org/ontology/locusSupplementaryData>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28360 FROM "__triples" t0 WHERE t0.p = 26643 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28360);
    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_Protein_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Protein_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_Protein_delta_old" ON "dbrdf_Protein_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Protein_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/Protein$delta_new>(?Y) :- <http://dbpedia.org/ontology/Protein$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Protein_delta_new"(s) SELECT t1.o FROM "dbrdf_Protein_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_Protein_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_Protein_delta_old";
        INSERT INTO "dbrdf_Protein_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Protein_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Protein_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_trainerClub_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_trainerClub_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_trainerClub_delta_old" ON "dbrdf_trainerClub_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_trainerClub_delta_old" ON "dbrdf_trainerClub_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_trainerClub_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/trainerClub$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/trainerClub$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_trainerClub_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_trainerClub_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/trainerClub$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/trainerClub$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_trainerClub_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_trainerClub_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_trainerClub_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_trainerClub_delta_old";
        INSERT INTO "dbrdf_trainerClub_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_trainerClub_delta_new" t0;
        TRUNCATE TABLE "dbrdf_trainerClub_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1855
    ---- DEPENDS ON: 1854, 1796, 1662, 1653, 1566, 1541, 1479, 1024, 857, 766, 460, 383, 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, 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/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/appearancesInNationalTeam>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 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 = 28362);
    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, 28362 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 = 28362);
    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, 28362 FROM "__triples" t0 WHERE t0.p = 27969 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/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/nationalYears>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 28159 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/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/appearancesInLeague>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 27509 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/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/trainerYears>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 27249 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/SoccerPlayer>(?X1) :- <http://dbpedia.org/ontology/soccerTournamentTopScorer>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28362 FROM "__triples" t0 WHERE t0.p = 28057 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/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/goalsInNationalTeam>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 27340 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/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/managerYears>(?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/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/managerClub>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 FROM "__triples" t0 WHERE t0.p = 26942 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/SoccerPlayer>(?X) :- <http://dbpedia.org/ontology/years>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 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 = 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_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 = 28362;
    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 = 28362);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28362 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 1856
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_buildingEndDate_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_buildingEndDate_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_buildingEndDate_delta_old" ON "dbrdf_buildingEndDate_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_buildingEndDate_delta_old" ON "dbrdf_buildingEndDate_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_buildingEndDate_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/buildingEndDate$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/buildingEndDate$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_buildingEndDate_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_buildingEndDate_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/buildingEndDate$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/buildingEndDate$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_buildingEndDate_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_buildingEndDate_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_buildingEndDate_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_buildingEndDate_delta_old";
        INSERT INTO "dbrdf_buildingEndDate_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_buildingEndDate_delta_new" t0;
        TRUNCATE TABLE "dbrdf_buildingEndDate_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_thirdDriverCountry_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_thirdDriverCountry_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_thirdDriverCountry_delta_old" ON "dbrdf_thirdDriverCountry_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_thirdDriverCountry_delta_old" ON "dbrdf_thirdDriverCountry_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_thirdDriverCountry_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/thirdDriverCountry$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/thirdDriverCountry$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_thirdDriverCountry_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_thirdDriverCountry_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/thirdDriverCountry$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/thirdDriverCountry$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_thirdDriverCountry_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_thirdDriverCountry_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_thirdDriverCountry_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_thirdDriverCountry_delta_old";
        INSERT INTO "dbrdf_thirdDriverCountry_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_thirdDriverCountry_delta_new" t0;
        TRUNCATE TABLE "dbrdf_thirdDriverCountry_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_fcRuns_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_fcRuns_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_fcRuns_delta_old" ON "dbrdf_fcRuns_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_fcRuns_delta_old" ON "dbrdf_fcRuns_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_fcRuns_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/fcRuns$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/fcRuns$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_fcRuns_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_fcRuns_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/fcRuns$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/fcRuns$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_fcRuns_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_fcRuns_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_fcRuns_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_fcRuns_delta_old";
        INSERT INTO "dbrdf_fcRuns_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_fcRuns_delta_new" t0;
        TRUNCATE TABLE "dbrdf_fcRuns_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1859
    ---- DEPENDS ON: 1858, 111, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- [Rule] <http://dbpedia.org/ontology/Cricketer>(?X) :- <http://dbpedia.org/ontology/fc>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28366 FROM "__triples" t0 WHERE t0.p = 26593 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28366);
    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_Cricketer_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Cricketer_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28366;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Cricketer_delta_old" ON "dbrdf_Cricketer_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Cricketer_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/Cricketer$delta_new>(?Y) :- <http://dbpedia.org/ontology/Cricketer$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Cricketer_delta_new"(s) SELECT t1.o FROM "dbrdf_Cricketer_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 = 28366);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28366 FROM "dbrdf_Cricketer_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_Cricketer_delta_old";
        INSERT INTO "dbrdf_Cricketer_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Cricketer_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Cricketer_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_headChef_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_headChef_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_headChef_delta_old" ON "dbrdf_headChef_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_headChef_delta_old" ON "dbrdf_headChef_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_headChef_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/headChef$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/headChef$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_headChef_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_headChef_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/headChef$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/headChef$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_headChef_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_headChef_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_headChef_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_headChef_delta_old";
        INSERT INTO "dbrdf_headChef_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_headChef_delta_new" t0;
        TRUNCATE TABLE "dbrdf_headChef_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1861
    ---- DEPENDS ON: 1860, 881, 832, 444, 212, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Restaurant>(?X) :- <http://dbpedia.org/ontology/headChef>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28369 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 = 28369);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Restaurant>(?X) :- <http://dbpedia.org/ontology/reservations>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28369 FROM "__triples" t0 WHERE t0.p = 27315 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;

    -- [Rule] <http://dbpedia.org/ontology/Restaurant>(?X) :- <http://dbpedia.org/ontology/chef>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28369 FROM "__triples" t0 WHERE t0.p = 27365 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;

    -- [Rule] <http://dbpedia.org/ontology/Restaurant>(?X) :- <http://dbpedia.org/ontology/cuisine>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28369 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 = 28369);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Restaurant>(?X) :- <http://dbpedia.org/ontology/dressCode>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28369 FROM "__triples" t0 WHERE t0.p = 26926 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_Restaurant_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Restaurant_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_Restaurant_delta_old" ON "dbrdf_Restaurant_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Restaurant_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Restaurant_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Restaurant_delta_old0"(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_Restaurant_delta_old0" ON "dbrdf_Restaurant_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Restaurant_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/Restaurant$delta_new>(?X) :- <http://dbpedia.org/ontology/Restaurant$delta_old>(?X) .
        INSERT INTO "dbrdf_Restaurant_delta_new"(s) SELECT t0.s FROM "dbrdf_Restaurant_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28368);


        -- <http://schema.org/Restaurant$delta_new>(?Y) :- <http://schema.org/Restaurant$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Restaurant_delta_new"(s) SELECT t1.o FROM "dbrdf_Restaurant_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);


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


        -- <http://dbpedia.org/ontology/Restaurant$delta_new>(?Y) :- <http://dbpedia.org/ontology/Restaurant$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Restaurant_delta_new0"(s) SELECT t1.o FROM "dbrdf_Restaurant_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 = 28369);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28368 FROM "dbrdf_Restaurant_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_Restaurant_delta_old";
        INSERT INTO "dbrdf_Restaurant_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Restaurant_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Restaurant_delta_new";

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28369 FROM "dbrdf_Restaurant_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_Restaurant_delta_old0";
        INSERT INTO "dbrdf_Restaurant_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Restaurant_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Restaurant_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1862
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_musicalBand_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_musicalBand_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_musicalBand_delta_old" ON "dbrdf_musicalBand_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_musicalBand_delta_old" ON "dbrdf_musicalBand_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_musicalBand_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/musicalBand$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/musicalBand$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_musicalBand_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_musicalBand_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/musicalBand$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/musicalBand$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_musicalBand_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_musicalBand_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_musicalBand_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_musicalBand_delta_old";
        INSERT INTO "dbrdf_musicalBand_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_musicalBand_delta_new" t0;
        TRUNCATE TABLE "dbrdf_musicalBand_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1863
    ---- DEPENDS ON: 1862, 1534, 353, 267, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Band>(?X) :- <http://dbpedia.org/ontology/bandMember>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28371 FROM "__triples" t0 WHERE t0.p = 26749 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28371);
    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_Band_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Band_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28371;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Band_delta_old" ON "dbrdf_Band_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Band_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/Band$delta_new>(?Y) :- <http://dbpedia.org/ontology/Band$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Band_delta_new"(s) SELECT t1.o FROM "dbrdf_Band_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 = 28371);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28371 FROM "dbrdf_Band_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_Band_delta_old";
        INSERT INTO "dbrdf_Band_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Band_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Band_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_placeOfBurial_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_placeOfBurial_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28372;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_placeOfBurial_delta_old" ON "dbrdf_placeOfBurial_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_placeOfBurial_delta_old" ON "dbrdf_placeOfBurial_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_placeOfBurial_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/placeOfBurial$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/placeOfBurial$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_placeOfBurial_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_placeOfBurial_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 = 28372 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/placeOfBurial$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/placeOfBurial$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_placeOfBurial_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_placeOfBurial_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 = 28372 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28372, t0.o FROM "dbrdf_placeOfBurial_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_placeOfBurial_delta_old";
        INSERT INTO "dbrdf_placeOfBurial_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_placeOfBurial_delta_new" t0;
        TRUNCATE TABLE "dbrdf_placeOfBurial_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1865
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_density_delta_old2"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_density_delta_old2"(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_density_delta_old2" ON "dbrdf_density_delta_old2"(s, o); CREATE INDEX "IDX_1_dbrdf_density_delta_old2" ON "dbrdf_density_delta_old2"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_density_delta_new2"(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/density$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/Galaxy/density$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_density_delta_new2"(s, o) SELECT t1.o, t0.o FROM "dbrdf_density_delta_old2" 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/Galaxy/density$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/Galaxy/density$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_density_delta_new2"(s, o) SELECT t0.s, t1.o FROM "dbrdf_density_delta_old2" 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_density_delta_new2" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_density_delta_old2";
        INSERT INTO "dbrdf_density_delta_old2"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_density_delta_new2" t0;
        TRUNCATE TABLE "dbrdf_density_delta_new2";

    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_oversight_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_oversight_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_oversight_delta_old" ON "dbrdf_oversight_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_oversight_delta_old" ON "dbrdf_oversight_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_oversight_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/oversight$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/oversight$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_oversight_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_oversight_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/oversight$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/oversight$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_oversight_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_oversight_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_oversight_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_oversight_delta_old";
        INSERT INTO "dbrdf_oversight_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_oversight_delta_new" t0;
        TRUNCATE TABLE "dbrdf_oversight_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_frequency_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_frequency_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_frequency_delta_old" ON "dbrdf_frequency_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_frequency_delta_old" ON "dbrdf_frequency_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_frequency_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/frequency$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/frequency$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_frequency_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_frequency_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/frequency$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/frequency$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_frequency_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_frequency_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_frequency_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_frequency_delta_old";
        INSERT INTO "dbrdf_frequency_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_frequency_delta_new" t0;
        TRUNCATE TABLE "dbrdf_frequency_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_ruralMunicipality_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_ruralMunicipality_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_ruralMunicipality_delta_old" ON "dbrdf_ruralMunicipality_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_ruralMunicipality_delta_old" ON "dbrdf_ruralMunicipality_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_ruralMunicipality_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/ruralMunicipality$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/ruralMunicipality$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_ruralMunicipality_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_ruralMunicipality_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/ruralMunicipality$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/ruralMunicipality$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_ruralMunicipality_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_ruralMunicipality_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_ruralMunicipality_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_ruralMunicipality_delta_old";
        INSERT INTO "dbrdf_ruralMunicipality_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_ruralMunicipality_delta_new" t0;
        TRUNCATE TABLE "dbrdf_ruralMunicipality_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_ensembl_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_ensembl_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28377;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_ensembl_delta_old" ON "dbrdf_ensembl_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_ensembl_delta_old" ON "dbrdf_ensembl_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_ensembl_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/ensembl$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/ensembl$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_ensembl_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_ensembl_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 = 28377 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/ensembl$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/ensembl$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_ensembl_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_ensembl_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 = 28377 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28377, t0.o FROM "dbrdf_ensembl_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_ensembl_delta_old";
        INSERT INTO "dbrdf_ensembl_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_ensembl_delta_new" t0;
        TRUNCATE TABLE "dbrdf_ensembl_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1870
    ---- DEPENDS ON: 1869, 1853, 1801, 1445, 1426, 1333, 1620, 986, 845, 744, 385, 380, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Biomolecule>(?X) :- <http://dbpedia.org/ontology/refseqprotein>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28378 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 = 28378);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Biomolecule>(?X) :- <http://dbpedia.org/ontology/entrezgene>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28378 FROM "__triples" t0 WHERE t0.p = 27471 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28378);
    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_Biomolecule_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Biomolecule_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28378;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Biomolecule_delta_old" ON "dbrdf_Biomolecule_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Biomolecule_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/Biomolecule$delta_new>(?Y) :- <http://dbpedia.org/ontology/Biomolecule$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Biomolecule_delta_new"(s) SELECT t1.o FROM "dbrdf_Biomolecule_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 = 28378);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28378 FROM "dbrdf_Biomolecule_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_Biomolecule_delta_old";
        INSERT INTO "dbrdf_Biomolecule_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Biomolecule_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Biomolecule_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_firstDriver_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_firstDriver_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_firstDriver_delta_old" ON "dbrdf_firstDriver_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_firstDriver_delta_old" ON "dbrdf_firstDriver_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_firstDriver_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/firstDriver$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/firstDriver$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_firstDriver_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_firstDriver_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/firstDriver$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/firstDriver$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_firstDriver_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_firstDriver_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_firstDriver_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_firstDriver_delta_old";
        INSERT INTO "dbrdf_firstDriver_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_firstDriver_delta_new" t0;
        TRUNCATE TABLE "dbrdf_firstDriver_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1872
    ---- DEPENDS ON: 1871, 1857, 1852, 1731, 1607, 1488, 1434, 1412, 1355, 1318, 1242, 1062, 964, 932, 909, 824, 800, 704, 663, 567, 564, 273, 112, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/GrandPrix>(?X1) :- <http://dbpedia.org/ontology/firstWin>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27978 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/firstDriverTeam>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27845 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/course>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27808 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/fastestDriverCountry>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 28228 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/fastestDriver>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27547 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/GrandPrix>(?X1) :- <http://dbpedia.org/ontology/lastWin>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27924 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/secondTeam>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27449 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/poleDriverTeam>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27416 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/GrandPrix>(?X1) :- <http://dbpedia.org/ontology/firstRace>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27393 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/thirdDriverCountry>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 28364 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/distanceLaps>(?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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/poleDriverCountry>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 28359 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/GrandPrix/course>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27187 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/secondDriverCountry>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27145 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/firstDriver>(?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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/secondDriver>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27307 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/GrandPrix>(?X1) :- <http://dbpedia.org/ontology/lastRace>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27049 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/fastestDriverTeam>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27046 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/thirdTeam>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27729 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/firstDriverCountry>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 27902 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/poleDriver>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 28101 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/thirdDriver>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 26755 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/GrandPrix>(?X) :- <http://dbpedia.org/ontology/GrandPrix/distance>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28380 FROM "__triples" t0 WHERE t0.p = 26594 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_GrandPrix_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_GrandPrix_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_GrandPrix_delta_old" ON "dbrdf_GrandPrix_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_GrandPrix_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/GrandPrix$delta_new>(?Y) :- <http://dbpedia.org/ontology/GrandPrix$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_GrandPrix_delta_new"(s) SELECT t1.o FROM "dbrdf_GrandPrix_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_GrandPrix_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_GrandPrix_delta_old";
        INSERT INTO "dbrdf_GrandPrix_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_GrandPrix_delta_new" t0;
        TRUNCATE TABLE "dbrdf_GrandPrix_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1873
    ---- DEPENDS ON: 671, 344, 341, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

    -- [Rule] <http://dbpedia.org/ontology/Royalty>(?X) :- <http://dbpedia.org/ontology/coronationDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28381 FROM "__triples" t0 WHERE t0.p = 27153 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28381);
    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_Royalty_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Royalty_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28381;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Royalty_delta_old" ON "dbrdf_Royalty_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Royalty_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/Royalty$delta_new>(?Y) :- <http://dbpedia.org/ontology/Royalty$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Royalty_delta_new"(s) SELECT t1.o FROM "dbrdf_Royalty_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 = 28381);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28381 FROM "dbrdf_Royalty_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_Royalty_delta_old";
        INSERT INTO "dbrdf_Royalty_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Royalty_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Royalty_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_numberOfCrew_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_numberOfCrew_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28382;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_numberOfCrew_delta_old" ON "dbrdf_numberOfCrew_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_numberOfCrew_delta_old" ON "dbrdf_numberOfCrew_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfCrew_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/numberOfCrew$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/numberOfCrew$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_numberOfCrew_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_numberOfCrew_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 = 28382 AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/numberOfCrew$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/numberOfCrew$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_numberOfCrew_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_numberOfCrew_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 = 28382 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28382, t0.o FROM "dbrdf_numberOfCrew_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_numberOfCrew_delta_old";
        INSERT INTO "dbrdf_numberOfCrew_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_numberOfCrew_delta_new" t0;
        TRUNCATE TABLE "dbrdf_numberOfCrew_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1875
    ---- DEPENDS ON: 1773, 1768, 1545, 1514, 792, 788, 661, 427, 138, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- [Rule] <http://dbpedia.org/ontology/WineRegion>(?X) :- <http://dbpedia.org/ontology/numberOfVineyards>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28383 FROM "__triples" t0 WHERE t0.p = 28267 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28383);
    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, 28383 FROM "__triples" t0 WHERE t0.p = 27275 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28383);
    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, 28383 FROM "__triples" t0 WHERE t0.p = 27271 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28383);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

    -- [Rule] <http://dbpedia.org/ontology/WineRegion>(?X1) :- <http://dbpedia.org/ontology/isPartOfWineRegion>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28383 FROM "__triples" t0 WHERE t0.p = 26909 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28383);
    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, 28383 FROM "__triples" t0 WHERE t0.p = 27271 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28383);
    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, 28383 FROM "__triples" t0 WHERE t0.p = 26620 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28383);
    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, 28383 FROM "__triples" t0 WHERE t0.p = 26909 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28383);
    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, 28383 FROM "__triples" t0 WHERE t0.p = 28036 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28383);
    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, 28383 FROM "__triples" t0 WHERE t0.p = 27143 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28383);
    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 = 28383;
    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 = 28383);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28383 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 1876
    ---- 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 = 28384;
    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 = 28384 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 = 28384 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28384, 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 1877
    ---- 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 = 28385;
    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 = 28385 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 = 28385 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28385, 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 1878
    ---- DEPENDS ON: 1877, 879, 1267, 493, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Artwork>(?X) :- <http://dbpedia.org/ontology/Sculpture>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28386 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27363 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/Artwork>(?X) :- <http://dbpedia.org/ontology/Painting>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28386 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27755 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/Artwork>(?X) :- <http://dbpedia.org/ontology/museum>(?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/Artwork>(?X) :- <http://dbpedia.org/ontology/painter>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28386 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 = 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_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 = 28386;
    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 = 28386);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28386 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 1879
    ---- DEPENDS ON: 1877, 1845, 551, 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, 28388 FROM "__triples" t0 WHERE t0.p = 28385 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28388);
    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, 28388 FROM "__triples" t0 WHERE t0.p = 27033 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28388);
    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, 28388 FROM "__triples" t0 WHERE t0.p = 28351 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28388);
    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 = 28387;
    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 = 28388;
    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 = 28387);


        -- <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 = 28387);


        -- <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 = 28388);


        -- <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 = 28388);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28387 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, 28388 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 1880
    ---- 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 = 28389;
    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 = 28389 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 = 28389 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28389, 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 1881
    ---- DEPENDS ON: 1880, 1138, 1088, 781, 1606, 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, 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/Project>(?X) :- <http://dbpedia.org/ontology/projectStartDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28390 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 = 28390);
    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, 28390 FROM "__triples" t0 WHERE t0.p = 27574 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/Project>(?X) :- <http://dbpedia.org/ontology/projectEndDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28390 FROM "__triples" t0 WHERE t0.p = 27264 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/Project>(?X) :- <http://dbpedia.org/ontology/ResearchProject>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28390 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28100 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_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 = 28390;
    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 = 28390);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28390 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 1882
    ---- 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 = 28391;
    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 = 28391 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 = 28391 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28391, 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 1883
    ---- 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 = 28392;
    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 = 28392 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 = 28392 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28392, 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 1884
    ---- 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 = 28393;
    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 = 28393 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 = 28393 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28393, 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 1885
    ---- 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 = 28394;
    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 = 28394 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 = 28394 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28394, 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 1886
    ---- 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 = 28395;
    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 = 28395 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 = 28395 AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28395, 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 1887
    ---- DEPENDS ON: 1886, 1067, 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, 28396 FROM "__triples" t0 WHERE t0.p = 28395 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28396);
    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, 28396 FROM "__triples" t0 WHERE t0.p = 27552 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28396);
    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 = 28396;
    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 = 28396);


        -- Propagate $delta_new

