        INSERT INTO "dbrdf_BodyOfWater_delta_new0"(s) SELECT t1.o FROM "dbrdf_BodyOfWater_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 = 28392);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28391 FROM "dbrdf_BodyOfWater_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_BodyOfWater_delta_old";
        INSERT INTO "dbrdf_BodyOfWater_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_BodyOfWater_delta_new" t0;
        TRUNCATE TABLE "dbrdf_BodyOfWater_delta_new";

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28392 FROM "dbrdf_BodyOfWater_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_BodyOfWater_delta_old0";
        INSERT INTO "dbrdf_BodyOfWater_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_BodyOfWater_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_BodyOfWater_delta_new0";

    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_bodyDiscovered_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_bodyDiscovered_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_bodyDiscovered_delta_old" ON "dbrdf_bodyDiscovered_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_bodyDiscovered_delta_old" ON "dbrdf_bodyDiscovered_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_bodyDiscovered_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/bodyDiscovered$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/bodyDiscovered$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_bodyDiscovered_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_bodyDiscovered_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/bodyDiscovered$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/bodyDiscovered$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_bodyDiscovered_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_bodyDiscovered_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_bodyDiscovered_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_bodyDiscovered_delta_old";
        INSERT INTO "dbrdf_bodyDiscovered_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_bodyDiscovered_delta_new" t0;
        TRUNCATE TABLE "dbrdf_bodyDiscovered_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_dissolved_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_dissolved_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_dissolved_delta_old" ON "dbrdf_dissolved_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_dissolved_delta_old" ON "dbrdf_dissolved_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_dissolved_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/dissolved$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/dissolved$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_dissolved_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_dissolved_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/dissolved$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/dissolved$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_dissolved_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_dissolved_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_dissolved_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_dissolved_delta_old";
        INSERT INTO "dbrdf_dissolved_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_dissolved_delta_new" t0;
        TRUNCATE TABLE "dbrdf_dissolved_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1887
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_declination_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_declination_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_declination_delta_old" ON "dbrdf_declination_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_declination_delta_old" ON "dbrdf_declination_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_declination_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/declination$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/declination$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_declination_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_declination_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/declination$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/declination$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_declination_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_declination_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_declination_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_declination_delta_old";
        INSERT INTO "dbrdf_declination_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_declination_delta_new" t0;
        TRUNCATE TABLE "dbrdf_declination_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1888
    ---- DEPENDS ON: 1887, 1629, 1470, 1448, 1123, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Constellation>(?X) :- <http://dbpedia.org/ontology/neighbourConstellations>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28396 FROM "__triples" t0 WHERE t0.p = 27962 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/Constellation>(?X1) :- <http://dbpedia.org/ontology/associateStar>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28396 FROM "__triples" t0 WHERE t0.p = 27939 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o 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/Constellation>(?X) :- <http://dbpedia.org/ontology/declination>(?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/Constellation>(?X) :- <http://dbpedia.org/ontology/rightAscension>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28396 FROM "__triples" t0 WHERE t0.p = 28122 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/Constellation>(?X) :- <http://dbpedia.org/ontology/numberOfStars>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28396 FROM "__triples" t0 WHERE t0.p = 27610 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_Constellation_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Constellation_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_Constellation_delta_old" ON "dbrdf_Constellation_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Constellation_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/Constellation$delta_new>(?Y) :- <http://dbpedia.org/ontology/Constellation$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Constellation_delta_new"(s) SELECT t1.o FROM "dbrdf_Constellation_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

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28396 FROM "dbrdf_Constellation_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_Constellation_delta_old";
        INSERT INTO "dbrdf_Constellation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Constellation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Constellation_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1889
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28397, t0.o FROM "dbrdf_rankInFinalMedalCount_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_rankInFinalMedalCount_delta_old";
        INSERT INTO "dbrdf_rankInFinalMedalCount_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_rankInFinalMedalCount_delta_new" t0;
        TRUNCATE TABLE "dbrdf_rankInFinalMedalCount_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1890
    ---- DEPENDS ON: 1889, 1602, 1588, 1359, 1227, 972, 923, 867, 591, 532, 374, 330, 276, 84, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [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, 28398 FROM "__triples" t0 WHERE t0.p = 28094 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28398);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [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, 28398 FROM "__triples" t0 WHERE t0.p = 28080 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28398);
    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, 28398 FROM "__triples" t0 WHERE t0.p = 27849 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28398);
    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, 28398 FROM "__triples" t0 WHERE t0.p = 27716 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28398);
    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, 28398 FROM "__triples" t0 WHERE t0.p = 27459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28398);
    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, 28398 FROM "__triples" t0 WHERE t0.p = 27410 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28398);
    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, 28398 FROM "__triples" t0 WHERE t0.p = 28397 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28398);
    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, 28398 FROM "__triples" t0 WHERE t0.p = 27459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28398);
    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, 28398 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 = 28398);
    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, 28398 FROM "__triples" t0 WHERE t0.p = 27075 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28398);
    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, 28398 FROM "__triples" t0 WHERE t0.p = 27015 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28398);
    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, 28398 FROM "__triples" t0 WHERE t0.p = 26812 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28398);
    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, 28398 FROM "__triples" t0 WHERE t0.p = 27410 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28398);
    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, 28398 FROM "__triples" t0 WHERE t0.p = 27849 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28398);
    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, 28398 FROM "__triples" t0 WHERE t0.p = 26758 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28398);
    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, 28398 FROM "__triples" t0 WHERE t0.p = 26566 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28398);
    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, 28398 FROM "__triples" t0 WHERE t0.p = 26857 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28398);
    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 = 28398;
    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 = 28398);


        -- Propagate $delta_new

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28399, t0.o FROM "dbrdf_rector_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_rector_delta_old";
        INSERT INTO "dbrdf_rector_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_rector_delta_new" t0;
        TRUNCATE TABLE "dbrdf_rector_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1892
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28400, t0.o FROM "dbrdf_sheading_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_sheading_delta_old";
        INSERT INTO "dbrdf_sheading_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_sheading_delta_new" t0;
        TRUNCATE TABLE "dbrdf_sheading_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1893
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28401, t0.o FROM "dbrdf_onChromosome_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_onChromosome_delta_old";
        INSERT INTO "dbrdf_onChromosome_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_onChromosome_delta_new" t0;
        TRUNCATE TABLE "dbrdf_onChromosome_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1894
    ---- DEPENDS ON: 1785, 1254, 1238, 1070, 993, 950, 937, 845, 467, 439, 247, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/YearInSpaceflight>(?X) :- <http://dbpedia.org/ontology/lastLaunch>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28402 FROM "__triples" t0 WHERE t0.p = 26729 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28402);
    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_YearInSpaceflight_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_YearInSpaceflight_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28402;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_YearInSpaceflight_delta_old" ON "dbrdf_YearInSpaceflight_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_YearInSpaceflight_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/YearInSpaceflight$delta_new>(?Y) :- <http://dbpedia.org/ontology/YearInSpaceflight$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_YearInSpaceflight_delta_new"(s) SELECT t1.o FROM "dbrdf_YearInSpaceflight_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 = 28402);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28402 FROM "dbrdf_YearInSpaceflight_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_YearInSpaceflight_delta_old";
        INSERT INTO "dbrdf_YearInSpaceflight_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_YearInSpaceflight_delta_new" t0;
        TRUNCATE TABLE "dbrdf_YearInSpaceflight_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1895
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28403, t0.o FROM "dbrdf_iafdId_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_iafdId_delta_old";
        INSERT INTO "dbrdf_iafdId_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_iafdId_delta_new" t0;
        TRUNCATE TABLE "dbrdf_iafdId_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1896
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28404, t0.o FROM "dbrdf_statisticYear_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_statisticYear_delta_old";
        INSERT INTO "dbrdf_statisticYear_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_statisticYear_delta_new" t0;
        TRUNCATE TABLE "dbrdf_statisticYear_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1897
    ---- DEPENDS ON: 1896, 1737, 846, 310, 184, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/BaseballPlayer>(?X) :- <http://dbpedia.org/ontology/throwingSide>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28405 FROM "__triples" t0 WHERE t0.p = 26666 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28405);
    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_BaseballPlayer_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_BaseballPlayer_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28405;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_BaseballPlayer_delta_old" ON "dbrdf_BaseballPlayer_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_BaseballPlayer_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/BaseballPlayer$delta_new>(?Y) :- <http://dbpedia.org/ontology/BaseballPlayer$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_BaseballPlayer_delta_new"(s) SELECT t1.o FROM "dbrdf_BaseballPlayer_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 = 28405);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28405 FROM "dbrdf_BaseballPlayer_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_BaseballPlayer_delta_old";
        INSERT INTO "dbrdf_BaseballPlayer_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_BaseballPlayer_delta_new" t0;
        TRUNCATE TABLE "dbrdf_BaseballPlayer_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1898
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28406, t0.o FROM "dbrdf_district_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_district_delta_old";
        INSERT INTO "dbrdf_district_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_district_delta_new" t0;
        TRUNCATE TABLE "dbrdf_district_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1899
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_mass_delta_old4"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_mass_delta_old4"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28407;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_mass_delta_old4" ON "dbrdf_mass_delta_old4"(s, o); CREATE INDEX "IDX_1_dbrdf_mass_delta_old4" ON "dbrdf_mass_delta_old4"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_mass_delta_new4"(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/MeanOfTransportation/mass$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/MeanOfTransportation/mass$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_mass_delta_new4"(s, o) SELECT t1.o, t0.o FROM "dbrdf_mass_delta_old4" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28407 AND ex.o = t0.o);


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1900
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28408, t0.o FROM "dbrdf_lastSeason_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_lastSeason_delta_old";
        INSERT INTO "dbrdf_lastSeason_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_lastSeason_delta_new" t0;
        TRUNCATE TABLE "dbrdf_lastSeason_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1901
    ---- DEPENDS ON: 1900, 1701, 1693, 1240, 1188, 1111, 1060, 983, 841, 823, 763, 498, 410, 246, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/FormulaOneRacer>(?X) :- <http://dbpedia.org/ontology/races>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28409 FROM "__triples" t0 WHERE t0.p = 28201 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28409);
    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_FormulaOneRacer_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_FormulaOneRacer_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28409;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_FormulaOneRacer_delta_old" ON "dbrdf_FormulaOneRacer_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_FormulaOneRacer_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/FormulaOneRacer$delta_new>(?Y) :- <http://dbpedia.org/ontology/FormulaOneRacer$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_FormulaOneRacer_delta_new"(s) SELECT t1.o FROM "dbrdf_FormulaOneRacer_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 = 28409);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28409 FROM "dbrdf_FormulaOneRacer_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_FormulaOneRacer_delta_old";
        INSERT INTO "dbrdf_FormulaOneRacer_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_FormulaOneRacer_delta_new" t0;
        TRUNCATE TABLE "dbrdf_FormulaOneRacer_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1902
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Moss_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Moss_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28410;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Moss_delta_old" ON "dbrdf_Moss_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Moss_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/Moss$delta_new>(?Y) :- <http://dbpedia.org/ontology/Moss$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Moss_delta_new"(s) SELECT t1.o FROM "dbrdf_Moss_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 = 28410);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28410 FROM "dbrdf_Moss_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_Moss_delta_old";
        INSERT INTO "dbrdf_Moss_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Moss_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Moss_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1903
    ---- DEPENDS ON: 1902, 1836, 1802, 1578, 1569, 1252, 1824, 612, 64, 2, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Plant>(?X) :- <http://dbpedia.org/ontology/Gnetophytes>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28411 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 26483 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28411);
    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_Plant_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Plant_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28411;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Plant_delta_old" ON "dbrdf_Plant_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Plant_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/Plant$delta_new>(?Y) :- <http://dbpedia.org/ontology/Plant$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Plant_delta_new"(s) SELECT t1.o FROM "dbrdf_Plant_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28411);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1904
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28412, t0.o FROM "dbrdf_countySeat_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_countySeat_delta_old";
        INSERT INTO "dbrdf_countySeat_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_countySeat_delta_new" t0;
        TRUNCATE TABLE "dbrdf_countySeat_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1905
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_meltingPoint_delta_old1"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_meltingPoint_delta_old1"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28413;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_meltingPoint_delta_old1" ON "dbrdf_meltingPoint_delta_old1"(s, o); CREATE INDEX "IDX_1_dbrdf_meltingPoint_delta_old1" ON "dbrdf_meltingPoint_delta_old1"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_meltingPoint_delta_new1"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1906
    ---- DEPENDS ON: 1905, 1390, 176, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

    -- [Rule] <http://dbpedia.org/ontology/Drug>(?X) :- <http://dbpedia.org/ontology/iupacName>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28414 FROM "__triples" t0 WHERE t0.p = 26658 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28414);
    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_Drug_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Drug_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28414;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Drug_delta_old" ON "dbrdf_Drug_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Drug_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/Drug$delta_new>(?Y) :- <http://dbpedia.org/ontology/Drug$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Drug_delta_new"(s) SELECT t1.o FROM "dbrdf_Drug_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 = 28414);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28414 FROM "dbrdf_Drug_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_Drug_delta_old";
        INSERT INTO "dbrdf_Drug_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Drug_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Drug_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1907
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28415, t0.o FROM "dbrdf_numberOfBombs_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_numberOfBombs_delta_old";
        INSERT INTO "dbrdf_numberOfBombs_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_numberOfBombs_delta_new" t0;
        TRUNCATE TABLE "dbrdf_numberOfBombs_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1908
    ---- DEPENDS ON: 1451, 712, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- [Rule] <http://dbpedia.org/ontology/Beverage>(?X) :- <http://dbpedia.org/ontology/discontinued>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28416 FROM "__triples" t0 WHERE t0.p = 27196 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28416);
    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_Beverage_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Beverage_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28416;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Beverage_delta_old" ON "dbrdf_Beverage_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Beverage_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/Beverage$delta_new>(?Y) :- <http://dbpedia.org/ontology/Beverage$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Beverage_delta_new"(s) SELECT t1.o FROM "dbrdf_Beverage_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 = 28416);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28416 FROM "dbrdf_Beverage_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_Beverage_delta_old";
        INSERT INTO "dbrdf_Beverage_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Beverage_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Beverage_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1909
    ---- DEPENDS ON: 1908, 1724, 1486, 744, 422, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Food>(?X) :- <http://dbpedia.org/ontology/ingredient>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28417 FROM "__triples" t0 WHERE t0.p = 26905 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28417);
    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_Food_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Food_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28417;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Food_delta_old" ON "dbrdf_Food_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Food_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/Food$delta_new>(?Y) :- <http://dbpedia.org/ontology/Food$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Food_delta_new"(s) SELECT t1.o FROM "dbrdf_Food_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 = 28417);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28417 FROM "dbrdf_Food_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_Food_delta_old";
        INSERT INTO "dbrdf_Food_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Food_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Food_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1910
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28418, t0.o FROM "dbrdf_emmyAward_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_emmyAward_delta_old";
        INSERT INTO "dbrdf_emmyAward_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_emmyAward_delta_new" t0;
        TRUNCATE TABLE "dbrdf_emmyAward_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1911
    ---- DEPENDS ON: 1910, 1854, 1847, 1669, 1659, 1540, 1515, 1434, 1381, 1352, 1328, 1323, 1251, 1243, 1057, 981, 976, 912, 781, 628, 588, 371, 284, 263, 187, 174, 129, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Award>(?X1) :- <http://dbpedia.org/ontology/naacpImageAward>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28419 FROM "__triples" t0 WHERE t0.p = 28166 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28419);
    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_Award_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Award_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28419;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Award_delta_old" ON "dbrdf_Award_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Award_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/Award$delta_new>(?Y) :- <http://dbpedia.org/ontology/Award$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Award_delta_new"(s) SELECT t1.o FROM "dbrdf_Award_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 = 28419);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28419 FROM "dbrdf_Award_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_Award_delta_old";
        INSERT INTO "dbrdf_Award_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Award_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Award_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1912
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_MotorcycleRacingLeague_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MotorcycleRacingLeague_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28420;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MotorcycleRacingLeague_delta_old" ON "dbrdf_MotorcycleRacingLeague_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MotorcycleRacingLeague_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/MotorcycleRacingLeague$delta_new>(?Y) :- <http://dbpedia.org/ontology/MotorcycleRacingLeague$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_MotorcycleRacingLeague_delta_new"(s) SELECT t1.o FROM "dbrdf_MotorcycleRacingLeague_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 = 28420);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28420 FROM "dbrdf_MotorcycleRacingLeague_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_MotorcycleRacingLeague_delta_old";
        INSERT INTO "dbrdf_MotorcycleRacingLeague_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_MotorcycleRacingLeague_delta_new" t0;
        TRUNCATE TABLE "dbrdf_MotorcycleRacingLeague_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1913
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_width_delta_old2"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_width_delta_old2"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28421;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_width_delta_old2" ON "dbrdf_width_delta_old2"(s, o); CREATE INDEX "IDX_1_dbrdf_width_delta_old2" ON "dbrdf_width_delta_old2"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_width_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/AutomobileEngine/width$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/AutomobileEngine/width$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_width_delta_new2"(s, o) SELECT t1.o, t0.o FROM "dbrdf_width_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 = 28421 AND ex.o = t0.o);


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28421, t0.o FROM "dbrdf_width_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_width_delta_old2";
        INSERT INTO "dbrdf_width_delta_old2"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_width_delta_new2" t0;
        TRUNCATE TABLE "dbrdf_width_delta_new2";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1914
    ---- DEPENDS ON: 1913, 1871, 0, 1601, 1582, 1479, 1372, 1329, 1303, 1244, 1224, 1009, 855, 778, 715, 622, 550, 528, 488, 420, 313, 306, 286, 244, 135, 58, 49, 19, 18, 17
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/AutomobileEngine>(?X) :- <http://dbpedia.org/ontology/oilSystem>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28422 FROM "__triples" t0 WHERE t0.p = 26498 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28422);
    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_AutomobileEngine_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_AutomobileEngine_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28422;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_AutomobileEngine_delta_old" ON "dbrdf_AutomobileEngine_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_AutomobileEngine_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/AutomobileEngine$delta_new>(?Y) :- <http://dbpedia.org/ontology/AutomobileEngine$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_AutomobileEngine_delta_new"(s) SELECT t1.o FROM "dbrdf_AutomobileEngine_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 = 28422);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28422 FROM "dbrdf_AutomobileEngine_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_AutomobileEngine_delta_old";
        INSERT INTO "dbrdf_AutomobileEngine_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_AutomobileEngine_delta_new" t0;
        TRUNCATE TABLE "dbrdf_AutomobileEngine_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1915
    ---- DEPENDS ON: 1914, 1656, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- [Rule] <http://dbpedia.org/ontology/Device>(?X) :- <http://dbpedia.org/ontology/Weapon>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28423 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28152 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28423);
    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_Device_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Device_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28423;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Device_delta_old" ON "dbrdf_Device_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Device_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/Device$delta_new>(?Y) :- <http://dbpedia.org/ontology/Device$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Device_delta_new"(s) SELECT t1.o FROM "dbrdf_Device_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 = 28423);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28423 FROM "dbrdf_Device_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_Device_delta_old";
        INSERT INTO "dbrdf_Device_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Device_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Device_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1916
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28424, t0.o FROM "dbrdf_functionStartDate_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_functionStartDate_delta_old";
        INSERT INTO "dbrdf_functionStartDate_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_functionStartDate_delta_new" t0;
        TRUNCATE TABLE "dbrdf_functionStartDate_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1917
    ---- DEPENDS ON: 1876, 1809, 1803, 1600, 1492, 1465, 1399, 1226, 1181, 1072, 915, 881, 789, 738, 699, 687, 656, 417, 408, 363, 324, 304, 280, 241, 232, 226, 63, 45, 38, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Planet>(?X) :- <http://dbpedia.org/ontology/rotationPeriod>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28425 FROM "__triples" t0 WHERE t0.p = 26891 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28425);
    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_Planet_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Planet_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28425;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Planet_delta_old" ON "dbrdf_Planet_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Planet_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/Planet$delta_new>(?Y) :- <http://dbpedia.org/ontology/Planet$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Planet_delta_new"(s) SELECT t1.o FROM "dbrdf_Planet_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 = 28425);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28425 FROM "dbrdf_Planet_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_Planet_delta_old";
        INSERT INTO "dbrdf_Planet_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Planet_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Planet_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1918
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28426, t0.o FROM "dbrdf_extinctionYear_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_extinctionYear_delta_old";
        INSERT INTO "dbrdf_extinctionYear_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_extinctionYear_delta_new" t0;
        TRUNCATE TABLE "dbrdf_extinctionYear_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1919
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_totalCargo_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_totalCargo_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28427;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_totalCargo_delta_old" ON "dbrdf_totalCargo_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_totalCargo_delta_old" ON "dbrdf_totalCargo_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_totalCargo_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/Spacecraft/totalCargo$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/Spacecraft/totalCargo$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_totalCargo_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_totalCargo_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 = 28427 AND ex.o = t0.o);


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28427, t0.o FROM "dbrdf_totalCargo_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_totalCargo_delta_old";
        INSERT INTO "dbrdf_totalCargo_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_totalCargo_delta_new" t0;
        TRUNCATE TABLE "dbrdf_totalCargo_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1920
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28428, t0.o FROM "dbrdf_photographer_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_photographer_delta_old";
        INSERT INTO "dbrdf_photographer_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_photographer_delta_new" t0;
        TRUNCATE TABLE "dbrdf_photographer_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1921
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28429, t0.o FROM "dbrdf_party_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_party_delta_old";
        INSERT INTO "dbrdf_party_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_party_delta_new" t0;
        TRUNCATE TABLE "dbrdf_party_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1922
    ---- DEPENDS ON: 1921, 1519, 1375, 1158, 1153, 1079, 967, 818, 804, 638, 523, 489, 451, 328, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/PoliticalParty>(?X1) :- <http://dbpedia.org/ontology/politicalPartyOfLeader>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28430 FROM "__triples" t0 WHERE t0.p = 26972 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28430);
    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_PoliticalParty_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_PoliticalParty_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28430;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_PoliticalParty_delta_old" ON "dbrdf_PoliticalParty_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_PoliticalParty_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/PoliticalParty$delta_new>(?Y) :- <http://dbpedia.org/ontology/PoliticalParty$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_PoliticalParty_delta_new"(s) SELECT t1.o FROM "dbrdf_PoliticalParty_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 = 28430);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28430 FROM "dbrdf_PoliticalParty_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_PoliticalParty_delta_old";
        INSERT INTO "dbrdf_PoliticalParty_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_PoliticalParty_delta_new" t0;
        TRUNCATE TABLE "dbrdf_PoliticalParty_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1923
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_TennisTournament_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_TennisTournament_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28431;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_TennisTournament_delta_old" ON "dbrdf_TennisTournament_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_TennisTournament_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/TennisTournament$delta_new>(?Y) :- <http://dbpedia.org/ontology/TennisTournament$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_TennisTournament_delta_new"(s) SELECT t1.o FROM "dbrdf_TennisTournament_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 = 28431);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28431 FROM "dbrdf_TennisTournament_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_TennisTournament_delta_old";
        INSERT INTO "dbrdf_TennisTournament_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_TennisTournament_delta_new" t0;
        TRUNCATE TABLE "dbrdf_TennisTournament_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1924
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28432, t0.o FROM "dbrdf_isbn_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_isbn_delta_old";
        INSERT INTO "dbrdf_isbn_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_isbn_delta_new" t0;
        TRUNCATE TABLE "dbrdf_isbn_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1925
    ---- DEPENDS ON: 1924, 1833, 1433, 1233, 906, 661, 461, 332, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Book>(?X) :- <http://dbpedia.org/ontology/dcc>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28434 FROM "__triples" t0 WHERE t0.p = 27393 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28434);
    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_Book_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Book_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28433;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Book_delta_old" ON "dbrdf_Book_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Book_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Book_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Book_delta_old0"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28435;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Book_delta_old0" ON "dbrdf_Book_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Book_delta_new0"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Book_delta_old1"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Book_delta_old1"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28434;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Book_delta_old1" ON "dbrdf_Book_delta_old1"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Book_delta_new1"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/ontology/bibo/Book$delta_new>(?X) :- <http://dbpedia.org/ontology/Book$delta_old>(?X) .
        INSERT INTO "dbrdf_Book_delta_new"(s) SELECT t0.s FROM "dbrdf_Book_delta_old1" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28433);


        -- <http://purl.org/ontology/bibo/Book$delta_new>(?Y) :- <http://purl.org/ontology/bibo/Book$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Book_delta_new"(s) SELECT t1.o FROM "dbrdf_Book_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 = 28433);


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


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


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


        -- <http://dbpedia.org/ontology/Book$delta_new>(?X) :- <http://purl.org/ontology/bibo/Book$delta_old>(?X) .
        INSERT INTO "dbrdf_Book_delta_new1"(s) SELECT t0.s FROM "dbrdf_Book_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28434);


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28433 FROM "dbrdf_Book_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_Book_delta_old";
        INSERT INTO "dbrdf_Book_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Book_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Book_delta_new";

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28435 FROM "dbrdf_Book_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_Book_delta_old0";
        INSERT INTO "dbrdf_Book_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Book_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Book_delta_new0";

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1926
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28436, t0.o FROM "dbrdf_winsInEurope_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_winsInEurope_delta_old";
        INSERT INTO "dbrdf_winsInEurope_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_winsInEurope_delta_new" t0;
        TRUNCATE TABLE "dbrdf_winsInEurope_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1927
    ---- DEPENDS ON: 1926, 1867, 1838, 1321, 1278, 1185, 1126, 984, 882, 689, 680, 527, 525, 340, 257, 251, 167, 142, 34, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/GolfPlayer>(?X) :- <http://dbpedia.org/ontology/winsAtMajors>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28437 FROM "__triples" t0 WHERE t0.p = 26515 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28437);
    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_GolfPlayer_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_GolfPlayer_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28437;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_GolfPlayer_delta_old" ON "dbrdf_GolfPlayer_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_GolfPlayer_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/GolfPlayer$delta_new>(?Y) :- <http://dbpedia.org/ontology/GolfPlayer$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_GolfPlayer_delta_new"(s) SELECT t1.o FROM "dbrdf_GolfPlayer_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 = 28437);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28437 FROM "dbrdf_GolfPlayer_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_GolfPlayer_delta_old";
        INSERT INTO "dbrdf_GolfPlayer_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_GolfPlayer_delta_new" t0;
        TRUNCATE TABLE "dbrdf_GolfPlayer_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1928
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_VolleyballLeague_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_VolleyballLeague_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28438;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_VolleyballLeague_delta_old" ON "dbrdf_VolleyballLeague_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_VolleyballLeague_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/VolleyballLeague$delta_new>(?Y) :- <http://dbpedia.org/ontology/VolleyballLeague$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_VolleyballLeague_delta_new"(s) SELECT t1.o FROM "dbrdf_VolleyballLeague_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 = 28438);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28438 FROM "dbrdf_VolleyballLeague_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_VolleyballLeague_delta_old";
        INSERT INTO "dbrdf_VolleyballLeague_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_VolleyballLeague_delta_new" t0;
        TRUNCATE TABLE "dbrdf_VolleyballLeague_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1929
    ---- DEPENDS ON: 1928, 1912, 1790, 1620, 1420, 1417, 1194, 1193, 1149, 1082, 1069, 1045, 1021, 1005, 985, 899, 851, 1862, 739, 713, 657, 502, 443, 399, 366, 350, 333, 126, 59, 56, 1237, 16, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/SportsLeague>(?X) :- <http://dbpedia.org/ontology/VideogamesLeague>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28439 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 26497 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28439);
    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_SportsLeague_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SportsLeague_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28439;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SportsLeague_delta_old" ON "dbrdf_SportsLeague_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsLeague_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/SportsLeague$delta_new>(?Y) :- <http://dbpedia.org/ontology/SportsLeague$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_SportsLeague_delta_new"(s) SELECT t1.o FROM "dbrdf_SportsLeague_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 = 28439);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28439 FROM "dbrdf_SportsLeague_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_SportsLeague_delta_old";
        INSERT INTO "dbrdf_SportsLeague_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SportsLeague_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SportsLeague_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1930
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Reptile_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Reptile_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28440;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Reptile_delta_old" ON "dbrdf_Reptile_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Reptile_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/Reptile$delta_new>(?Y) :- <http://dbpedia.org/ontology/Reptile$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Reptile_delta_new"(s) SELECT t1.o FROM "dbrdf_Reptile_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 = 28440);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28440 FROM "dbrdf_Reptile_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_Reptile_delta_old";
        INSERT INTO "dbrdf_Reptile_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Reptile_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Reptile_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1931
    ---- DEPENDS ON: 1930, 1853, 1438, 1177, 1033, 1003, 914, 877, 862, 777, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Animal>(?X) :- <http://dbpedia.org/ontology/Amphibian>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28441 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27262 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28441);
    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_Animal_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Animal_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28441;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Animal_delta_old" ON "dbrdf_Animal_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Animal_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/Animal$delta_new>(?Y) :- <http://dbpedia.org/ontology/Animal$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Animal_delta_new"(s) SELECT t1.o FROM "dbrdf_Animal_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 = 28441);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28441 FROM "dbrdf_Animal_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_Animal_delta_old";
        INSERT INTO "dbrdf_Animal_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Animal_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Animal_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1932
    ---- DEPENDS ON: 1931, 1903, 193, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

    -- [Rule] <http://dbpedia.org/ontology/Eukaryote>(?X) :- <http://dbpedia.org/ontology/Fungus>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28442 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 26675 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28442);
    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_Eukaryote_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Eukaryote_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28442;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Eukaryote_delta_old" ON "dbrdf_Eukaryote_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Eukaryote_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/Eukaryote$delta_new>(?Y) :- <http://dbpedia.org/ontology/Eukaryote$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Eukaryote_delta_new"(s) SELECT t1.o FROM "dbrdf_Eukaryote_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 = 28442);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28442 FROM "dbrdf_Eukaryote_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_Eukaryote_delta_old";
        INSERT INTO "dbrdf_Eukaryote_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Eukaryote_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Eukaryote_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1933
    ---- DEPENDS ON: 1712, 1932, 1618, 1581, 1547, 1357, 1287, 919, 723, 145, 57, 46, 39, 31, 7, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Species>(?X) :- <http://dbpedia.org/ontology/genus>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28443 FROM "__triples" t0 WHERE t0.p = 26488 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28443);
    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_Species_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Species_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28443;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Species_delta_old" ON "dbrdf_Species_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Species_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/Species$delta_new>(?Y) :- <http://dbpedia.org/ontology/Species$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Species_delta_new"(s) SELECT t1.o FROM "dbrdf_Species_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 = 28443);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28443 FROM "dbrdf_Species_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_Species_delta_old";
        INSERT INTO "dbrdf_Species_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Species_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Species_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1934
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28444, t0.o FROM "dbrdf_distanceToDublin_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_distanceToDublin_delta_old";
        INSERT INTO "dbrdf_distanceToDublin_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_distanceToDublin_delta_new" t0;
        TRUNCATE TABLE "dbrdf_distanceToDublin_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1935
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28445, t0.o FROM "dbrdf_city_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_city_delta_old";
        INSERT INTO "dbrdf_city_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_city_delta_new" t0;
        TRUNCATE TABLE "dbrdf_city_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1936
    ---- DEPENDS ON: 1935, 1718, 1668, 1091, 1022, 813, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/City>(?X1) :- <http://dbpedia.org/ontology/beltwayCity>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28447 FROM "__triples" t0 WHERE t0.p = 27578 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28447);
    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_City_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_City_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28446;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_City_delta_old" ON "dbrdf_City_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_City_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_City_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_City_delta_old0"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28447;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_City_delta_old0" ON "dbrdf_City_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_City_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/City$delta_new>(?X) :- <http://dbpedia.org/ontology/City$delta_old>(?X) .
        INSERT INTO "dbrdf_City_delta_new"(s) SELECT t0.s FROM "dbrdf_City_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28446);


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


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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28446 FROM "dbrdf_City_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_City_delta_old";
        INSERT INTO "dbrdf_City_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_City_delta_new" t0;
        TRUNCATE TABLE "dbrdf_City_delta_new";

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28447 FROM "dbrdf_City_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_City_delta_old0";
        INSERT INTO "dbrdf_City_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_City_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_City_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1937
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28448, t0.o FROM "dbrdf_certification_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_certification_delta_old";
        INSERT INTO "dbrdf_certification_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_certification_delta_new" t0;
        TRUNCATE TABLE "dbrdf_certification_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1938
    ---- DEPENDS ON: 1937, 1735, 1348, 549, 485, 163, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Single>(?X) :- <http://dbpedia.org/ontology/certificationDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28449 FROM "__triples" t0 WHERE t0.p = 26645 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28449);
    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_Single_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Single_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28449;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Single_delta_old" ON "dbrdf_Single_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Single_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/Single$delta_new>(?Y) :- <http://dbpedia.org/ontology/Single$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Single_delta_new"(s) SELECT t1.o FROM "dbrdf_Single_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 = 28449);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28449 FROM "dbrdf_Single_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_Single_delta_old";
        INSERT INTO "dbrdf_Single_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Single_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Single_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1939
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28450, t0.o FROM "dbrdf_nationalRanking_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_nationalRanking_delta_old";
        INSERT INTO "dbrdf_nationalRanking_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_nationalRanking_delta_new" t0;
        TRUNCATE TABLE "dbrdf_nationalRanking_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1940
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28451, t0.o FROM "dbrdf_analogChannel_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_analogChannel_delta_old";
        INSERT INTO "dbrdf_analogChannel_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_analogChannel_delta_new" t0;
        TRUNCATE TABLE "dbrdf_analogChannel_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1941
    ---- DEPENDS ON: 0, 1257, 1161, 1056, 778, 754, 649, 547, 398
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Automobile>(?X) :- <http://dbpedia.org/ontology/wheelbase>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28452 FROM "__triples" t0 WHERE t0.p = 26480 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28452);
    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_Automobile_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Automobile_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28452;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Automobile_delta_old" ON "dbrdf_Automobile_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Automobile_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/Automobile$delta_new>(?Y) :- <http://dbpedia.org/ontology/Automobile$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Automobile_delta_new"(s) SELECT t1.o FROM "dbrdf_Automobile_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 = 28452);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28452 FROM "dbrdf_Automobile_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_Automobile_delta_old";
        INSERT INTO "dbrdf_Automobile_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Automobile_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Automobile_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1942
    ---- DEPENDS ON: 1857, 1738, 1380, 1034, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Monarch>(?X) :- <http://dbpedia.org/ontology/placeOfBurial>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28453 FROM "__triples" t0 WHERE t0.p = 28241 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28453);
    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_Monarch_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Monarch_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28453;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Monarch_delta_old" ON "dbrdf_Monarch_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Monarch_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/Monarch$delta_new>(?Y) :- <http://dbpedia.org/ontology/Monarch$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Monarch_delta_new"(s) SELECT t1.o FROM "dbrdf_Monarch_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 = 28453);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28453 FROM "dbrdf_Monarch_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_Monarch_delta_old";
        INSERT INTO "dbrdf_Monarch_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Monarch_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Monarch_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1943
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28454, t0.o FROM "dbrdf_specialist_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_specialist_delta_old";
        INSERT INTO "dbrdf_specialist_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_specialist_delta_new" t0;
        TRUNCATE TABLE "dbrdf_specialist_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1944
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28455, t0.o FROM "dbrdf_numberOfPads_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_numberOfPads_delta_old";
        INSERT INTO "dbrdf_numberOfPads_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_numberOfPads_delta_new" t0;
        TRUNCATE TABLE "dbrdf_numberOfPads_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1945
    ---- DEPENDS ON: 1944, 1628, 1411, 1220, 1103, 952, 930, 477, 127, 123, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/LaunchPad>(?X) :- <http://dbpedia.org/ontology/firstLaunchRocket>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28456 FROM "__triples" t0 WHERE t0.p = 26605 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28456);
    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_LaunchPad_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_LaunchPad_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28456;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_LaunchPad_delta_old" ON "dbrdf_LaunchPad_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_LaunchPad_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/LaunchPad$delta_new>(?Y) :- <http://dbpedia.org/ontology/LaunchPad$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_LaunchPad_delta_new"(s) SELECT t1.o FROM "dbrdf_LaunchPad_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 = 28456);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28456 FROM "dbrdf_LaunchPad_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_LaunchPad_delta_old";
        INSERT INTO "dbrdf_LaunchPad_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_LaunchPad_delta_new" t0;
        TRUNCATE TABLE "dbrdf_LaunchPad_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1946
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28457, t0.o FROM "dbrdf_constructionMaterial_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_constructionMaterial_delta_old";
        INSERT INTO "dbrdf_constructionMaterial_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_constructionMaterial_delta_new" t0;
        TRUNCATE TABLE "dbrdf_constructionMaterial_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1947
    ---- DEPENDS ON: 1579, 1231, 33, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

    -- [Rule] <http://dbpedia.org/ontology/Locomotive>(?X) :- <http://dbpedia.org/ontology/boiler>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28458 FROM "__triples" t0 WHERE t0.p = 26514 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28458);
    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_Locomotive_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Locomotive_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28458;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Locomotive_delta_old" ON "dbrdf_Locomotive_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Locomotive_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/Locomotive$delta_new>(?Y) :- <http://dbpedia.org/ontology/Locomotive$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Locomotive_delta_new"(s) SELECT t1.o FROM "dbrdf_Locomotive_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 = 28458);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28458 FROM "dbrdf_Locomotive_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_Locomotive_delta_old";
        INSERT INTO "dbrdf_Locomotive_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Locomotive_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Locomotive_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1948
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28459, t0.o FROM "dbrdf_spurType_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_spurType_delta_old";
        INSERT INTO "dbrdf_spurType_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_spurType_delta_new" t0;
        TRUNCATE TABLE "dbrdf_spurType_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1949
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28460, t0.o FROM "dbrdf_campusSize_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_campusSize_delta_old0";
        INSERT INTO "dbrdf_campusSize_delta_old0"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_campusSize_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_campusSize_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1950
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28461, t0.o FROM "dbrdf_battle_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_battle_delta_old";
        INSERT INTO "dbrdf_battle_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_battle_delta_new" t0;
        TRUNCATE TABLE "dbrdf_battle_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1951
    ---- DEPENDS ON: 1950, 1605, 1213, 1180, 1094, 1087, 1024, 581, 214, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/MilitaryConflict>(?X) :- <http://dbpedia.org/ontology/causalties>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28462 FROM "__triples" t0 WHERE t0.p = 26696 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28462);
    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_MilitaryConflict_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MilitaryConflict_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28462;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MilitaryConflict_delta_old" ON "dbrdf_MilitaryConflict_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MilitaryConflict_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/MilitaryConflict$delta_new>(?Y) :- <http://dbpedia.org/ontology/MilitaryConflict$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_MilitaryConflict_delta_new"(s) SELECT t1.o FROM "dbrdf_MilitaryConflict_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 = 28462);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28462 FROM "dbrdf_MilitaryConflict_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_MilitaryConflict_delta_old";
        INSERT INTO "dbrdf_MilitaryConflict_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_MilitaryConflict_delta_new" t0;
        TRUNCATE TABLE "dbrdf_MilitaryConflict_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1952
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28463, t0.o FROM "dbrdf_icdo_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_icdo_delta_old";
        INSERT INTO "dbrdf_icdo_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_icdo_delta_new" t0;
        TRUNCATE TABLE "dbrdf_icdo_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1953
    ---- DEPENDS ON: 1952, 1436, 860, 595, 584, 476, 433, 404, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Disease>(?X) :- <http://dbpedia.org/ontology/medlineplus>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28464 FROM "__triples" t0 WHERE t0.p = 27347 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28464);
    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_Disease_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Disease_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28464;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Disease_delta_old" ON "dbrdf_Disease_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Disease_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/Disease$delta_new>(?Y) :- <http://dbpedia.org/ontology/Disease$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Disease_delta_new"(s) SELECT t1.o FROM "dbrdf_Disease_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 = 28464);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28464 FROM "dbrdf_Disease_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_Disease_delta_old";
        INSERT INTO "dbrdf_Disease_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Disease_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Disease_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1954
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28465, t0.o FROM "dbrdf_march_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_march_delta_old";
        INSERT INTO "dbrdf_march_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_march_delta_new" t0;
        TRUNCATE TABLE "dbrdf_march_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1955
    ---- DEPENDS ON: 1954, 1744, 1635, 1182, 1129, 295, 1938, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/MusicalWork>(?X) :- <http://dbpedia.org/ontology/recordedIn>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28466 FROM "__triples" t0 WHERE t0.p = 26777 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28466);
    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_MusicalWork_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MusicalWork_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28466;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MusicalWork_delta_old" ON "dbrdf_MusicalWork_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MusicalWork_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/MusicalWork$delta_new>(?Y) :- <http://dbpedia.org/ontology/MusicalWork$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_MusicalWork_delta_new"(s) SELECT t1.o FROM "dbrdf_MusicalWork_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 = 28466);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28466 FROM "dbrdf_MusicalWork_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_MusicalWork_delta_old";
        INSERT INTO "dbrdf_MusicalWork_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_MusicalWork_delta_new" t0;
        TRUNCATE TABLE "dbrdf_MusicalWork_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1956
    ---- DEPENDS ON: 1955, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/MusicalWorkR>(?X,?X) :- <http://dbpedia.org/ontology/MusicalWork>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28467, t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28466 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28467 AND ex.o = t0.s);
    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_MusicalWorkR_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MusicalWorkR_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28467;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MusicalWorkR_delta_old" ON "dbrdf_MusicalWorkR_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_MusicalWorkR_delta_old" ON "dbrdf_MusicalWorkR_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MusicalWorkR_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/MusicalWorkR$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/MusicalWorkR$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_MusicalWorkR_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_MusicalWorkR_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 = 28467 AND ex.o = t0.o);


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28467, t0.o FROM "dbrdf_MusicalWorkR_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_MusicalWorkR_delta_old";
        INSERT INTO "dbrdf_MusicalWorkR_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_MusicalWorkR_delta_new" t0;
        TRUNCATE TABLE "dbrdf_MusicalWorkR_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1957
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28468, t0.o FROM "dbrdf_leaderParty_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_leaderParty_delta_old";
        INSERT INTO "dbrdf_leaderParty_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_leaderParty_delta_new" t0;
        TRUNCATE TABLE "dbrdf_leaderParty_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1958
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28469, t0.o FROM "dbrdf_archipelago_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_archipelago_delta_old";
        INSERT INTO "dbrdf_archipelago_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_archipelago_delta_new" t0;
        TRUNCATE TABLE "dbrdf_archipelago_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1959
    ---- DEPENDS ON: 1958, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Atoll>(?X) :- <http://dbpedia.org/ontology/archipelago>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28470 FROM "__triples" t0 WHERE t0.p = 28469 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28470);
    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_Atoll_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Atoll_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28470;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Atoll_delta_old" ON "dbrdf_Atoll_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Atoll_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/Atoll$delta_new>(?Y) :- <http://dbpedia.org/ontology/Atoll$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Atoll_delta_new"(s) SELECT t1.o FROM "dbrdf_Atoll_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 = 28470);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28470 FROM "dbrdf_Atoll_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_Atoll_delta_old";
        INSERT INTO "dbrdf_Atoll_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Atoll_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Atoll_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1960
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28471, t0.o FROM "dbrdf_activeYearsEndDate_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_activeYearsEndDate_delta_old";
        INSERT INTO "dbrdf_activeYearsEndDate_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_activeYearsEndDate_delta_new" t0;
        TRUNCATE TABLE "dbrdf_activeYearsEndDate_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1961
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_MusicFestival_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MusicFestival_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28472;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MusicFestival_delta_old" ON "dbrdf_MusicFestival_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MusicFestival_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/MusicFestival$delta_new>(?Y) :- <http://dbpedia.org/ontology/MusicFestival$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_MusicFestival_delta_new"(s) SELECT t1.o FROM "dbrdf_MusicFestival_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 = 28472);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28472 FROM "dbrdf_MusicFestival_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_MusicFestival_delta_old";
        INSERT INTO "dbrdf_MusicFestival_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_MusicFestival_delta_new" t0;
        TRUNCATE TABLE "dbrdf_MusicFestival_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1962
    ---- DEPENDS ON: 1961, 1300, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- [Rule] <http://schema.org/Festival>(?X) :- <http://dbpedia.org/ontology/FilmFestival>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28473 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27790 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28473);
    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_Festival_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Festival_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28473;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Festival_delta_old" ON "dbrdf_Festival_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Festival_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/Festival$delta_new>(?Y) :- <http://schema.org/Festival$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Festival_delta_new"(s) SELECT t1.o FROM "dbrdf_Festival_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 = 28473);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28473 FROM "dbrdf_Festival_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_Festival_delta_old";
        INSERT INTO "dbrdf_Festival_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Festival_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Festival_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1963
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28474, t0.o FROM "dbrdf_europeanUnionEntranceDate_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_europeanUnionEntranceDate_delta_old";
        INSERT INTO "dbrdf_europeanUnionEntranceDate_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_europeanUnionEntranceDate_delta_new" t0;
        TRUNCATE TABLE "dbrdf_europeanUnionEntranceDate_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1964
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28475, t0.o FROM "dbrdf_opponent_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_opponent_delta_old";
        INSERT INTO "dbrdf_opponent_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_opponent_delta_new" t0;
        TRUNCATE TABLE "dbrdf_opponent_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1965
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_previousWork_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_previousWork_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28476;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_previousWork_delta_old" ON "dbrdf_previousWork_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_previousWork_delta_old" ON "dbrdf_previousWork_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_previousWork_old"(s integer, o integer) ON COMMIT DROP;
    CREATE INDEX "IDX_0_dbrdf_previousWork_old" ON "dbrdf_previousWork_old"(s, o); CREATE INDEX "IDX_1_dbrdf_previousWork_old" ON "dbrdf_previousWork_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_previousWork_delta_new"(s integer, o integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_subsequentWork_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_subsequentWork_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28477;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_subsequentWork_delta_old" ON "dbrdf_subsequentWork_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_subsequentWork_delta_old" ON "dbrdf_subsequentWork_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_subsequentWork_old"(s integer, o integer) ON COMMIT DROP;
    CREATE INDEX "IDX_0_dbrdf_subsequentWork_old" ON "dbrdf_subsequentWork_old"(s, o); CREATE INDEX "IDX_1_dbrdf_subsequentWork_old" ON "dbrdf_subsequentWork_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_subsequentWork_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/previousWork$delta_new>(?X,?Z) :- <http://dbpedia.org/ontology/previousWork$delta_old>(?X,?Y), <http://dbpedia.org/ontology/previousWork>(?Y,?Z) .
        INSERT INTO "dbrdf_previousWork_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_previousWork_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 28476 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28476 AND ex.o = t1.o);


        -- <http://dbpedia.org/ontology/previousWork$delta_new>(?X,?Z) :- <http://dbpedia.org/ontology/previousWork>(?X,?Y), <http://dbpedia.org/ontology/previousWork$delta_old>(?Y,?Z) .
        INSERT INTO "dbrdf_previousWork_delta_new"(s, o) SELECT t0.s, t1.o FROM "__triples" t0, "dbrdf_previousWork_delta_old" t1 WHERE t0.o = t1.s AND t0.p = 28476 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28476 AND ex.o = t1.o);


        -- <http://dbpedia.org/ontology/previousWork$delta_new>(?X,?Y) :- <http://dbpedia.org/ontology/subsequentWork$delta_old>(?Y,?X) .
        INSERT INTO "dbrdf_previousWork_delta_new"(s, o) SELECT t0.o, t0.s FROM "dbrdf_subsequentWork_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 28476 AND ex.o = t0.s);


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


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


        -- <http://dbpedia.org/ontology/subsequentWork$delta_new>(?X,?Z) :- <http://dbpedia.org/ontology/subsequentWork$delta_old>(?X,?Y), <http://dbpedia.org/ontology/subsequentWork>(?Y,?Z) .
        INSERT INTO "dbrdf_subsequentWork_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_subsequentWork_delta_old" t0, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 28477 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28477 AND ex.o = t1.o);


        -- <http://dbpedia.org/ontology/subsequentWork$delta_new>(?X,?Z) :- <http://dbpedia.org/ontology/subsequentWork>(?X,?Y), <http://dbpedia.org/ontology/subsequentWork$delta_old>(?Y,?Z) .
        INSERT INTO "dbrdf_subsequentWork_delta_new"(s, o) SELECT t0.s, t1.o FROM "__triples" t0, "dbrdf_subsequentWork_delta_old" t1 WHERE t0.o = t1.s AND t0.p = 28477 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28477 AND ex.o = t1.o);


        -- <http://dbpedia.org/ontology/subsequentWork$delta_new>(?X,?Y) :- <http://dbpedia.org/ontology/previousWork$delta_old>(?Y,?X) .
        INSERT INTO "dbrdf_subsequentWork_delta_new"(s, o) SELECT t0.o, t0.s FROM "dbrdf_previousWork_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 28477 AND ex.o = t0.s);


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


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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_previousWork_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_previousWork_delta_old" t0;
        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28476, t0.o FROM "dbrdf_previousWork_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_previousWork_delta_old";
        INSERT INTO "dbrdf_previousWork_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_previousWork_delta_new" t0;
        TRUNCATE TABLE "dbrdf_previousWork_delta_new";

        INSERT INTO "dbrdf_subsequentWork_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_subsequentWork_delta_old" t0;
        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28477, t0.o FROM "dbrdf_subsequentWork_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_subsequentWork_delta_old";
        INSERT INTO "dbrdf_subsequentWork_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_subsequentWork_delta_new" t0;
        TRUNCATE TABLE "dbrdf_subsequentWork_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1966
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28478, t0.o FROM "dbrdf_modelEndYear_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_modelEndYear_delta_old";
        INSERT INTO "dbrdf_modelEndYear_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_modelEndYear_delta_new" t0;
        TRUNCATE TABLE "dbrdf_modelEndYear_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1967
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28479, t0.o FROM "dbrdf_activeYearsStartYear_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_activeYearsStartYear_delta_old";
        INSERT INTO "dbrdf_activeYearsStartYear_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_activeYearsStartYear_delta_new" t0;
        TRUNCATE TABLE "dbrdf_activeYearsStartYear_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1968
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28480, t0.o FROM "dbrdf_leaderFunction_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_leaderFunction_delta_old";
        INSERT INTO "dbrdf_leaderFunction_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_leaderFunction_delta_new" t0;
        TRUNCATE TABLE "dbrdf_leaderFunction_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1969
    ---- DEPENDS ON: 1968, 1916, 1851, 1688, 1428, 1395, 1035, 769, 497, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/PersonFunction>(?X1) :- <http://dbpedia.org/ontology/occupation>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28481 FROM "__triples" t0 WHERE t0.p = 27254 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28481);
    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_PersonFunction_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_PersonFunction_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28481;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_PersonFunction_delta_old" ON "dbrdf_PersonFunction_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_PersonFunction_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/PersonFunction$delta_new>(?Y) :- <http://dbpedia.org/ontology/PersonFunction$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_PersonFunction_delta_new"(s) SELECT t1.o FROM "dbrdf_PersonFunction_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 = 28481);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28481 FROM "dbrdf_PersonFunction_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_PersonFunction_delta_old";
        INSERT INTO "dbrdf_PersonFunction_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_PersonFunction_delta_new" t0;
        TRUNCATE TABLE "dbrdf_PersonFunction_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1970
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28482, t0.o FROM "dbrdf_event_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_event_delta_old";
        INSERT INTO "dbrdf_event_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_event_delta_new" t0;
        TRUNCATE TABLE "dbrdf_event_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1971
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28483, t0.o FROM "dbrdf_contractor_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_contractor_delta_old";
        INSERT INTO "dbrdf_contractor_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_contractor_delta_new" t0;
        TRUNCATE TABLE "dbrdf_contractor_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1972
    ---- DEPENDS ON: 1971, 1808, 1798, 1568, 1563, 1516, 1686, 1402, 1271, 1675, 0, 1174, 1141, 951, 831, 762, 600, 491, 486, 448, 405, 386, 314, 272, 71
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Company>(?X1) :- <http://dbpedia.org/ontology/designCompany>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28484 FROM "__triples" t0 WHERE t0.p = 27892 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28484);
    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_Company_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Company_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28484;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Company_delta_old" ON "dbrdf_Company_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Company_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/Company$delta_new>(?Y) :- <http://dbpedia.org/ontology/Company$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Company_delta_new"(s) SELECT t1.o FROM "dbrdf_Company_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 = 28484);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28484 FROM "dbrdf_Company_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_Company_delta_old";
        INSERT INTO "dbrdf_Company_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Company_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Company_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1973
    ---- DEPENDS ON: 1971, 1840, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- [Rule] <http://dbpedia.org/ontology/Skyscraper>(?X) :- <http://dbpedia.org/ontology/highestBuildingInYear>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28485 FROM "__triples" t0 WHERE t0.p = 28347 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28485);
    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_Skyscraper_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Skyscraper_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28485;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Skyscraper_delta_old" ON "dbrdf_Skyscraper_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Skyscraper_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/Skyscraper$delta_new>(?Y) :- <http://dbpedia.org/ontology/Skyscraper$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Skyscraper_delta_new"(s) SELECT t1.o FROM "dbrdf_Skyscraper_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 = 28485);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28485 FROM "dbrdf_Skyscraper_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_Skyscraper_delta_old";
        INSERT INTO "dbrdf_Skyscraper_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Skyscraper_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Skyscraper_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1974
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28486, t0.o FROM "dbrdf_decay_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_decay_delta_old";
        INSERT INTO "dbrdf_decay_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_decay_delta_new" t0;
        TRUNCATE TABLE "dbrdf_decay_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1975
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_BiologicalDatabase_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_BiologicalDatabase_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28487;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_BiologicalDatabase_delta_old" ON "dbrdf_BiologicalDatabase_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_BiologicalDatabase_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/BiologicalDatabase$delta_new>(?Y) :- <http://dbpedia.org/ontology/BiologicalDatabase$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_BiologicalDatabase_delta_new"(s) SELECT t1.o FROM "dbrdf_BiologicalDatabase_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 = 28487);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28487 FROM "dbrdf_BiologicalDatabase_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_BiologicalDatabase_delta_old";
        INSERT INTO "dbrdf_BiologicalDatabase_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_BiologicalDatabase_delta_new" t0;
        TRUNCATE TABLE "dbrdf_BiologicalDatabase_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1976
    ---- DEPENDS ON: 1975, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Database>(?X) :- <http://dbpedia.org/ontology/BiologicalDatabase>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28488 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28487 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28488);
    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_Database_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Database_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28488;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Database_delta_old" ON "dbrdf_Database_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Database_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/Database$delta_new>(?Y) :- <http://dbpedia.org/ontology/Database$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Database_delta_new"(s) SELECT t1.o FROM "dbrdf_Database_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 = 28488);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28488 FROM "dbrdf_Database_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_Database_delta_old";
        INSERT INTO "dbrdf_Database_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Database_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Database_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1977
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_MouseGeneLocation_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MouseGeneLocation_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28489;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MouseGeneLocation_delta_old" ON "dbrdf_MouseGeneLocation_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MouseGeneLocation_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/MouseGeneLocation$delta_new>(?Y) :- <http://dbpedia.org/ontology/MouseGeneLocation$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_MouseGeneLocation_delta_new"(s) SELECT t1.o FROM "dbrdf_MouseGeneLocation_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 = 28489);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28489 FROM "dbrdf_MouseGeneLocation_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_MouseGeneLocation_delta_old";
        INSERT INTO "dbrdf_MouseGeneLocation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_MouseGeneLocation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_MouseGeneLocation_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1978
    ---- DEPENDS ON: 1977, 1893, 1877, 1273, 843, 634, 435, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/GeneLocation>(?X) :- <http://dbpedia.org/ontology/geneLocationEnd>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28490 FROM "__triples" t0 WHERE t0.p = 27330 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28490);
    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_GeneLocation_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_GeneLocation_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28490;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_GeneLocation_delta_old" ON "dbrdf_GeneLocation_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_GeneLocation_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/GeneLocation$delta_new>(?Y) :- <http://dbpedia.org/ontology/GeneLocation$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_GeneLocation_delta_new"(s) SELECT t1.o FROM "dbrdf_GeneLocation_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 = 28490);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28490 FROM "dbrdf_GeneLocation_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_GeneLocation_delta_old";
        INSERT INTO "dbrdf_GeneLocation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_GeneLocation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_GeneLocation_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1979
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28491, t0.o FROM "dbrdf_medalist_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_medalist_delta_old";
        INSERT INTO "dbrdf_medalist_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_medalist_delta_new" t0;
        TRUNCATE TABLE "dbrdf_medalist_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1980
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28492, t0.o FROM "dbrdf_previousEvent_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_previousEvent_delta_old";
        INSERT INTO "dbrdf_previousEvent_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_previousEvent_delta_new" t0;
        TRUNCATE TABLE "dbrdf_previousEvent_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1981
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28493, t0.o FROM "dbrdf_distanceToLondon_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_distanceToLondon_delta_old";
        INSERT INTO "dbrdf_distanceToLondon_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_distanceToLondon_delta_new" t0;
        TRUNCATE TABLE "dbrdf_distanceToLondon_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1982
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Church_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Church_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28494;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Church_delta_old" ON "dbrdf_Church_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Church_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/Church$delta_new>(?Y) :- <http://dbpedia.org/ontology/Church$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Church_delta_new"(s) SELECT t1.o FROM "dbrdf_Church_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 = 28494);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28494 FROM "dbrdf_Church_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_Church_delta_old";
        INSERT INTO "dbrdf_Church_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Church_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Church_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1983
    ---- DEPENDS ON: 1982, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/ReligiousBuilding>(?X) :- <http://dbpedia.org/ontology/Church>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28495 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28494 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28495);
    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_ReligiousBuilding_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_ReligiousBuilding_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28495;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_ReligiousBuilding_delta_old" ON "dbrdf_ReligiousBuilding_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_ReligiousBuilding_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/ReligiousBuilding$delta_new>(?Y) :- <http://dbpedia.org/ontology/ReligiousBuilding$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_ReligiousBuilding_delta_new"(s) SELECT t1.o FROM "dbrdf_ReligiousBuilding_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 = 28495);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28495 FROM "dbrdf_ReligiousBuilding_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_ReligiousBuilding_delta_old";
        INSERT INTO "dbrdf_ReligiousBuilding_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_ReligiousBuilding_delta_new" t0;
        TRUNCATE TABLE "dbrdf_ReligiousBuilding_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1984
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28496, t0.o FROM "dbrdf_model_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_model_delta_old";
        INSERT INTO "dbrdf_model_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_model_delta_new" t0;
        TRUNCATE TABLE "dbrdf_model_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1985
    ---- DEPENDS ON: 1984, 1534, 1239, 1107, 800, 361, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Sales>(?X) :- <http://dbpedia.org/ontology/endYearOfSales>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28497 FROM "__triples" t0 WHERE t0.p = 26844 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28497);
    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_Sales_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Sales_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28497;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Sales_delta_old" ON "dbrdf_Sales_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Sales_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/Sales$delta_new>(?Y) :- <http://dbpedia.org/ontology/Sales$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Sales_delta_new"(s) SELECT t1.o FROM "dbrdf_Sales_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 = 28497);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28497 FROM "dbrdf_Sales_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_Sales_delta_old";
        INSERT INTO "dbrdf_Sales_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Sales_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Sales_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1986
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28498, t0.o FROM "dbrdf_coden_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_coden_delta_old";
        INSERT INTO "dbrdf_coden_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_coden_delta_new" t0;
        TRUNCATE TABLE "dbrdf_coden_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1987
    ---- DEPENDS ON: 1986, 1607, 1527, 1488, 1339, 1793, 1925, 468, 265, 192, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/WrittenWork>(?X) :- <http://dbpedia.org/ontology/Book>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28499 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28434 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28499);
    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_WrittenWork_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_WrittenWork_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28499;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_WrittenWork_delta_old" ON "dbrdf_WrittenWork_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_WrittenWork_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/WrittenWork$delta_new>(?Y) :- <http://dbpedia.org/ontology/WrittenWork$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_WrittenWork_delta_new"(s) SELECT t1.o FROM "dbrdf_WrittenWork_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 = 28499);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28499 FROM "dbrdf_WrittenWork_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_WrittenWork_delta_old";
        INSERT INTO "dbrdf_WrittenWork_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_WrittenWork_delta_new" t0;
        TRUNCATE TABLE "dbrdf_WrittenWork_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1988
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28500, t0.o FROM "dbrdf_sixthFormStudents_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_sixthFormStudents_delta_old";
        INSERT INTO "dbrdf_sixthFormStudents_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_sixthFormStudents_delta_new" t0;
