    INSERT INTO "dbrdf_TelevisionShow"(s) SELECT DISTINCT t0.s FROM "dbrdf_presenter" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_TelevisionShow" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/TelevisionShow>(?X) :- <http://dbpedia.org/ontology/showJudge>(?X,?X1) .
    INSERT INTO "dbrdf_TelevisionShow"(s) SELECT DISTINCT t0.s FROM "dbrdf_showJudge" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_TelevisionShow" ex WHERE ex.s = 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_TelevisionShow_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_TelevisionShow_delta_old"(s) SELECT t0.s FROM "dbrdf_TelevisionShow" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_TelevisionShow_delta_old" ON "dbrdf_TelevisionShow_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_TelevisionShow_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_TelevisionShow"(s) SELECT DISTINCT t0.s FROM "dbrdf_TelevisionShow_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_TelevisionShow_delta_old";
        INSERT INTO "dbrdf_TelevisionShow_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_TelevisionShow_delta_new" t0;
        TRUNCATE TABLE "dbrdf_TelevisionShow_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1931
    ---- DEPENDS ON: 1930, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Vein_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Vein_delta_old"(s) SELECT t0.s FROM "dbrdf_Vein" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Vein_delta_old" ON "dbrdf_Vein_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Vein_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Vein"(s) SELECT DISTINCT t0.s FROM "dbrdf_Vein_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Vein_delta_old";
        INSERT INTO "dbrdf_Vein_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Vein_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Vein_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1932
    ---- DEPENDS ON: 1930, 1908, 1685, 1450, 1427, 1340, 1322, 1269, 1250, 1210, 1357, 1176, 1154, 1141, 1087, 1082, 922, 833, 1142, 375, 303, 233, 189, 147, 1341, 1155, 1931, 1686, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Bone>(?X) .
    INSERT INTO "dbrdf_AnatomicalStructure"(s) SELECT t0.s FROM "dbrdf_Bone" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AnatomicalStructure" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Brain>(?X) .
    INSERT INTO "dbrdf_AnatomicalStructure"(s) SELECT t0.s FROM "dbrdf_Brain" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AnatomicalStructure" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Artery>(?X) .
    INSERT INTO "dbrdf_AnatomicalStructure"(s) SELECT t0.s FROM "dbrdf_Artery" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AnatomicalStructure" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Muscle>(?X) .
    INSERT INTO "dbrdf_AnatomicalStructure"(s) SELECT t0.s FROM "dbrdf_Muscle" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AnatomicalStructure" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

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

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Nerve>(?X) .
    INSERT INTO "dbrdf_AnatomicalStructure"(s) SELECT t0.s FROM "dbrdf_Nerve" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AnatomicalStructure" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Lymph>(?X) .
    INSERT INTO "dbrdf_AnatomicalStructure"(s) SELECT t0.s FROM "dbrdf_Lymph" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AnatomicalStructure" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Vein>(?X) .
    INSERT INTO "dbrdf_AnatomicalStructure"(s) SELECT t0.s FROM "dbrdf_Vein" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AnatomicalStructure" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/Embryology>(?X) .
    INSERT INTO "dbrdf_AnatomicalStructure"(s) SELECT t0.s FROM "dbrdf_Embryology" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AnatomicalStructure" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AnatomicalStructure>(?X) :- <http://dbpedia.org/ontology/artery>(?X,?X1) .
    INSERT INTO "dbrdf_AnatomicalStructure"(s) SELECT DISTINCT t0.s FROM "dbrdf_artery" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AnatomicalStructure" ex WHERE ex.s = 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_AnatomicalStructure_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_AnatomicalStructure_delta_old"(s) SELECT t0.s FROM "dbrdf_AnatomicalStructure" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_AnatomicalStructure_delta_old" ON "dbrdf_AnatomicalStructure_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_AnatomicalStructure_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_AnatomicalStructure"(s) SELECT DISTINCT t0.s FROM "dbrdf_AnatomicalStructure_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_AnatomicalStructure_delta_old";
        INSERT INTO "dbrdf_AnatomicalStructure_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_AnatomicalStructure_delta_new" t0;
        TRUNCATE TABLE "dbrdf_AnatomicalStructure_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1933
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1934
    ---- DEPENDS ON: 1933, 1832, 1765, 1661, 1433, 1361, 919, 854, 1813, 668, 437, 169, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Actor>(?X) :- <http://dbpedia.org/ontology/VoiceActor>(?X) .
    INSERT INTO "dbrdf_Actor"(s) SELECT t0.s FROM "dbrdf_VoiceActor" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Actor" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

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

    -- [Rule] <http://dbpedia.org/ontology/Actor>(?X) :- <http://dbpedia.org/ontology/AdultActor>(?X) .
    INSERT INTO "dbrdf_Actor"(s) SELECT t0.s FROM "dbrdf_AdultActor" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Actor" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Actor_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Actor_delta_old"(s) SELECT t0.s FROM "dbrdf_Actor" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Actor_delta_old" ON "dbrdf_Actor_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Actor_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Actor"(s) SELECT DISTINCT t0.s FROM "dbrdf_Actor_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Actor_delta_old";
        INSERT INTO "dbrdf_Actor_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Actor_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Actor_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1936
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1938
    ---- DEPENDS ON: 1937, 930, 822, 165, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/SoccerLeagueSeason>(?X) :- <http://dbpedia.org/ontology/soocerLeagueWinner>(?X,?X1) .
    INSERT INTO "dbrdf_SoccerLeagueSeason"(s) SELECT DISTINCT t0.s FROM "dbrdf_soocerLeagueWinner" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SoccerLeagueSeason" ex WHERE ex.s = 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_SoccerLeagueSeason_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SoccerLeagueSeason_delta_old"(s) SELECT t0.s FROM "dbrdf_SoccerLeagueSeason" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SoccerLeagueSeason_delta_old" ON "dbrdf_SoccerLeagueSeason_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SoccerLeagueSeason_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_SoccerLeagueSeason"(s) SELECT DISTINCT t0.s FROM "dbrdf_SoccerLeagueSeason_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SoccerLeagueSeason_delta_old";
        INSERT INTO "dbrdf_SoccerLeagueSeason_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SoccerLeagueSeason_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SoccerLeagueSeason_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1939
    ---- DEPENDS ON: 1938, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/SoccerLeague>(?X) :- <http://dbpedia.org/ontology/SoccerLeagueSeason>(?X) .
    INSERT INTO "dbrdf_SoccerLeague"(s) SELECT t0.s FROM "dbrdf_SoccerLeagueSeason" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SoccerLeague" ex WHERE ex.s = 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_SoccerLeague_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SoccerLeague_delta_old"(s) SELECT t0.s FROM "dbrdf_SoccerLeague" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SoccerLeague_delta_old" ON "dbrdf_SoccerLeague_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SoccerLeague_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_SoccerLeague"(s) SELECT DISTINCT t0.s FROM "dbrdf_SoccerLeague_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SoccerLeague_delta_old";
        INSERT INTO "dbrdf_SoccerLeague_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SoccerLeague_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SoccerLeague_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1941
    ---- DEPENDS ON: 1940, 706, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- [Rule] <http://dbpedia.org/ontology/Musical>(?X) :- <http://dbpedia.org/ontology/lyrics>(?X,?X1) .
    INSERT INTO "dbrdf_Musical"(s) SELECT DISTINCT t0.s FROM "dbrdf_lyrics" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Musical" ex WHERE ex.s = 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_Musical_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Musical_delta_old"(s) SELECT t0.s FROM "dbrdf_Musical" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Musical_delta_old" ON "dbrdf_Musical_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Musical_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Musical"(s) SELECT DISTINCT t0.s FROM "dbrdf_Musical_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Musical_delta_old";
        INSERT INTO "dbrdf_Musical_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Musical_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Musical_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1942
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1943
    ---- DEPENDS ON: 1942, 1935, 1547, 1530, 1248, 993, 948, 834, 794, 329, 148, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Saint>(?X) :- <http://dbpedia.org/ontology/canonizedDate>(?X,?X1) .
    INSERT INTO "dbrdf_Saint"(s) SELECT DISTINCT t0.s FROM "dbrdf_canonizedDate" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Saint" ex WHERE ex.s = 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_Saint_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Saint_delta_old"(s) SELECT t0.s FROM "dbrdf_Saint" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Saint_delta_old" ON "dbrdf_Saint_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Saint_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Saint"(s) SELECT DISTINCT t0.s FROM "dbrdf_Saint_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Saint_delta_old";
        INSERT INTO "dbrdf_Saint_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Saint_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Saint_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1945
    ---- DEPENDS ON: 1944, 0, 1799, 1672, 1637, 1603, 1592, 1453, 1295, 1246, 1190, 1145, 1133, 1106, 1057, 980, 974, 726, 715, 691, 676, 674, 618, 542, 507, 362, 322, 105, 91, 6
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/AutomobileEngine>(?X) :- <http://dbpedia.org/ontology/AutomobileEngine/acceleration>(?X,?X1) .
    INSERT INTO "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_acceleration0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_redline" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_powerOutput" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_topSpeed0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_weight2" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_compressionRatio" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_fuelSystem" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.o FROM "dbrdf_engine" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.o);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_diameter1" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_torqueOutput0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_headAlloy" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_torqueOutput" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_pistonStroke0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_cylinderBore0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_valvetrain" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_coolingSystem" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_endYearOfInsertion" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_acceleration" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_powerOutput0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_displacement0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_cylinderBore" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_oilSystem" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/AutomobileEngine>(?X) :- <http://dbpedia.org/ontology/AutomobileEngine/width>(?X,?X1) .
    INSERT INTO "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_width2" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_note" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_blockAlloy" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_startYearOfInsertion" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_co2Emission" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_fuelType" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_height0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_displacement" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_fuelConsumption" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_co2Emission0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_configuration" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_automobileModel" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_pistonStroke" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t0.s);
    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 "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s FROM "dbrdf_length0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = 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_AutomobileEngine_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_AutomobileEngine_delta_old"(s) SELECT t0.s FROM "dbrdf_AutomobileEngine" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_AutomobileEngine" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_AutomobileEngine"(s) SELECT DISTINCT t0.s 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 1946
    ---- DEPENDS ON: 1945, 1825, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Device>(?X) :- <http://dbpedia.org/ontology/AutomobileEngine>(?X) .
    INSERT INTO "dbrdf_Device"(s) SELECT t0.s FROM "dbrdf_AutomobileEngine" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Device" ex WHERE ex.s = t0.s);
    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 "dbrdf_Device"(s) SELECT t0.s FROM "dbrdf_Weapon" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Device" ex WHERE ex.s = 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_Device_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Device_delta_old"(s) SELECT t0.s FROM "dbrdf_Device" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Device" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Device"(s) SELECT DISTINCT t0.s 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 1947
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1948
    ---- DEPENDS ON: 1947, 1817, 1676, 1482, 1469, 1319, 1305, 1293, 1244, 1233, 1074, 982, 970, 954, 924, 907, 700, 666, 580, 571, 523, 494, 482, 438, 317, 227, 136, 130, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Island>(?X) :- <http://dbpedia.org/ontology/governmentPlace>(?X,?X1) .
    INSERT INTO "dbrdf_Island"(s) SELECT DISTINCT t0.s FROM "dbrdf_governmentPlace" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Island" ex WHERE ex.s = 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_Island_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Island_delta_old"(s) SELECT t0.s FROM "dbrdf_Island" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Island_delta_old" ON "dbrdf_Island_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Island_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Island"(s) SELECT DISTINCT t0.s FROM "dbrdf_Island_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Island_delta_old";
        INSERT INTO "dbrdf_Island_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Island_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Island_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_apparentMagnitude_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_apparentMagnitude_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_apparentMagnitude" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_apparentMagnitude_delta_old" ON "dbrdf_apparentMagnitude_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_apparentMagnitude_delta_old" ON "dbrdf_apparentMagnitude_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_apparentMagnitude_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/apparentMagnitude$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/apparentMagnitude$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_apparentMagnitude_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_apparentMagnitude_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_apparentMagnitude" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/apparentMagnitude$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/apparentMagnitude$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_apparentMagnitude_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_apparentMagnitude_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_apparentMagnitude" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_apparentMagnitude"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_apparentMagnitude_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_apparentMagnitude_delta_old";
        INSERT INTO "dbrdf_apparentMagnitude_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_apparentMagnitude_delta_new" t0;
        TRUNCATE TABLE "dbrdf_apparentMagnitude_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfLaunches_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_numberOfLaunches_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_numberOfLaunches" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_numberOfLaunches_delta_old" ON "dbrdf_numberOfLaunches_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_numberOfLaunches_delta_old" ON "dbrdf_numberOfLaunches_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfLaunches_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/numberOfLaunches$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/numberOfLaunches$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_numberOfLaunches_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_numberOfLaunches_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_numberOfLaunches" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/numberOfLaunches$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/numberOfLaunches$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_numberOfLaunches_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_numberOfLaunches_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_numberOfLaunches" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_numberOfLaunches"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_numberOfLaunches_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_numberOfLaunches_delta_old";
        INSERT INTO "dbrdf_numberOfLaunches_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_numberOfLaunches_delta_new" t0;
        TRUNCATE TABLE "dbrdf_numberOfLaunches_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1951
    ---- DEPENDS ON: 1437, 677, 634, 265, 194, 186, 170, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/MusicalArtist>(?X) :- <http://dbpedia.org/ontology/numberOfStudioAlbums>(?X,?X1) .
    INSERT INTO "dbrdf_MusicalArtist"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfStudioAlbums" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MusicalArtist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MusicalArtist>(?X) :- <http://dbpedia.org/ontology/numberOfLiveAlbums>(?X,?X1) .
    INSERT INTO "dbrdf_MusicalArtist"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfLiveAlbums" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MusicalArtist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MusicalArtist>(?X1) :- <http://dbpedia.org/ontology/associatedMusicalArtist>(?X,?X1) .
    INSERT INTO "dbrdf_MusicalArtist"(s) SELECT DISTINCT t0.o FROM "dbrdf_associatedMusicalArtist" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MusicalArtist" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MusicalArtist>(?X1) :- <http://dbpedia.org/ontology/musicComposer>(?X,?X1) .
    INSERT INTO "dbrdf_MusicalArtist"(s) SELECT DISTINCT t0.o FROM "dbrdf_musicComposer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MusicalArtist" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

    -- [Rule] <http://dbpedia.org/ontology/MusicalArtist>(?X) :- <http://dbpedia.org/ontology/numberOfAlbums>(?X,?X1) .
    INSERT INTO "dbrdf_MusicalArtist"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfAlbums" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MusicalArtist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MusicalArtist>(?X1) :- <http://dbpedia.org/ontology/musicians>(?X,?X1) .
    INSERT INTO "dbrdf_MusicalArtist"(s) SELECT DISTINCT t0.o FROM "dbrdf_musicians" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MusicalArtist" ex WHERE ex.s = t0.o);
    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_MusicalArtist_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MusicalArtist_delta_old"(s) SELECT t0.s FROM "dbrdf_MusicalArtist" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MusicalArtist_delta_old" ON "dbrdf_MusicalArtist_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MusicalArtist_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/MusicalArtist$delta_new>(?Y) :- <http://dbpedia.org/ontology/MusicalArtist$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_MusicalArtist_delta_new"(s) SELECT t1.o FROM "dbrdf_MusicalArtist_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_MusicalArtist" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_MusicalArtist"(s) SELECT DISTINCT t0.s FROM "dbrdf_MusicalArtist_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_MusicalArtist_delta_old";
        INSERT INTO "dbrdf_MusicalArtist_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_MusicalArtist_delta_new" t0;
        TRUNCATE TABLE "dbrdf_MusicalArtist_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1952
    ---- DEPENDS ON: 1951, 1863, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://schema.org/MusicGroup>(?X) :- <http://dbpedia.org/ontology/MusicalArtist>(?X) .
    INSERT INTO "dbrdf_MusicGroup"(s) SELECT t0.s FROM "dbrdf_MusicalArtist" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MusicGroup" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://schema.org/MusicGroup>(?X) :- <http://dbpedia.org/ontology/Band>(?X) .
    INSERT INTO "dbrdf_MusicGroup"(s) SELECT t0.s FROM "dbrdf_Band" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MusicGroup" ex WHERE ex.s = 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_MusicGroup_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MusicGroup_delta_old"(s) SELECT t0.s FROM "dbrdf_MusicGroup" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MusicGroup_delta_old" ON "dbrdf_MusicGroup_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MusicGroup_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/MusicGroup$delta_new>(?Y) :- <http://schema.org/MusicGroup$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_MusicGroup_delta_new"(s) SELECT t1.o FROM "dbrdf_MusicGroup_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_MusicGroup" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_MusicGroup"(s) SELECT DISTINCT t0.s FROM "dbrdf_MusicGroup_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_MusicGroup_delta_old";
        INSERT INTO "dbrdf_MusicGroup_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_MusicGroup_delta_new" t0;
        TRUNCATE TABLE "dbrdf_MusicGroup_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1953
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_watershed_delta_old0"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_watershed_delta_old0"(s, o) SELECT t0.s, t0.o FROM "dbrdf_watershed0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_watershed_delta_old0" ON "dbrdf_watershed_delta_old0"(s, o); CREATE INDEX "IDX_1_dbrdf_watershed_delta_old0" ON "dbrdf_watershed_delta_old0"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_watershed_delta_new0"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/watershed$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/watershed$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_watershed_delta_new0"(s, o) SELECT t1.o, t0.o FROM "dbrdf_watershed_delta_old0" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_watershed0" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://dbpedia.org/ontology/watershed$delta_new>(?X0,?Y) :- <http://dbpedia.org/ontology/watershed$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_watershed_delta_new0"(s, o) SELECT t0.s, t1.o FROM "dbrdf_watershed_delta_old0" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_watershed0" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_watershed0"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_watershed_delta_new0" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_watershed_delta_old0";
        INSERT INTO "dbrdf_watershed_delta_old0"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_watershed_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_watershed_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1954
    ---- DEPENDS ON: 1953, 1776, 1822, 938, 364, 262, 183, 22, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/watershed>(?X,?X1) .
    INSERT INTO "dbrdf_Stream"(s) SELECT DISTINCT t0.s FROM "dbrdf_watershed0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Stream" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/River>(?X) .
    INSERT INTO "dbrdf_Stream"(s) SELECT t0.s FROM "dbrdf_River" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Stream" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/Stream/minimumDischarge>(?X,?X1) .
    INSERT INTO "dbrdf_Stream"(s) SELECT DISTINCT t0.s FROM "dbrdf_minimumDischarge0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Stream" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/Canal>(?X) .
    INSERT INTO "dbrdf_Stream"(s) SELECT t0.s FROM "dbrdf_Canal0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Stream" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/Stream/maximumDischarge>(?X,?X1) .
    INSERT INTO "dbrdf_Stream"(s) SELECT DISTINCT t0.s FROM "dbrdf_maximumDischarge0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Stream" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/Stream/dischargeAverage>(?X,?X1) .
    INSERT INTO "dbrdf_Stream"(s) SELECT DISTINCT t0.s FROM "dbrdf_dischargeAverage0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Stream" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/Stream/discharge>(?X,?X1) .
    INSERT INTO "dbrdf_Stream"(s) SELECT DISTINCT t0.s FROM "dbrdf_discharge" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Stream" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Stream>(?X) :- <http://dbpedia.org/ontology/Stream/watershed>(?X,?X1) .
    INSERT INTO "dbrdf_Stream"(s) SELECT DISTINCT t0.s FROM "dbrdf_watershed" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Stream" ex WHERE ex.s = 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_Stream_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Stream_delta_old"(s) SELECT t0.s FROM "dbrdf_Stream" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Stream_delta_old" ON "dbrdf_Stream_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Stream_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Stream$delta_new>(?Y) :- <http://dbpedia.org/ontology/Stream$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Stream_delta_new"(s) SELECT t1.o FROM "dbrdf_Stream_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Stream" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Stream"(s) SELECT DISTINCT t0.s FROM "dbrdf_Stream_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Stream_delta_old";
        INSERT INTO "dbrdf_Stream_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Stream_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Stream_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1955
    ---- DEPENDS ON: 1821, 1829, 1954, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- [Rule] <http://dbpedia.org/ontology/BodyOfWater>(?X) :- <http://dbpedia.org/ontology/Stream>(?X) .
    INSERT INTO "dbrdf_BodyOfWater0"(s) SELECT t0.s FROM "dbrdf_Stream" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_BodyOfWater0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/BodyOfWater>(?X) :- <http://dbpedia.org/ontology/Lake>(?X) .
    INSERT INTO "dbrdf_BodyOfWater0"(s) SELECT t0.s FROM "dbrdf_Lake" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_BodyOfWater0" ex WHERE ex.s = 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_BodyOfWater_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_BodyOfWater_delta_old"(s) SELECT t0.s FROM "dbrdf_BodyOfWater" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_BodyOfWater_delta_old" ON "dbrdf_BodyOfWater_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_BodyOfWater_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_BodyOfWater_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_BodyOfWater_delta_old0"(s) SELECT t0.s FROM "dbrdf_BodyOfWater0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_BodyOfWater_delta_old0" ON "dbrdf_BodyOfWater_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_BodyOfWater_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://schema.org/BodyOfWater$delta_new>(?X) :- <http://dbpedia.org/ontology/BodyOfWater$delta_old>(?X) .
        INSERT INTO "dbrdf_BodyOfWater_delta_new"(s) SELECT t0.s FROM "dbrdf_BodyOfWater_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_BodyOfWater" ex WHERE ex.s = t0.s);


        -- <http://schema.org/BodyOfWater$delta_new>(?Y) :- <http://schema.org/BodyOfWater$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_BodyOfWater_delta_new"(s) SELECT t1.o FROM "dbrdf_BodyOfWater_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_BodyOfWater" ex WHERE ex.s = t1.o);


        -- <http://dbpedia.org/ontology/BodyOfWater$delta_new>(?X) :- <http://schema.org/BodyOfWater$delta_old>(?X) .
        INSERT INTO "dbrdf_BodyOfWater_delta_new0"(s) SELECT t0.s FROM "dbrdf_BodyOfWater_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_BodyOfWater0" ex WHERE ex.s = t0.s);


        -- <http://dbpedia.org/ontology/BodyOfWater$delta_new>(?Y) :- <http://dbpedia.org/ontology/BodyOfWater$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_BodyOfWater_delta_new0"(s) SELECT t1.o FROM "dbrdf_BodyOfWater_delta_old0" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_BodyOfWater0" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_BodyOfWater"(s) SELECT DISTINCT t0.s 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 "dbrdf_BodyOfWater0"(s) SELECT DISTINCT t0.s 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 1956
    ---- 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 "dbrdf_dissolved" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_dissolved" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_dissolved" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_dissolved"(s, o) SELECT DISTINCT t0.s, 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 1957
    ---- 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 "dbrdf_rector" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_rector" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_rector" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_rector"(s, o) SELECT DISTINCT t0.s, 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 1958
    ---- 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 "dbrdf_onChromosome" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_onChromosome" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_onChromosome" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_onChromosome"(s, o) SELECT DISTINCT t0.s, 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 1959
    ---- 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 "dbrdf_mass4" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_mass4" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_mass4" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_mass4"(s, o) SELECT DISTINCT t0.s, 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 1960
    ---- 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 "dbrdf_numberOfBombs" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_numberOfBombs" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_numberOfBombs" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_numberOfBombs"(s, o) SELECT DISTINCT t0.s, 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 1961
    ---- DEPENDS ON: 1960, 1509, 1417, 1226, 953, 823, 797, 753, 479, 455, 359, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Aircraft>(?X) :- <http://dbpedia.org/ontology/gun>(?X,?X1) .
    INSERT INTO "dbrdf_Aircraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_gun" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Aircraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Aircraft>(?X) :- <http://dbpedia.org/ontology/unitCost>(?X,?X1) .
    INSERT INTO "dbrdf_Aircraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_unitCost" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Aircraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Aircraft>(?X) :- <http://dbpedia.org/ontology/wingArea>(?X,?X1) .
    INSERT INTO "dbrdf_Aircraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_wingArea" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Aircraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Aircraft>(?X) :- <http://dbpedia.org/ontology/productionYears>(?X,?X1) .
    INSERT INTO "dbrdf_Aircraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_productionYears" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Aircraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Aircraft>(?X) :- <http://dbpedia.org/ontology/programCost>(?X,?X1) .
    INSERT INTO "dbrdf_Aircraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_programCost" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Aircraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Aircraft>(?X) :- <http://dbpedia.org/ontology/numberOfBombs>(?X,?X1) .
    INSERT INTO "dbrdf_Aircraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfBombs" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Aircraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Aircraft>(?X) :- <http://dbpedia.org/ontology/numberOfRockets>(?X,?X1) .
    INSERT INTO "dbrdf_Aircraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfRockets" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Aircraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Aircraft>(?X) :- <http://dbpedia.org/ontology/aircraftType>(?X,?X1) .
    INSERT INTO "dbrdf_Aircraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_aircraftType" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Aircraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Aircraft>(?X) :- <http://dbpedia.org/ontology/numberBuilt>(?X,?X1) .
    INSERT INTO "dbrdf_Aircraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberBuilt" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Aircraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Aircraft>(?X) :- <http://dbpedia.org/ontology/wingspan>(?X,?X1) .
    INSERT INTO "dbrdf_Aircraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_wingspan" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Aircraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Aircraft>(?X) :- <http://dbpedia.org/ontology/aircraftUser>(?X,?X1) .
    INSERT INTO "dbrdf_Aircraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_aircraftUser" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Aircraft" ex WHERE ex.s = 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_Aircraft_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Aircraft_delta_old"(s) SELECT t0.s FROM "dbrdf_Aircraft" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Aircraft_delta_old" ON "dbrdf_Aircraft_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Aircraft_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/Aircraft$delta_new>(?Y) :- <http://dbpedia.org/ontology/Aircraft$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Aircraft_delta_new"(s) SELECT t1.o FROM "dbrdf_Aircraft_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Aircraft" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Aircraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_Aircraft_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Aircraft_delta_old";
        INSERT INTO "dbrdf_Aircraft_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Aircraft_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Aircraft_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1962
    ---- DEPENDS ON: 1724, 283, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Beverage>(?X) :- <http://dbpedia.org/ontology/introduced>(?X,?X1) .
    INSERT INTO "dbrdf_Beverage"(s) SELECT DISTINCT t0.s FROM "dbrdf_introduced" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Beverage" ex WHERE ex.s = t0.s);
    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 "dbrdf_Beverage"(s) SELECT DISTINCT t0.s FROM "dbrdf_discontinued" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Beverage" ex WHERE ex.s = 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_Beverage_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Beverage_delta_old"(s) SELECT t0.s FROM "dbrdf_Beverage" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Beverage" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Beverage"(s) SELECT DISTINCT t0.s 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 1963
    ---- DEPENDS ON: 1962, 1270, 1166, 510, 160, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Food>(?X) :- <http://dbpedia.org/ontology/Beverage>(?X) .
    INSERT INTO "dbrdf_Food"(s) SELECT t0.s FROM "dbrdf_Beverage" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Food" ex WHERE ex.s = t0.s);
    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 "dbrdf_Food"(s) SELECT DISTINCT t0.s FROM "dbrdf_approximateCalories" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Food" ex WHERE ex.s = t0.s);
    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 "dbrdf_Food"(s) SELECT DISTINCT t0.s FROM "dbrdf_creatorOfDish" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Food" ex WHERE ex.s = t0.s);
    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 "dbrdf_Food"(s) SELECT DISTINCT t0.s FROM "dbrdf_servingTemperature" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Food" ex WHERE ex.s = t0.s);
    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 "dbrdf_Food"(s) SELECT DISTINCT t0.s FROM "dbrdf_ingredient" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Food" ex WHERE ex.s = 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_Food_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Food_delta_old"(s) SELECT t0.s FROM "dbrdf_Food" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Food" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Food"(s) SELECT DISTINCT t0.s 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 1964
    ---- 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 "dbrdf_emmyAward" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_emmyAward" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_emmyAward" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_emmyAward"(s, o) SELECT DISTINCT t0.s, 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 1965
    ---- DEPENDS ON: 1964, 1951, 1827, 1677, 1430, 1289, 1268, 1254, 1002, 946, 912, 750, 671, 496, 440, 1919, 351, 350, 302, 1934, 247, 228, 846, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/tonyAward>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_tonyAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/voiceType>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_voiceType" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/instrument>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_instrument" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X1) :- <http://dbpedia.org/ontology/associatedAct>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.o FROM "dbrdf_associatedAct" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/gaudiAward>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_gaudiAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/training>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_training" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/afiAward>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_afiAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/emmyAward>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_emmyAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/ComicsCreator>(?X) .
    INSERT INTO "dbrdf_Artist"(s) SELECT t0.s FROM "dbrdf_ComicsCreator" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/academyAward>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_academyAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/goyaAward>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_goyaAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/MusicalArtist>(?X) .
    INSERT INTO "dbrdf_Artist"(s) SELECT t0.s FROM "dbrdf_MusicalArtist" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/polishFilmAward>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_polishFilmAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/cesarAward>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_cesarAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/Writer>(?X) .
    INSERT INTO "dbrdf_Artist"(s) SELECT t0.s FROM "dbrdf_Writer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/field>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_field" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/movement>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_movement" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/Actor>(?X) .
    INSERT INTO "dbrdf_Artist"(s) SELECT t0.s FROM "dbrdf_Actor" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/goldenGlobeAward>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_goldenGlobeAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/grammyAward>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_grammyAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/associatedAct>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_associatedAct" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/filmFareAward>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_filmFareAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/Comedian>(?X) .
    INSERT INTO "dbrdf_Artist"(s) SELECT t0.s FROM "dbrdf_Comedian" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Artist>(?X) :- <http://dbpedia.org/ontology/baftaAward>(?X,?X1) .
    INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_baftaAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = 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_Artist_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Artist_delta_old"(s) SELECT t0.s FROM "dbrdf_Artist" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Artist_delta_old" ON "dbrdf_Artist_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Artist_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/Artist$delta_new>(?Y) :- <http://dbpedia.org/ontology/Artist$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Artist_delta_new"(s) SELECT t1.o FROM "dbrdf_Artist_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Artist" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Artist"(s) SELECT DISTINCT t0.s FROM "dbrdf_Artist_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Artist_delta_old";
        INSERT INTO "dbrdf_Artist_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Artist_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Artist_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1966
    ---- DEPENDS ON: 1964, 1933, 1832, 1827, 1765, 1677, 1661, 1433, 1430, 1268, 1237, 946, 919, 854, 845, 671, 668, 520, 496, 463, 440, 437, 302, 247, 228, 143, 57, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Award>(?X1) :- <http://dbpedia.org/ontology/emmyAward>(?X,?X1) .
    INSERT INTO "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_emmyAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_goldenCalfAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_baftaAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_afiAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_goyaAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_tonyAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_arielAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_nationalFilmAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT t0.s FROM "dbrdf_Decoration" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.s);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_cesarAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_award" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_screenActorsGuildAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_americanComedyAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_peabodyAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_goldenRaspberryAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_gaudiAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_filmFareAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_geminiAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_grammyAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_britishComedyAwards" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_polishFilmAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_academyAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_iftaAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_olivierAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_laurenceOlivierAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_goldenGlobeAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award"(s) SELECT DISTINCT t0.o FROM "dbrdf_naacpImageAward" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t0.o);
    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 "dbrdf_Award" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Award" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Award"(s) SELECT DISTINCT t0.s 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 1967
    ---- 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 "dbrdf_MotorcycleRacingLeague" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_MotorcycleRacingLeague" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_MotorcycleRacingLeague"(s) SELECT DISTINCT t0.s 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 1968
    ---- 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 "dbrdf_functionStartDate" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_functionStartDate" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_functionStartDate" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_functionStartDate"(s, o) SELECT DISTINCT t0.s, 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 1969
    ---- DEPENDS ON: 1968, 1626, 1472, 1335, 1286, 1258, 1101, 495, 190, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/PersonFunction>(?X) :- <http://dbpedia.org/ontology/functionStartDate>(?X,?X1) .
    INSERT INTO "dbrdf_PersonFunction"(s) SELECT DISTINCT t0.s FROM "dbrdf_functionStartDate" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PersonFunction" ex WHERE ex.s = t0.s);
    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 "dbrdf_PersonFunction"(s) SELECT DISTINCT t0.s FROM "dbrdf_functionEndYear" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PersonFunction" ex WHERE ex.s = t0.s);
    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 "dbrdf_PersonFunction"(s) SELECT DISTINCT t0.s FROM "dbrdf_person" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PersonFunction" ex WHERE ex.s = t0.s);
    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 "dbrdf_PersonFunction"(s) SELECT DISTINCT t0.o FROM "dbrdf_leaderFunction" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PersonFunction" ex WHERE ex.s = t0.o);
    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 "dbrdf_PersonFunction"(s) SELECT DISTINCT t0.s FROM "dbrdf_functionEndDate" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PersonFunction" ex WHERE ex.s = t0.s);
    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 "dbrdf_PersonFunction"(s) SELECT DISTINCT t0.o FROM "dbrdf_occupation" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PersonFunction" ex WHERE ex.s = t0.o);
    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 "dbrdf_PersonFunction"(s) SELECT DISTINCT t0.s FROM "dbrdf_functionStartYear" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PersonFunction" ex WHERE ex.s = t0.s);
    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 "dbrdf_PersonFunction"(s) SELECT DISTINCT t0.o FROM "dbrdf_personFunction" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PersonFunction" ex WHERE ex.s = t0.o);
    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 "dbrdf_PersonFunction"(s) SELECT DISTINCT t0.s FROM "dbrdf_personName" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PersonFunction" ex WHERE ex.s = 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_PersonFunction_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_PersonFunction_delta_old"(s) SELECT t0.s FROM "dbrdf_PersonFunction" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_PersonFunction" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_PersonFunction"(s) SELECT DISTINCT t0.s 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: 1949, 1903, 1798, 1734, 1681, 1557, 1502, 1389, 1362, 1303, 1265, 1229, 1052, 1046, 1020, 977, 956, 920, 910, 899, 670, 595, 420, 279, 259, 122, 29, 23, 17, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Planet>(?X) :- <http://dbpedia.org/ontology/minimumTemperature>(?X,?X1) .
    INSERT INTO "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_minimumTemperature1" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_apoapsis2" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_albedo" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_maximumTemperature1" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_maximumTemperature0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_absoluteMagnitude" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_detectionMethod" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_periapsis2" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_escapeVelocity" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_satellite" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_volume1" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_temperature0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_meanRadius1" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_orbitalPeriod1" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_mass" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_epoch" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_meanTemperature1" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_apparentMagnitude" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_discovered" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Planet>(?X) :- <http://dbpedia.org/ontology/Planet/meanTemperature>(?X,?X1) .
    INSERT INTO "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_meanTemperature0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_averageSpeed0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_surfaceArea" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_temperature" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_surfaceArea0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_orbitalPeriod" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_minimumTemperature" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_density" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_meanRadius" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t0.s);
    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 "dbrdf_Planet"(s) SELECT DISTINCT t0.s FROM "dbrdf_rotationPeriod" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = 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_Planet_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Planet_delta_old"(s) SELECT t0.s FROM "dbrdf_Planet" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Planet" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Planet"(s) SELECT DISTINCT t0.s 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 1971
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_totalCargo_delta_old0"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_totalCargo_delta_old0"(s, o) SELECT t0.s, t0.o FROM "dbrdf_totalCargo0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_totalCargo_delta_old0" ON "dbrdf_totalCargo_delta_old0"(s, o); CREATE INDEX "IDX_1_dbrdf_totalCargo_delta_old0" ON "dbrdf_totalCargo_delta_old0"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_totalCargo_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/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_new0"(s, o) SELECT t1.o, t0.o FROM "dbrdf_totalCargo_delta_old0" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_totalCargo0" ex WHERE ex.s = t1.o 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_new0"(s, o) SELECT t0.s, t1.o FROM "dbrdf_totalCargo_delta_old0" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_totalCargo0" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_totalCargo0"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_totalCargo_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_totalCargo_delta_old0";
        INSERT INTO "dbrdf_totalCargo_delta_old0"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_totalCargo_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_totalCargo_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1972
    ---- DEPENDS ON: 1971, 1900, 1842, 1759, 1639, 1590, 1422, 1348, 1314, 1308, 1283, 1251, 1243, 1235, 1208, 1001, 967, 962, 883, 862, 806, 729, 724, 698, 665, 664, 662, 627, 519, 500, 415, 277, 145, 109, 80, 65, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/Spacecraft/totalCargo>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_totalCargo0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/Spacecraft/cargoFuel>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_cargoFuel0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X1) :- <http://dbpedia.org/ontology/spacecraft>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.o FROM "dbrdf_spacecraft" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/port1DockedTime>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_port1DockedTime0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/launch>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_launch" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/Spacecraft/cargoWater>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_cargoWater0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/Spacecraft/dockedTime>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_dockedTime0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/totalMass>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_totalMass0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/port2DockingDate>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_port2DockingDate" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/cargoGas>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_cargoGas0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/port1DockingDate>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_port1DockingDate" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/dockedTime>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_dockedTime" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/Spacecraft/totalMass>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_totalMass" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/targetSpaceStation>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_targetSpaceStation" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/Spacecraft/port2DockedTime>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_port2DockedTime0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/freeFlightTime>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_freeFlightTime0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/cargoWater>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_cargoWater" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/inclination>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_inclination" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/Spacecraft/freeFlightTime>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_freeFlightTime" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/totalCargo>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_totalCargo" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/decay>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_decay" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/port1UndockingDate>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_port1UndockingDate" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/Spacecraft/dryCargo>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_dryCargo" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/Spacecraft/cargoGas>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_cargoGas" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/regime>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_regime" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/crew>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_crew" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/cargoFuel>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_cargoFuel" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/dryCargo>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_dryCargo0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/rocket>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_rocket" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/port2UndockingDate>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_port2UndockingDate" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/Spacecraft/periapsis>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_periapsis0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/port2DockedTime>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_port2DockedTime" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/Spacecraft/port1DockedTime>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_port1DockedTime" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/port2>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_port2" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/port1>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_port1" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Spacecraft>(?X) :- <http://dbpedia.org/ontology/Spacecraft/apoapsis>(?X,?X1) .
    INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_apoapsis0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = 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_Spacecraft_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Spacecraft_delta_old"(s) SELECT t0.s FROM "dbrdf_Spacecraft" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Spacecraft_delta_old" ON "dbrdf_Spacecraft_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Spacecraft_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/Spacecraft$delta_new>(?Y) :- <http://dbpedia.org/ontology/Spacecraft$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Spacecraft_delta_new"(s) SELECT t1.o FROM "dbrdf_Spacecraft_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Spacecraft" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Spacecraft"(s) SELECT DISTINCT t0.s FROM "dbrdf_Spacecraft_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Spacecraft_delta_old";
        INSERT INTO "dbrdf_Spacecraft_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Spacecraft_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Spacecraft_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1973
    ---- 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 "dbrdf_photographer" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_photographer" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_photographer" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_photographer"(s, o) SELECT DISTINCT t0.s, 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 1974
    ---- DEPENDS ON: 1973, 1816, 761, 708, 602, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/TelevisionEpisode>(?X) :- <http://dbpedia.org/ontology/photographer>(?X,?X1) .
    INSERT INTO "dbrdf_TelevisionEpisode"(s) SELECT DISTINCT t0.s FROM "dbrdf_photographer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_TelevisionEpisode" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionEpisode>(?X) :- <http://dbpedia.org/ontology/guest>(?X,?X1) .
    INSERT INTO "dbrdf_TelevisionEpisode"(s) SELECT DISTINCT t0.s FROM "dbrdf_guest" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_TelevisionEpisode" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionEpisode>(?X) :- <http://dbpedia.org/ontology/seasonNumber>(?X,?X1) .
    INSERT INTO "dbrdf_TelevisionEpisode"(s) SELECT DISTINCT t0.s FROM "dbrdf_seasonNumber" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_TelevisionEpisode" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionEpisode>(?X) :- <http://dbpedia.org/ontology/episodeNumber>(?X,?X1) .
    INSERT INTO "dbrdf_TelevisionEpisode"(s) SELECT DISTINCT t0.s FROM "dbrdf_episodeNumber" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_TelevisionEpisode" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/TelevisionEpisode>(?X) :- <http://dbpedia.org/ontology/show>(?X,?X1) .
    INSERT INTO "dbrdf_TelevisionEpisode"(s) SELECT DISTINCT t0.s FROM "dbrdf_show" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_TelevisionEpisode" ex WHERE ex.s = 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_TVEpisode_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_TVEpisode_delta_old"(s) SELECT t0.s FROM "dbrdf_TVEpisode" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_TVEpisode_delta_old" ON "dbrdf_TVEpisode_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_TVEpisode_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_TelevisionEpisode_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_TelevisionEpisode_delta_old"(s) SELECT t0.s FROM "dbrdf_TelevisionEpisode" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_TelevisionEpisode_delta_old" ON "dbrdf_TelevisionEpisode_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_TelevisionEpisode_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/TVEpisode$delta_new>(?X) :- <http://dbpedia.org/ontology/TelevisionEpisode$delta_old>(?X) .
        INSERT INTO "dbrdf_TVEpisode_delta_new"(s) SELECT t0.s FROM "dbrdf_TelevisionEpisode_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_TVEpisode" ex WHERE ex.s = t0.s);


        -- <http://schema.org/TVEpisode$delta_new>(?Y) :- <http://schema.org/TVEpisode$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_TVEpisode_delta_new"(s) SELECT t1.o FROM "dbrdf_TVEpisode_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_TVEpisode" ex WHERE ex.s = t1.o);


        -- <http://dbpedia.org/ontology/TelevisionEpisode$delta_new>(?X) :- <http://schema.org/TVEpisode$delta_old>(?X) .
        INSERT INTO "dbrdf_TelevisionEpisode_delta_new"(s) SELECT t0.s FROM "dbrdf_TVEpisode_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_TelevisionEpisode" ex WHERE ex.s = t0.s);


        -- <http://dbpedia.org/ontology/TelevisionEpisode$delta_new>(?Y) :- <http://dbpedia.org/ontology/TelevisionEpisode$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_TelevisionEpisode_delta_new"(s) SELECT t1.o FROM "dbrdf_TelevisionEpisode_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_TelevisionEpisode" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_TVEpisode"(s) SELECT DISTINCT t0.s FROM "dbrdf_TVEpisode_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_TVEpisode_delta_old";
        INSERT INTO "dbrdf_TVEpisode_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_TVEpisode_delta_new" t0;
        TRUNCATE TABLE "dbrdf_TVEpisode_delta_new";

        INSERT INTO "dbrdf_TelevisionEpisode"(s) SELECT DISTINCT t0.s FROM "dbrdf_TelevisionEpisode_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_TelevisionEpisode_delta_old";
        INSERT INTO "dbrdf_TelevisionEpisode_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_TelevisionEpisode_delta_new" t0;
        TRUNCATE TABLE "dbrdf_TelevisionEpisode_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_party_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_party_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_party" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_party" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_party" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_party"(s, o) SELECT DISTINCT t0.s, 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 1976
    ---- DEPENDS ON: 1975, 1674, 1552, 1548, 1506, 1438, 1324, 1073, 747, 731, 306, 252, 201, 124, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/PoliticalParty>(?X1) :- <http://dbpedia.org/ontology/mergedIntoParty>(?X,?X1) .
    INSERT INTO "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.o FROM "dbrdf_mergedIntoParty" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.o);
    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 "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.s FROM "dbrdf_europeanParliamentGroup" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.s);
    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 "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfMembersAsOf" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.s);
    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 "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.o FROM "dbrdf_otherParty" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.o);
    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 "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.s FROM "dbrdf_internationalAffiliation" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.s);
    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 "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.o FROM "dbrdf_party" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.o);
    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 "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.s FROM "dbrdf_spokesperson" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.s);
    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 "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.o FROM "dbrdf_splitFromParty" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.o);
    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 "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.o FROM "dbrdf_politicalPartyOfLeader" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/PoliticalParty>(?X1) :- <http://dbpedia.org/ontology/viceLeaderParty>(?X,?X1) .
    INSERT INTO "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.o FROM "dbrdf_viceLeaderParty" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.o);
    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 "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.s FROM "dbrdf_mergedIntoParty" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.s);
    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 "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.s FROM "dbrdf_splitFromParty" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.s);
    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 "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.s FROM "dbrdf_europeanAffiliation" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.s);
    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 "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.s FROM "dbrdf_youthWing" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.s);
    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 "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.s FROM "dbrdf_nationalAffiliation" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.s);
    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 "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.o FROM "dbrdf_politicalPartyInLegislature" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t0.o);
    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 "dbrdf_PoliticalParty" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_PoliticalParty" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_PoliticalParty"(s) SELECT DISTINCT t0.s 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 1977
    ---- 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 "dbrdf_TennisTournament" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_TennisTournament" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_TennisTournament"(s) SELECT DISTINCT t0.s 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 1978
    ---- DEPENDS ON: 1977, 1876, 1797, 1093, 921, 787, 1789, 630, 1567, 219, 79, 1887, 1873, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/SportsEvent>(?X) :- <http://dbpedia.org/ontology/TennisTournament>(?X) .
    INSERT INTO "dbrdf_SportsEvent0"(s) SELECT t0.s FROM "dbrdf_TennisTournament" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SportsEvent>(?X) :- <http://dbpedia.org/ontology/goldMedalist>(?X,?X1) .
    INSERT INTO "dbrdf_SportsEvent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_goldMedalist" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SportsEvent>(?X) :- <http://dbpedia.org/ontology/Race>(?X) .
    INSERT INTO "dbrdf_SportsEvent0"(s) SELECT t0.s FROM "dbrdf_Race" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SportsEvent>(?X) :- <http://dbpedia.org/ontology/WomensTennisAssociationTournament>(?X) .
    INSERT INTO "dbrdf_SportsEvent0"(s) SELECT t0.s FROM "dbrdf_WomensTennisAssociationTournament" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SportsEvent>(?X) :- <http://dbpedia.org/ontology/MixedMartialArtsEvent>(?X) .
    INSERT INTO "dbrdf_SportsEvent0"(s) SELECT t0.s FROM "dbrdf_MixedMartialArtsEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SportsEvent>(?X) :- <http://dbpedia.org/ontology/silverMedalist>(?X,?X1) .
    INSERT INTO "dbrdf_SportsEvent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_silverMedalist" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SportsEvent>(?X) :- <http://dbpedia.org/ontology/Olympics>(?X) .
    INSERT INTO "dbrdf_SportsEvent0"(s) SELECT t0.s FROM "dbrdf_Olympics" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SportsEvent>(?X) :- <http://dbpedia.org/ontology/medalist>(?X,?X1) .
    INSERT INTO "dbrdf_SportsEvent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_medalist" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SportsEvent>(?X) :- <http://dbpedia.org/ontology/SoccerTournament>(?X) .
    INSERT INTO "dbrdf_SportsEvent0"(s) SELECT t0.s FROM "dbrdf_SoccerTournament" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SportsEvent>(?X) :- <http://dbpedia.org/ontology/FootballMatch>(?X) .
    INSERT INTO "dbrdf_SportsEvent0"(s) SELECT t0.s FROM "dbrdf_FootballMatch" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SportsEvent>(?X) :- <http://dbpedia.org/ontology/WrestlingEvent>(?X) .
    INSERT INTO "dbrdf_SportsEvent0"(s) SELECT t0.s FROM "dbrdf_WrestlingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SportsEvent>(?X) :- <http://dbpedia.org/ontology/GrandPrix>(?X) .
    INSERT INTO "dbrdf_SportsEvent0"(s) SELECT t0.s FROM "dbrdf_GrandPrix" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SportsEvent>(?X) :- <http://dbpedia.org/ontology/bronzeMedalist>(?X,?X1) .
    INSERT INTO "dbrdf_SportsEvent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_bronzeMedalist" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent0" ex WHERE ex.s = 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_SportsEvent_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SportsEvent_delta_old"(s) SELECT t0.s FROM "dbrdf_SportsEvent" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SportsEvent_delta_old" ON "dbrdf_SportsEvent_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsEvent_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsEvent_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SportsEvent_delta_old0"(s) SELECT t0.s FROM "dbrdf_SportsEvent0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SportsEvent_delta_old0" ON "dbrdf_SportsEvent_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsEvent_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/SportsEvent$delta_new>(?X) :- <http://dbpedia.org/ontology/SportsEvent$delta_old>(?X) .
        INSERT INTO "dbrdf_SportsEvent_delta_new"(s) SELECT t0.s FROM "dbrdf_SportsEvent_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent" ex WHERE ex.s = t0.s);


        -- <http://schema.org/SportsEvent$delta_new>(?Y) :- <http://schema.org/SportsEvent$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_SportsEvent_delta_new"(s) SELECT t1.o FROM "dbrdf_SportsEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent" ex WHERE ex.s = t1.o);


        -- <http://dbpedia.org/ontology/SportsEvent$delta_new>(?X) :- <http://schema.org/SportsEvent$delta_old>(?X) .
        INSERT INTO "dbrdf_SportsEvent_delta_new0"(s) SELECT t0.s FROM "dbrdf_SportsEvent_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent0" ex WHERE ex.s = t0.s);


        -- <http://dbpedia.org/ontology/SportsEvent$delta_new>(?Y) :- <http://dbpedia.org/ontology/SportsEvent$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_SportsEvent_delta_new0"(s) SELECT t1.o FROM "dbrdf_SportsEvent_delta_old0" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_SportsEvent0" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_SportsEvent"(s) SELECT DISTINCT t0.s FROM "dbrdf_SportsEvent_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SportsEvent_delta_old";
        INSERT INTO "dbrdf_SportsEvent_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SportsEvent_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SportsEvent_delta_new";

        INSERT INTO "dbrdf_SportsEvent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_SportsEvent_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_SportsEvent_delta_old0";
        INSERT INTO "dbrdf_SportsEvent_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_SportsEvent_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_SportsEvent_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1979
    ---- DEPENDS ON: 1710, 1387, 1291, 1230, 1978, 996, 984, 971, 741, 626, 624, 1890, 1719, 486, 328, 1905, 121, 1111, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://schema.org/Event>(?X) :- <http://dbpedia.org/ontology/duration>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_duration" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/followingEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event0"(s) SELECT DISTINCT t0.s FROM "dbrdf_followingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/FilmFestival>(?X) .
    INSERT INTO "dbrdf_Event0"(s) SELECT t0.s FROM "dbrdf_FilmFestival" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/startDate>(?X,?X1) .
    INSERT INTO "dbrdf_Event0"(s) SELECT DISTINCT t0.s FROM "dbrdf_startDate" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/SportsEvent>(?X) .
    INSERT INTO "dbrdf_Event0"(s) SELECT t0.s FROM "dbrdf_SportsEvent0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X1) :- <http://dbpedia.org/ontology/previousEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event0"(s) SELECT DISTINCT t0.o FROM "dbrdf_previousEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/Year>(?X) .
    INSERT INTO "dbrdf_Event0"(s) SELECT t0.s FROM "dbrdf_Year" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/previousEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event0"(s) SELECT DISTINCT t0.s FROM "dbrdf_previousEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X1) :- <http://dbpedia.org/ontology/event>(?X,?X1) .
    INSERT INTO "dbrdf_Event0"(s) SELECT DISTINCT t0.o FROM "dbrdf_event" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/YearInSpaceflight>(?X) .
    INSERT INTO "dbrdf_Event0"(s) SELECT t0.s FROM "dbrdf_YearInSpaceflight" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X1) :- <http://dbpedia.org/ontology/followingEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event0"(s) SELECT DISTINCT t0.o FROM "dbrdf_followingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/MilitaryConflict>(?X) .
    INSERT INTO "dbrdf_Event0"(s) SELECT t0.s FROM "dbrdf_MilitaryConflict" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/period>(?X,?X1) .
    INSERT INTO "dbrdf_Event0"(s) SELECT DISTINCT t0.s FROM "dbrdf_period" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/endDate>(?X,?X1) .
    INSERT INTO "dbrdf_Event0"(s) SELECT DISTINCT t0.s FROM "dbrdf_endDate" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/SpaceMission>(?X) .
    INSERT INTO "dbrdf_Event0"(s) SELECT t0.s FROM "dbrdf_SpaceMission" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/MusicFestival>(?X) .
    INSERT INTO "dbrdf_Event0"(s) SELECT t0.s FROM "dbrdf_MusicFestival" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/participant>(?X,?X1) .
    INSERT INTO "dbrdf_Event0"(s) SELECT DISTINCT t0.s FROM "dbrdf_participant" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/Convention>(?X) .
    INSERT INTO "dbrdf_Event0"(s) SELECT t0.s FROM "dbrdf_Convention" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/numberOfPeopleAttending>(?X,?X1) .
    INSERT INTO "dbrdf_Event0"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfPeopleAttending" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Event>(?X) :- <http://dbpedia.org/ontology/Election>(?X) .
    INSERT INTO "dbrdf_Event0"(s) SELECT t0.s FROM "dbrdf_Election" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = 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_Event_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Event_delta_old"(s) SELECT t0.s FROM "dbrdf_Event" t0;
    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);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Event_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Event_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Event_delta_old0"(s) SELECT t0.s FROM "dbrdf_Event0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Event_delta_old0" ON "dbrdf_Event_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Event_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/Event$delta_new>(?X) :- <http://dbpedia.org/ontology/Event$delta_old>(?X) .
        INSERT INTO "dbrdf_Event_delta_new"(s) SELECT t0.s FROM "dbrdf_Event_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event" ex WHERE ex.s = t0.s);


        -- <http://schema.org/Event$delta_new>(?Y) :- <http://schema.org/Event$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Event_delta_new"(s) SELECT t1.o FROM "dbrdf_Event_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Event" ex WHERE ex.s = t1.o);


        -- <http://dbpedia.org/ontology/Event$delta_new>(?X) :- <http://schema.org/Event$delta_old>(?X) .
        INSERT INTO "dbrdf_Event_delta_new0"(s) SELECT t0.s FROM "dbrdf_Event_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t0.s);


        -- <http://dbpedia.org/ontology/Event$delta_new>(?Y) :- <http://dbpedia.org/ontology/Event$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Event_delta_new0"(s) SELECT t1.o FROM "dbrdf_Event_delta_old0" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Event0" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s 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) SELECT DISTINCT t0.s FROM "dbrdf_Event_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Event_delta_new";

        INSERT INTO "dbrdf_Event0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Event_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_Event_delta_old0";
        INSERT INTO "dbrdf_Event_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Event_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Event_delta_new0";

    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_isbn_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_isbn_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_isbn" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_isbn" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_isbn" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_isbn"(s, o) SELECT DISTINCT t0.s, 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 1981
    ---- DEPENDS ON: 1980, 1918, 1597, 1380, 1216, 1156, 176, 125, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Book>(?X) :- <http://dbpedia.org/ontology/isbn>(?X,?X1) .
    INSERT INTO "dbrdf_Book0"(s) SELECT DISTINCT t0.s FROM "dbrdf_isbn" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Book0" ex WHERE ex.s = t0.s);
    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 "dbrdf_Book0"(s) SELECT DISTINCT t0.o FROM "dbrdf_notableWork" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Book0" ex WHERE ex.s = t0.o);
    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 "dbrdf_Book0"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfPages" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Book0" ex WHERE ex.s = t0.s);
    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 "dbrdf_Book0"(s) SELECT DISTINCT t0.s FROM "dbrdf_nonFictionSubject" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Book0" ex WHERE ex.s = t0.s);
    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 "dbrdf_Book0"(s) SELECT DISTINCT t0.s FROM "dbrdf_dcc" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Book0" ex WHERE ex.s = t0.s);
    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 "dbrdf_Book0"(s) SELECT DISTINCT t0.s FROM "dbrdf_illustrator" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Book0" ex WHERE ex.s = t0.s);
    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 "dbrdf_Book0"(s) SELECT DISTINCT t0.s FROM "dbrdf_coverArtist" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Book0" ex WHERE ex.s = t0.s);
    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 "dbrdf_Book0"(s) SELECT DISTINCT t0.s FROM "dbrdf_mediaType" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Book0" ex WHERE ex.s = 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_Book_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Book_delta_old"(s) SELECT t0.s FROM "dbrdf_Book" t0;
    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 "dbrdf_Book1" t0;
    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 "dbrdf_Book0" t0;
    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://schema.org/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 "dbrdf_Book" ex WHERE ex.s = t0.s);


        -- <http://schema.org/Book$delta_new>(?Y) :- <http://schema.org/Book$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Book_delta_new"(s) SELECT t1.o FROM "dbrdf_Book_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Book" ex WHERE ex.s = t1.o);


        -- <http://purl.org/ontology/bibo/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 "dbrdf_Book1" ex WHERE ex.s = t0.s);


        -- <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_new0"(s) SELECT t1.o FROM "dbrdf_Book_delta_old0" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Book1" ex WHERE ex.s = t1.o);


        -- <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_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Book0" ex WHERE ex.s = t0.s);


        -- <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_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Book0" ex WHERE ex.s = t0.s);


        -- <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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Book0" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Book"(s) SELECT DISTINCT t0.s 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 "dbrdf_Book1"(s) SELECT DISTINCT t0.s 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 "dbrdf_Book0"(s) SELECT DISTINCT t0.s 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 1982
    ---- 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 "dbrdf_winsInEurope" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_winsInEurope" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_winsInEurope" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_winsInEurope"(s, o) SELECT DISTINCT t0.s, 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 1983
    ---- DEPENDS ON: 1982, 1924, 1624, 1363, 1004, 702, 605, 462, 421, 401, 355, 272, 269, 203, 202, 96, 94, 71, 61, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/GolfPlayer>(?X) :- <http://dbpedia.org/ontology/winsInEurope>(?X,?X1) .
    INSERT INTO "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsInEurope" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtJapan" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtJLPGA" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtProTournaments" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtAsia" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtMajors" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtAus" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtSun" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtNWIDE" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtOtherTournaments" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtChampionships" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtPGA" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtAlpg" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtLET" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtLAGT" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtChallenges" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtSenEuro" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtLPGA" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t0.s);
    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 "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_winsAtKLPGA" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = 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_GolfPlayer_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_GolfPlayer_delta_old"(s) SELECT t0.s FROM "dbrdf_GolfPlayer" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_GolfPlayer" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_GolfPlayer"(s) SELECT DISTINCT t0.s 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 1984
    ---- 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 "dbrdf_VolleyballLeague" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_VolleyballLeague" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_VolleyballLeague"(s) SELECT DISTINCT t0.s 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 1985
    ---- DEPENDS ON: 1984, 1967, 1893, 1697, 1696, 1544, 1510, 1500, 1480, 1464, 1452, 1435, 1377, 1342, 1212, 1070, 1013, 1204, 667, 550, 424, 423, 1939, 292, 284, 193, 154, 140, 126, 55, 27, 26, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/SportsLeague>(?X) :- <http://dbpedia.org/ontology/VolleyballLeague>(?X) .
    INSERT INTO "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_VolleyballLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_MotorcycleRacingLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_HandballLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_BaseballLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_LacrosseLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_MixedMartialArtsLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_PoloLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_AutoRacingLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_AustralianFootballLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_CyclingLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_BoxingLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT DISTINCT t0.s FROM "dbrdf_currentSeason" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_CanadianFootballLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_SpeedwayLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT DISTINCT t0.o FROM "dbrdf_league" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.o);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_InlineHockeyLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_PaintballLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_FormulaOneRacing" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_VideogamesLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_AmericanFootballLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_GolfLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_CurlingLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_SoccerLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_BasketballLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_SoftballLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_RadioControlledRacingLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_BowlingLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_FieldHockeyLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_TennisLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_CricketLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_IceHockeyLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t0.s);
    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 "dbrdf_SportsLeague"(s) SELECT t0.s FROM "dbrdf_RugbyLeague" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = 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_SportsLeague_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SportsLeague_delta_old"(s) SELECT t0.s FROM "dbrdf_SportsLeague" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_SportsLeague" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_SportsLeague"(s) SELECT DISTINCT t0.s 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 1986
    ---- 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 "dbrdf_city" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_city" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_city" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_city"(s, o) SELECT DISTINCT t0.s, 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 1987
    ---- DEPENDS ON: 1986, 1483, 1465, 575, 387, 309, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/City>(?X1) :- <http://dbpedia.org/ontology/city>(?X,?X1) .
    INSERT INTO "dbrdf_City0"(s) SELECT DISTINCT t0.o FROM "dbrdf_city" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_City0" ex WHERE ex.s = t0.o);
    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 "dbrdf_City0"(s) SELECT DISTINCT t0.o FROM "dbrdf_capital" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_City0" ex WHERE ex.s = t0.o);
    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 "dbrdf_City0"(s) SELECT DISTINCT t0.o FROM "dbrdf_foundationPlace" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_City0" ex WHERE ex.s = t0.o);
    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 "dbrdf_City0"(s) SELECT DISTINCT t0.s FROM "dbrdf_crownDependency" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_City0" ex WHERE ex.s = t0.s);
    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 "dbrdf_City0"(s) SELECT DISTINCT t0.o FROM "dbrdf_locationCity" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_City0" ex WHERE ex.s = t0.o);
    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 "dbrdf_City0"(s) SELECT DISTINCT t0.o FROM "dbrdf_beltwayCity" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_City0" ex WHERE ex.s = t0.o);
    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 "dbrdf_City" t0;
    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 "dbrdf_City0" t0;
    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 "dbrdf_City" ex WHERE ex.s = t0.s);


        -- <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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_City" ex WHERE ex.s = t1.o);


        -- <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 "dbrdf_City0" ex WHERE ex.s = t0.s);


        -- <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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_City0" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_City"(s) SELECT DISTINCT t0.s 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 "dbrdf_City0"(s) SELECT DISTINCT t0.s 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 1988
    ---- 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 "dbrdf_certification" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_certification" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_certification" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_certification"(s, o) SELECT DISTINCT t0.s, 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 1989
    ---- DEPENDS ON: 1988, 1862, 1261, 769, 650, 186, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Single>(?X) :- <http://dbpedia.org/ontology/certification>(?X,?X1) .
    INSERT INTO "dbrdf_Single"(s) SELECT DISTINCT t0.s FROM "dbrdf_certification" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Single" ex WHERE ex.s = t0.s);
    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 "dbrdf_Single"(s) SELECT DISTINCT t0.s FROM "dbrdf_musicalBand" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Single" ex WHERE ex.s = t0.s);
    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 "dbrdf_Single"(s) SELECT DISTINCT t0.s FROM "dbrdf_certificationDate" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Single" ex WHERE ex.s = t0.s);
    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 "dbrdf_Single"(s) SELECT DISTINCT t0.s FROM "dbrdf_aSide" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Single" ex WHERE ex.s = t0.s);
    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 "dbrdf_Single"(s) SELECT DISTINCT t0.s FROM "dbrdf_bSide" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Single" ex WHERE ex.s = t0.s);
    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 "dbrdf_Single"(s) SELECT DISTINCT t0.s FROM "dbrdf_musicalArtist" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Single" ex WHERE ex.s = 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_Single_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Single_delta_old"(s) SELECT t0.s FROM "dbrdf_Single" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Single" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Single"(s) SELECT DISTINCT t0.s 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 1990
    ---- 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 "dbrdf_nationalRanking" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_nationalRanking" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_nationalRanking" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_nationalRanking"(s, o) SELECT DISTINCT t0.s, 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 1991
    ---- DEPENDS ON: 1936, 1864, 1471, 478, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- [Rule] <http://dbpedia.org/ontology/Monarch>(?X) :- <http://dbpedia.org/ontology/dateOfBurial>(?X,?X1) .
    INSERT INTO "dbrdf_Monarch"(s) SELECT DISTINCT t0.s FROM "dbrdf_dateOfBurial" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Monarch" ex WHERE ex.s = t0.s);
    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 "dbrdf_Monarch"(s) SELECT DISTINCT t0.s FROM "dbrdf_dynasty" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Monarch" ex WHERE ex.s = t0.s);
    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 "dbrdf_Monarch"(s) SELECT DISTINCT t0.s FROM "dbrdf_placeOfBurial" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Monarch" ex WHERE ex.s = 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_Monarch_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Monarch_delta_old"(s) SELECT t0.s FROM "dbrdf_Monarch" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Monarch" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Monarch"(s) SELECT DISTINCT t0.s 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 1992
    ---- DEPENDS ON: 0, 1608, 1555, 1295, 1276, 1144, 377, 256, 153
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Automobile>(?X) :- <http://dbpedia.org/ontology/Automobile/wheelbase>(?X,?X1) .
    INSERT INTO "dbrdf_Automobile"(s) SELECT DISTINCT t0.s FROM "dbrdf_wheelbase0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Automobile" ex WHERE ex.s = t0.s);
    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 "dbrdf_Automobile"(s) SELECT DISTINCT t0.s FROM "dbrdf_layout" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Automobile" ex WHERE ex.s = t0.s);
    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 "dbrdf_Automobile"(s) SELECT DISTINCT t0.s FROM "dbrdf_fuelCapacity0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Automobile" ex WHERE ex.s = t0.s);
    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 "dbrdf_Automobile"(s) SELECT DISTINCT t0.s FROM "dbrdf_transmission" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Automobile" ex WHERE ex.s = t0.s);
    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 "dbrdf_Automobile"(s) SELECT DISTINCT t0.s FROM "dbrdf_wheelbase" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Automobile" ex WHERE ex.s = t0.s);
    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 "dbrdf_Automobile"(s) SELECT DISTINCT t0.s FROM "dbrdf_bodyStyle" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Automobile" ex WHERE ex.s = t0.s);
    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 "dbrdf_Automobile"(s) SELECT DISTINCT t0.o FROM "dbrdf_automobilePlatform" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Automobile" ex WHERE ex.s = t0.o);
    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 "dbrdf_Automobile"(s) SELECT DISTINCT t0.s FROM "dbrdf_automobilePlatform" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Automobile" ex WHERE ex.s = t0.s);
    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 "dbrdf_Automobile"(s) SELECT DISTINCT t0.o FROM "dbrdf_vehicle" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Automobile" ex WHERE ex.s = t0.o);
    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 "dbrdf_Automobile"(s) SELECT DISTINCT t0.s FROM "dbrdf_engine" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Automobile" ex WHERE ex.s = t0.s);
    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 "dbrdf_Automobile"(s) SELECT DISTINCT t0.s FROM "dbrdf_fuelCapacity" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Automobile" ex WHERE ex.s = 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_Automobile_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Automobile_delta_old"(s) SELECT t0.s FROM "dbrdf_Automobile" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Automobile" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Automobile"(s) SELECT DISTINCT t0.s 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 1993
    ---- DEPENDS ON: 1992, 1632, 1961, 1596, 1709, 1825, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://schema.org/Product>(?X) :- <http://dbpedia.org/ontology/Automobile>(?X) .
    INSERT INTO "dbrdf_Product"(s) SELECT t0.s FROM "dbrdf_Automobile" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Product" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://schema.org/Product>(?X) :- <http://dbpedia.org/ontology/Instrument>(?X) .
    INSERT INTO "dbrdf_Product"(s) SELECT t0.s FROM "dbrdf_Instrument" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Product" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://schema.org/Product>(?X) :- <http://dbpedia.org/ontology/Aircraft>(?X) .
    INSERT INTO "dbrdf_Product"(s) SELECT t0.s FROM "dbrdf_Aircraft" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Product" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://schema.org/Product>(?X) :- <http://dbpedia.org/ontology/Locomotive>(?X) .
    INSERT INTO "dbrdf_Product"(s) SELECT t0.s FROM "dbrdf_Locomotive" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Product" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://schema.org/Product>(?X) :- <http://dbpedia.org/ontology/Ship>(?X) .
    INSERT INTO "dbrdf_Product"(s) SELECT t0.s FROM "dbrdf_Ship" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Product" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://schema.org/Product>(?X) :- <http://dbpedia.org/ontology/Weapon>(?X) .
    INSERT INTO "dbrdf_Product"(s) SELECT t0.s FROM "dbrdf_Weapon" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Product" ex WHERE ex.s = 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_Product_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Product_delta_old"(s) SELECT t0.s FROM "dbrdf_Product" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Product_delta_old" ON "dbrdf_Product_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Product_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/Product$delta_new>(?Y) :- <http://schema.org/Product$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Product_delta_new"(s) SELECT t1.o FROM "dbrdf_Product_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Product" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Product"(s) SELECT DISTINCT t0.s FROM "dbrdf_Product_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Product_delta_old";
        INSERT INTO "dbrdf_Product_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Product_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Product_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1994
    ---- 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 "dbrdf_specialist" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_specialist" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_specialist" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_specialist"(s, o) SELECT DISTINCT t0.s, 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 1995
    ---- DEPENDS ON: 1994, 1990, 1884, 1866, 1841, 1777, 1690, 1654, 1593, 1591, 1589, 1568, 1519, 1468, 1425, 1383, 1312, 1284, 1280, 1271, 1260, 1231, 1200, 1196, 1188, 1147, 1123, 1044, 990, 935, 913, 860, 820, 669, 632, 622, 546, 509, 497, 425, 376, 372, 314, 289, 238, 168, 98, 92, 16, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/specialist>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_specialist" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/nationalRanking>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_nationalRanking" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/grades>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_grades" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/schoolCode>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_schoolCode" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/ageRange>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_ageRange" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/lowerAge>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_lowerAge" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/teamName>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_teamName" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/ratio>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_ratio" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/dfE>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_dfE" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/denomination>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_denomination" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/schoolPatron>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_schoolPatron" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/tuition>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_tuition" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/custodian>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_custodian" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X1) :- <http://dbpedia.org/ontology/highschool>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.o FROM "dbrdf_highschool" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/oversight>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_oversight" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X1) :- <http://dbpedia.org/ontology/rival>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.o FROM "dbrdf_rival" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/schoolBoard>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_schoolBoard" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/religiousHeadLabel>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_religiousHeadLabel" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/actingHeadteacher>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_actingHeadteacher" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/schoolNumber>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_schoolNumber" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/teachingStaff>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_teachingStaff" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/barPassRate>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_barPassRate" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/ranking>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_ranking" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/religiousHead>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_religiousHead" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/headteacher>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_headteacher" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/actScore>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_actScore" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/averageClassSize>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_averageClassSize" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/executiveHeadteacher>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_executiveHeadteacher" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/administrator>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_administrator" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/rival>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_rival" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/vicePrincipal>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_vicePrincipal" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/ceeb>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_ceeb" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/numberOfClassrooms>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfClassrooms" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/chaplain>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_chaplain" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/campusType>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_campusType" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/vicePrincipalLabel>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_vicePrincipalLabel" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/classes>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_classes" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/satScore>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_satScore" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/reopened>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_reopened" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/uRN>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_uRN" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/assistantPrincipal>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_assistantPrincipal" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/testaverage>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_testaverage" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/offeredClasses>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_offeredClasses" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/headLabel>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_headLabel" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/fees>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_fees" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/sixthFormStudents>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_sixthFormStudents" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/upperAge>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_upperAge" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/School/campusSize>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_campusSize" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/campusSize>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_campusSize0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/School>(?X) :- <http://dbpedia.org/ontology/nobelLaureates>(?X,?X1) .
    INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_nobelLaureates" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = 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_School_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_School_delta_old"(s) SELECT t0.s FROM "dbrdf_School" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_School_delta_old" ON "dbrdf_School_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_School_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_School_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_School_delta_old0"(s) SELECT t0.s FROM "dbrdf_School0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_School_delta_old0" ON "dbrdf_School_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_School_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/School$delta_new>(?X) :- <http://dbpedia.org/ontology/School$delta_old>(?X) .
        INSERT INTO "dbrdf_School_delta_new"(s) SELECT t0.s FROM "dbrdf_School_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School" ex WHERE ex.s = t0.s);


        -- <http://schema.org/School$delta_new>(?Y) :- <http://schema.org/School$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_School_delta_new"(s) SELECT t1.o FROM "dbrdf_School_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_School" ex WHERE ex.s = t1.o);


        -- <http://dbpedia.org/ontology/School$delta_new>(?X) :- <http://schema.org/School$delta_old>(?X) .
        INSERT INTO "dbrdf_School_delta_new0"(s) SELECT t0.s FROM "dbrdf_School_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t0.s);


        -- <http://dbpedia.org/ontology/School$delta_new>(?Y) :- <http://dbpedia.org/ontology/School$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_School_delta_new0"(s) SELECT t1.o FROM "dbrdf_School_delta_old0" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_School0" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_School"(s) SELECT DISTINCT t0.s FROM "dbrdf_School_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_School_delta_old";
        INSERT INTO "dbrdf_School_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_School_delta_new" t0;
        TRUNCATE TABLE "dbrdf_School_delta_new";

        INSERT INTO "dbrdf_School0"(s) SELECT DISTINCT t0.s FROM "dbrdf_School_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_School_delta_old0";
        INSERT INTO "dbrdf_School_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_School_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_School_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1996
    ---- DEPENDS ON: 1957, 1615, 1556, 1512, 1466, 1281, 1820, 1130, 1083, 1025, 933, 912, 866, 786, 759, 689, 1078, 1995, 558, 354, 340, 48, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/rector>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.s FROM "dbrdf_rector" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X1) :- <http://dbpedia.org/ontology/university>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.o FROM "dbrdf_university" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/numberOfAcademicStaff>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfAcademicStaff" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/alumni>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.s FROM "dbrdf_alumni" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/numberOfGraduateStudents>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfGraduateStudents" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/University>(?X) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT t0.s FROM "dbrdf_University0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/head>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.s FROM "dbrdf_head" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/dean>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.s FROM "dbrdf_dean" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/closed>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.s FROM "dbrdf_closed" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/officialSchoolColour>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.s FROM "dbrdf_officialSchoolColour" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/facultySize>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.s FROM "dbrdf_facultySize" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X1) :- <http://dbpedia.org/ontology/formerHighschool>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.o FROM "dbrdf_formerHighschool" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X1) :- <http://dbpedia.org/ontology/school>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.o FROM "dbrdf_school" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/Library>(?X) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT t0.s FROM "dbrdf_Library0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/School>(?X) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT t0.s FROM "dbrdf_School0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/principal>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.s FROM "dbrdf_principal" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/numberOfUndergraduateStudents>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfUndergraduateStudents" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/College>(?X) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT t0.s FROM "dbrdf_College" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/educationSystem>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.s FROM "dbrdf_educationSystem" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X1) :- <http://dbpedia.org/ontology/training>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.o FROM "dbrdf_training" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/numberOfStudents>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfStudents" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X1) :- <http://dbpedia.org/ontology/almaMater>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.o FROM "dbrdf_almaMater" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/EducationalInstitution>(?X) :- <http://dbpedia.org/ontology/staff>(?X,?X1) .
    INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.s FROM "dbrdf_staff" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = 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_EducationalOrganization_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_EducationalOrganization_delta_old"(s) SELECT t0.s FROM "dbrdf_EducationalOrganization" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_EducationalOrganization_delta_old" ON "dbrdf_EducationalOrganization_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_EducationalOrganization_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_EducationalInstitution_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_EducationalInstitution_delta_old"(s) SELECT t0.s FROM "dbrdf_EducationalInstitution" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_EducationalInstitution_delta_old" ON "dbrdf_EducationalInstitution_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_EducationalInstitution_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/EducationalOrganization$delta_new>(?X) :- <http://dbpedia.org/ontology/EducationalInstitution$delta_old>(?X) .
        INSERT INTO "dbrdf_EducationalOrganization_delta_new"(s) SELECT t0.s FROM "dbrdf_EducationalInstitution_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalOrganization" ex WHERE ex.s = t0.s);


        -- <http://schema.org/EducationalOrganization$delta_new>(?Y) :- <http://schema.org/EducationalOrganization$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_EducationalOrganization_delta_new"(s) SELECT t1.o FROM "dbrdf_EducationalOrganization_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalOrganization" ex WHERE ex.s = t1.o);


        -- <http://dbpedia.org/ontology/EducationalInstitution$delta_new>(?X) :- <http://schema.org/EducationalOrganization$delta_old>(?X) .
        INSERT INTO "dbrdf_EducationalInstitution_delta_new"(s) SELECT t0.s FROM "dbrdf_EducationalOrganization_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t0.s);


        -- <http://dbpedia.org/ontology/EducationalInstitution$delta_new>(?Y) :- <http://dbpedia.org/ontology/EducationalInstitution$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_EducationalInstitution_delta_new"(s) SELECT t1.o FROM "dbrdf_EducationalInstitution_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_EducationalInstitution" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_EducationalOrganization"(s) SELECT DISTINCT t0.s FROM "dbrdf_EducationalOrganization_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_EducationalOrganization_delta_old";
        INSERT INTO "dbrdf_EducationalOrganization_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_EducationalOrganization_delta_new" t0;
        TRUNCATE TABLE "dbrdf_EducationalOrganization_delta_new";

        INSERT INTO "dbrdf_EducationalInstitution"(s) SELECT DISTINCT t0.s FROM "dbrdf_EducationalInstitution_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_EducationalInstitution_delta_old";
        INSERT INTO "dbrdf_EducationalInstitution_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_EducationalInstitution_delta_new" t0;
        TRUNCATE TABLE "dbrdf_EducationalInstitution_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1997
    ---- 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 "dbrdf_numberOfPads" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_numberOfPads" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_numberOfPads" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_numberOfPads"(s, o) SELECT DISTINCT t0.s, 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 1998
    ---- DEPENDS ON: 1997, 1691, 1521, 1415, 1402, 1184, 809, 803, 552, 184, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/LaunchPad>(?X1) :- <http://dbpedia.org/ontology/launchPad>(?X,?X1) .
    INSERT INTO "dbrdf_LaunchPad"(s) SELECT DISTINCT t0.o FROM "dbrdf_launchPad" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_LaunchPad" ex WHERE ex.s = t0.o);
    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 "dbrdf_LaunchPad"(s) SELECT DISTINCT t0.s FROM "dbrdf_minimumInclination" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_LaunchPad" ex WHERE ex.s = t0.s);
    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 "dbrdf_LaunchPad"(s) SELECT DISTINCT t0.s FROM "dbrdf_lastLaunchDate" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_LaunchPad" ex WHERE ex.s = t0.s);
    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 "dbrdf_LaunchPad"(s) SELECT DISTINCT t0.s FROM "dbrdf_maximumInclination" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_LaunchPad" ex WHERE ex.s = t0.s);
    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 "dbrdf_LaunchPad"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfPads" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_LaunchPad" ex WHERE ex.s = t0.s);
    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 "dbrdf_LaunchPad"(s) SELECT DISTINCT t0.s FROM "dbrdf_lastLaunchRocket" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_LaunchPad" ex WHERE ex.s = t0.s);
    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 "dbrdf_LaunchPad"(s) SELECT DISTINCT t0.s FROM "dbrdf_firstLaunchRocket" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_LaunchPad" ex WHERE ex.s = t0.s);
    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 "dbrdf_LaunchPad"(s) SELECT DISTINCT t0.s FROM "dbrdf_associatedRocket" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_LaunchPad" ex WHERE ex.s = t0.s);
    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 "dbrdf_LaunchPad"(s) SELECT DISTINCT t0.s FROM "dbrdf_launches" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_LaunchPad" ex WHERE ex.s = t0.s);
    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 "dbrdf_LaunchPad"(s) SELECT DISTINCT t0.s FROM "dbrdf_firstLaunchDate" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_LaunchPad" ex WHERE ex.s = 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_LaunchPad_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_LaunchPad_delta_old"(s) SELECT t0.s FROM "dbrdf_LaunchPad" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_LaunchPad" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_LaunchPad"(s) SELECT DISTINCT t0.s 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 1999
    ---- 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 "dbrdf_constructionMaterial" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_constructionMaterial" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_constructionMaterial" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_constructionMaterial"(s, o) SELECT DISTINCT t0.s, 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 2000
    ---- 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 "dbrdf_spurType" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_spurType" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_spurType" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_spurType"(s, o) SELECT DISTINCT t0.s, 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 2001
    ---- DEPENDS ON: 2000, 1868, 1403, 1213, 645, 540, 387, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Road>(?X) :- <http://dbpedia.org/ontology/spurType>(?X,?X1) .
    INSERT INTO "dbrdf_Road"(s) SELECT DISTINCT t0.s FROM "dbrdf_spurType" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Road" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Road>(?X) :- <http://dbpedia.org/ontology/ruralMunicipality>(?X,?X1) .
    INSERT INTO "dbrdf_Road"(s) SELECT DISTINCT t0.s FROM "dbrdf_ruralMunicipality" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Road" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Road>(?X1) :- <http://dbpedia.org/ontology/meetingRoad>(?X,?X1) .
    INSERT INTO "dbrdf_Road"(s) SELECT DISTINCT t0.o FROM "dbrdf_meetingRoad" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Road" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Road>(?X) :- <http://dbpedia.org/ontology/addressInRoad>(?X,?X1) .
    INSERT INTO "dbrdf_Road"(s) SELECT DISTINCT t0.s FROM "dbrdf_addressInRoad" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Road" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Road>(?X) :- <http://dbpedia.org/ontology/spurOf>(?X,?X1) .
    INSERT INTO "dbrdf_Road"(s) SELECT DISTINCT t0.s FROM "dbrdf_spurOf" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Road" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Road>(?X) :- <http://dbpedia.org/ontology/highwaySystem>(?X,?X1) .
    INSERT INTO "dbrdf_Road"(s) SELECT DISTINCT t0.s FROM "dbrdf_highwaySystem" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Road" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Road>(?X) :- <http://dbpedia.org/ontology/beltwayCity>(?X,?X1) .
    INSERT INTO "dbrdf_Road"(s) SELECT DISTINCT t0.s FROM "dbrdf_beltwayCity" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Road" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Road>(?X1) :- <http://dbpedia.org/ontology/spurOf>(?X,?X1) .
    INSERT INTO "dbrdf_Road"(s) SELECT DISTINCT t0.o FROM "dbrdf_spurOf" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Road" ex WHERE ex.s = t0.o);
    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_Road_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Road_delta_old"(s) SELECT t0.s FROM "dbrdf_Road" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Road_delta_old" ON "dbrdf_Road_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Road_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/Road$delta_new>(?Y) :- <http://dbpedia.org/ontology/Road$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Road_delta_new"(s) SELECT t1.o FROM "dbrdf_Road_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Road" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Road"(s) SELECT DISTINCT t0.s FROM "dbrdf_Road_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Road_delta_old";
        INSERT INTO "dbrdf_Road_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Road_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Road_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2002
    ---- DEPENDS ON: 1754, 1649, 1627, 1532, 1522, 1520, 1401, 1379, 2001, 1222, 1161, 1066, 1042, 1610, 891, 795, 764, 608, 592, 565, 485, 433, 399, 1670, 248, 120, 1273, 1404, 87, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/speedLimit>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_speedLimit" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/routeNumber>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_routeNumber" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/typeOfElectrification>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_typeOfElectrification" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/toll>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_toll" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/routeStartLocation>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_routeStartLocation" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/routeTypeAbbreviation>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_routeTypeAbbreviation" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/Road>(?X) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT t0.s FROM "dbrdf_Road" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/PublicTransitSystem>(?X) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT t0.s FROM "dbrdf_PublicTransitSystem" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/routeEnd>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_routeEnd" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/RailwayLine>(?X) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT t0.s FROM "dbrdf_RailwayLine" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/railGauge>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_railGauge" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/trackLength>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_trackLength" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/lengthReference>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_lengthReference" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/lineLength>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_lineLength" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/routeDirection>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_routeDirection" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/routeEndLocation>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_routeEndLocation" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/voltageOfElectrification>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_voltageOfElectrification" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/routeEndDirection>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_routeEndDirection" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/isPartOfRoute>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_isPartOfRoute" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/routeJunction>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_routeJunction" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/Tunnel>(?X) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT t0.s FROM "dbrdf_Tunnel" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X1) :- <http://dbpedia.org/ontology/routeEnd>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.o FROM "dbrdf_routeEnd" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/vehiclesPerDay>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_vehiclesPerDay" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/routeStartDirection>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_routeStartDirection" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/railwayRollingStock>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_railwayRollingStock" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/Bridge>(?X) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT t0.s FROM "dbrdf_Bridge" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/numberOfLanes>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfLanes" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/RoadJunction>(?X) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT t0.s FROM "dbrdf_RoadJunction" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/routeStart>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_routeStart" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X1) :- <http://dbpedia.org/ontology/routeStart>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.o FROM "dbrdf_routeStart" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X1) :- <http://dbpedia.org/ontology/routeJunction>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.o FROM "dbrdf_routeJunction" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/numberOfStations>(?X,?X1) .
    INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_numberOfStations" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = 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_RouteOfTransportation_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_RouteOfTransportation_delta_old"(s) SELECT t0.s FROM "dbrdf_RouteOfTransportation" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_RouteOfTransportation_delta_old" ON "dbrdf_RouteOfTransportation_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_RouteOfTransportation_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/RouteOfTransportation$delta_new>(?Y) :- <http://dbpedia.org/ontology/RouteOfTransportation$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_RouteOfTransportation_delta_new"(s) SELECT t1.o FROM "dbrdf_RouteOfTransportation_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_RouteOfTransportation" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_RouteOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_RouteOfTransportation_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_RouteOfTransportation_delta_old";
        INSERT INTO "dbrdf_RouteOfTransportation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_RouteOfTransportation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_RouteOfTransportation_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2003
    ---- 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 "dbrdf_march" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_march" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_march" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_march"(s, o) SELECT DISTINCT t0.s, 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 2004
    ---- DEPENDS ON: 2003, 1802, 1586, 1570, 1537, 969, 1989, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/MusicalWork>(?X1) :- <http://dbpedia.org/ontology/march>(?X,?X1) .
    INSERT INTO "dbrdf_MusicalWork"(s) SELECT DISTINCT t0.o FROM "dbrdf_march" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MusicalWork" ex WHERE ex.s = t0.o);
    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 "dbrdf_MusicalWork"(s) SELECT DISTINCT t0.s FROM "dbrdf_artist" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MusicalWork" ex WHERE ex.s = t0.s);
    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 "dbrdf_MusicalWork"(s) SELECT t0.s FROM "dbrdf_Single" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MusicalWork" ex WHERE ex.s = t0.s);
    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 "dbrdf_MusicalWork"(s) SELECT DISTINCT t0.s FROM "dbrdf_recordDate" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MusicalWork" ex WHERE ex.s = t0.s);
    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 "dbrdf_MusicalWork"(s) SELECT t0.s FROM "dbrdf_Album" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MusicalWork" ex WHERE ex.s = t0.s);
    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 "dbrdf_MusicalWork"(s) SELECT t0.s FROM "dbrdf_Song" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MusicalWork" ex WHERE ex.s = t0.s);
    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 "dbrdf_MusicalWork"(s) SELECT DISTINCT t0.s FROM "dbrdf_recordedIn" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MusicalWork" ex WHERE ex.s = 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_MusicalWork_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MusicalWork_delta_old"(s) SELECT t0.s FROM "dbrdf_MusicalWork" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_MusicalWork" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_MusicalWork"(s) SELECT DISTINCT t0.s 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 2005
    ---- 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 "dbrdf_leaderParty" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_leaderParty" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_leaderParty" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_leaderParty"(s, o) SELECT DISTINCT t0.s, 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 2006
    ---- 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 "dbrdf_archipelago" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_archipelago" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_archipelago" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_archipelago"(s, o) SELECT DISTINCT t0.s, 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 2007
    ---- DEPENDS ON: 2006, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Atoll>(?X) :- <http://dbpedia.org/ontology/archipelago>(?X,?X1) .
    INSERT INTO "dbrdf_Atoll"(s) SELECT DISTINCT t0.s FROM "dbrdf_archipelago" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Atoll" ex WHERE ex.s = 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_Atoll_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Atoll_delta_old"(s) SELECT t0.s FROM "dbrdf_Atoll" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Atoll" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Atoll"(s) SELECT DISTINCT t0.s 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 2008
    ---- 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 "dbrdf_activeYearsEndDate" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_activeYearsEndDate" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_activeYearsEndDate" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_activeYearsEndDate"(s, o) SELECT DISTINCT t0.s, 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 2009
    ---- 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 "dbrdf_europeanUnionEntranceDate" t0;
    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, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_europeanUnionEntranceDate" ex WHERE ex.s = t1.o 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, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_europeanUnionEntranceDate" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_europeanUnionEntranceDate"(s, o) SELECT DISTINCT t0.s, 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 2010
    ---- DEPENDS ON: 2009, 1889, 1857, 1852, 1783, 1732, 1648, 1420, 1412, 1395, 1376, 1305, 1274, 1236, 1167, 1146, 1121, 1033, 983, 982, 927, 843, 763, 755, 721, 663, 591, 562, 554, 136, 123, 7, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Country>(?X1) :- <http://dbpedia.org/ontology/countryWithFirstSpaceflight>(?X,?X1) .
    INSERT INTO "dbrdf_Country0"(s) SELECT DISTINCT t0.o FROM "dbrdf_countryWithFirstSpaceflight" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Country0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Country>(?X1) :- <http://dbpedia.org/ontology/thirdDriverCountry>(?X,?X1) .
    INSERT INTO "dbrdf_Country0"(s) SELECT DISTINCT t0.o FROM "dbrdf_thirdDriverCountry" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Country0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Country>(?X1) :- <http://dbpedia.org/ontology/poleDriverCountry>(?X,?X1) .
    INSERT INTO "dbrdf_Country0"(s) SELECT DISTINCT t0.o FROM "dbrdf_poleDriverCountry" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Country0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

    -- [Rule] <http://dbpedia.org/ontology/Country>(?X1) :- <http://dbpedia.org/ontology/fastestDriverCountry>(?X,?X1) .
    INSERT INTO "dbrdf_Country0"(s) SELECT DISTINCT t0.o FROM "dbrdf_fastestDriverCountry" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Country0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Country>(?X) :- <http://dbpedia.org/ontology/mostPopulatedCountry>(?X,?X1) .
    INSERT INTO "dbrdf_Country0"(s) SELECT DISTINCT t0.s FROM "dbrdf_mostPopulatedCountry" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Country0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Country>(?X1) :- <http://dbpedia.org/ontology/firstDriverCountry>(?X,?X1) .
    INSERT INTO "dbrdf_Country0"(s) SELECT DISTINCT t0.o FROM "dbrdf_firstDriverCountry" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Country0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Country>(?X1) :- <http://dbpedia.org/ontology/richestCountry>(?X,?X1) .
    INSERT INTO "dbrdf_Country0"(s) SELECT DISTINCT t0.o FROM "dbrdf_richestCountry" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Country0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

    -- [Rule] <http://dbpedia.org/ontology/Country>(?X) :- <http://dbpedia.org/ontology/lessPopulatedCountry>(?X,?X1) .
