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

        INSERT INTO "dbrdf_P138_represents_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P138_represents_delta_old" t0;
        INSERT INTO "dbrdf_P138_represents"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P138_represents_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P138_represents_delta_old";
        INSERT INTO "dbrdf_P138_represents_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P138_represents_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P138_represents_delta_new";

        INSERT INTO "dbrdf_P68_foresees_use_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P68_foresees_use_of_delta_old" t0;
        INSERT INTO "dbrdf_P68_foresees_use_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P68_foresees_use_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P68_foresees_use_of_delta_old";
        INSERT INTO "dbrdf_P68_foresees_use_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P68_foresees_use_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P68_foresees_use_of_delta_new";

        INSERT INTO "dbrdf_P68i_use_foreseen_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P68i_use_foreseen_by_delta_old" t0;
        INSERT INTO "dbrdf_P68i_use_foreseen_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P68i_use_foreseen_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P68i_use_foreseen_by_delta_old";
        INSERT INTO "dbrdf_P68i_use_foreseen_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P68i_use_foreseen_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P68i_use_foreseen_by_delta_new";

        INSERT INTO "dbrdf_P9_consists_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P9_consists_of_delta_old" t0;
        INSERT INTO "dbrdf_P9_consists_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P9_consists_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P9_consists_of_delta_old";
        INSERT INTO "dbrdf_P9_consists_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P9_consists_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P9_consists_of_delta_new";

        INSERT INTO "dbrdf_P9i_forms_part_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P9i_forms_part_of_delta_old" t0;
        INSERT INTO "dbrdf_P9i_forms_part_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P9i_forms_part_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P9i_forms_part_of_delta_old";
        INSERT INTO "dbrdf_P9i_forms_part_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P9i_forms_part_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P9i_forms_part_of_delta_new";

        INSERT INTO "dbrdf_P51i_is_former_or_current_owner_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P51i_is_former_or_current_owner_of_delta_old" t0;
        INSERT INTO "dbrdf_P51i_is_former_or_current_owner_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P51i_is_former_or_current_owner_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P51i_is_former_or_current_owner_of_delta_old";
        INSERT INTO "dbrdf_P51i_is_former_or_current_owner_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P51i_is_former_or_current_owner_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P51i_is_former_or_current_owner_of_delta_new";

        INSERT INTO "dbrdf_P51_has_former_or_current_owner_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P51_has_former_or_current_owner_delta_old" t0;
        INSERT INTO "dbrdf_P51_has_former_or_current_owner"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P51_has_former_or_current_owner_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P51_has_former_or_current_owner_delta_old";
        INSERT INTO "dbrdf_P51_has_former_or_current_owner_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P51_has_former_or_current_owner_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P51_has_former_or_current_owner_delta_new";

        INSERT INTO "dbrdf_P133_is_separated_from_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P133_is_separated_from_delta_old" t0;
        INSERT INTO "dbrdf_P133_is_separated_from"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P133_is_separated_from_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P133_is_separated_from_delta_old";
        INSERT INTO "dbrdf_P133_is_separated_from_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P133_is_separated_from_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P133_is_separated_from_delta_new";

        INSERT INTO "dbrdf_img_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_img_delta_old" t0;
        INSERT INTO "dbrdf_img"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_img_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_img_delta_old";
        INSERT INTO "dbrdf_img_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_img_delta_new" t0;
        TRUNCATE TABLE "dbrdf_img_delta_new";

        INSERT INTO "dbrdf_E9_Move_old"(s) SELECT t0.s FROM "dbrdf_E9_Move_delta_old" t0;
        INSERT INTO "dbrdf_E9_Move"(s) SELECT DISTINCT t0.s FROM "dbrdf_E9_Move_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E9_Move_delta_old";
        INSERT INTO "dbrdf_E9_Move_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E9_Move_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E9_Move_delta_new";

        INSERT INTO "dbrdf_P26_moved_to_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P26_moved_to_delta_old" t0;
        INSERT INTO "dbrdf_P26_moved_to"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P26_moved_to_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P26_moved_to_delta_old";
        INSERT INTO "dbrdf_P26_moved_to_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P26_moved_to_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P26_moved_to_delta_new";

        INSERT INTO "dbrdf_P26i_was_destination_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P26i_was_destination_of_delta_old" t0;
        INSERT INTO "dbrdf_P26i_was_destination_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P26i_was_destination_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P26i_was_destination_of_delta_old";
        INSERT INTO "dbrdf_P26i_was_destination_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P26i_was_destination_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P26i_was_destination_of_delta_new";

        INSERT INTO "dbrdf_P49i_is_former_or_current_keeper_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P49i_is_former_or_current_keeper_of_delta_old" t0;
        INSERT INTO "dbrdf_P49i_is_former_or_current_keeper_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P49i_is_former_or_current_keeper_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P49i_is_former_or_current_keeper_of_delta_old";
        INSERT INTO "dbrdf_P49i_is_former_or_current_keeper_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P49i_is_former_or_current_keeper_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P49i_is_former_or_current_keeper_of_delta_new";

        INSERT INTO "dbrdf_P49_has_former_or_current_keeper_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P49_has_former_or_current_keeper_delta_old" t0;
        INSERT INTO "dbrdf_P49_has_former_or_current_keeper"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P49_has_former_or_current_keeper_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P49_has_former_or_current_keeper_delta_old";
        INSERT INTO "dbrdf_P49_has_former_or_current_keeper_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P49_has_former_or_current_keeper_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P49_has_former_or_current_keeper_delta_new";

        INSERT INTO "dbrdf_P50_has_current_keeper_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P50_has_current_keeper_delta_old" t0;
        INSERT INTO "dbrdf_P50_has_current_keeper"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P50_has_current_keeper_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P50_has_current_keeper_delta_old";
        INSERT INTO "dbrdf_P50_has_current_keeper_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P50_has_current_keeper_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P50_has_current_keeper_delta_new";

        INSERT INTO "dbrdf_P50i_is_current_keeper_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P50i_is_current_keeper_of_delta_old" t0;
        INSERT INTO "dbrdf_P50i_is_current_keeper_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P50i_is_current_keeper_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P50i_is_current_keeper_of_delta_old";
        INSERT INTO "dbrdf_P50i_is_current_keeper_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P50i_is_current_keeper_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P50i_is_current_keeper_of_delta_new";

        INSERT INTO "dbrdf_P45i_is_incorporated_in_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P45i_is_incorporated_in_delta_old" t0;
        INSERT INTO "dbrdf_P45i_is_incorporated_in"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P45i_is_incorporated_in_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P45i_is_incorporated_in_delta_old";
        INSERT INTO "dbrdf_P45i_is_incorporated_in_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P45i_is_incorporated_in_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P45i_is_incorporated_in_delta_new";

        INSERT INTO "dbrdf_P45_consists_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P45_consists_of_delta_old" t0;
        INSERT INTO "dbrdf_P45_consists_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P45_consists_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P45_consists_of_delta_old";
        INSERT INTO "dbrdf_P45_consists_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P45_consists_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P45_consists_of_delta_new";

        INSERT INTO "dbrdf_P44i_is_condition_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P44i_is_condition_of_delta_old" t0;
        INSERT INTO "dbrdf_P44i_is_condition_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P44i_is_condition_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P44i_is_condition_of_delta_old";
        INSERT INTO "dbrdf_P44i_is_condition_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P44i_is_condition_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P44i_is_condition_of_delta_new";

        INSERT INTO "dbrdf_E3_Condition_State_old"(s) SELECT t0.s FROM "dbrdf_E3_Condition_State_delta_old" t0;
        INSERT INTO "dbrdf_E3_Condition_State"(s) SELECT DISTINCT t0.s FROM "dbrdf_E3_Condition_State_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E3_Condition_State_delta_old";
        INSERT INTO "dbrdf_E3_Condition_State_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E3_Condition_State_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E3_Condition_State_delta_new";

        INSERT INTO "dbrdf_P44_has_condition_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P44_has_condition_delta_old" t0;
        INSERT INTO "dbrdf_P44_has_condition"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P44_has_condition_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P44_has_condition_delta_old";
        INSERT INTO "dbrdf_P44_has_condition_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P44_has_condition_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P44_has_condition_delta_new";

        INSERT INTO "dbrdf_openid_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_openid_delta_old" t0;
        INSERT INTO "dbrdf_openid"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_openid_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_openid_delta_old";
        INSERT INTO "dbrdf_openid_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_openid_delta_new" t0;
        TRUNCATE TABLE "dbrdf_openid_delta_new";

        INSERT INTO "dbrdf_P112_diminished_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P112_diminished_delta_old" t0;
        INSERT INTO "dbrdf_P112_diminished"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P112_diminished_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P112_diminished_delta_old";
        INSERT INTO "dbrdf_P112_diminished_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P112_diminished_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P112_diminished_delta_new";

        INSERT INTO "dbrdf_P112i_was_diminished_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P112i_was_diminished_by_delta_old" t0;
        INSERT INTO "dbrdf_P112i_was_diminished_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P112i_was_diminished_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P112i_was_diminished_by_delta_old";
        INSERT INTO "dbrdf_P112i_was_diminished_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P112i_was_diminished_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P112i_was_diminished_by_delta_new";

        INSERT INTO "dbrdf_Demotion_old"(s) SELECT t0.s FROM "dbrdf_Demotion_delta_old" t0;
        INSERT INTO "dbrdf_Demotion"(s) SELECT DISTINCT t0.s FROM "dbrdf_Demotion_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Demotion_delta_old";
        INSERT INTO "dbrdf_Demotion_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Demotion_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Demotion_delta_new";

        INSERT INTO "dbrdf_myersBriggs_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_myersBriggs_delta_old" t0;
        INSERT INTO "dbrdf_myersBriggs"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_myersBriggs_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_myersBriggs_delta_old";
        INSERT INTO "dbrdf_myersBriggs_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_myersBriggs_delta_new" t0;
        TRUNCATE TABLE "dbrdf_myersBriggs_delta_new";

        INSERT INTO "dbrdf_principal_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_principal_delta_old" t0;
        INSERT INTO "dbrdf_principal"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_principal_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_principal_delta_old";
        INSERT INTO "dbrdf_principal_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_principal_delta_new" t0;
        TRUNCATE TABLE "dbrdf_principal_delta_new";

        INSERT INTO "dbrdf_P46i_forms_part_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P46i_forms_part_of_delta_old" t0;
        INSERT INTO "dbrdf_P46i_forms_part_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P46i_forms_part_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P46i_forms_part_of_delta_old";
        INSERT INTO "dbrdf_P46i_forms_part_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P46i_forms_part_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P46i_forms_part_of_delta_new";

        INSERT INTO "dbrdf_P46_is_composed_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P46_is_composed_of_delta_old" t0;
        INSERT INTO "dbrdf_P46_is_composed_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P46_is_composed_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P46_is_composed_of_delta_old";
        INSERT INTO "dbrdf_P46_is_composed_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P46_is_composed_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P46_is_composed_of_delta_new";

        INSERT INTO "dbrdf_P56_bears_feature_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P56_bears_feature_delta_old" t0;
        INSERT INTO "dbrdf_P56_bears_feature"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P56_bears_feature_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P56_bears_feature_delta_old";
        INSERT INTO "dbrdf_P56_bears_feature_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P56_bears_feature_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P56_bears_feature_delta_new";

        INSERT INTO "dbrdf_P56i_is_found_on_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P56i_is_found_on_delta_old" t0;
        INSERT INTO "dbrdf_P56i_is_found_on"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P56i_is_found_on_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P56i_is_found_on_delta_old";
        INSERT INTO "dbrdf_P56i_is_found_on_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P56i_is_found_on_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P56i_is_found_on_delta_new";

        INSERT INTO "dbrdf_E26_Physical_Feature_old"(s) SELECT t0.s FROM "dbrdf_E26_Physical_Feature_delta_old" t0;
        INSERT INTO "dbrdf_E26_Physical_Feature"(s) SELECT DISTINCT t0.s FROM "dbrdf_E26_Physical_Feature_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E26_Physical_Feature_delta_old";
        INSERT INTO "dbrdf_E26_Physical_Feature_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E26_Physical_Feature_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E26_Physical_Feature_delta_new";

        INSERT INTO "dbrdf_P7i_witnessed_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P7i_witnessed_delta_old" t0;
        INSERT INTO "dbrdf_P7i_witnessed"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P7i_witnessed_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P7i_witnessed_delta_old";
        INSERT INTO "dbrdf_P7i_witnessed_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P7i_witnessed_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P7i_witnessed_delta_new";

        INSERT INTO "dbrdf_P7_took_place_at_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P7_took_place_at_delta_old" t0;
        INSERT INTO "dbrdf_P7_took_place_at"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P7_took_place_at_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P7_took_place_at_delta_old";
        INSERT INTO "dbrdf_P7_took_place_at_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P7_took_place_at_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P7_took_place_at_delta_new";

        INSERT INTO "dbrdf_P135i_was_created_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P135i_was_created_by_delta_old" t0;
        INSERT INTO "dbrdf_P135i_was_created_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P135i_was_created_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P135i_was_created_by_delta_old";
        INSERT INTO "dbrdf_P135i_was_created_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P135i_was_created_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P135i_was_created_by_delta_new";

        INSERT INTO "dbrdf_P135_created_type_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P135_created_type_delta_old" t0;
        INSERT INTO "dbrdf_P135_created_type"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P135_created_type_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P135_created_type_delta_old";
        INSERT INTO "dbrdf_P135_created_type_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P135_created_type_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P135_created_type_delta_new";

        INSERT INTO "dbrdf_P144_joined_with_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P144_joined_with_delta_old" t0;
        INSERT INTO "dbrdf_P144_joined_with"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P144_joined_with_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P144_joined_with_delta_old";
        INSERT INTO "dbrdf_P144_joined_with_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P144_joined_with_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P144_joined_with_delta_new";

        INSERT INTO "dbrdf_P144i_gained_member_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P144i_gained_member_by_delta_old" t0;
        INSERT INTO "dbrdf_P144i_gained_member_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P144i_gained_member_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P144i_gained_member_by_delta_old";
        INSERT INTO "dbrdf_P144i_gained_member_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P144i_gained_member_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P144i_gained_member_by_delta_new";

        INSERT INTO "dbrdf_E85_Joining_old"(s) SELECT t0.s FROM "dbrdf_E85_Joining_delta_old" t0;
        INSERT INTO "dbrdf_E85_Joining"(s) SELECT DISTINCT t0.s FROM "dbrdf_E85_Joining_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E85_Joining_delta_old";
        INSERT INTO "dbrdf_E85_Joining_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E85_Joining_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E85_Joining_delta_new";

        INSERT INTO "dbrdf_P118i_is_overlapped_in_time_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P118i_is_overlapped_in_time_by_delta_old" t0;
        INSERT INTO "dbrdf_P118i_is_overlapped_in_time_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P118i_is_overlapped_in_time_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P118i_is_overlapped_in_time_by_delta_old";
        INSERT INTO "dbrdf_P118i_is_overlapped_in_time_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P118i_is_overlapped_in_time_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P118i_is_overlapped_in_time_by_delta_new";

        INSERT INTO "dbrdf_P118_overlaps_in_time_with_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P118_overlaps_in_time_with_delta_old" t0;
        INSERT INTO "dbrdf_P118_overlaps_in_time_with"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P118_overlaps_in_time_with_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P118_overlaps_in_time_with_delta_old";
        INSERT INTO "dbrdf_P118_overlaps_in_time_with_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P118_overlaps_in_time_with_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P118_overlaps_in_time_with_delta_new";

        INSERT INTO "dbrdf_Ordination_old"(s) SELECT t0.s FROM "dbrdf_Ordination_delta_old" t0;
        INSERT INTO "dbrdf_Ordination"(s) SELECT DISTINCT t0.s FROM "dbrdf_Ordination_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Ordination_delta_old";
        INSERT INTO "dbrdf_Ordination_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Ordination_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Ordination_delta_new";

        INSERT INTO "dbrdf_Promotion_old"(s) SELECT t0.s FROM "dbrdf_Promotion_delta_old" t0;
        INSERT INTO "dbrdf_Promotion"(s) SELECT DISTINCT t0.s FROM "dbrdf_Promotion_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Promotion_delta_old";
        INSERT INTO "dbrdf_Promotion_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Promotion_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Promotion_delta_new";

        INSERT INTO "dbrdf_PositionChange_old"(s) SELECT t0.s FROM "dbrdf_PositionChange_delta_old" t0;
        INSERT INTO "dbrdf_PositionChange"(s) SELECT DISTINCT t0.s FROM "dbrdf_PositionChange_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_PositionChange_delta_old";
        INSERT INTO "dbrdf_PositionChange_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_PositionChange_delta_new" t0;
        TRUNCATE TABLE "dbrdf_PositionChange_delta_new";

        INSERT INTO "dbrdf_P125i_was_type_of_object_used_in_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P125i_was_type_of_object_used_in_delta_old" t0;
        INSERT INTO "dbrdf_P125i_was_type_of_object_used_in"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P125i_was_type_of_object_used_in_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P125i_was_type_of_object_used_in_delta_old";
        INSERT INTO "dbrdf_P125i_was_type_of_object_used_in_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P125i_was_type_of_object_used_in_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P125i_was_type_of_object_used_in_delta_new";

        INSERT INTO "dbrdf_P125_used_object_of_type_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P125_used_object_of_type_delta_old" t0;
        INSERT INTO "dbrdf_P125_used_object_of_type"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P125_used_object_of_type_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P125_used_object_of_type_delta_old";
        INSERT INTO "dbrdf_P125_used_object_of_type_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P125_used_object_of_type_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P125_used_object_of_type_delta_new";

        INSERT INTO "dbrdf_Birth_old"(s) SELECT t0.s FROM "dbrdf_Birth_delta_old" t0;
        INSERT INTO "dbrdf_Birth"(s) SELECT DISTINCT t0.s FROM "dbrdf_Birth_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Birth_delta_old";
        INSERT INTO "dbrdf_Birth_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Birth_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Birth_delta_new";

        INSERT INTO "dbrdf_birth_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_birth_delta_old" t0;
        INSERT INTO "dbrdf_birth"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_birth_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_birth_delta_old";
        INSERT INTO "dbrdf_birth_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_birth_delta_new" t0;
        TRUNCATE TABLE "dbrdf_birth_delta_new";

        INSERT INTO "dbrdf_P30_transferred_custody_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P30_transferred_custody_of_delta_old" t0;
        INSERT INTO "dbrdf_P30_transferred_custody_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P30_transferred_custody_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P30_transferred_custody_of_delta_old";
        INSERT INTO "dbrdf_P30_transferred_custody_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P30_transferred_custody_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P30_transferred_custody_of_delta_new";

        INSERT INTO "dbrdf_P30i_custody_transferred_through_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P30i_custody_transferred_through_delta_old" t0;
        INSERT INTO "dbrdf_P30i_custody_transferred_through"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P30i_custody_transferred_through_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P30i_custody_transferred_through_delta_old";
        INSERT INTO "dbrdf_P30i_custody_transferred_through_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P30i_custody_transferred_through_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P30i_custody_transferred_through_delta_new";

        INSERT INTO "dbrdf_P107i_is_current_or_former_member_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P107i_is_current_or_former_member_of_delta_old" t0;
        INSERT INTO "dbrdf_P107i_is_current_or_former_member_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P107i_is_current_or_former_member_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P107i_is_current_or_former_member_of_delta_old";
        INSERT INTO "dbrdf_P107i_is_current_or_former_member_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P107i_is_current_or_former_member_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P107i_is_current_or_former_member_of_delta_new";

        INSERT INTO "dbrdf_P107_has_current_or_former_member_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P107_has_current_or_former_member_delta_old" t0;
        INSERT INTO "dbrdf_P107_has_current_or_former_member"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P107_has_current_or_former_member_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P107_has_current_or_former_member_delta_old";
        INSERT INTO "dbrdf_P107_has_current_or_former_member_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P107_has_current_or_former_member_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P107_has_current_or_former_member_delta_new";

        INSERT INTO "dbrdf_P148i_is_component_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P148i_is_component_of_delta_old" t0;
        INSERT INTO "dbrdf_P148i_is_component_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P148i_is_component_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P148i_is_component_of_delta_old";
        INSERT INTO "dbrdf_P148i_is_component_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P148i_is_component_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P148i_is_component_of_delta_new";

        INSERT INTO "dbrdf_P148_has_component_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P148_has_component_delta_old" t0;
        INSERT INTO "dbrdf_P148_has_component"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P148_has_component_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P148_has_component_delta_old";
        INSERT INTO "dbrdf_P148_has_component_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P148_has_component_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P148_has_component_delta_new";

        INSERT INTO "dbrdf_P70i_is_documented_in_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P70i_is_documented_in_delta_old" t0;
        INSERT INTO "dbrdf_P70i_is_documented_in"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P70i_is_documented_in_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P70i_is_documented_in_delta_old";
        INSERT INTO "dbrdf_P70i_is_documented_in_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P70i_is_documented_in_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P70i_is_documented_in_delta_new";

        INSERT INTO "dbrdf_P70_documents_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P70_documents_delta_old" t0;
        INSERT INTO "dbrdf_P70_documents"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P70_documents_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P70_documents_delta_old";
        INSERT INTO "dbrdf_P70_documents_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P70_documents_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P70_documents_delta_new";

        INSERT INTO "dbrdf_P72_has_language_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P72_has_language_delta_old" t0;
        INSERT INTO "dbrdf_P72_has_language"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P72_has_language_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P72_has_language_delta_old";
        INSERT INTO "dbrdf_P72_has_language_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P72_has_language_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P72_has_language_delta_new";

        INSERT INTO "dbrdf_E56_Language_old"(s) SELECT t0.s FROM "dbrdf_E56_Language_delta_old" t0;
        INSERT INTO "dbrdf_E56_Language"(s) SELECT DISTINCT t0.s FROM "dbrdf_E56_Language_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E56_Language_delta_old";
        INSERT INTO "dbrdf_E56_Language_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E56_Language_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E56_Language_delta_new";

        INSERT INTO "dbrdf_P72i_is_language_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P72i_is_language_of_delta_old" t0;
        INSERT INTO "dbrdf_P72i_is_language_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P72i_is_language_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P72i_is_language_of_delta_old";
        INSERT INTO "dbrdf_P72i_is_language_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P72i_is_language_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P72i_is_language_of_delta_new";

        INSERT INTO "dbrdf_P147_curated_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P147_curated_delta_old" t0;
        INSERT INTO "dbrdf_P147_curated"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P147_curated_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P147_curated_delta_old";
        INSERT INTO "dbrdf_P147_curated_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P147_curated_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P147_curated_delta_new";

        INSERT INTO "dbrdf_E87_Curation_Activity_old"(s) SELECT t0.s FROM "dbrdf_E87_Curation_Activity_delta_old" t0;
        INSERT INTO "dbrdf_E87_Curation_Activity"(s) SELECT DISTINCT t0.s FROM "dbrdf_E87_Curation_Activity_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E87_Curation_Activity_delta_old";
        INSERT INTO "dbrdf_E87_Curation_Activity_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E87_Curation_Activity_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E87_Curation_Activity_delta_new";

        INSERT INTO "dbrdf_P147i_was_curated_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P147i_was_curated_by_delta_old" t0;
        INSERT INTO "dbrdf_P147i_was_curated_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P147i_was_curated_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P147i_was_curated_by_delta_old";
        INSERT INTO "dbrdf_P147i_was_curated_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P147i_was_curated_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P147i_was_curated_by_delta_new";

        INSERT INTO "dbrdf_E78_Collection_old"(s) SELECT t0.s FROM "dbrdf_E78_Collection_delta_old" t0;
        INSERT INTO "dbrdf_E78_Collection"(s) SELECT DISTINCT t0.s FROM "dbrdf_E78_Collection_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E78_Collection_delta_old";
        INSERT INTO "dbrdf_E78_Collection_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E78_Collection_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E78_Collection_delta_new";

        INSERT INTO "dbrdf_P142i_was_used_in_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P142i_was_used_in_delta_old" t0;
        INSERT INTO "dbrdf_P142i_was_used_in"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P142i_was_used_in_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P142i_was_used_in_delta_old";
        INSERT INTO "dbrdf_P142i_was_used_in_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P142i_was_used_in_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P142i_was_used_in_delta_new";

        INSERT INTO "dbrdf_P142_used_constituent_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P142_used_constituent_delta_old" t0;
        INSERT INTO "dbrdf_P142_used_constituent"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P142_used_constituent_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P142_used_constituent_delta_old";
        INSERT INTO "dbrdf_P142_used_constituent_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P142_used_constituent_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P142_used_constituent_delta_new";

        INSERT INTO "dbrdf_P53_has_former_or_current_location_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P53_has_former_or_current_location_delta_old" t0;
        INSERT INTO "dbrdf_P53_has_former_or_current_location"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P53_has_former_or_current_location_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P53_has_former_or_current_location_delta_old";
        INSERT INTO "dbrdf_P53_has_former_or_current_location_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P53_has_former_or_current_location_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P53_has_former_or_current_location_delta_new";

        INSERT INTO "dbrdf_P53i_is_former_or_current_location_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P53i_is_former_or_current_location_of_delta_old" t0;
        INSERT INTO "dbrdf_P53i_is_former_or_current_location_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P53i_is_former_or_current_location_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P53i_is_former_or_current_location_of_delta_old";
        INSERT INTO "dbrdf_P53i_is_former_or_current_location_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P53i_is_former_or_current_location_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P53i_is_former_or_current_location_of_delta_new";

        INSERT INTO "dbrdf_P55i_currently_holds_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P55i_currently_holds_delta_old" t0;
        INSERT INTO "dbrdf_P55i_currently_holds"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P55i_currently_holds_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P55i_currently_holds_delta_old";
        INSERT INTO "dbrdf_P55i_currently_holds_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P55i_currently_holds_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P55i_currently_holds_delta_new";

        INSERT INTO "dbrdf_P55_has_current_location_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P55_has_current_location_delta_old" t0;
        INSERT INTO "dbrdf_P55_has_current_location"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P55_has_current_location_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P55_has_current_location_delta_old";
        INSERT INTO "dbrdf_P55_has_current_location_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P55_has_current_location_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P55_has_current_location_delta_new";

        INSERT INTO "dbrdf_P10_falls_within_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P10_falls_within_delta_old" t0;
        INSERT INTO "dbrdf_P10_falls_within"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P10_falls_within_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P10_falls_within_delta_old";
        INSERT INTO "dbrdf_P10_falls_within_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P10_falls_within_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P10_falls_within_delta_new";

        INSERT INTO "dbrdf_P10i_contains_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P10i_contains_delta_old" t0;
        INSERT INTO "dbrdf_P10i_contains"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P10i_contains_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P10i_contains_delta_old";
        INSERT INTO "dbrdf_P10i_contains_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P10i_contains_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P10i_contains_delta_new";

        INSERT INTO "dbrdf_E10_Transfer_of_Custody_old"(s) SELECT t0.s FROM "dbrdf_E10_Transfer_of_Custody_delta_old" t0;
        INSERT INTO "dbrdf_E10_Transfer_of_Custody"(s) SELECT DISTINCT t0.s FROM "dbrdf_E10_Transfer_of_Custody_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E10_Transfer_of_Custody_delta_old";
        INSERT INTO "dbrdf_E10_Transfer_of_Custody_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E10_Transfer_of_Custody_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E10_Transfer_of_Custody_delta_new";

        INSERT INTO "dbrdf_P29i_received_custody_through_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P29i_received_custody_through_delta_old" t0;
        INSERT INTO "dbrdf_P29i_received_custody_through"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P29i_received_custody_through_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P29i_received_custody_through_delta_old";
        INSERT INTO "dbrdf_P29i_received_custody_through_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P29i_received_custody_through_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P29i_received_custody_through_delta_new";

        INSERT INTO "dbrdf_P29_custody_received_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P29_custody_received_by_delta_old" t0;
        INSERT INTO "dbrdf_P29_custody_received_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P29_custody_received_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P29_custody_received_by_delta_old";
        INSERT INTO "dbrdf_P29_custody_received_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P29_custody_received_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P29_custody_received_by_delta_new";

        INSERT INTO "dbrdf_Graduation_old"(s) SELECT t0.s FROM "dbrdf_Graduation_delta_old" t0;
        INSERT INTO "dbrdf_Graduation"(s) SELECT DISTINCT t0.s FROM "dbrdf_Graduation_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Graduation_delta_old";
        INSERT INTO "dbrdf_Graduation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Graduation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Graduation_delta_new";

        INSERT INTO "dbrdf_P136i_supported_type_creation_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P136i_supported_type_creation_delta_old" t0;
        INSERT INTO "dbrdf_P136i_supported_type_creation"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P136i_supported_type_creation_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P136i_supported_type_creation_delta_old";
        INSERT INTO "dbrdf_P136i_supported_type_creation_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P136i_supported_type_creation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P136i_supported_type_creation_delta_new";

        INSERT INTO "dbrdf_P136_was_based_on_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P136_was_based_on_delta_old" t0;
        INSERT INTO "dbrdf_P136_was_based_on"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P136_was_based_on_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P136_was_based_on_delta_old";
        INSERT INTO "dbrdf_P136_was_based_on_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P136_was_based_on_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P136_was_based_on_delta_new";

        INSERT INTO "dbrdf_E83_Type_Creation_old"(s) SELECT t0.s FROM "dbrdf_E83_Type_Creation_delta_old" t0;
        INSERT INTO "dbrdf_E83_Type_Creation"(s) SELECT DISTINCT t0.s FROM "dbrdf_E83_Type_Creation_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E83_Type_Creation_delta_old";
        INSERT INTO "dbrdf_E83_Type_Creation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E83_Type_Creation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E83_Type_Creation_delta_new";

        INSERT INTO "dbrdf_E57_Material_old"(s) SELECT t0.s FROM "dbrdf_E57_Material_delta_old" t0;
        INSERT INTO "dbrdf_E57_Material"(s) SELECT DISTINCT t0.s FROM "dbrdf_E57_Material_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E57_Material_delta_old";
        INSERT INTO "dbrdf_E57_Material_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E57_Material_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E57_Material_delta_new";

        INSERT INTO "dbrdf_P126i_was_employed_in_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P126i_was_employed_in_delta_old" t0;
        INSERT INTO "dbrdf_P126i_was_employed_in"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P126i_was_employed_in_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P126i_was_employed_in_delta_old";
        INSERT INTO "dbrdf_P126i_was_employed_in_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P126i_was_employed_in_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P126i_was_employed_in_delta_new";

        INSERT INTO "dbrdf_P126_employed_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P126_employed_delta_old" t0;
        INSERT INTO "dbrdf_P126_employed"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P126_employed_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P126_employed_delta_old";
        INSERT INTO "dbrdf_P126_employed_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P126_employed_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P126_employed_delta_new";

        INSERT INTO "dbrdf_death_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_death_delta_old" t0;
        INSERT INTO "dbrdf_death"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_death_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_death_delta_old";
        INSERT INTO "dbrdf_death_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_death_delta_new" t0;
        TRUNCATE TABLE "dbrdf_death_delta_new";

        INSERT INTO "dbrdf_Person_old"(s) SELECT t0.s FROM "dbrdf_Person_delta_old" t0;
        INSERT INTO "dbrdf_Person"(s) SELECT DISTINCT t0.s FROM "dbrdf_Person_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Person_delta_old";
        INSERT INTO "dbrdf_Person_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Person_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Person_delta_new";

        INSERT INTO "dbrdf_publications_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_publications_delta_old" t0;
        INSERT INTO "dbrdf_publications"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_publications_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_publications_delta_old";
        INSERT INTO "dbrdf_publications_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_publications_delta_new" t0;
        TRUNCATE TABLE "dbrdf_publications_delta_new";

        INSERT INTO "dbrdf_P38i_was_deassigned_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P38i_was_deassigned_by_delta_old" t0;
        INSERT INTO "dbrdf_P38i_was_deassigned_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P38i_was_deassigned_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P38i_was_deassigned_by_delta_old";
        INSERT INTO "dbrdf_P38i_was_deassigned_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P38i_was_deassigned_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P38i_was_deassigned_by_delta_new";

        INSERT INTO "dbrdf_E15_Identifier_Assignment_old"(s) SELECT t0.s FROM "dbrdf_E15_Identifier_Assignment_delta_old" t0;
        INSERT INTO "dbrdf_E15_Identifier_Assignment"(s) SELECT DISTINCT t0.s FROM "dbrdf_E15_Identifier_Assignment_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E15_Identifier_Assignment_delta_old";
        INSERT INTO "dbrdf_E15_Identifier_Assignment_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E15_Identifier_Assignment_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E15_Identifier_Assignment_delta_new";

        INSERT INTO "dbrdf_P38_deassigned_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P38_deassigned_delta_old" t0;
        INSERT INTO "dbrdf_P38_deassigned"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P38_deassigned_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P38_deassigned_delta_old";
        INSERT INTO "dbrdf_P38_deassigned_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P38_deassigned_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P38_deassigned_delta_new";

        INSERT INTO "dbrdf_E42_Identifier_old"(s) SELECT t0.s FROM "dbrdf_E42_Identifier_delta_old" t0;
        INSERT INTO "dbrdf_E42_Identifier"(s) SELECT DISTINCT t0.s FROM "dbrdf_E42_Identifier_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E42_Identifier_delta_old";
        INSERT INTO "dbrdf_E42_Identifier_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E42_Identifier_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E42_Identifier_delta_new";

        INSERT INTO "dbrdf_P102i_is_title_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P102i_is_title_of_delta_old" t0;
        INSERT INTO "dbrdf_P102i_is_title_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P102i_is_title_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P102i_is_title_of_delta_old";
        INSERT INTO "dbrdf_P102i_is_title_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P102i_is_title_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P102i_is_title_of_delta_new";

        INSERT INTO "dbrdf_E35_Title_old"(s) SELECT t0.s FROM "dbrdf_E35_Title_delta_old" t0;
        INSERT INTO "dbrdf_E35_Title"(s) SELECT DISTINCT t0.s FROM "dbrdf_E35_Title_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E35_Title_delta_old";
        INSERT INTO "dbrdf_E35_Title_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E35_Title_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E35_Title_delta_new";

        INSERT INTO "dbrdf_P102_has_title_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P102_has_title_delta_old" t0;
        INSERT INTO "dbrdf_P102_has_title"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P102_has_title_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P102_has_title_delta_old";
        INSERT INTO "dbrdf_P102_has_title_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P102_has_title_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P102_has_title_delta_new";

        INSERT INTO "dbrdf_P1i_identifies_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P1i_identifies_delta_old" t0;
        INSERT INTO "dbrdf_P1i_identifies"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P1i_identifies_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P1i_identifies_delta_old";
        INSERT INTO "dbrdf_P1i_identifies_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P1i_identifies_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P1i_identifies_delta_new";

        INSERT INTO "dbrdf_E41_Appellation_old"(s) SELECT t0.s FROM "dbrdf_E41_Appellation_delta_old" t0;
        INSERT INTO "dbrdf_E41_Appellation"(s) SELECT DISTINCT t0.s FROM "dbrdf_E41_Appellation_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E41_Appellation_delta_old";
        INSERT INTO "dbrdf_E41_Appellation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E41_Appellation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E41_Appellation_delta_new";

        INSERT INTO "dbrdf_P1_is_identified_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P1_is_identified_by_delta_old" t0;
        INSERT INTO "dbrdf_P1_is_identified_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P1_is_identified_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P1_is_identified_by_delta_old";
        INSERT INTO "dbrdf_P1_is_identified_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P1_is_identified_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P1_is_identified_by_delta_new";

        INSERT INTO "dbrdf_P141_assigned_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P141_assigned_delta_old" t0;
        INSERT INTO "dbrdf_P141_assigned"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P141_assigned_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P141_assigned_delta_old";
        INSERT INTO "dbrdf_P141_assigned_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P141_assigned_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P141_assigned_delta_new";

        INSERT INTO "dbrdf_P141i_was_assigned_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P141i_was_assigned_by_delta_old" t0;
        INSERT INTO "dbrdf_P141i_was_assigned_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P141i_was_assigned_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P141i_was_assigned_by_delta_old";
        INSERT INTO "dbrdf_P141i_was_assigned_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P141i_was_assigned_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P141i_was_assigned_by_delta_new";

        INSERT INTO "dbrdf_P2_has_type_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P2_has_type_delta_old" t0;
        INSERT INTO "dbrdf_P2_has_type"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P2_has_type_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P2_has_type_delta_old";
        INSERT INTO "dbrdf_P2_has_type_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P2_has_type_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P2_has_type_delta_new";

        INSERT INTO "dbrdf_P2i_is_type_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P2i_is_type_of_delta_old" t0;
        INSERT INTO "dbrdf_P2i_is_type_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P2i_is_type_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P2i_is_type_of_delta_old";
        INSERT INTO "dbrdf_P2i_is_type_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P2i_is_type_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P2i_is_type_of_delta_new";

        INSERT INTO "dbrdf_P130i_features_are_also_found_on_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P130i_features_are_also_found_on_delta_old" t0;
        INSERT INTO "dbrdf_P130i_features_are_also_found_on"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P130i_features_are_also_found_on_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P130i_features_are_also_found_on_delta_old";
        INSERT INTO "dbrdf_P130i_features_are_also_found_on_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P130i_features_are_also_found_on_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P130i_features_are_also_found_on_delta_new";

        INSERT INTO "dbrdf_P130_shows_features_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P130_shows_features_of_delta_old" t0;
        INSERT INTO "dbrdf_P130_shows_features_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P130_shows_features_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P130_shows_features_of_delta_old";
        INSERT INTO "dbrdf_P130_shows_features_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P130_shows_features_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P130_shows_features_of_delta_new";

        INSERT INTO "dbrdf_P73_has_translation_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P73_has_translation_delta_old" t0;
        INSERT INTO "dbrdf_P73_has_translation"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P73_has_translation_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P73_has_translation_delta_old";
        INSERT INTO "dbrdf_P73_has_translation_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P73_has_translation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P73_has_translation_delta_new";

        INSERT INTO "dbrdf_P73i_is_translation_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P73i_is_translation_of_delta_old" t0;
        INSERT INTO "dbrdf_P73i_is_translation_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P73i_is_translation_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P73i_is_translation_of_delta_old";
        INSERT INTO "dbrdf_P73i_is_translation_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P73i_is_translation_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P73i_is_translation_of_delta_new";

        INSERT INTO "dbrdf_E80_Part_Removal_old"(s) SELECT t0.s FROM "dbrdf_E80_Part_Removal_delta_old" t0;
        INSERT INTO "dbrdf_E80_Part_Removal"(s) SELECT DISTINCT t0.s FROM "dbrdf_E80_Part_Removal_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E80_Part_Removal_delta_old";
        INSERT INTO "dbrdf_E80_Part_Removal_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E80_Part_Removal_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E80_Part_Removal_delta_new";

        INSERT INTO "dbrdf_P113i_was_removed_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P113i_was_removed_by_delta_old" t0;
        INSERT INTO "dbrdf_P113i_was_removed_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P113i_was_removed_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P113i_was_removed_by_delta_old";
        INSERT INTO "dbrdf_P113i_was_removed_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P113i_was_removed_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P113i_was_removed_by_delta_new";

        INSERT INTO "dbrdf_P113_removed_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P113_removed_delta_old" t0;
        INSERT INTO "dbrdf_P113_removed"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P113_removed_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P113_removed_delta_old";
        INSERT INTO "dbrdf_P113_removed_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P113_removed_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P113_removed_delta_new";

        INSERT INTO "dbrdf_P17_was_motivated_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P17_was_motivated_by_delta_old" t0;
        INSERT INTO "dbrdf_P17_was_motivated_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P17_was_motivated_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P17_was_motivated_by_delta_old";
        INSERT INTO "dbrdf_P17_was_motivated_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P17_was_motivated_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P17_was_motivated_by_delta_new";

        INSERT INTO "dbrdf_P17i_motivated_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P17i_motivated_delta_old" t0;
        INSERT INTO "dbrdf_P17i_motivated"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P17i_motivated_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P17i_motivated_delta_old";
        INSERT INTO "dbrdf_P17i_motivated_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P17i_motivated_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P17i_motivated_delta_new";

        INSERT INTO "dbrdf_P39_measured_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P39_measured_delta_old" t0;
        INSERT INTO "dbrdf_P39_measured"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P39_measured_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P39_measured_delta_old";
        INSERT INTO "dbrdf_P39_measured_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P39_measured_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P39_measured_delta_new";

        INSERT INTO "dbrdf_E16_Measurement_old"(s) SELECT t0.s FROM "dbrdf_E16_Measurement_delta_old" t0;
        INSERT INTO "dbrdf_E16_Measurement"(s) SELECT DISTINCT t0.s FROM "dbrdf_E16_Measurement_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E16_Measurement_delta_old";
        INSERT INTO "dbrdf_E16_Measurement_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E16_Measurement_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E16_Measurement_delta_new";

        INSERT INTO "dbrdf_P39i_was_measured_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P39i_was_measured_by_delta_old" t0;
        INSERT INTO "dbrdf_P39i_was_measured_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P39i_was_measured_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P39i_was_measured_by_delta_old";
        INSERT INTO "dbrdf_P39i_was_measured_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P39i_was_measured_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P39i_was_measured_by_delta_new";

        INSERT INTO "dbrdf_E53_Place_old"(s) SELECT t0.s FROM "dbrdf_E53_Place_delta_old" t0;
        INSERT INTO "dbrdf_E53_Place"(s) SELECT DISTINCT t0.s FROM "dbrdf_E53_Place_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E53_Place_delta_old";
        INSERT INTO "dbrdf_E53_Place_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E53_Place_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E53_Place_delta_new";

        INSERT INTO "dbrdf_P54i_is_current_permanent_location_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P54i_is_current_permanent_location_of_delta_old" t0;
        INSERT INTO "dbrdf_P54i_is_current_permanent_location_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P54i_is_current_permanent_location_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P54i_is_current_permanent_location_of_delta_old";
        INSERT INTO "dbrdf_P54i_is_current_permanent_location_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P54i_is_current_permanent_location_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P54i_is_current_permanent_location_of_delta_new";

        INSERT INTO "dbrdf_P54_has_current_permanent_location_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P54_has_current_permanent_location_delta_old" t0;
        INSERT INTO "dbrdf_P54_has_current_permanent_location"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P54_has_current_permanent_location_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P54_has_current_permanent_location_delta_old";
        INSERT INTO "dbrdf_P54_has_current_permanent_location_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P54_has_current_permanent_location_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P54_has_current_permanent_location_delta_new";

        INSERT INTO "dbrdf_E86_Leaving_old"(s) SELECT t0.s FROM "dbrdf_E86_Leaving_delta_old" t0;
        INSERT INTO "dbrdf_E86_Leaving"(s) SELECT DISTINCT t0.s FROM "dbrdf_E86_Leaving_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E86_Leaving_delta_old";
        INSERT INTO "dbrdf_E86_Leaving_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E86_Leaving_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E86_Leaving_delta_new";

        INSERT INTO "dbrdf_P146i_lost_member_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P146i_lost_member_by_delta_old" t0;
        INSERT INTO "dbrdf_P146i_lost_member_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P146i_lost_member_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P146i_lost_member_by_delta_old";
        INSERT INTO "dbrdf_P146i_lost_member_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P146i_lost_member_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P146i_lost_member_by_delta_new";

        INSERT INTO "dbrdf_E74_Group_old"(s) SELECT t0.s FROM "dbrdf_E74_Group_delta_old" t0;
        INSERT INTO "dbrdf_E74_Group"(s) SELECT DISTINCT t0.s FROM "dbrdf_E74_Group_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E74_Group_delta_old";
        INSERT INTO "dbrdf_E74_Group_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E74_Group_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E74_Group_delta_new";

        INSERT INTO "dbrdf_P146_separated_from_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P146_separated_from_delta_old" t0;
        INSERT INTO "dbrdf_P146_separated_from"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P146_separated_from_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P146_separated_from_delta_old";
        INSERT INTO "dbrdf_P146_separated_from_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P146_separated_from_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P146_separated_from_delta_new";

        INSERT INTO "dbrdf_P71_lists_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P71_lists_delta_old" t0;
        INSERT INTO "dbrdf_P71_lists"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P71_lists_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P71_lists_delta_old";
        INSERT INTO "dbrdf_P71_lists_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P71_lists_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P71_lists_delta_new";

        INSERT INTO "dbrdf_P67_refers_to_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P67_refers_to_delta_old" t0;
        INSERT INTO "dbrdf_P67_refers_to"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P67_refers_to_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P67_refers_to_delta_old";
        INSERT INTO "dbrdf_P67_refers_to_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P67_refers_to_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P67_refers_to_delta_new";

        INSERT INTO "dbrdf_P67i_is_referred_to_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P67i_is_referred_to_by_delta_old" t0;
        INSERT INTO "dbrdf_P67i_is_referred_to_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P67i_is_referred_to_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P67i_is_referred_to_by_delta_old";
        INSERT INTO "dbrdf_P67i_is_referred_to_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P67i_is_referred_to_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P67i_is_referred_to_by_delta_new";

        INSERT INTO "dbrdf_E31_Document_old"(s) SELECT t0.s FROM "dbrdf_E31_Document_delta_old" t0;
        INSERT INTO "dbrdf_E31_Document"(s) SELECT DISTINCT t0.s FROM "dbrdf_E31_Document_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E31_Document_delta_old";
        INSERT INTO "dbrdf_E31_Document_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E31_Document_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E31_Document_delta_new";

        INSERT INTO "dbrdf_E32_Authority_Document_old"(s) SELECT t0.s FROM "dbrdf_E32_Authority_Document_delta_old" t0;
        INSERT INTO "dbrdf_E32_Authority_Document"(s) SELECT DISTINCT t0.s FROM "dbrdf_E32_Authority_Document_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E32_Authority_Document_delta_old";
        INSERT INTO "dbrdf_E32_Authority_Document_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E32_Authority_Document_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E32_Authority_Document_delta_new";

        INSERT INTO "dbrdf_P71i_is_listed_in_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P71i_is_listed_in_delta_old" t0;
        INSERT INTO "dbrdf_P71i_is_listed_in"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P71i_is_listed_in_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P71i_is_listed_in_delta_old";
        INSERT INTO "dbrdf_P71i_is_listed_in_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P71i_is_listed_in_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P71i_is_listed_in_delta_new";

        INSERT INTO "dbrdf_P100i_died_in_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P100i_died_in_delta_old" t0;
        INSERT INTO "dbrdf_P100i_died_in"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P100i_died_in_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P100i_died_in_delta_old";
        INSERT INTO "dbrdf_P100i_died_in_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P100i_died_in_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P100i_died_in_delta_new";

        INSERT INTO "dbrdf_P100_was_death_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P100_was_death_of_delta_old" t0;
        INSERT INTO "dbrdf_P100_was_death_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P100_was_death_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P100_was_death_of_delta_old";
        INSERT INTO "dbrdf_P100_was_death_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P100_was_death_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P100_was_death_of_delta_new";

        INSERT INTO "dbrdf_E69_Death_old"(s) SELECT t0.s FROM "dbrdf_E69_Death_delta_old" t0;
        INSERT INTO "dbrdf_E69_Death"(s) SELECT DISTINCT t0.s FROM "dbrdf_E69_Death_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E69_Death_delta_old";
        INSERT INTO "dbrdf_E69_Death_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E69_Death_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E69_Death_delta_new";

        INSERT INTO "dbrdf_E67_Birth_old"(s) SELECT t0.s FROM "dbrdf_E67_Birth_delta_old" t0;
        INSERT INTO "dbrdf_E67_Birth"(s) SELECT DISTINCT t0.s FROM "dbrdf_E67_Birth_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E67_Birth_delta_old";
        INSERT INTO "dbrdf_E67_Birth_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E67_Birth_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E67_Birth_delta_new";

        INSERT INTO "dbrdf_E19_Physical_Object_old"(s) SELECT t0.s FROM "dbrdf_E19_Physical_Object_delta_old" t0;
        INSERT INTO "dbrdf_E19_Physical_Object"(s) SELECT DISTINCT t0.s FROM "dbrdf_E19_Physical_Object_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E19_Physical_Object_delta_old";
        INSERT INTO "dbrdf_E19_Physical_Object_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E19_Physical_Object_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E19_Physical_Object_delta_new";

        INSERT INTO "dbrdf_E20_Biological_Object_old"(s) SELECT t0.s FROM "dbrdf_E20_Biological_Object_delta_old" t0;
        INSERT INTO "dbrdf_E20_Biological_Object"(s) SELECT DISTINCT t0.s FROM "dbrdf_E20_Biological_Object_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E20_Biological_Object_delta_old";
        INSERT INTO "dbrdf_E20_Biological_Object_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E20_Biological_Object_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E20_Biological_Object_delta_new";

        INSERT INTO "dbrdf_E21_Person_old"(s) SELECT t0.s FROM "dbrdf_E21_Person_delta_old" t0;
        INSERT INTO "dbrdf_E21_Person"(s) SELECT DISTINCT t0.s FROM "dbrdf_E21_Person_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E21_Person_delta_old";
        INSERT INTO "dbrdf_E21_Person_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E21_Person_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E21_Person_delta_new";

        INSERT INTO "dbrdf_P96_by_mother_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P96_by_mother_delta_old" t0;
        INSERT INTO "dbrdf_P96_by_mother"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P96_by_mother_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P96_by_mother_delta_old";
        INSERT INTO "dbrdf_P96_by_mother_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P96_by_mother_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P96_by_mother_delta_new";

        INSERT INTO "dbrdf_P96i_gave_birth_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P96i_gave_birth_delta_old" t0;
        INSERT INTO "dbrdf_P96i_gave_birth"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P96i_gave_birth_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P96i_gave_birth_delta_old";
        INSERT INTO "dbrdf_P96i_gave_birth_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P96i_gave_birth_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P96i_gave_birth_delta_new";

        INSERT INTO "dbrdf_primaryTopic_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_primaryTopic_delta_old" t0;
        INSERT INTO "dbrdf_primaryTopic"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_primaryTopic_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_primaryTopic_delta_old";
        INSERT INTO "dbrdf_primaryTopic_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_primaryTopic_delta_new" t0;
        TRUNCATE TABLE "dbrdf_primaryTopic_delta_new";

        INSERT INTO "dbrdf_isPrimaryTopicOf_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_isPrimaryTopicOf_delta_old" t0;
        INSERT INTO "dbrdf_isPrimaryTopicOf"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_isPrimaryTopicOf_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_isPrimaryTopicOf_delta_old";
        INSERT INTO "dbrdf_isPrimaryTopicOf_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_isPrimaryTopicOf_delta_new" t0;
        TRUNCATE TABLE "dbrdf_isPrimaryTopicOf_delta_new";

        INSERT INTO "dbrdf_homepage_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_homepage_delta_old" t0;
        INSERT INTO "dbrdf_homepage"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_homepage_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_homepage_delta_old";
        INSERT INTO "dbrdf_homepage_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_homepage_delta_new" t0;
        TRUNCATE TABLE "dbrdf_homepage_delta_new";

        INSERT INTO "dbrdf_P123_resulted_in_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P123_resulted_in_delta_old" t0;
        INSERT INTO "dbrdf_P123_resulted_in"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P123_resulted_in_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P123_resulted_in_delta_old";
        INSERT INTO "dbrdf_P123_resulted_in_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P123_resulted_in_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P123_resulted_in_delta_new";

        INSERT INTO "dbrdf_P123i_resulted_from_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P123i_resulted_from_delta_old" t0;
        INSERT INTO "dbrdf_P123i_resulted_from"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P123i_resulted_from_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P123i_resulted_from_delta_old";
        INSERT INTO "dbrdf_P123i_resulted_from_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P123i_resulted_from_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P123i_resulted_from_delta_new";

        INSERT INTO "dbrdf_E12_Production_old"(s) SELECT t0.s FROM "dbrdf_E12_Production_delta_old" t0;
        INSERT INTO "dbrdf_E12_Production"(s) SELECT DISTINCT t0.s FROM "dbrdf_E12_Production_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E12_Production_delta_old";
        INSERT INTO "dbrdf_E12_Production_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E12_Production_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E12_Production_delta_new";

        INSERT INTO "dbrdf_P108i_was_produced_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P108i_was_produced_by_delta_old" t0;
        INSERT INTO "dbrdf_P108i_was_produced_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P108i_was_produced_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P108i_was_produced_by_delta_old";
        INSERT INTO "dbrdf_P108i_was_produced_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P108i_was_produced_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P108i_was_produced_by_delta_new";

        INSERT INTO "dbrdf_P108_has_produced_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P108_has_produced_delta_old" t0;
        INSERT INTO "dbrdf_P108_has_produced"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P108_has_produced_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P108_has_produced_delta_old";
        INSERT INTO "dbrdf_P108_has_produced_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P108_has_produced_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P108_has_produced_delta_new";

        INSERT INTO "dbrdf_E14_Condition_Assessment_old"(s) SELECT t0.s FROM "dbrdf_E14_Condition_Assessment_delta_old" t0;
        INSERT INTO "dbrdf_E14_Condition_Assessment"(s) SELECT DISTINCT t0.s FROM "dbrdf_E14_Condition_Assessment_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E14_Condition_Assessment_delta_old";
        INSERT INTO "dbrdf_E14_Condition_Assessment_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E14_Condition_Assessment_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E14_Condition_Assessment_delta_new";

        INSERT INTO "dbrdf_Murder_old"(s) SELECT t0.s FROM "dbrdf_Murder_delta_old" t0;
        INSERT INTO "dbrdf_Murder"(s) SELECT DISTINCT t0.s FROM "dbrdf_Murder_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Murder_delta_old";
        INSERT INTO "dbrdf_Murder_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Murder_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Murder_delta_new";

        INSERT INTO "dbrdf_IndividualEvent_old"(s) SELECT t0.s FROM "dbrdf_IndividualEvent_delta_old" t0;
        INSERT INTO "dbrdf_IndividualEvent"(s) SELECT DISTINCT t0.s FROM "dbrdf_IndividualEvent_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_IndividualEvent_delta_old";
        INSERT INTO "dbrdf_IndividualEvent_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_IndividualEvent_delta_new" t0;
        TRUNCATE TABLE "dbrdf_IndividualEvent_delta_new";

        INSERT INTO "dbrdf_Death_old"(s) SELECT t0.s FROM "dbrdf_Death_delta_old" t0;
        INSERT INTO "dbrdf_Death"(s) SELECT DISTINCT t0.s FROM "dbrdf_Death_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Death_delta_old";
        INSERT INTO "dbrdf_Death_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Death_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Death_delta_new";

        INSERT INTO "dbrdf_P23i_surrendered_title_through_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P23i_surrendered_title_through_delta_old" t0;
        INSERT INTO "dbrdf_P23i_surrendered_title_through"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P23i_surrendered_title_through_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P23i_surrendered_title_through_delta_old";
        INSERT INTO "dbrdf_P23i_surrendered_title_through_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P23i_surrendered_title_through_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P23i_surrendered_title_through_delta_new";

        INSERT INTO "dbrdf_P23_transferred_title_from_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P23_transferred_title_from_delta_old" t0;
        INSERT INTO "dbrdf_P23_transferred_title_from"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P23_transferred_title_from_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P23_transferred_title_from_delta_old";
        INSERT INTO "dbrdf_P23_transferred_title_from_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P23_transferred_title_from_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P23_transferred_title_from_delta_new";

        INSERT INTO "dbrdf_aimChatID_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_aimChatID_delta_old" t0;
        INSERT INTO "dbrdf_aimChatID"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_aimChatID_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_aimChatID_delta_old";
        INSERT INTO "dbrdf_aimChatID_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_aimChatID_delta_new" t0;
        TRUNCATE TABLE "dbrdf_aimChatID_delta_new";

        INSERT INTO "dbrdf_P92i_was_brought_into_existence_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P92i_was_brought_into_existence_by_delta_old" t0;
        INSERT INTO "dbrdf_P92i_was_brought_into_existence_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P92i_was_brought_into_existence_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P92i_was_brought_into_existence_by_delta_old";
        INSERT INTO "dbrdf_P92i_was_brought_into_existence_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P92i_was_brought_into_existence_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P92i_was_brought_into_existence_by_delta_new";

        INSERT INTO "dbrdf_P92_brought_into_existence_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P92_brought_into_existence_delta_old" t0;
        INSERT INTO "dbrdf_P92_brought_into_existence"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P92_brought_into_existence_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P92_brought_into_existence_delta_old";
        INSERT INTO "dbrdf_P92_brought_into_existence_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P92_brought_into_existence_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P92_brought_into_existence_delta_new";

        INSERT INTO "dbrdf_P94_has_created_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P94_has_created_delta_old" t0;
        INSERT INTO "dbrdf_P94_has_created"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P94_has_created_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P94_has_created_delta_old";
        INSERT INTO "dbrdf_P94_has_created_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P94_has_created_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P94_has_created_delta_new";

        INSERT INTO "dbrdf_P94i_was_created_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P94i_was_created_by_delta_old" t0;
        INSERT INTO "dbrdf_P94i_was_created_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P94i_was_created_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P94i_was_created_by_delta_old";
        INSERT INTO "dbrdf_P94i_was_created_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P94i_was_created_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P94i_was_created_by_delta_new";

        INSERT INTO "dbrdf_E65_Creation_old"(s) SELECT t0.s FROM "dbrdf_E65_Creation_delta_old" t0;
        INSERT INTO "dbrdf_E65_Creation"(s) SELECT DISTINCT t0.s FROM "dbrdf_E65_Creation_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E65_Creation_delta_old";
        INSERT INTO "dbrdf_E65_Creation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E65_Creation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E65_Creation_delta_new";

        INSERT INTO "dbrdf_E33_Linguistic_Object_old"(s) SELECT t0.s FROM "dbrdf_E33_Linguistic_Object_delta_old" t0;
        INSERT INTO "dbrdf_E33_Linguistic_Object"(s) SELECT DISTINCT t0.s FROM "dbrdf_E33_Linguistic_Object_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E33_Linguistic_Object_delta_old";
        INSERT INTO "dbrdf_E33_Linguistic_Object_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E33_Linguistic_Object_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E33_Linguistic_Object_delta_new";

        INSERT INTO "dbrdf_E34_Inscription_old"(s) SELECT t0.s FROM "dbrdf_E34_Inscription_delta_old" t0;
        INSERT INTO "dbrdf_E34_Inscription"(s) SELECT DISTINCT t0.s FROM "dbrdf_E34_Inscription_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E34_Inscription_delta_old";
        INSERT INTO "dbrdf_E34_Inscription_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E34_Inscription_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E34_Inscription_delta_new";

        INSERT INTO "dbrdf_E36_Visual_Item_old"(s) SELECT t0.s FROM "dbrdf_E36_Visual_Item_delta_old" t0;
        INSERT INTO "dbrdf_E36_Visual_Item"(s) SELECT DISTINCT t0.s FROM "dbrdf_E36_Visual_Item_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E36_Visual_Item_delta_old";
        INSERT INTO "dbrdf_E36_Visual_Item_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E36_Visual_Item_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E36_Visual_Item_delta_new";

        INSERT INTO "dbrdf_E37_Mark_old"(s) SELECT t0.s FROM "dbrdf_E37_Mark_delta_old" t0;
        INSERT INTO "dbrdf_E37_Mark"(s) SELECT DISTINCT t0.s FROM "dbrdf_E37_Mark_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E37_Mark_delta_old";
        INSERT INTO "dbrdf_E37_Mark_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E37_Mark_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E37_Mark_delta_new";

        INSERT INTO "dbrdf_E55_Type_old"(s) SELECT t0.s FROM "dbrdf_E55_Type_delta_old" t0;
        INSERT INTO "dbrdf_E55_Type"(s) SELECT DISTINCT t0.s FROM "dbrdf_E55_Type_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E55_Type_delta_old";
        INSERT INTO "dbrdf_E55_Type_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E55_Type_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E55_Type_delta_new";

        INSERT INTO "dbrdf_P127_has_broader_term_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P127_has_broader_term_delta_old" t0;
        INSERT INTO "dbrdf_P127_has_broader_term"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P127_has_broader_term_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P127_has_broader_term_delta_old";
        INSERT INTO "dbrdf_P127_has_broader_term_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P127_has_broader_term_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P127_has_broader_term_delta_new";

        INSERT INTO "dbrdf_P127i_has_narrower_term_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P127i_has_narrower_term_delta_old" t0;
        INSERT INTO "dbrdf_P127i_has_narrower_term"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P127i_has_narrower_term_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P127i_has_narrower_term_delta_old";
        INSERT INTO "dbrdf_P127i_has_narrower_term_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P127i_has_narrower_term_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P127i_has_narrower_term_delta_new";

        INSERT INTO "dbrdf_P114_is_equal_in_time_to_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P114_is_equal_in_time_to_delta_old" t0;
        INSERT INTO "dbrdf_P114_is_equal_in_time_to"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P114_is_equal_in_time_to_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P114_is_equal_in_time_to_delta_old";
        INSERT INTO "dbrdf_P114_is_equal_in_time_to_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P114_is_equal_in_time_to_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P114_is_equal_in_time_to_delta_new";

        INSERT INTO "dbrdf_P104i_applies_to_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P104i_applies_to_delta_old" t0;
        INSERT INTO "dbrdf_P104i_applies_to"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P104i_applies_to_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P104i_applies_to_delta_old";
        INSERT INTO "dbrdf_P104i_applies_to_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P104i_applies_to_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P104i_applies_to_delta_new";

        INSERT INTO "dbrdf_E30_Right_old"(s) SELECT t0.s FROM "dbrdf_E30_Right_delta_old" t0;
        INSERT INTO "dbrdf_E30_Right"(s) SELECT DISTINCT t0.s FROM "dbrdf_E30_Right_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E30_Right_delta_old";
        INSERT INTO "dbrdf_E30_Right_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E30_Right_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E30_Right_delta_new";

        INSERT INTO "dbrdf_P104_is_subject_to_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P104_is_subject_to_delta_old" t0;
        INSERT INTO "dbrdf_P104_is_subject_to"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P104_is_subject_to_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P104_is_subject_to_delta_old";
        INSERT INTO "dbrdf_P104_is_subject_to_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P104_is_subject_to_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P104_is_subject_to_delta_new";

        INSERT INTO "dbrdf_P124_transformed_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P124_transformed_delta_old" t0;
        INSERT INTO "dbrdf_P124_transformed"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P124_transformed_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P124_transformed_delta_old";
        INSERT INTO "dbrdf_P124_transformed_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P124_transformed_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P124_transformed_delta_new";

        INSERT INTO "dbrdf_P93_took_out_of_existence_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P93_took_out_of_existence_delta_old" t0;
        INSERT INTO "dbrdf_P93_took_out_of_existence"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P93_took_out_of_existence_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P93_took_out_of_existence_delta_old";
        INSERT INTO "dbrdf_P93_took_out_of_existence_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P93_took_out_of_existence_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P93_took_out_of_existence_delta_new";

        INSERT INTO "dbrdf_P93i_was_taken_out_of_existence_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P93i_was_taken_out_of_existence_by_delta_old" t0;
        INSERT INTO "dbrdf_P93i_was_taken_out_of_existence_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P93i_was_taken_out_of_existence_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P93i_was_taken_out_of_existence_by_delta_old";
        INSERT INTO "dbrdf_P93i_was_taken_out_of_existence_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P93i_was_taken_out_of_existence_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P93i_was_taken_out_of_existence_by_delta_new";

        INSERT INTO "dbrdf_P124i_was_transformed_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P124i_was_transformed_by_delta_old" t0;
        INSERT INTO "dbrdf_P124i_was_transformed_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P124i_was_transformed_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P124i_was_transformed_by_delta_old";
        INSERT INTO "dbrdf_P124i_was_transformed_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P124i_was_transformed_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P124i_was_transformed_by_delta_new";

        INSERT INTO "dbrdf_E63_Beginning_of_Existence_old"(s) SELECT t0.s FROM "dbrdf_E63_Beginning_of_Existence_delta_old" t0;
        INSERT INTO "dbrdf_E63_Beginning_of_Existence"(s) SELECT DISTINCT t0.s FROM "dbrdf_E63_Beginning_of_Existence_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E63_Beginning_of_Existence_delta_old";
        INSERT INTO "dbrdf_E63_Beginning_of_Existence_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E63_Beginning_of_Existence_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E63_Beginning_of_Existence_delta_new";

        INSERT INTO "dbrdf_E64_End_of_Existence_old"(s) SELECT t0.s FROM "dbrdf_E64_End_of_Existence_delta_old" t0;
        INSERT INTO "dbrdf_E64_End_of_Existence"(s) SELECT DISTINCT t0.s FROM "dbrdf_E64_End_of_Existence_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E64_End_of_Existence_delta_old";
        INSERT INTO "dbrdf_E64_End_of_Existence_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E64_End_of_Existence_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E64_End_of_Existence_delta_new";

        INSERT INTO "dbrdf_E81_Transformation_old"(s) SELECT t0.s FROM "dbrdf_E81_Transformation_delta_old" t0;
        INSERT INTO "dbrdf_E81_Transformation"(s) SELECT DISTINCT t0.s FROM "dbrdf_E81_Transformation_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E81_Transformation_delta_old";
        INSERT INTO "dbrdf_E81_Transformation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E81_Transformation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E81_Transformation_delta_new";

        INSERT INTO "dbrdf_P116i_is_started_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P116i_is_started_by_delta_old" t0;
        INSERT INTO "dbrdf_P116i_is_started_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P116i_is_started_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P116i_is_started_by_delta_old";
        INSERT INTO "dbrdf_P116i_is_started_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P116i_is_started_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P116i_is_started_by_delta_new";

        INSERT INTO "dbrdf_P116_starts_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P116_starts_delta_old" t0;
        INSERT INTO "dbrdf_P116_starts"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P116_starts_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P116_starts_delta_old";
        INSERT INTO "dbrdf_P116_starts_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P116_starts_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P116_starts_delta_new";

        INSERT INTO "dbrdf_P16_used_specific_object_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P16_used_specific_object_delta_old" t0;
        INSERT INTO "dbrdf_P16_used_specific_object"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P16_used_specific_object_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P16_used_specific_object_delta_old";
        INSERT INTO "dbrdf_P16_used_specific_object_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P16_used_specific_object_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P16_used_specific_object_delta_new";

        INSERT INTO "dbrdf_P15_was_influenced_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P15_was_influenced_by_delta_old" t0;
        INSERT INTO "dbrdf_P15_was_influenced_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P15_was_influenced_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P15_was_influenced_by_delta_old";
        INSERT INTO "dbrdf_P15_was_influenced_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P15_was_influenced_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P15_was_influenced_by_delta_new";

        INSERT INTO "dbrdf_P15i_influenced_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P15i_influenced_delta_old" t0;
        INSERT INTO "dbrdf_P15i_influenced"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P15i_influenced_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P15i_influenced_delta_old";
        INSERT INTO "dbrdf_P15i_influenced_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P15i_influenced_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P15i_influenced_delta_new";

        INSERT INTO "dbrdf_P16i_was_used_for_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P16i_was_used_for_delta_old" t0;
        INSERT INTO "dbrdf_P16i_was_used_for"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P16i_was_used_for_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P16i_was_used_for_delta_old";
        INSERT INTO "dbrdf_P16i_was_used_for_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P16i_was_used_for_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P16i_was_used_for_delta_new";

        INSERT INTO "dbrdf_E90_Symbolic_Object_old"(s) SELECT t0.s FROM "dbrdf_E90_Symbolic_Object_delta_old" t0;
        INSERT INTO "dbrdf_E90_Symbolic_Object"(s) SELECT DISTINCT t0.s FROM "dbrdf_E90_Symbolic_Object_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E90_Symbolic_Object_delta_old";
        INSERT INTO "dbrdf_E90_Symbolic_Object_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E90_Symbolic_Object_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E90_Symbolic_Object_delta_new";

        INSERT INTO "dbrdf_E28_Conceptual_Object_old"(s) SELECT t0.s FROM "dbrdf_E28_Conceptual_Object_delta_old" t0;
        INSERT INTO "dbrdf_E28_Conceptual_Object"(s) SELECT DISTINCT t0.s FROM "dbrdf_E28_Conceptual_Object_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E28_Conceptual_Object_delta_old";
        INSERT INTO "dbrdf_E28_Conceptual_Object_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E28_Conceptual_Object_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E28_Conceptual_Object_delta_new";

        INSERT INTO "dbrdf_E89_Propositional_Object_old"(s) SELECT t0.s FROM "dbrdf_E89_Propositional_Object_delta_old" t0;
        INSERT INTO "dbrdf_E89_Propositional_Object"(s) SELECT DISTINCT t0.s FROM "dbrdf_E89_Propositional_Object_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E89_Propositional_Object_delta_old";
        INSERT INTO "dbrdf_E89_Propositional_Object_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E89_Propositional_Object_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E89_Propositional_Object_delta_new";

        INSERT INTO "dbrdf_E73_Information_Object_old"(s) SELECT t0.s FROM "dbrdf_E73_Information_Object_delta_old" t0;
        INSERT INTO "dbrdf_E73_Information_Object"(s) SELECT DISTINCT t0.s FROM "dbrdf_E73_Information_Object_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E73_Information_Object_delta_old";
        INSERT INTO "dbrdf_E73_Information_Object_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E73_Information_Object_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E73_Information_Object_delta_new";

        INSERT INTO "dbrdf_E29_Design_or_Procedure_old"(s) SELECT t0.s FROM "dbrdf_E29_Design_or_Procedure_delta_old" t0;
        INSERT INTO "dbrdf_E29_Design_or_Procedure"(s) SELECT DISTINCT t0.s FROM "dbrdf_E29_Design_or_Procedure_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E29_Design_or_Procedure_delta_old";
        INSERT INTO "dbrdf_E29_Design_or_Procedure_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E29_Design_or_Procedure_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E29_Design_or_Procedure_delta_new";

        INSERT INTO "dbrdf_P33i_was_used_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P33i_was_used_by_delta_old" t0;
        INSERT INTO "dbrdf_P33i_was_used_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P33i_was_used_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P33i_was_used_by_delta_old";
        INSERT INTO "dbrdf_P33i_was_used_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P33i_was_used_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P33i_was_used_by_delta_new";

        INSERT INTO "dbrdf_P33_used_specific_technique_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P33_used_specific_technique_delta_old" t0;
        INSERT INTO "dbrdf_P33_used_specific_technique"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P33_used_specific_technique_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P33_used_specific_technique_delta_old";
        INSERT INTO "dbrdf_P33_used_specific_technique_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P33_used_specific_technique_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P33_used_specific_technique_delta_new";

        INSERT INTO "dbrdf_E17_Type_Assignment_old"(s) SELECT t0.s FROM "dbrdf_E17_Type_Assignment_delta_old" t0;
        INSERT INTO "dbrdf_E17_Type_Assignment"(s) SELECT DISTINCT t0.s FROM "dbrdf_E17_Type_Assignment_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E17_Type_Assignment_delta_old";
        INSERT INTO "dbrdf_E17_Type_Assignment_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E17_Type_Assignment_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E17_Type_Assignment_delta_new";

        INSERT INTO "dbrdf_E13_Attribute_Assignment_old"(s) SELECT t0.s FROM "dbrdf_E13_Attribute_Assignment_delta_old" t0;
        INSERT INTO "dbrdf_E13_Attribute_Assignment"(s) SELECT DISTINCT t0.s FROM "dbrdf_E13_Attribute_Assignment_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E13_Attribute_Assignment_delta_old";
        INSERT INTO "dbrdf_E13_Attribute_Assignment_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E13_Attribute_Assignment_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E13_Attribute_Assignment_delta_new";

        INSERT INTO "dbrdf_P140_assigned_attribute_to_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P140_assigned_attribute_to_delta_old" t0;
        INSERT INTO "dbrdf_P140_assigned_attribute_to"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P140_assigned_attribute_to_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P140_assigned_attribute_to_delta_old";
        INSERT INTO "dbrdf_P140_assigned_attribute_to_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P140_assigned_attribute_to_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P140_assigned_attribute_to_delta_new";

        INSERT INTO "dbrdf_P140i_was_attributed_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P140i_was_attributed_by_delta_old" t0;
        INSERT INTO "dbrdf_P140i_was_attributed_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P140i_was_attributed_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P140i_was_attributed_by_delta_old";
        INSERT INTO "dbrdf_P140i_was_attributed_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P140i_was_attributed_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P140i_was_attributed_by_delta_new";

        INSERT INTO "dbrdf_P41i_was_classified_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P41i_was_classified_by_delta_old" t0;
        INSERT INTO "dbrdf_P41i_was_classified_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P41i_was_classified_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P41i_was_classified_by_delta_old";
        INSERT INTO "dbrdf_P41i_was_classified_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P41i_was_classified_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P41i_was_classified_by_delta_new";

        INSERT INTO "dbrdf_P41_classified_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P41_classified_delta_old" t0;
        INSERT INTO "dbrdf_P41_classified"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P41_classified_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P41_classified_delta_old";
        INSERT INTO "dbrdf_P41_classified_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P41_classified_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P41_classified_delta_new";

        INSERT INTO "dbrdf_P31i_was_modified_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P31i_was_modified_by_delta_old" t0;
        INSERT INTO "dbrdf_P31i_was_modified_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P31i_was_modified_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P31i_was_modified_by_delta_old";
        INSERT INTO "dbrdf_P31i_was_modified_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P31i_was_modified_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P31i_was_modified_by_delta_new";

        INSERT INTO "dbrdf_P31_has_modified_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P31_has_modified_delta_old" t0;
        INSERT INTO "dbrdf_P31_has_modified"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P31_has_modified_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P31_has_modified_delta_old";
        INSERT INTO "dbrdf_P31_has_modified_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P31_has_modified_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P31_has_modified_delta_new";

        INSERT INTO "dbrdf_P110_augmented_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P110_augmented_delta_old" t0;
        INSERT INTO "dbrdf_P110_augmented"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P110_augmented_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P110_augmented_delta_old";
        INSERT INTO "dbrdf_P110_augmented_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P110_augmented_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P110_augmented_delta_new";

        INSERT INTO "dbrdf_E71_Man_Made_Thing_old"(s) SELECT t0.s FROM "dbrdf_E71_Man_Made_Thing_delta_old" t0;
        INSERT INTO "dbrdf_E71_Man_Made_Thing"(s) SELECT DISTINCT t0.s FROM "dbrdf_E71_Man_Made_Thing_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E71_Man_Made_Thing_delta_old";
        INSERT INTO "dbrdf_E71_Man_Made_Thing_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E71_Man_Made_Thing_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E71_Man_Made_Thing_delta_new";

        INSERT INTO "dbrdf_E24_Physical_Man_Made_Thing_old"(s) SELECT t0.s FROM "dbrdf_E24_Physical_Man_Made_Thing_delta_old" t0;
        INSERT INTO "dbrdf_E24_Physical_Man_Made_Thing"(s) SELECT DISTINCT t0.s FROM "dbrdf_E24_Physical_Man_Made_Thing_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E24_Physical_Man_Made_Thing_delta_old";
        INSERT INTO "dbrdf_E24_Physical_Man_Made_Thing_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E24_Physical_Man_Made_Thing_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E24_Physical_Man_Made_Thing_delta_new";

        INSERT INTO "dbrdf_P110i_was_augmented_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P110i_was_augmented_by_delta_old" t0;
        INSERT INTO "dbrdf_P110i_was_augmented_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P110i_was_augmented_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P110i_was_augmented_by_delta_old";
        INSERT INTO "dbrdf_P110i_was_augmented_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P110i_was_augmented_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P110i_was_augmented_by_delta_new";

        INSERT INTO "dbrdf_E11_Modification_old"(s) SELECT t0.s FROM "dbrdf_E11_Modification_delta_old" t0;
        INSERT INTO "dbrdf_E11_Modification"(s) SELECT DISTINCT t0.s FROM "dbrdf_E11_Modification_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E11_Modification_delta_old";
        INSERT INTO "dbrdf_E11_Modification_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E11_Modification_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E11_Modification_delta_new";

        INSERT INTO "dbrdf_E79_Part_Addition_old"(s) SELECT t0.s FROM "dbrdf_E79_Part_Addition_delta_old" t0;
        INSERT INTO "dbrdf_E79_Part_Addition"(s) SELECT DISTINCT t0.s FROM "dbrdf_E79_Part_Addition_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E79_Part_Addition_delta_old";
        INSERT INTO "dbrdf_E79_Part_Addition_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E79_Part_Addition_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E79_Part_Addition_delta_new";

        INSERT INTO "dbrdf_E70_Thing_old"(s) SELECT t0.s FROM "dbrdf_E70_Thing_delta_old" t0;
        INSERT INTO "dbrdf_E70_Thing"(s) SELECT DISTINCT t0.s FROM "dbrdf_E70_Thing_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E70_Thing_delta_old";
        INSERT INTO "dbrdf_E70_Thing_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E70_Thing_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E70_Thing_delta_new";

        INSERT INTO "dbrdf_E72_Legal_Object_old"(s) SELECT t0.s FROM "dbrdf_E72_Legal_Object_delta_old" t0;
        INSERT INTO "dbrdf_E72_Legal_Object"(s) SELECT DISTINCT t0.s FROM "dbrdf_E72_Legal_Object_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E72_Legal_Object_delta_old";
        INSERT INTO "dbrdf_E72_Legal_Object_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E72_Legal_Object_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E72_Legal_Object_delta_new";

        INSERT INTO "dbrdf_E18_Physical_Thing_old"(s) SELECT t0.s FROM "dbrdf_E18_Physical_Thing_delta_old" t0;
        INSERT INTO "dbrdf_E18_Physical_Thing"(s) SELECT DISTINCT t0.s FROM "dbrdf_E18_Physical_Thing_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E18_Physical_Thing_delta_old";
        INSERT INTO "dbrdf_E18_Physical_Thing_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E18_Physical_Thing_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E18_Physical_Thing_delta_new";

        INSERT INTO "dbrdf_P24i_changed_ownership_through_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P24i_changed_ownership_through_delta_old" t0;
        INSERT INTO "dbrdf_P24i_changed_ownership_through"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P24i_changed_ownership_through_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P24i_changed_ownership_through_delta_old";
        INSERT INTO "dbrdf_P24i_changed_ownership_through_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P24i_changed_ownership_through_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P24i_changed_ownership_through_delta_new";

        INSERT INTO "dbrdf_P24_transferred_title_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P24_transferred_title_of_delta_old" t0;
        INSERT INTO "dbrdf_P24_transferred_title_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P24_transferred_title_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P24_transferred_title_of_delta_old";
        INSERT INTO "dbrdf_P24_transferred_title_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P24_transferred_title_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P24_transferred_title_of_delta_new";

        INSERT INTO "dbrdf_P14i_performed_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P14i_performed_delta_old" t0;
        INSERT INTO "dbrdf_P14i_performed"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P14i_performed_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P14i_performed_delta_old";
        INSERT INTO "dbrdf_P14i_performed_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P14i_performed_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P14i_performed_delta_new";

        INSERT INTO "dbrdf_P11i_participated_in_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P11i_participated_in_delta_old" t0;
        INSERT INTO "dbrdf_P11i_participated_in"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P11i_participated_in_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P11i_participated_in_delta_old";
        INSERT INTO "dbrdf_P11i_participated_in_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P11i_participated_in_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P11i_participated_in_delta_new";

        INSERT INTO "dbrdf_P12i_was_present_at_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P12i_was_present_at_delta_old" t0;
        INSERT INTO "dbrdf_P12i_was_present_at"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P12i_was_present_at_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P12i_was_present_at_delta_old";
        INSERT INTO "dbrdf_P12i_was_present_at_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P12i_was_present_at_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P12i_was_present_at_delta_new";

        INSERT INTO "dbrdf_P12_occurred_in_the_presence_of_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P12_occurred_in_the_presence_of_delta_old" t0;
        INSERT INTO "dbrdf_P12_occurred_in_the_presence_of"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P12_occurred_in_the_presence_of_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P12_occurred_in_the_presence_of_delta_old";
        INSERT INTO "dbrdf_P12_occurred_in_the_presence_of_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P12_occurred_in_the_presence_of_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P12_occurred_in_the_presence_of_delta_new";

        INSERT INTO "dbrdf_E1_CRM_Entity_old"(s) SELECT t0.s FROM "dbrdf_E1_CRM_Entity_delta_old" t0;
        INSERT INTO "dbrdf_E1_CRM_Entity"(s) SELECT DISTINCT t0.s FROM "dbrdf_E1_CRM_Entity_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E1_CRM_Entity_delta_old";
        INSERT INTO "dbrdf_E1_CRM_Entity_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E1_CRM_Entity_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E1_CRM_Entity_delta_new";

        INSERT INTO "dbrdf_E77_Persistent_Item_old"(s) SELECT t0.s FROM "dbrdf_E77_Persistent_Item_delta_old" t0;
        INSERT INTO "dbrdf_E77_Persistent_Item"(s) SELECT DISTINCT t0.s FROM "dbrdf_E77_Persistent_Item_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E77_Persistent_Item_delta_old";
        INSERT INTO "dbrdf_E77_Persistent_Item_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E77_Persistent_Item_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E77_Persistent_Item_delta_new";

        INSERT INTO "dbrdf_E39_Actor_old"(s) SELECT t0.s FROM "dbrdf_E39_Actor_delta_old" t0;
        INSERT INTO "dbrdf_E39_Actor"(s) SELECT DISTINCT t0.s FROM "dbrdf_E39_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_E39_Actor_delta_old";
        INSERT INTO "dbrdf_E39_Actor_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E39_Actor_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E39_Actor_delta_new";

        INSERT INTO "dbrdf_P11_had_participant_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P11_had_participant_delta_old" t0;
        INSERT INTO "dbrdf_P11_had_participant"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P11_had_participant_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P11_had_participant_delta_old";
        INSERT INTO "dbrdf_P11_had_participant_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P11_had_participant_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P11_had_participant_delta_new";

        INSERT INTO "dbrdf_P14_carried_out_by_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P14_carried_out_by_delta_old" t0;
        INSERT INTO "dbrdf_P14_carried_out_by"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P14_carried_out_by_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P14_carried_out_by_delta_old";
        INSERT INTO "dbrdf_P14_carried_out_by_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P14_carried_out_by_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P14_carried_out_by_delta_new";

        INSERT INTO "dbrdf_P22_transferred_title_to_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P22_transferred_title_to_delta_old" t0;
        INSERT INTO "dbrdf_P22_transferred_title_to"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P22_transferred_title_to_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P22_transferred_title_to_delta_old";
        INSERT INTO "dbrdf_P22_transferred_title_to_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P22_transferred_title_to_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P22_transferred_title_to_delta_new";

        INSERT INTO "dbrdf_P22i_acquired_title_through_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_P22i_acquired_title_through_delta_old" t0;
        INSERT INTO "dbrdf_P22i_acquired_title_through"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P22i_acquired_title_through_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_P22i_acquired_title_through_delta_old";
        INSERT INTO "dbrdf_P22i_acquired_title_through_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_P22i_acquired_title_through_delta_new" t0;
        TRUNCATE TABLE "dbrdf_P22i_acquired_title_through_delta_new";

        INSERT INTO "dbrdf_sameAs_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_sameAs_delta_old" t0;
        INSERT INTO "dbrdf_sameAs"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_sameAs_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_sameAs_delta_old";
        INSERT INTO "dbrdf_sameAs_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_sameAs_delta_new" t0;
        TRUNCATE TABLE "dbrdf_sameAs_delta_new";

        INSERT INTO "dbrdf_E2_Temporal_Entity_old"(s) SELECT t0.s FROM "dbrdf_E2_Temporal_Entity_delta_old" t0;
        INSERT INTO "dbrdf_E2_Temporal_Entity"(s) SELECT DISTINCT t0.s FROM "dbrdf_E2_Temporal_Entity_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E2_Temporal_Entity_delta_old";
        INSERT INTO "dbrdf_E2_Temporal_Entity_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E2_Temporal_Entity_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E2_Temporal_Entity_delta_new";

        INSERT INTO "dbrdf_E4_Period_old"(s) SELECT t0.s FROM "dbrdf_E4_Period_delta_old" t0;
        INSERT INTO "dbrdf_E4_Period"(s) SELECT DISTINCT t0.s FROM "dbrdf_E4_Period_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E4_Period_delta_old";
        INSERT INTO "dbrdf_E4_Period_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E4_Period_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E4_Period_delta_new";

        INSERT INTO "dbrdf_E5_Event_old"(s) SELECT t0.s FROM "dbrdf_E5_Event_delta_old" t0;
        INSERT INTO "dbrdf_E5_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_E5_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_E5_Event_delta_old";
        INSERT INTO "dbrdf_E5_Event_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E5_Event_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E5_Event_delta_new";

        INSERT INTO "dbrdf_E7_Activity_old"(s) SELECT t0.s FROM "dbrdf_E7_Activity_delta_old" t0;
        INSERT INTO "dbrdf_E7_Activity"(s) SELECT DISTINCT t0.s FROM "dbrdf_E7_Activity_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E7_Activity_delta_old";
        INSERT INTO "dbrdf_E7_Activity_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E7_Activity_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E7_Activity_delta_new";

        INSERT INTO "dbrdf_E8_Acquisition_old"(s) SELECT t0.s FROM "dbrdf_E8_Acquisition_delta_old" t0;
        INSERT INTO "dbrdf_E8_Acquisition"(s) SELECT DISTINCT t0.s FROM "dbrdf_E8_Acquisition_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_E8_Acquisition_delta_old";
        INSERT INTO "dbrdf_E8_Acquisition_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_E8_Acquisition_delta_new" t0;
        TRUNCATE TABLE "dbrdf_E8_Acquisition_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_LicenseDocument_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_LicenseDocument_delta_old"(s) SELECT t0.s FROM "dbrdf_LicenseDocument" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_LicenseDocument_delta_old" ON "dbrdf_LicenseDocument_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_LicenseDocument_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/dc/terms/LicenseDocument$delta_new>(?Y) :- <http://purl.org/dc/terms/LicenseDocument$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_LicenseDocument_delta_new"(s) SELECT t1.o FROM "dbrdf_LicenseDocument_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_LicenseDocument" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_LicenseDocument"(s) SELECT DISTINCT t0.s FROM "dbrdf_LicenseDocument_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_LicenseDocument_delta_old";
        INSERT INTO "dbrdf_LicenseDocument_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_LicenseDocument_delta_new" t0;
        TRUNCATE TABLE "dbrdf_LicenseDocument_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2
    ---- DEPENDS ON: 1, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://purl.org/dc/terms/RightsStatement>(?X) :- <http://purl.org/dc/terms/LicenseDocument>(?X) .
    INSERT INTO "dbrdf_RightsStatement"(s) SELECT t0.s FROM "dbrdf_LicenseDocument" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_RightsStatement" 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_RightsStatement_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_RightsStatement_delta_old"(s) SELECT t0.s FROM "dbrdf_RightsStatement" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_RightsStatement_delta_old" ON "dbrdf_RightsStatement_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_RightsStatement_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/dc/terms/RightsStatement$delta_new>(?Y) :- <http://purl.org/dc/terms/RightsStatement$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_RightsStatement_delta_new"(s) SELECT t1.o FROM "dbrdf_RightsStatement_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_RightsStatement" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_RightsStatement"(s) SELECT DISTINCT t0.s FROM "dbrdf_RightsStatement_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_RightsStatement_delta_old";
        INSERT INTO "dbrdf_RightsStatement_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_RightsStatement_delta_new" t0;
        TRUNCATE TABLE "dbrdf_RightsStatement_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 3
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_OnlineGamingAccount_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_OnlineGamingAccount_delta_old"(s) SELECT t0.s FROM "dbrdf_OnlineGamingAccount" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_OnlineGamingAccount_delta_old" ON "dbrdf_OnlineGamingAccount_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_OnlineGamingAccount_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://xmlns.com/foaf/0.1/OnlineGamingAccount$delta_new>(?Y) :- <http://xmlns.com/foaf/0.1/OnlineGamingAccount$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_OnlineGamingAccount_delta_new"(s) SELECT t1.o FROM "dbrdf_OnlineGamingAccount_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_OnlineGamingAccount" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_OnlineGamingAccount"(s) SELECT DISTINCT t0.s FROM "dbrdf_OnlineGamingAccount_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_OnlineGamingAccount_delta_old";
        INSERT INTO "dbrdf_OnlineGamingAccount_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_OnlineGamingAccount_delta_new" t0;
        TRUNCATE TABLE "dbrdf_OnlineGamingAccount_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 4
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://purl.org/dc/elements/1.1/subject>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/keywords>(?X,?Y) .
    INSERT INTO "dbrdf_subject"(s, o) SELECT t0.s, t0.o FROM "dbrdf_keywords" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_subject" ex WHERE ex.s = t0.s AND ex.o = 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_subject_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_subject_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_subject" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_subject_delta_old" ON "dbrdf_subject_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_subject_delta_old" ON "dbrdf_subject_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_subject_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://purl.org/dc/elements/1.1/subject$delta_new>(?Y,?X1) :- <http://purl.org/dc/elements/1.1/subject$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_subject_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_subject_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_subject" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/dc/elements/1.1/subject$delta_new>(?X0,?Y) :- <http://purl.org/dc/elements/1.1/subject$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_subject_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_subject_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_subject" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 5
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_OnlineChatAccount_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_OnlineChatAccount_delta_old"(s) SELECT t0.s FROM "dbrdf_OnlineChatAccount" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_OnlineChatAccount_delta_old" ON "dbrdf_OnlineChatAccount_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_OnlineChatAccount_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://xmlns.com/foaf/0.1/OnlineChatAccount$delta_new>(?Y) :- <http://xmlns.com/foaf/0.1/OnlineChatAccount$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_OnlineChatAccount_delta_new"(s) SELECT t1.o FROM "dbrdf_OnlineChatAccount_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_OnlineChatAccount" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_OnlineChatAccount"(s) SELECT DISTINCT t0.s FROM "dbrdf_OnlineChatAccount_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_OnlineChatAccount_delta_old";
        INSERT INTO "dbrdf_OnlineChatAccount_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_OnlineChatAccount_delta_new" t0;
        TRUNCATE TABLE "dbrdf_OnlineChatAccount_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 6
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_SizeOrDuration_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SizeOrDuration_delta_old"(s) SELECT t0.s FROM "dbrdf_SizeOrDuration" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SizeOrDuration_delta_old" ON "dbrdf_SizeOrDuration_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SizeOrDuration_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/dc/terms/SizeOrDuration$delta_new>(?Y) :- <http://purl.org/dc/terms/SizeOrDuration$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_SizeOrDuration_delta_new"(s) SELECT t1.o FROM "dbrdf_SizeOrDuration_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_SizeOrDuration" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_SizeOrDuration"(s) SELECT DISTINCT t0.s FROM "dbrdf_SizeOrDuration_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SizeOrDuration_delta_old";
        INSERT INTO "dbrdf_SizeOrDuration_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SizeOrDuration_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SizeOrDuration_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 7
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_PeriodOfTime_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_PeriodOfTime_delta_old"(s) SELECT t0.s FROM "dbrdf_PeriodOfTime" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_PeriodOfTime_delta_old" ON "dbrdf_PeriodOfTime_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_PeriodOfTime_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/dc/terms/PeriodOfTime$delta_new>(?Y) :- <http://purl.org/dc/terms/PeriodOfTime$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_PeriodOfTime_delta_new"(s) SELECT t1.o FROM "dbrdf_PeriodOfTime_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_PeriodOfTime" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_PeriodOfTime"(s) SELECT DISTINCT t0.s FROM "dbrdf_PeriodOfTime_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_PeriodOfTime_delta_old";
        INSERT INTO "dbrdf_PeriodOfTime_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_PeriodOfTime_delta_new" t0;
        TRUNCATE TABLE "dbrdf_PeriodOfTime_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 8
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Datatype_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Datatype_delta_old"(s) SELECT t0.s FROM "dbrdf_Datatype" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Datatype_delta_old" ON "dbrdf_Datatype_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Datatype_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://www.w3.org/2000/01/rdf-schema#Datatype$delta_new>(?Y) :- <http://www.w3.org/2000/01/rdf-schema#Datatype$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Datatype_delta_new"(s) SELECT t1.o FROM "dbrdf_Datatype_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Datatype" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Datatype"(s) SELECT DISTINCT t0.s FROM "dbrdf_Datatype_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Datatype_delta_old";
        INSERT INTO "dbrdf_Datatype_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Datatype_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Datatype_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 9
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_OnlineEcommerceAccount_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_OnlineEcommerceAccount_delta_old"(s) SELECT t0.s FROM "dbrdf_OnlineEcommerceAccount" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_OnlineEcommerceAccount_delta_old" ON "dbrdf_OnlineEcommerceAccount_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_OnlineEcommerceAccount_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://xmlns.com/foaf/0.1/OnlineEcommerceAccount$delta_new>(?Y) :- <http://xmlns.com/foaf/0.1/OnlineEcommerceAccount$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_OnlineEcommerceAccount_delta_new"(s) SELECT t1.o FROM "dbrdf_OnlineEcommerceAccount_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_OnlineEcommerceAccount" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_OnlineEcommerceAccount"(s) SELECT DISTINCT t0.s FROM "dbrdf_OnlineEcommerceAccount_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_OnlineEcommerceAccount_delta_old";
        INSERT INTO "dbrdf_OnlineEcommerceAccount_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_OnlineEcommerceAccount_delta_new" t0;
        TRUNCATE TABLE "dbrdf_OnlineEcommerceAccount_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 10
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_member_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_member_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_member" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_member_delta_old" ON "dbrdf_member_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_member_delta_old" ON "dbrdf_member_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_member_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://xmlns.com/foaf/0.1/member$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/member$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_member_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_member_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_member" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/member$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/member$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_member_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_member_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_member" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 11
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_ContainerMembershipProperty_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_ContainerMembershipProperty_delta_old"(s) SELECT t0.s FROM "dbrdf_ContainerMembershipProperty" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_ContainerMembershipProperty_delta_old" ON "dbrdf_ContainerMembershipProperty_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_ContainerMembershipProperty_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty$delta_new>(?Y) :- <http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_ContainerMembershipProperty_delta_new"(s) SELECT t1.o FROM "dbrdf_ContainerMembershipProperty_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_ContainerMembershipProperty" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_ContainerMembershipProperty"(s) SELECT DISTINCT t0.s FROM "dbrdf_ContainerMembershipProperty_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_ContainerMembershipProperty_delta_old";
        INSERT INTO "dbrdf_ContainerMembershipProperty_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_ContainerMembershipProperty_delta_new" t0;
        TRUNCATE TABLE "dbrdf_ContainerMembershipProperty_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 12
    ---- DEPENDS ON: 11, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] rdf:Property(?X) :- rdfs:ContainerMembershipProperty(?X) .
    INSERT INTO "dbrdf_Property"(s) SELECT t0.s FROM "dbrdf_ContainerMembershipProperty" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Property" 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_Property_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Property_delta_old"(s) SELECT t0.s FROM "dbrdf_Property" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Property_delta_old" ON "dbrdf_Property_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Property_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property$delta_new>(?Y) :- <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Property_delta_new"(s) SELECT t1.o FROM "dbrdf_Property_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Property" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Property"(s) SELECT DISTINCT t0.s FROM "dbrdf_Property_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Property_delta_old";
        INSERT INTO "dbrdf_Property_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Property_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Property_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 13
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Project_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Project_delta_old"(s) SELECT t0.s FROM "dbrdf_Project" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Project_delta_old" ON "dbrdf_Project_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Project_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://xmlns.com/foaf/0.1/Project$delta_new>(?Y) :- <http://xmlns.com/foaf/0.1/Project$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Project_delta_new"(s) SELECT t1.o FROM "dbrdf_Project_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Project" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Project"(s) SELECT DISTINCT t0.s FROM "dbrdf_Project_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Project_delta_old";
        INSERT INTO "dbrdf_Project_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Project_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Project_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 14
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_concludingEvent_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_concludingEvent_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_concludingEvent" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_concludingEvent_delta_old" ON "dbrdf_concludingEvent_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_concludingEvent_delta_old" ON "dbrdf_concludingEvent_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_concludingEvent_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://purl.org/vocab/bio/0.1/concludingEvent$delta_new>(?Y,?X1) :- <http://purl.org/vocab/bio/0.1/concludingEvent$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_concludingEvent_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_concludingEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_concludingEvent" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/bio/0.1/concludingEvent$delta_new>(?X0,?Y) :- <http://purl.org/vocab/bio/0.1/concludingEvent$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_concludingEvent_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_concludingEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_concludingEvent" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 15
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_interval_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_interval_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_interval" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_interval_delta_old" ON "dbrdf_interval_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_interval_delta_old" ON "dbrdf_interval_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_interval_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://purl.org/vocab/bio/0.1/interval$delta_new>(?Y,?X1) :- <http://purl.org/vocab/bio/0.1/interval$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_interval_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_interval_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_interval" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/bio/0.1/interval$delta_new>(?X0,?Y) :- <http://purl.org/vocab/bio/0.1/interval$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_interval_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_interval_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_interval" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 16
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_tipjar_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_tipjar_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_tipjar" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_tipjar_delta_old" ON "dbrdf_tipjar_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_tipjar_delta_old" ON "dbrdf_tipjar_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_tipjar_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://xmlns.com/foaf/0.1/tipjar$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/tipjar$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_tipjar_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_tipjar_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_tipjar" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/tipjar$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/tipjar$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_tipjar_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_tipjar_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_tipjar" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 17
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_accountName_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_accountName_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_accountName" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_accountName_delta_old" ON "dbrdf_accountName_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_accountName_delta_old" ON "dbrdf_accountName_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_accountName_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://xmlns.com/foaf/0.1/accountName$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/accountName$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_accountName_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_accountName_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_accountName" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/accountName$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/accountName$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_accountName_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_accountName_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_accountName" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 18
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_account_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_account_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_account" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_account_delta_old" ON "dbrdf_account_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_account_delta_old" ON "dbrdf_account_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_account_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://xmlns.com/foaf/0.1/account$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/account$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_account_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_account_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_account" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/account$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/account$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_account_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_account_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_account" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 19
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Location_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Location_delta_old"(s) SELECT t0.s FROM "dbrdf_Location" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Location_delta_old" ON "dbrdf_Location_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Location_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/dc/terms/Location$delta_new>(?Y) :- <http://purl.org/dc/terms/Location$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Location_delta_new"(s) SELECT t1.o FROM "dbrdf_Location_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Location" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Location"(s) SELECT DISTINCT t0.s FROM "dbrdf_Location_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Location_delta_old";
        INSERT INTO "dbrdf_Location_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Location_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Location_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 20
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_FileFormat_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_FileFormat_delta_old"(s) SELECT t0.s FROM "dbrdf_FileFormat" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_FileFormat_delta_old" ON "dbrdf_FileFormat_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_FileFormat_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/dc/terms/FileFormat$delta_new>(?Y) :- <http://purl.org/dc/terms/FileFormat$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_FileFormat_delta_new"(s) SELECT t1.o FROM "dbrdf_FileFormat_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_FileFormat" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_FileFormat"(s) SELECT DISTINCT t0.s FROM "dbrdf_FileFormat_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_FileFormat_delta_old";
        INSERT INTO "dbrdf_FileFormat_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_FileFormat_delta_new" t0;
        TRUNCATE TABLE "dbrdf_FileFormat_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 21
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_thumbnail_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_thumbnail_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_thumbnail" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_thumbnail_delta_old" ON "dbrdf_thumbnail_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_thumbnail_delta_old" ON "dbrdf_thumbnail_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_thumbnail_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://xmlns.com/foaf/0.1/thumbnail$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/thumbnail$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_thumbnail_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_thumbnail_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_thumbnail" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/thumbnail$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/thumbnail$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_thumbnail_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_thumbnail_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_thumbnail" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 22
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_AgentClass_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_AgentClass_delta_old"(s) SELECT t0.s FROM "dbrdf_AgentClass" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_AgentClass_delta_old" ON "dbrdf_AgentClass_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_AgentClass_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/dc/terms/AgentClass$delta_new>(?Y) :- <http://purl.org/dc/terms/AgentClass$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_AgentClass_delta_new"(s) SELECT t1.o FROM "dbrdf_AgentClass_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_AgentClass" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_AgentClass"(s) SELECT DISTINCT t0.s FROM "dbrdf_AgentClass_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_AgentClass_delta_old";
        INSERT INTO "dbrdf_AgentClass_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_AgentClass_delta_new" t0;
        TRUNCATE TABLE "dbrdf_AgentClass_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 23
    ---- DEPENDS ON: 22, 8, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] rdfs:Class(?X) :- <http://purl.org/dc/terms/AgentClass>(?X) .
    INSERT INTO "dbrdf_Class"(s) SELECT t0.s FROM "dbrdf_AgentClass" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Class" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] rdfs:Class(?X) :- rdfs:Datatype(?X) .
    INSERT INTO "dbrdf_Class"(s) SELECT t0.s FROM "dbrdf_Datatype" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Class" 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_Class_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Class_delta_old"(s) SELECT t0.s FROM "dbrdf_Class" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Class_delta_old" ON "dbrdf_Class_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Class_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://www.w3.org/2000/01/rdf-schema#Class$delta_new>(?Y) :- <http://www.w3.org/2000/01/rdf-schema#Class$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Class_delta_new"(s) SELECT t1.o FROM "dbrdf_Class_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Class" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Class"(s) SELECT DISTINCT t0.s FROM "dbrdf_Class_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Class_delta_old";
        INSERT INTO "dbrdf_Class_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Class_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Class_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 24
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_PersonalProfileDocument_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_PersonalProfileDocument_delta_old"(s) SELECT t0.s FROM "dbrdf_PersonalProfileDocument" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_PersonalProfileDocument_delta_old" ON "dbrdf_PersonalProfileDocument_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_PersonalProfileDocument_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://xmlns.com/foaf/0.1/PersonalProfileDocument$delta_new>(?Y) :- <http://xmlns.com/foaf/0.1/PersonalProfileDocument$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_PersonalProfileDocument_delta_new"(s) SELECT t1.o FROM "dbrdf_PersonalProfileDocument_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_PersonalProfileDocument" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_PersonalProfileDocument"(s) SELECT DISTINCT t0.s FROM "dbrdf_PersonalProfileDocument_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_PersonalProfileDocument_delta_old";
        INSERT INTO "dbrdf_PersonalProfileDocument_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_PersonalProfileDocument_delta_new" t0;
        TRUNCATE TABLE "dbrdf_PersonalProfileDocument_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 25
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Performance_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Performance_delta_old"(s) SELECT t0.s FROM "dbrdf_Performance" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Performance_delta_old" ON "dbrdf_Performance_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Performance_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Performance_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Performance_delta_old0"(s) SELECT t0.s FROM "dbrdf_Performance0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Performance_delta_old0" ON "dbrdf_Performance_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Performance_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/ontology/mo/Performance$delta_new>(?X) :- <http://purl.org/vocab/bio/0.1/Performance$delta_old>(?X) .
        INSERT INTO "dbrdf_Performance_delta_new"(s) SELECT t0.s FROM "dbrdf_Performance_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Performance" ex WHERE ex.s = t0.s);


        -- <http://purl.org/ontology/mo/Performance$delta_new>(?Y) :- <http://purl.org/ontology/mo/Performance$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Performance_delta_new"(s) SELECT t1.o FROM "dbrdf_Performance_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Performance" ex WHERE ex.s = t1.o);


        -- <http://purl.org/vocab/bio/0.1/Performance$delta_new>(?X) :- <http://purl.org/ontology/mo/Performance$delta_old>(?X) .
        INSERT INTO "dbrdf_Performance_delta_new0"(s) SELECT t0.s FROM "dbrdf_Performance_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Performance0" ex WHERE ex.s = t0.s);


        -- <http://purl.org/vocab/bio/0.1/Performance$delta_new>(?Y) :- <http://purl.org/vocab/bio/0.1/Performance$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Performance_delta_new0"(s) SELECT t1.o FROM "dbrdf_Performance_delta_old0" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Performance0" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Performance"(s) SELECT DISTINCT t0.s FROM "dbrdf_Performance_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Performance_delta_old";
        INSERT INTO "dbrdf_Performance_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Performance_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Performance_delta_new";

        INSERT INTO "dbrdf_Performance0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Performance_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_Performance_delta_old0";
        INSERT INTO "dbrdf_Performance_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Performance_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Performance_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 26
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_holdsAccount_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_holdsAccount_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_holdsAccount" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_holdsAccount_delta_old" ON "dbrdf_holdsAccount_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_holdsAccount_delta_old" ON "dbrdf_holdsAccount_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_holdsAccount_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://xmlns.com/foaf/0.1/holdsAccount$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/holdsAccount$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_holdsAccount_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_holdsAccount_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_holdsAccount" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/holdsAccount$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/holdsAccount$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_holdsAccount_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_holdsAccount_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_holdsAccount" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 27
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_accountServiceHomepage_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_accountServiceHomepage_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_accountServiceHomepage" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_accountServiceHomepage_delta_old" ON "dbrdf_accountServiceHomepage_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_accountServiceHomepage_delta_old" ON "dbrdf_accountServiceHomepage_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_accountServiceHomepage_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://xmlns.com/foaf/0.1/accountServiceHomepage$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/accountServiceHomepage$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_accountServiceHomepage_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_accountServiceHomepage_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_accountServiceHomepage" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/accountServiceHomepage$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/accountServiceHomepage$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_accountServiceHomepage_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_accountServiceHomepage_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_accountServiceHomepage" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 28
    ---- DEPENDS ON: 27, 26, 18, 17, 9, 5, 3, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://xmlns.com/foaf/0.1/OnlineAccount>(?X) :- <http://xmlns.com/foaf/0.1/accountServiceHomepage>(?X,?X1) .
    INSERT INTO "dbrdf_OnlineAccount"(s) SELECT DISTINCT t0.s FROM "dbrdf_accountServiceHomepage" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_OnlineAccount" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/OnlineAccount>(?X1) :- <http://xmlns.com/foaf/0.1/account>(?X,?X1) .
    INSERT INTO "dbrdf_OnlineAccount"(s) SELECT DISTINCT t0.o FROM "dbrdf_account" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_OnlineAccount" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/OnlineAccount>(?X) :- <http://xmlns.com/foaf/0.1/accountName>(?X,?X1) .
    INSERT INTO "dbrdf_OnlineAccount"(s) SELECT DISTINCT t0.s FROM "dbrdf_accountName" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_OnlineAccount" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/OnlineAccount>(?X) :- <http://xmlns.com/foaf/0.1/OnlineEcommerceAccount>(?X) .
    INSERT INTO "dbrdf_OnlineAccount"(s) SELECT t0.s FROM "dbrdf_OnlineEcommerceAccount" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_OnlineAccount" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/OnlineAccount>(?X1) :- <http://xmlns.com/foaf/0.1/holdsAccount>(?X,?X1) .
    INSERT INTO "dbrdf_OnlineAccount"(s) SELECT DISTINCT t0.o FROM "dbrdf_holdsAccount" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_OnlineAccount" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/OnlineAccount>(?X) :- <http://xmlns.com/foaf/0.1/OnlineChatAccount>(?X) .
    INSERT INTO "dbrdf_OnlineAccount"(s) SELECT t0.s FROM "dbrdf_OnlineChatAccount" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_OnlineAccount" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/OnlineAccount>(?X) :- <http://xmlns.com/foaf/0.1/OnlineGamingAccount>(?X) .
    INSERT INTO "dbrdf_OnlineAccount"(s) SELECT t0.s FROM "dbrdf_OnlineGamingAccount" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_OnlineAccount" 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_OnlineAccount_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_OnlineAccount_delta_old"(s) SELECT t0.s FROM "dbrdf_OnlineAccount" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_OnlineAccount_delta_old" ON "dbrdf_OnlineAccount_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_OnlineAccount_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://xmlns.com/foaf/0.1/OnlineAccount$delta_new>(?Y) :- <http://xmlns.com/foaf/0.1/OnlineAccount$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_OnlineAccount_delta_new"(s) SELECT t1.o FROM "dbrdf_OnlineAccount_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_OnlineAccount" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_OnlineAccount"(s) SELECT DISTINCT t0.s FROM "dbrdf_OnlineAccount_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_OnlineAccount_delta_old";
        INSERT INTO "dbrdf_OnlineAccount_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_OnlineAccount_delta_new" t0;
        TRUNCATE TABLE "dbrdf_OnlineAccount_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 29
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_interest_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_interest_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_interest" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_interest_delta_old" ON "dbrdf_interest_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_interest_delta_old" ON "dbrdf_interest_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_interest_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://xmlns.com/foaf/0.1/interest$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/interest$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_interest_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_interest_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_interest" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/interest$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/interest$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_interest_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_interest_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_interest" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 30
    ---- DEPENDS ON: 10, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://xmlns.com/foaf/0.1/Group>(?X) :- <http://xmlns.com/foaf/0.1/member>(?X,?X1) .
    INSERT INTO "dbrdf_Group"(s) SELECT DISTINCT t0.s FROM "dbrdf_member" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Group" 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_Group_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Group_delta_old"(s) SELECT t0.s FROM "dbrdf_Group" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Group_delta_old" ON "dbrdf_Group_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Group_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://xmlns.com/foaf/0.1/Group$delta_new>(?Y) :- <http://xmlns.com/foaf/0.1/Group$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Group_delta_new"(s) SELECT t1.o FROM "dbrdf_Group_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Group" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Group"(s) SELECT DISTINCT t0.s FROM "dbrdf_Group_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Group_delta_old";
        INSERT INTO "dbrdf_Group_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Group_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Group_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 31
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_PhysicalMedium_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_PhysicalMedium_delta_old"(s) SELECT t0.s FROM "dbrdf_PhysicalMedium" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_PhysicalMedium_delta_old" ON "dbrdf_PhysicalMedium_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_PhysicalMedium_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/dc/terms/PhysicalMedium$delta_new>(?Y) :- <http://purl.org/dc/terms/PhysicalMedium$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_PhysicalMedium_delta_new"(s) SELECT t1.o FROM "dbrdf_PhysicalMedium_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_PhysicalMedium" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_PhysicalMedium"(s) SELECT DISTINCT t0.s FROM "dbrdf_PhysicalMedium_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_PhysicalMedium_delta_old";
        INSERT INTO "dbrdf_PhysicalMedium_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_PhysicalMedium_delta_new" t0;
        TRUNCATE TABLE "dbrdf_PhysicalMedium_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 32
    ---- DEPENDS ON: 31, 20, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://purl.org/dc/terms/MediaType>(?X) :- <http://purl.org/dc/terms/PhysicalMedium>(?X) .
    INSERT INTO "dbrdf_MediaType"(s) SELECT t0.s FROM "dbrdf_PhysicalMedium" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MediaType" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/dc/terms/MediaType>(?X) :- <http://purl.org/dc/terms/FileFormat>(?X) .
    INSERT INTO "dbrdf_MediaType"(s) SELECT t0.s FROM "dbrdf_FileFormat" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MediaType" 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_MediaType_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MediaType_delta_old"(s) SELECT t0.s FROM "dbrdf_MediaType" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MediaType_delta_old" ON "dbrdf_MediaType_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MediaType_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/dc/terms/MediaType$delta_new>(?Y) :- <http://purl.org/dc/terms/MediaType$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_MediaType_delta_new"(s) SELECT t1.o FROM "dbrdf_MediaType_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_MediaType" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_MediaType"(s) SELECT DISTINCT t0.s FROM "dbrdf_MediaType_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_MediaType_delta_old";
        INSERT INTO "dbrdf_MediaType_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_MediaType_delta_new" t0;
        TRUNCATE TABLE "dbrdf_MediaType_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 33
    ---- DEPENDS ON: 32, 6, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://purl.org/dc/terms/MediaTypeOrExtent>(?X) :- <http://purl.org/dc/terms/MediaType>(?X) .
    INSERT INTO "dbrdf_MediaTypeOrExtent"(s) SELECT t0.s FROM "dbrdf_MediaType" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MediaTypeOrExtent" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/dc/terms/MediaTypeOrExtent>(?X) :- <http://purl.org/dc/terms/SizeOrDuration>(?X) .
    INSERT INTO "dbrdf_MediaTypeOrExtent"(s) SELECT t0.s FROM "dbrdf_SizeOrDuration" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MediaTypeOrExtent" 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_MediaTypeOrExtent_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MediaTypeOrExtent_delta_old"(s) SELECT t0.s FROM "dbrdf_MediaTypeOrExtent" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MediaTypeOrExtent_delta_old" ON "dbrdf_MediaTypeOrExtent_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MediaTypeOrExtent_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/dc/terms/MediaTypeOrExtent$delta_new>(?Y) :- <http://purl.org/dc/terms/MediaTypeOrExtent$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_MediaTypeOrExtent_delta_new"(s) SELECT t1.o FROM "dbrdf_MediaTypeOrExtent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_MediaTypeOrExtent" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_MediaTypeOrExtent"(s) SELECT DISTINCT t0.s FROM "dbrdf_MediaTypeOrExtent_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_MediaTypeOrExtent_delta_old";
        INSERT INTO "dbrdf_MediaTypeOrExtent_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_MediaTypeOrExtent_delta_new" t0;
        TRUNCATE TABLE "dbrdf_MediaTypeOrExtent_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 34
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_status_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_status_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_status" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_status_delta_old" ON "dbrdf_status_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_status_delta_old" ON "dbrdf_status_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_status_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://xmlns.com/foaf/0.1/status$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/status$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_status_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_status_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_status" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/status$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/status$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_status_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_status_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_status" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 35
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_sha1_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_sha1_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_sha1" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_sha1_delta_old" ON "dbrdf_sha1_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_sha1_delta_old" ON "dbrdf_sha1_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_sha1_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://xmlns.com/foaf/0.1/sha1$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/sha1$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_sha1_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_sha1_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_sha1" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/sha1$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/sha1$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_sha1_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_sha1_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_sha1" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 36
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_based_near_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_based_near_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_based_near" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_based_near_delta_old" ON "dbrdf_based_near_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_based_near_delta_old" ON "dbrdf_based_near_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_based_near_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://xmlns.com/foaf/0.1/based_near$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/based_near$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_based_near_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_based_near_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_based_near" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/based_near$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/based_near$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_based_near_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_based_near_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_based_near" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 37
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_initiatingEvent_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_initiatingEvent_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_initiatingEvent" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_initiatingEvent_delta_old" ON "dbrdf_initiatingEvent_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_initiatingEvent_delta_old" ON "dbrdf_initiatingEvent_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_initiatingEvent_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://purl.org/vocab/bio/0.1/initiatingEvent$delta_new>(?Y,?X1) :- <http://purl.org/vocab/bio/0.1/initiatingEvent$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_initiatingEvent_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_initiatingEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_initiatingEvent" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/bio/0.1/initiatingEvent$delta_new>(?X0,?Y) :- <http://purl.org/vocab/bio/0.1/initiatingEvent$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_initiatingEvent_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_initiatingEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_initiatingEvent" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 38
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_immediatelyFollowingEvent_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_immediatelyFollowingEvent_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_immediatelyFollowingEvent" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_immediatelyFollowingEvent_delta_old" ON "dbrdf_immediatelyFollowingEvent_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_immediatelyFollowingEvent_delta_old" ON "dbrdf_immediatelyFollowingEvent_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_immediatelyFollowingEvent_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://purl.org/vocab/bio/0.1/immediatelyFollowingEvent$delta_new>(?Y,?X1) :- <http://purl.org/vocab/bio/0.1/immediatelyFollowingEvent$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_immediatelyFollowingEvent_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_immediatelyFollowingEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_immediatelyFollowingEvent" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/bio/0.1/immediatelyFollowingEvent$delta_new>(?X0,?Y) :- <http://purl.org/vocab/bio/0.1/immediatelyFollowingEvent$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_immediatelyFollowingEvent_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_immediatelyFollowingEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_immediatelyFollowingEvent" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 39
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_immediatelyPrecedingEvent_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_immediatelyPrecedingEvent_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_immediatelyPrecedingEvent" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_immediatelyPrecedingEvent_delta_old" ON "dbrdf_immediatelyPrecedingEvent_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_immediatelyPrecedingEvent_delta_old" ON "dbrdf_immediatelyPrecedingEvent_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_immediatelyPrecedingEvent_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://purl.org/vocab/bio/0.1/immediatelyPrecedingEvent$delta_new>(?Y,?X1) :- <http://purl.org/vocab/bio/0.1/immediatelyPrecedingEvent$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_immediatelyPrecedingEvent_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_immediatelyPrecedingEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_immediatelyPrecedingEvent" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/bio/0.1/immediatelyPrecedingEvent$delta_new>(?X0,?Y) :- <http://purl.org/vocab/bio/0.1/immediatelyPrecedingEvent$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_immediatelyPrecedingEvent_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_immediatelyPrecedingEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_immediatelyPrecedingEvent" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 40
    ---- DEPENDS ON: 39, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://purl.org/vocab/bio/0.1/precedingEvent>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/immediatelyPrecedingEvent>(?X,?Y) .
    INSERT INTO "dbrdf_precedingEvent"(s, o) SELECT t0.s, t0.o FROM "dbrdf_immediatelyPrecedingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_precedingEvent" ex WHERE ex.s = t0.s AND ex.o = 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_precedingEvent_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_precedingEvent_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_precedingEvent" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_precedingEvent_delta_old" ON "dbrdf_precedingEvent_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_precedingEvent_delta_old" ON "dbrdf_precedingEvent_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_precedingEvent_old"(s integer, o integer) ON COMMIT DROP;
    CREATE INDEX "IDX_0_dbrdf_precedingEvent_old" ON "dbrdf_precedingEvent_old"(s, o); CREATE INDEX "IDX_1_dbrdf_precedingEvent_old" ON "dbrdf_precedingEvent_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_precedingEvent_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://purl.org/vocab/bio/0.1/precedingEvent$delta_new>(?X,?Z) :- <http://purl.org/vocab/bio/0.1/precedingEvent$delta_old>(?X,?Y), <http://purl.org/vocab/bio/0.1/precedingEvent>(?Y,?Z) .
        INSERT INTO "dbrdf_precedingEvent_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_precedingEvent_delta_old" t0, "dbrdf_precedingEvent" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_precedingEvent" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- <http://purl.org/vocab/bio/0.1/precedingEvent$delta_new>(?X,?Z) :- <http://purl.org/vocab/bio/0.1/precedingEvent>(?X,?Y), <http://purl.org/vocab/bio/0.1/precedingEvent$delta_old>(?Y,?Z) .
        INSERT INTO "dbrdf_precedingEvent_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_precedingEvent" t0, "dbrdf_precedingEvent_delta_old" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_precedingEvent" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- <http://purl.org/vocab/bio/0.1/precedingEvent$delta_new>(?Y,?X1) :- <http://purl.org/vocab/bio/0.1/precedingEvent$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_precedingEvent_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_precedingEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_precedingEvent" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/bio/0.1/precedingEvent$delta_new>(?X0,?Y) :- <http://purl.org/vocab/bio/0.1/precedingEvent$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_precedingEvent_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_precedingEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_precedingEvent" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_precedingEvent_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_precedingEvent_delta_old" t0;
        INSERT INTO "dbrdf_precedingEvent"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_precedingEvent_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_precedingEvent_delta_old";
        INSERT INTO "dbrdf_precedingEvent_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_precedingEvent_delta_new" t0;
        TRUNCATE TABLE "dbrdf_precedingEvent_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 41
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_eventInterval_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_eventInterval_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_eventInterval" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_eventInterval_delta_old" ON "dbrdf_eventInterval_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_eventInterval_delta_old" ON "dbrdf_eventInterval_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_eventInterval_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://purl.org/vocab/bio/0.1/eventInterval$delta_new>(?Y,?X1) :- <http://purl.org/vocab/bio/0.1/eventInterval$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_eventInterval_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_eventInterval_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_eventInterval" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/bio/0.1/eventInterval$delta_new>(?X0,?Y) :- <http://purl.org/vocab/bio/0.1/eventInterval$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_eventInterval_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_eventInterval_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_eventInterval" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 42
    ---- DEPENDS ON: 41, 15, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://purl.org/vocab/bio/0.1/Interval>(?X1) :- <http://purl.org/vocab/bio/0.1/eventInterval>(?X,?X1) .
    INSERT INTO "dbrdf_Interval"(s) SELECT DISTINCT t0.o FROM "dbrdf_eventInterval" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Interval" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/Interval>(?X1) :- <http://purl.org/vocab/bio/0.1/interval>(?X,?X1) .
    INSERT INTO "dbrdf_Interval"(s) SELECT DISTINCT t0.o FROM "dbrdf_interval" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Interval" 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_Interval_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Interval_delta_old"(s) SELECT t0.s FROM "dbrdf_Interval" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Interval_delta_old" ON "dbrdf_Interval_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Interval_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/vocab/bio/0.1/Interval$delta_new>(?Y) :- <http://purl.org/vocab/bio/0.1/Interval$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Interval_delta_new"(s) SELECT t1.o FROM "dbrdf_Interval_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Interval" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Interval"(s) SELECT DISTINCT t0.s FROM "dbrdf_Interval_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Interval_delta_old";
        INSERT INTO "dbrdf_Interval_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Interval_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Interval_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 43
    ---- DEPENDS ON: 42, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://www.w3.org/2006/time#ProperInterval>(?X) :- <http://purl.org/vocab/bio/0.1/Interval>(?X) .
    INSERT INTO "dbrdf_ProperInterval"(s) SELECT t0.s FROM "dbrdf_Interval" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_ProperInterval" 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_ProperInterval_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_ProperInterval_delta_old"(s) SELECT t0.s FROM "dbrdf_ProperInterval" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_ProperInterval_delta_old" ON "dbrdf_ProperInterval_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_ProperInterval_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://www.w3.org/2006/time#ProperInterval$delta_new>(?Y) :- <http://www.w3.org/2006/time#ProperInterval$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_ProperInterval_delta_new"(s) SELECT t1.o FROM "dbrdf_ProperInterval_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_ProperInterval" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_ProperInterval"(s) SELECT DISTINCT t0.s FROM "dbrdf_ProperInterval_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_ProperInterval_delta_old";
        INSERT INTO "dbrdf_ProperInterval_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_ProperInterval_delta_new" t0;
        TRUNCATE TABLE "dbrdf_ProperInterval_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 44
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_topic_interest_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_topic_interest_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_topic_interest" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_topic_interest_delta_old" ON "dbrdf_topic_interest_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_topic_interest_delta_old" ON "dbrdf_topic_interest_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_topic_interest_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://xmlns.com/foaf/0.1/topic_interest$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/topic_interest$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_topic_interest_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_topic_interest_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_topic_interest" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/topic_interest$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/topic_interest$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_topic_interest_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_topic_interest_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_topic_interest" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 45
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_focus_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_focus_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_focus" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_focus_delta_old" ON "dbrdf_focus_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_focus_delta_old" ON "dbrdf_focus_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_focus_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://xmlns.com/foaf/0.1/focus$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/focus$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_focus_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_focus_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_focus" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/focus$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/focus$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_focus_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_focus_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_focus" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 46
    ---- DEPENDS ON: 45, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://www.w3.org/2004/02/skos/core#Concept>(?X) :- <http://xmlns.com/foaf/0.1/focus>(?X,?X1) .
    INSERT INTO "dbrdf_Concept"(s) SELECT DISTINCT t0.s FROM "dbrdf_focus" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Concept" 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_Concept_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Concept_delta_old"(s) SELECT t0.s FROM "dbrdf_Concept" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Concept_delta_old" ON "dbrdf_Concept_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Concept_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://www.w3.org/2004/02/skos/core#Concept$delta_new>(?Y) :- <http://www.w3.org/2004/02/skos/core#Concept$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Concept_delta_new"(s) SELECT t1.o FROM "dbrdf_Concept_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Concept" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Concept"(s) SELECT DISTINCT t0.s FROM "dbrdf_Concept_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Concept_delta_old";
        INSERT INTO "dbrdf_Concept_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Concept_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Concept_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 47
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_WeddingEvent_Generic_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_WeddingEvent_Generic_delta_old"(s) SELECT t0.s FROM "dbrdf_WeddingEvent_Generic" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_WeddingEvent_Generic_delta_old" ON "dbrdf_WeddingEvent_Generic_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_WeddingEvent_Generic_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Marriage_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Marriage_delta_old"(s) SELECT t0.s FROM "dbrdf_Marriage" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Marriage_delta_old" ON "dbrdf_Marriage_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Marriage_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://sw.opencyc.org/2009/04/07/concept/en/WeddingEvent_Generic$delta_new>(?X) :- <http://purl.org/vocab/bio/0.1/Marriage$delta_old>(?X) .
        INSERT INTO "dbrdf_WeddingEvent_Generic_delta_new"(s) SELECT t0.s FROM "dbrdf_Marriage_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_WeddingEvent_Generic" ex WHERE ex.s = t0.s);


        -- <http://sw.opencyc.org/2009/04/07/concept/en/WeddingEvent_Generic$delta_new>(?Y) :- <http://sw.opencyc.org/2009/04/07/concept/en/WeddingEvent_Generic$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_WeddingEvent_Generic_delta_new"(s) SELECT t1.o FROM "dbrdf_WeddingEvent_Generic_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_WeddingEvent_Generic" ex WHERE ex.s = t1.o);


        -- <http://purl.org/vocab/bio/0.1/Marriage$delta_new>(?X) :- <http://sw.opencyc.org/2009/04/07/concept/en/WeddingEvent_Generic$delta_old>(?X) .
        INSERT INTO "dbrdf_Marriage_delta_new"(s) SELECT t0.s FROM "dbrdf_WeddingEvent_Generic_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Marriage" ex WHERE ex.s = t0.s);


        -- <http://purl.org/vocab/bio/0.1/Marriage$delta_new>(?Y) :- <http://purl.org/vocab/bio/0.1/Marriage$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Marriage_delta_new"(s) SELECT t1.o FROM "dbrdf_Marriage_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Marriage" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_WeddingEvent_Generic"(s) SELECT DISTINCT t0.s FROM "dbrdf_WeddingEvent_Generic_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_WeddingEvent_Generic_delta_old";
        INSERT INTO "dbrdf_WeddingEvent_Generic_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_WeddingEvent_Generic_delta_new" t0;
        TRUNCATE TABLE "dbrdf_WeddingEvent_Generic_delta_new";

        INSERT INTO "dbrdf_Marriage"(s) SELECT DISTINCT t0.s FROM "dbrdf_Marriage_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Marriage_delta_old";
        INSERT INTO "dbrdf_Marriage_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Marriage_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Marriage_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 48
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_skypeID_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_skypeID_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_skypeID" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_skypeID_delta_old" ON "dbrdf_skypeID_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_skypeID_delta_old" ON "dbrdf_skypeID_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_skypeID_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://xmlns.com/foaf/0.1/skypeID$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/skypeID$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_skypeID_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_skypeID_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_skypeID" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/skypeID$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/skypeID$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_skypeID_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_skypeID_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_skypeID" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 49
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_employer_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_employer_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_employer" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_employer_delta_old" ON "dbrdf_employer_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_employer_delta_old" ON "dbrdf_employer_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_employer_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://purl.org/vocab/bio/0.1/employer$delta_new>(?Y,?X1) :- <http://purl.org/vocab/bio/0.1/employer$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_employer_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_employer_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_employer" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/bio/0.1/employer$delta_new>(?X0,?Y) :- <http://purl.org/vocab/bio/0.1/employer$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_employer_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_employer_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_employer" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 50
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_concurrentEvent_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_concurrentEvent_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_concurrentEvent" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_concurrentEvent_delta_old" ON "dbrdf_concurrentEvent_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_concurrentEvent_delta_old" ON "dbrdf_concurrentEvent_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_concurrentEvent_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://purl.org/vocab/bio/0.1/concurrentEvent$delta_new>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/concurrentEvent$delta_old>(?Y,?X) .
        INSERT INTO "dbrdf_concurrentEvent_delta_new"(s, o) SELECT t0.o, t0.s FROM "dbrdf_concurrentEvent_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_concurrentEvent" ex WHERE ex.s = t0.o AND ex.o = t0.s);


        -- <http://purl.org/vocab/bio/0.1/concurrentEvent$delta_new>(?Y,?X1) :- <http://purl.org/vocab/bio/0.1/concurrentEvent$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_concurrentEvent_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_concurrentEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_concurrentEvent" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/bio/0.1/concurrentEvent$delta_new>(?X0,?Y) :- <http://purl.org/vocab/bio/0.1/concurrentEvent$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_concurrentEvent_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_concurrentEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_concurrentEvent" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 51
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://purl.org/vocab/relationship/childOf>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/father>(?X,?Y) .
    INSERT INTO "dbrdf_childOf"(s, o) SELECT t0.s, t0.o FROM "dbrdf_father" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_childOf" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/relationship/childOf>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/mother>(?X,?Y) .
    INSERT INTO "dbrdf_childOf"(s, o) SELECT t0.s, t0.o FROM "dbrdf_mother" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_childOf" ex WHERE ex.s = t0.s AND ex.o = 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_childOf_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_childOf_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_childOf" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_childOf_delta_old" ON "dbrdf_childOf_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_childOf_delta_old" ON "dbrdf_childOf_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_childOf_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://purl.org/vocab/relationship/childOf$delta_new>(?Y,?X1) :- <http://purl.org/vocab/relationship/childOf$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_childOf_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_childOf_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_childOf" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/relationship/childOf$delta_new>(?X0,?Y) :- <http://purl.org/vocab/relationship/childOf$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_childOf_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_childOf_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_childOf" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 52
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_state_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_state_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_state" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_state_delta_old" ON "dbrdf_state_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_state_delta_old" ON "dbrdf_state_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_state_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://purl.org/vocab/bio/0.1/state$delta_new>(?Y,?X1) :- <http://purl.org/vocab/bio/0.1/state$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_state_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_state_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_state" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/bio/0.1/state$delta_new>(?X0,?Y) :- <http://purl.org/vocab/bio/0.1/state$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_state_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_state_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_state" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 53
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Organization_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Organization_delta_old"(s) SELECT t0.s FROM "dbrdf_Organization" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Organization_delta_old" ON "dbrdf_Organization_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Organization_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://xmlns.com/foaf/0.1/Organization$delta_new>(?Y) :- <http://xmlns.com/foaf/0.1/Organization$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Organization_delta_new"(s) SELECT t1.o FROM "dbrdf_Organization_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Organization" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Organization"(s) SELECT DISTINCT t0.s FROM "dbrdf_Organization_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Organization_delta_old";
        INSERT INTO "dbrdf_Organization_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Organization_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Organization_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 54
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_participant_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_participant_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_participant" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_participant_delta_old" ON "dbrdf_participant_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_participant_delta_old" ON "dbrdf_participant_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_participant_delta_new"(s integer, o integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_relationship_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_relationship_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_relationship" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_relationship_delta_old" ON "dbrdf_relationship_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_relationship_delta_old" ON "dbrdf_relationship_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_relationship_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://purl.org/vocab/bio/0.1/participant$delta_new>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/relationship$delta_old>(?Y,?X) .
        INSERT INTO "dbrdf_participant_delta_new"(s, o) SELECT t0.o, t0.s FROM "dbrdf_relationship_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_participant" ex WHERE ex.s = t0.o AND ex.o = t0.s);


        -- <http://purl.org/vocab/bio/0.1/participant$delta_new>(?Y,?X1) :- <http://purl.org/vocab/bio/0.1/participant$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_participant_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_participant_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_participant" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/bio/0.1/participant$delta_new>(?X0,?Y) :- <http://purl.org/vocab/bio/0.1/participant$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_participant_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_participant_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_participant" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- <http://purl.org/vocab/bio/0.1/relationship$delta_new>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/participant$delta_old>(?Y,?X) .
        INSERT INTO "dbrdf_relationship_delta_new"(s, o) SELECT t0.o, t0.s FROM "dbrdf_participant_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_relationship" ex WHERE ex.s = t0.o AND ex.o = t0.s);


        -- <http://purl.org/vocab/bio/0.1/relationship$delta_new>(?Y,?X1) :- <http://purl.org/vocab/bio/0.1/relationship$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_relationship_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_relationship_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_relationship" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/bio/0.1/relationship$delta_new>(?X0,?Y) :- <http://purl.org/vocab/bio/0.1/relationship$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_relationship_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_relationship_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_relationship" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 55
    ---- DEPENDS ON: 54, 15, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- [Rule] <http://purl.org/vocab/bio/0.1/Relationship>(?X1) :- <http://purl.org/vocab/bio/0.1/relationship>(?X,?X1) .
    INSERT INTO "dbrdf_Relationship0"(s) SELECT DISTINCT t0.o FROM "dbrdf_relationship" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Relationship0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/Relationship>(?X) :- <http://purl.org/vocab/bio/0.1/interval>(?X,?X1) .
    INSERT INTO "dbrdf_Relationship0"(s) SELECT DISTINCT t0.s FROM "dbrdf_interval" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Relationship0" 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_Relationship_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Relationship_delta_old"(s) SELECT t0.s FROM "dbrdf_Relationship" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Relationship_delta_old" ON "dbrdf_Relationship_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Relationship_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Relationship_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Relationship_delta_old0"(s) SELECT t0.s FROM "dbrdf_Relationship0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Relationship_delta_old0" ON "dbrdf_Relationship_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Relationship_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/vocab/relationship/Relationship$delta_new>(?X) :- <http://purl.org/vocab/bio/0.1/Relationship$delta_old>(?X) .
        INSERT INTO "dbrdf_Relationship_delta_new"(s) SELECT t0.s FROM "dbrdf_Relationship_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Relationship" ex WHERE ex.s = t0.s);


        -- <http://purl.org/vocab/relationship/Relationship$delta_new>(?Y) :- <http://purl.org/vocab/relationship/Relationship$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Relationship_delta_new"(s) SELECT t1.o FROM "dbrdf_Relationship_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Relationship" ex WHERE ex.s = t1.o);


        -- <http://purl.org/vocab/bio/0.1/Relationship$delta_new>(?X) :- <http://purl.org/vocab/relationship/Relationship$delta_old>(?X) .
        INSERT INTO "dbrdf_Relationship_delta_new0"(s) SELECT t0.s FROM "dbrdf_Relationship_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Relationship0" ex WHERE ex.s = t0.s);


        -- <http://purl.org/vocab/bio/0.1/Relationship$delta_new>(?Y) :- <http://purl.org/vocab/bio/0.1/Relationship$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Relationship_delta_new0"(s) SELECT t1.o FROM "dbrdf_Relationship_delta_old0" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Relationship0" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Relationship"(s) SELECT DISTINCT t0.s FROM "dbrdf_Relationship_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Relationship_delta_old";
        INSERT INTO "dbrdf_Relationship_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Relationship_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Relationship_delta_new";

        INSERT INTO "dbrdf_Relationship0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Relationship_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_Relationship_delta_old0";
        INSERT INTO "dbrdf_Relationship_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Relationship_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Relationship_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 56
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Jurisdiction_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Jurisdiction_delta_old"(s) SELECT t0.s FROM "dbrdf_Jurisdiction" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Jurisdiction_delta_old" ON "dbrdf_Jurisdiction_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Jurisdiction_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/dc/terms/Jurisdiction$delta_new>(?Y) :- <http://purl.org/dc/terms/Jurisdiction$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Jurisdiction_delta_new"(s) SELECT t1.o FROM "dbrdf_Jurisdiction_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Jurisdiction" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Jurisdiction"(s) SELECT DISTINCT t0.s FROM "dbrdf_Jurisdiction_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Jurisdiction_delta_old";
        INSERT INTO "dbrdf_Jurisdiction_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Jurisdiction_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Jurisdiction_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 57
    ---- DEPENDS ON: 56, 19, 7, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://purl.org/dc/terms/LocationPeriodOrJurisdiction>(?X) :- <http://purl.org/dc/terms/Jurisdiction>(?X) .
    INSERT INTO "dbrdf_LocationPeriodOrJurisdiction"(s) SELECT t0.s FROM "dbrdf_Jurisdiction" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_LocationPeriodOrJurisdiction" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/dc/terms/LocationPeriodOrJurisdiction>(?X) :- <http://purl.org/dc/terms/Location>(?X) .
    INSERT INTO "dbrdf_LocationPeriodOrJurisdiction"(s) SELECT t0.s FROM "dbrdf_Location" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_LocationPeriodOrJurisdiction" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/dc/terms/LocationPeriodOrJurisdiction>(?X) :- <http://purl.org/dc/terms/PeriodOfTime>(?X) .
    INSERT INTO "dbrdf_LocationPeriodOrJurisdiction"(s) SELECT t0.s FROM "dbrdf_PeriodOfTime" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_LocationPeriodOrJurisdiction" 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_LocationPeriodOrJurisdiction_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_LocationPeriodOrJurisdiction_delta_old"(s) SELECT t0.s FROM "dbrdf_LocationPeriodOrJurisdiction" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_LocationPeriodOrJurisdiction_delta_old" ON "dbrdf_LocationPeriodOrJurisdiction_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_LocationPeriodOrJurisdiction_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/dc/terms/LocationPeriodOrJurisdiction$delta_new>(?Y) :- <http://purl.org/dc/terms/LocationPeriodOrJurisdiction$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_LocationPeriodOrJurisdiction_delta_new"(s) SELECT t1.o FROM "dbrdf_LocationPeriodOrJurisdiction_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_LocationPeriodOrJurisdiction" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_LocationPeriodOrJurisdiction"(s) SELECT DISTINCT t0.s FROM "dbrdf_LocationPeriodOrJurisdiction_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_LocationPeriodOrJurisdiction_delta_old";
        INSERT INTO "dbrdf_LocationPeriodOrJurisdiction_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_LocationPeriodOrJurisdiction_delta_new" t0;
        TRUNCATE TABLE "dbrdf_LocationPeriodOrJurisdiction_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 58
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Annulment_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Annulment_delta_old"(s) SELECT t0.s FROM "dbrdf_Annulment" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Annulment_delta_old" ON "dbrdf_Annulment_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Annulment_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/vocab/bio/0.1/Annulment$delta_new>(?Y) :- <http://purl.org/vocab/bio/0.1/Annulment$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Annulment_delta_new"(s) SELECT t1.o FROM "dbrdf_Annulment_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Annulment" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Annulment"(s) SELECT DISTINCT t0.s FROM "dbrdf_Annulment_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Annulment_delta_old";
        INSERT INTO "dbrdf_Annulment_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Annulment_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Annulment_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 59
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_maker_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_maker_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_maker" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_maker_delta_old" ON "dbrdf_maker_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_maker_delta_old" ON "dbrdf_maker_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_maker_delta_new"(s integer, o integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_made_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_made_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_made" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_made_delta_old" ON "dbrdf_made_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_made_delta_old" ON "dbrdf_made_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_made_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://xmlns.com/foaf/0.1/maker$delta_new>(?X,?Y) :- <http://xmlns.com/foaf/0.1/made$delta_old>(?Y,?X) .
        INSERT INTO "dbrdf_maker_delta_new"(s, o) SELECT t0.o, t0.s FROM "dbrdf_made_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_maker" ex WHERE ex.s = t0.o AND ex.o = t0.s);


        -- <http://xmlns.com/foaf/0.1/maker$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/maker$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_maker_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_maker_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_maker" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/maker$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/maker$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_maker_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_maker_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_maker" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- <http://xmlns.com/foaf/0.1/made$delta_new>(?X,?Y) :- <http://xmlns.com/foaf/0.1/maker$delta_old>(?Y,?X) .
        INSERT INTO "dbrdf_made_delta_new"(s, o) SELECT t0.o, t0.s FROM "dbrdf_maker_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_made" ex WHERE ex.s = t0.o AND ex.o = t0.s);


        -- <http://xmlns.com/foaf/0.1/made$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/made$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_made_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_made_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_made" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/made$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/made$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_made_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_made_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_made" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 60
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Divorce_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Divorce_delta_old"(s) SELECT t0.s FROM "dbrdf_Divorce" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Divorce_delta_old" ON "dbrdf_Divorce_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Divorce_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/vocab/bio/0.1/Divorce$delta_new>(?Y) :- <http://purl.org/vocab/bio/0.1/Divorce$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Divorce_delta_new"(s) SELECT t1.o FROM "dbrdf_Divorce_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Divorce" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Divorce"(s) SELECT DISTINCT t0.s FROM "dbrdf_Divorce_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Divorce_delta_old";
        INSERT INTO "dbrdf_Divorce_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Divorce_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Divorce_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 61
    ---- DEPENDS ON: 60, 58, 47, 25, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://purl.org/vocab/bio/0.1/GroupEvent>(?X) :- <http://purl.org/vocab/bio/0.1/Divorce>(?X) .
    INSERT INTO "dbrdf_GroupEvent"(s) SELECT t0.s FROM "dbrdf_Divorce" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GroupEvent" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/GroupEvent>(?X) :- <http://purl.org/vocab/bio/0.1/Annulment>(?X) .
    INSERT INTO "dbrdf_GroupEvent"(s) SELECT t0.s FROM "dbrdf_Annulment" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GroupEvent" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/GroupEvent>(?X) :- <http://purl.org/vocab/bio/0.1/Marriage>(?X) .
    INSERT INTO "dbrdf_GroupEvent"(s) SELECT t0.s FROM "dbrdf_Marriage" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GroupEvent" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/GroupEvent>(?X) :- <http://purl.org/vocab/bio/0.1/Performance>(?X) .
    INSERT INTO "dbrdf_GroupEvent"(s) SELECT t0.s FROM "dbrdf_Performance0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GroupEvent" 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_GroupEvent_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_GroupEvent_delta_old"(s) SELECT t0.s FROM "dbrdf_GroupEvent" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_GroupEvent_delta_old" ON "dbrdf_GroupEvent_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_GroupEvent_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/vocab/bio/0.1/GroupEvent$delta_new>(?Y) :- <http://purl.org/vocab/bio/0.1/GroupEvent$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_GroupEvent_delta_new"(s) SELECT t1.o FROM "dbrdf_GroupEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_GroupEvent" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_GroupEvent"(s) SELECT DISTINCT t0.s FROM "dbrdf_GroupEvent_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_GroupEvent_delta_old";
        INSERT INTO "dbrdf_GroupEvent_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_GroupEvent_delta_new" t0;
        TRUNCATE TABLE "dbrdf_GroupEvent_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 62
    ---- DEPENDS ON: 0, 52, 49
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://purl.org/vocab/bio/0.1/agent>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/employer>(?X,?Y) .
    INSERT INTO "dbrdf_agent"(s, o) SELECT t0.s, t0.o FROM "dbrdf_employer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_agent" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/agent>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/parent>(?X,?Y) .
    INSERT INTO "dbrdf_agent"(s, o) SELECT t0.s, t0.o FROM "dbrdf_parent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_agent" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/agent>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/organization>(?X,?Y) .
    INSERT INTO "dbrdf_agent"(s, o) SELECT t0.s, t0.o FROM "dbrdf_organization" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_agent" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/agent>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/officiator>(?X,?Y) .
    INSERT INTO "dbrdf_agent"(s, o) SELECT t0.s, t0.o FROM "dbrdf_officiator" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_agent" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/agent>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/spectator>(?X,?Y) .
    INSERT INTO "dbrdf_agent"(s, o) SELECT t0.s, t0.o FROM "dbrdf_spectator" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_agent" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/agent>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/partner>(?X,?Y) .
    INSERT INTO "dbrdf_agent"(s, o) SELECT t0.s, t0.o FROM "dbrdf_partner" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_agent" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/agent>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/position>(?X,?Y) .
    INSERT INTO "dbrdf_agent"(s, o) SELECT t0.s, t0.o FROM "dbrdf_position" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_agent" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/agent>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/principal>(?X,?Y) .
    INSERT INTO "dbrdf_agent"(s, o) SELECT t0.s, t0.o FROM "dbrdf_principal" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_agent" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/agent>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/state>(?X,?Y) .
    INSERT INTO "dbrdf_agent"(s, o) SELECT t0.s, t0.o FROM "dbrdf_state" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_agent" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/event>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/birth>(?X,?Y) .
    INSERT INTO "dbrdf_event"(s, o) SELECT t0.s, t0.o FROM "dbrdf_birth" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_event" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/event>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/death>(?X,?Y) .
    INSERT INTO "dbrdf_event"(s, o) SELECT t0.s, t0.o FROM "dbrdf_death" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_event" ex WHERE ex.s = t0.s AND ex.o = 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_agent_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_agent_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_agent" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_agent_delta_old" ON "dbrdf_agent_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_agent_delta_old" ON "dbrdf_agent_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_agent_delta_new"(s integer, o integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_event_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_event_delta_old"(s, o) SELECT t0.s, t0.o FROM "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, o); CREATE INDEX "IDX_1_dbrdf_event_delta_old" ON "dbrdf_event_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_event_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/vocab/bio/0.1/agent$delta_new>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/event$delta_old>(?Y,?X) .
        INSERT INTO "dbrdf_agent_delta_new"(s, o) SELECT t0.o, t0.s FROM "dbrdf_event_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_agent" ex WHERE ex.s = t0.o AND ex.o = t0.s);


        -- <http://purl.org/vocab/bio/0.1/agent$delta_new>(?Y,?X1) :- <http://purl.org/vocab/bio/0.1/agent$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_agent_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_agent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_agent" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/bio/0.1/agent$delta_new>(?X0,?Y) :- <http://purl.org/vocab/bio/0.1/agent$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_agent_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_agent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_agent" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- <http://purl.org/vocab/bio/0.1/event$delta_new>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/agent$delta_old>(?Y,?X) .
        INSERT INTO "dbrdf_event_delta_new"(s, o) SELECT t0.o, t0.s FROM "dbrdf_agent_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_event" ex WHERE ex.s = t0.o AND ex.o = t0.s);


        -- <http://purl.org/vocab/bio/0.1/event$delta_new>(?Y,?X1) :- <http://purl.org/vocab/bio/0.1/event$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_event_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_event_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_event" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/bio/0.1/event$delta_new>(?X0,?Y) :- <http://purl.org/vocab/bio/0.1/event$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_event_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_event_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_event" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 63
    ---- DEPENDS ON: 0, 36
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing>(?X1) :- <http://xmlns.com/foaf/0.1/based_near>(?X,?X1) .
    INSERT INTO "dbrdf_SpatialThing"(s) SELECT DISTINCT t0.o FROM "dbrdf_based_near" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SpatialThing" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing>(?X) :- <http://xmlns.com/foaf/0.1/based_near>(?X,?X1) .
    INSERT INTO "dbrdf_SpatialThing"(s) SELECT DISTINCT t0.s FROM "dbrdf_based_near" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SpatialThing" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing>(?X) :- <http://xmlns.com/foaf/0.1/Person>(?X) .
    INSERT INTO "dbrdf_SpatialThing"(s) SELECT t0.s FROM "dbrdf_Person" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SpatialThing" 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_SpatialThing_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SpatialThing_delta_old"(s) SELECT t0.s FROM "dbrdf_SpatialThing" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SpatialThing_delta_old" ON "dbrdf_SpatialThing_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SpatialThing_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing$delta_new>(?Y) :- <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_SpatialThing_delta_new"(s) SELECT t1.o FROM "dbrdf_SpatialThing_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_SpatialThing" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_SpatialThing"(s) SELECT DISTINCT t0.s FROM "dbrdf_SpatialThing_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SpatialThing_delta_old";
        INSERT INTO "dbrdf_SpatialThing_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SpatialThing_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SpatialThing_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 64
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://www.w3.org/2000/10/swap/pim/contact#Person>(?X) :- <http://xmlns.com/foaf/0.1/Person>(?X) .
    INSERT INTO "dbrdf_Person0"(s) SELECT t0.s FROM "dbrdf_Person" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Person0" 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_Person_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Person_delta_old0"(s) SELECT t0.s FROM "dbrdf_Person0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Person_delta_old0" ON "dbrdf_Person_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Person_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://www.w3.org/2000/10/swap/pim/contact#Person$delta_new>(?Y) :- <http://www.w3.org/2000/10/swap/pim/contact#Person$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Person_delta_new0"(s) SELECT t1.o FROM "dbrdf_Person_delta_old0" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Person0" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Person0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Person_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_Person_delta_old0";
        INSERT INTO "dbrdf_Person_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Person_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Person_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 65
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Container_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Container_delta_old"(s) SELECT t0.s FROM "dbrdf_Container" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Container_delta_old" ON "dbrdf_Container_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Container_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://www.w3.org/2000/01/rdf-schema#Container$delta_new>(?Y) :- <http://www.w3.org/2000/01/rdf-schema#Container$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Container_delta_new"(s) SELECT t1.o FROM "dbrdf_Container_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Container" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Container"(s) SELECT DISTINCT t0.s FROM "dbrdf_Container_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Container_delta_old";
        INSERT INTO "dbrdf_Container_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Container_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Container_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 66
    ---- DEPENDS ON: 0, 16
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://xmlns.com/foaf/0.1/page>(?X,?Y) :- <http://xmlns.com/foaf/0.1/isPrimaryTopicOf>(?X,?Y) .
    INSERT INTO "dbrdf_page"(s, o) SELECT t0.s, t0.o FROM "dbrdf_isPrimaryTopicOf" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_page" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/page>(?X,?Y) :- <http://xmlns.com/foaf/0.1/tipjar>(?X,?Y) .
    INSERT INTO "dbrdf_page"(s, o) SELECT t0.s, t0.o FROM "dbrdf_tipjar" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_page" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/page>(?X,?Y) :- <http://xmlns.com/foaf/0.1/homepage>(?X,?Y) .
    INSERT INTO "dbrdf_page"(s, o) SELECT t0.s, t0.o FROM "dbrdf_homepage" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_page" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/page>(?X,?Y) :- <http://xmlns.com/foaf/0.1/weblog>(?X,?Y) .
    INSERT INTO "dbrdf_page"(s, o) SELECT t0.s, t0.o FROM "dbrdf_weblog" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_page" ex WHERE ex.s = t0.s AND ex.o = 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_topic_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_topic_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_topic" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_topic_delta_old" ON "dbrdf_topic_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_topic_delta_old" ON "dbrdf_topic_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_topic_delta_new"(s integer, o integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_page_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_page_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_page" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_page_delta_old" ON "dbrdf_page_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_page_delta_old" ON "dbrdf_page_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_page_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://xmlns.com/foaf/0.1/topic$delta_new>(?X,?Y) :- <http://xmlns.com/foaf/0.1/page$delta_old>(?Y,?X) .
        INSERT INTO "dbrdf_topic_delta_new"(s, o) SELECT t0.o, t0.s FROM "dbrdf_page_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_topic" ex WHERE ex.s = t0.o AND ex.o = t0.s);


        -- <http://xmlns.com/foaf/0.1/topic$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/topic$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_topic_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_topic_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_topic" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/topic$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/topic$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_topic_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_topic_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_topic" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- <http://xmlns.com/foaf/0.1/page$delta_new>(?X,?Y) :- <http://xmlns.com/foaf/0.1/topic$delta_old>(?Y,?X) .
        INSERT INTO "dbrdf_page_delta_new"(s, o) SELECT t0.o, t0.s FROM "dbrdf_topic_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_page" ex WHERE ex.s = t0.o AND ex.o = t0.s);


        -- <http://xmlns.com/foaf/0.1/page$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/page$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_page_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_page_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_page" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/page$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/page$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_page_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_page_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_page" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 67
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://xmlns.com/foaf/0.1/depiction>(?X,?Y) :- <http://xmlns.com/foaf/0.1/img>(?X,?Y) .
    INSERT INTO "dbrdf_depiction"(s, o) SELECT t0.s, t0.o FROM "dbrdf_img" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_depiction" ex WHERE ex.s = t0.s AND ex.o = 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_depicts_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_depicts_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_depicts" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_depicts_delta_old" ON "dbrdf_depicts_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_depicts_delta_old" ON "dbrdf_depicts_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_depicts_delta_new"(s integer, o integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_depiction_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_depiction_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_depiction" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_depiction_delta_old" ON "dbrdf_depiction_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_depiction_delta_old" ON "dbrdf_depiction_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_depiction_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://xmlns.com/foaf/0.1/depicts$delta_new>(?X,?Y) :- <http://xmlns.com/foaf/0.1/depiction$delta_old>(?Y,?X) .
        INSERT INTO "dbrdf_depicts_delta_new"(s, o) SELECT t0.o, t0.s FROM "dbrdf_depiction_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_depicts" ex WHERE ex.s = t0.o AND ex.o = t0.s);


        -- <http://xmlns.com/foaf/0.1/depicts$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/depicts$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_depicts_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_depicts_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_depicts" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/depicts$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/depicts$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_depicts_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_depicts_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_depicts" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- <http://xmlns.com/foaf/0.1/depiction$delta_new>(?X,?Y) :- <http://xmlns.com/foaf/0.1/depicts$delta_old>(?Y,?X) .
        INSERT INTO "dbrdf_depiction_delta_new"(s, o) SELECT t0.o, t0.s FROM "dbrdf_depicts_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_depiction" ex WHERE ex.s = t0.o AND ex.o = t0.s);


        -- <http://xmlns.com/foaf/0.1/depiction$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/depiction$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_depiction_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_depiction_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_depiction" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/depiction$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/depiction$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_depiction_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_depiction_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_depiction" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 68
    ---- DEPENDS ON: 67, 0, 21
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://xmlns.com/foaf/0.1/Image>(?X1) :- <http://xmlns.com/foaf/0.1/depiction>(?X,?X1) .
    INSERT INTO "dbrdf_Image"(s) SELECT DISTINCT t0.o FROM "dbrdf_depiction" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Image" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Image>(?X1) :- <http://xmlns.com/foaf/0.1/img>(?X,?X1) .
    INSERT INTO "dbrdf_Image"(s) SELECT DISTINCT t0.o FROM "dbrdf_img" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Image" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Image>(?X) :- <http://xmlns.com/foaf/0.1/depicts>(?X,?X1) .
    INSERT INTO "dbrdf_Image"(s) SELECT DISTINCT t0.s FROM "dbrdf_depicts" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Image" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Image>(?X1) :- <http://xmlns.com/foaf/0.1/thumbnail>(?X,?X1) .
    INSERT INTO "dbrdf_Image"(s) SELECT DISTINCT t0.o FROM "dbrdf_thumbnail" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Image" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Image>(?X) :- <http://xmlns.com/foaf/0.1/thumbnail>(?X,?X1) .
    INSERT INTO "dbrdf_Image"(s) SELECT DISTINCT t0.s FROM "dbrdf_thumbnail" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Image" 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_Image_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Image_delta_old"(s) SELECT t0.s FROM "dbrdf_Image" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Image_delta_old" ON "dbrdf_Image_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Image_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://xmlns.com/foaf/0.1/Image$delta_new>(?Y) :- <http://xmlns.com/foaf/0.1/Image$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Image_delta_new"(s) SELECT t1.o FROM "dbrdf_Image_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Image" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Image"(s) SELECT DISTINCT t0.s FROM "dbrdf_Image_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Image_delta_old";
        INSERT INTO "dbrdf_Image_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Image_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Image_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 69
    ---- DEPENDS ON: 0, 35, 29, 27, 24, 66, 16, 68
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X1) :- <http://xmlns.com/foaf/0.1/homepage>(?X,?X1) .
    INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.o FROM "dbrdf_homepage" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X1) :- <http://xmlns.com/foaf/0.1/publications>(?X,?X1) .
    INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.o FROM "dbrdf_publications" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X1) :- <http://xmlns.com/foaf/0.1/workInfoHomepage>(?X,?X1) .
    INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.o FROM "dbrdf_workInfoHomepage" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X) :- <http://xmlns.com/foaf/0.1/primaryTopic>(?X,?X1) .
    INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.s FROM "dbrdf_primaryTopic" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X) :- <http://xmlns.com/foaf/0.1/sha1>(?X,?X1) .
    INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.s FROM "dbrdf_sha1" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X1) :- <http://xmlns.com/foaf/0.1/interest>(?X,?X1) .
    INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.o FROM "dbrdf_interest" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X1) :- <http://xmlns.com/foaf/0.1/weblog>(?X,?X1) .
    INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.o FROM "dbrdf_weblog" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X) :- <http://xmlns.com/foaf/0.1/PersonalProfileDocument>(?X) .
    INSERT INTO "dbrdf_Document"(s) SELECT t0.s FROM "dbrdf_PersonalProfileDocument" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X) :- <http://xmlns.com/foaf/0.1/topic>(?X,?X1) .
    INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.s FROM "dbrdf_topic" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X1) :- <http://xmlns.com/foaf/0.1/schoolHomepage>(?X,?X1) .
    INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.o FROM "dbrdf_schoolHomepage" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X1) :- <http://xmlns.com/foaf/0.1/tipjar>(?X,?X1) .
    INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.o FROM "dbrdf_tipjar" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X1) :- <http://xmlns.com/foaf/0.1/accountServiceHomepage>(?X,?X1) .
    INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.o FROM "dbrdf_accountServiceHomepage" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X1) :- <http://xmlns.com/foaf/0.1/openid>(?X,?X1) .
    INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.o FROM "dbrdf_openid" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X1) :- <http://xmlns.com/foaf/0.1/workplaceHomepage>(?X,?X1) .
    INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.o FROM "dbrdf_workplaceHomepage" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X1) :- <http://xmlns.com/foaf/0.1/isPrimaryTopicOf>(?X,?X1) .
    INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.o FROM "dbrdf_isPrimaryTopicOf" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X1) :- <http://xmlns.com/foaf/0.1/page>(?X,?X1) .
    INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.o FROM "dbrdf_page" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Document>(?X) :- <http://xmlns.com/foaf/0.1/Image>(?X) .
    INSERT INTO "dbrdf_Document"(s) SELECT t0.s FROM "dbrdf_Image" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Document" 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_Document_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Document_delta_old"(s) SELECT t0.s FROM "dbrdf_Document" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Document_delta_old" ON "dbrdf_Document_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Document_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://xmlns.com/foaf/0.1/Document$delta_new>(?Y) :- <http://xmlns.com/foaf/0.1/Document$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Document_delta_new"(s) SELECT t1.o FROM "dbrdf_Document_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Document" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Document"(s) SELECT DISTINCT t0.s FROM "dbrdf_Document_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Document_delta_old";
        INSERT INTO "dbrdf_Document_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Document_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Document_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 70
    ---- DEPENDS ON: 0, 59, 54, 53, 62, 49, 48, 44, 34, 30, 29, 26, 18, 16, 10
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/made>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_made" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://purl.org/vocab/bio/0.1/birth>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_birth" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://purl.org/vocab/bio/0.1/relationship>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_relationship" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://purl.org/vocab/bio/0.1/event>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_event" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/age>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_age" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/skypeID>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_skypeID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/Organization>(?X) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT t0.s FROM "dbrdf_Organization" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/topic_interest>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_topic_interest" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X1) :- <http://purl.org/vocab/bio/0.1/agent>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.o FROM "dbrdf_agent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/status>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_status" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/openid>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_openid" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X1) :- <http://purl.org/vocab/bio/0.1/employer>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.o FROM "dbrdf_employer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/Group>(?X) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT t0.s FROM "dbrdf_Group" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/holdsAccount>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_holdsAccount" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/jabberID>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_jabberID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X1) :- <http://purl.org/vocab/bio/0.1/participant>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.o FROM "dbrdf_participant" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://purl.org/vocab/bio/0.1/death>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_death" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X1) :- <http://xmlns.com/foaf/0.1/maker>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.o FROM "dbrdf_maker" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/mbox_sha1sum>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_mbox_sha1sum" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/mbox>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_mbox" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/Person>(?X) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT t0.s FROM "dbrdf_Person" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/yahooChatID>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_yahooChatID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/msnChatID>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_msnChatID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/gender>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_gender" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X1) :- <http://xmlns.com/foaf/0.1/member>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.o FROM "dbrdf_member" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/weblog>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_weblog" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/birthday>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_birthday" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/interest>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_interest" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/aimChatID>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_aimChatID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/tipjar>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_tipjar" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/account>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_account" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/Agent>(?X) :- <http://xmlns.com/foaf/0.1/icqChatID>(?X,?X1) .
    INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_icqChatID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" 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_Agent_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Agent_delta_old"(s) SELECT t0.s FROM "dbrdf_Agent" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Agent_delta_old" ON "dbrdf_Agent_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Agent_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Agent_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Agent_delta_old0"(s) SELECT t0.s FROM "dbrdf_Agent0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Agent_delta_old0" ON "dbrdf_Agent_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Agent_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/dc/terms/Agent$delta_new>(?X) :- <http://xmlns.com/foaf/0.1/Agent$delta_old>(?X) .
        INSERT INTO "dbrdf_Agent_delta_new"(s) SELECT t0.s FROM "dbrdf_Agent_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent" ex WHERE ex.s = t0.s);


        -- <http://purl.org/dc/terms/Agent$delta_new>(?Y) :- <http://purl.org/dc/terms/Agent$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Agent_delta_new"(s) SELECT t1.o FROM "dbrdf_Agent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Agent" ex WHERE ex.s = t1.o);


        -- <http://xmlns.com/foaf/0.1/Agent$delta_new>(?X) :- <http://purl.org/dc/terms/Agent$delta_old>(?X) .
        INSERT INTO "dbrdf_Agent_delta_new0"(s) SELECT t0.s FROM "dbrdf_Agent_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t0.s);


        -- <http://xmlns.com/foaf/0.1/Agent$delta_new>(?Y) :- <http://xmlns.com/foaf/0.1/Agent$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Agent_delta_new0"(s) SELECT t1.o FROM "dbrdf_Agent_delta_old0" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Agent0" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Agent"(s) SELECT DISTINCT t0.s FROM "dbrdf_Agent_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Agent_delta_old";
        INSERT INTO "dbrdf_Agent_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Agent_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Agent_delta_new";

        INSERT INTO "dbrdf_Agent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Agent_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_Agent_delta_old0";
        INSERT INTO "dbrdf_Agent_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Agent_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Agent_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 71
    ---- DEPENDS ON: 0, 48
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://xmlns.com/foaf/0.1/nick>(?X,?Y) :- <http://xmlns.com/foaf/0.1/aimChatID>(?X,?Y) .
    INSERT INTO "dbrdf_nick"(s, o) SELECT t0.s, t0.o FROM "dbrdf_aimChatID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_nick" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/nick>(?X,?Y) :- <http://xmlns.com/foaf/0.1/skypeID>(?X,?Y) .
    INSERT INTO "dbrdf_nick"(s, o) SELECT t0.s, t0.o FROM "dbrdf_skypeID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_nick" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/nick>(?X,?Y) :- <http://xmlns.com/foaf/0.1/msnChatID>(?X,?Y) .
    INSERT INTO "dbrdf_nick"(s, o) SELECT t0.s, t0.o FROM "dbrdf_msnChatID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_nick" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/nick>(?X,?Y) :- <http://xmlns.com/foaf/0.1/yahooChatID>(?X,?Y) .
    INSERT INTO "dbrdf_nick"(s, o) SELECT t0.s, t0.o FROM "dbrdf_yahooChatID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_nick" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://xmlns.com/foaf/0.1/nick>(?X,?Y) :- <http://xmlns.com/foaf/0.1/icqChatID>(?X,?Y) .
    INSERT INTO "dbrdf_nick"(s, o) SELECT t0.s, t0.o FROM "dbrdf_icqChatID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_nick" ex WHERE ex.s = t0.s AND ex.o = 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_nick_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_nick_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_nick" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_nick_delta_old" ON "dbrdf_nick_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_nick_delta_old" ON "dbrdf_nick_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_nick_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://xmlns.com/foaf/0.1/nick$delta_new>(?Y,?X1) :- <http://xmlns.com/foaf/0.1/nick$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_nick_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_nick_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_nick" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://xmlns.com/foaf/0.1/nick$delta_new>(?X0,?Y) :- <http://xmlns.com/foaf/0.1/nick$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_nick_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_nick_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_nick" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 72
    ---- DEPENDS ON: 0, 48
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] rdfs:Literal(?X1) :- <http://xmlns.com/foaf/0.1/aimChatID>(?X,?X1) .
    INSERT INTO "dbrdf_Literal"(s) SELECT DISTINCT t0.o FROM "dbrdf_aimChatID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Literal" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] rdfs:Literal(?X1) :- <http://xmlns.com/foaf/0.1/jabberID>(?X,?X1) .
    INSERT INTO "dbrdf_Literal"(s) SELECT DISTINCT t0.o FROM "dbrdf_jabberID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Literal" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] rdfs:Literal(?X1) :- <http://xmlns.com/foaf/0.1/icqChatID>(?X,?X1) .
    INSERT INTO "dbrdf_Literal"(s) SELECT DISTINCT t0.o FROM "dbrdf_icqChatID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Literal" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] rdfs:Literal(?X1) :- <http://xmlns.com/foaf/0.1/msnChatID>(?X,?X1) .
    INSERT INTO "dbrdf_Literal"(s) SELECT DISTINCT t0.o FROM "dbrdf_msnChatID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Literal" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] rdfs:Literal(?X1) :- <http://xmlns.com/foaf/0.1/yahooChatID>(?X,?X1) .
    INSERT INTO "dbrdf_Literal"(s) SELECT DISTINCT t0.o FROM "dbrdf_yahooChatID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Literal" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] rdfs:Literal(?X1) :- <http://xmlns.com/foaf/0.1/mbox_sha1sum>(?X,?X1) .
    INSERT INTO "dbrdf_Literal"(s) SELECT DISTINCT t0.o FROM "dbrdf_mbox_sha1sum" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Literal" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] rdfs:Literal(?X1) :- <http://xmlns.com/foaf/0.1/skypeID>(?X,?X1) .
    INSERT INTO "dbrdf_Literal"(s) SELECT DISTINCT t0.o FROM "dbrdf_skypeID" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Literal" 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_Literal_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Literal_delta_old"(s) SELECT t0.s FROM "dbrdf_Literal" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Literal_delta_old" ON "dbrdf_Literal_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Literal_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://www.w3.org/2000/01/rdf-schema#Literal$delta_new>(?Y) :- <http://www.w3.org/2000/01/rdf-schema#Literal$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Literal_delta_new"(s) SELECT t1.o FROM "dbrdf_Literal_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Literal" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Literal"(s) SELECT DISTINCT t0.s FROM "dbrdf_Literal_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Literal_delta_old";
        INSERT INTO "dbrdf_Literal_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Literal_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Literal_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 73
    ---- DEPENDS ON: 65, 72, 23, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] rdfs:Resource(?X) :- rdfs:Container(?X) .
    INSERT INTO "dbrdf_Resource"(s) SELECT t0.s FROM "dbrdf_Container" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Resource" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] rdfs:Resource(?X) :- rdfs:Literal(?X) .
    INSERT INTO "dbrdf_Resource"(s) SELECT t0.s FROM "dbrdf_Literal" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Resource" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] rdfs:Resource(?X) :- rdfs:Class(?X) .
    INSERT INTO "dbrdf_Resource"(s) SELECT t0.s FROM "dbrdf_Class" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Resource" 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_Resource_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Resource_delta_old"(s) SELECT t0.s FROM "dbrdf_Resource" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Resource_delta_old" ON "dbrdf_Resource_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Resource_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://www.w3.org/2000/01/rdf-schema#Resource$delta_new>(?Y) :- <http://www.w3.org/2000/01/rdf-schema#Resource$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Resource_delta_new"(s) SELECT t1.o FROM "dbrdf_Resource_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Resource" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Resource"(s) SELECT DISTINCT t0.s FROM "dbrdf_Resource_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Resource_delta_old";
        INSERT INTO "dbrdf_Resource_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Resource_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Resource_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 74
    ---- DEPENDS ON: 38, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://purl.org/vocab/bio/0.1/followingEvent>(?X,?Y) :- <http://purl.org/vocab/bio/0.1/immediatelyFollowingEvent>(?X,?Y) .
    INSERT INTO "dbrdf_followingEvent"(s, o) SELECT t0.s, t0.o FROM "dbrdf_immediatelyFollowingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_followingEvent" ex WHERE ex.s = t0.s AND ex.o = 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_followingEvent_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_followingEvent_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_followingEvent" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_followingEvent_delta_old" ON "dbrdf_followingEvent_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_followingEvent_delta_old" ON "dbrdf_followingEvent_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_followingEvent_old"(s integer, o integer) ON COMMIT DROP;
    CREATE INDEX "IDX_0_dbrdf_followingEvent_old" ON "dbrdf_followingEvent_old"(s, o); CREATE INDEX "IDX_1_dbrdf_followingEvent_old" ON "dbrdf_followingEvent_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_followingEvent_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://purl.org/vocab/bio/0.1/followingEvent$delta_new>(?X,?Z) :- <http://purl.org/vocab/bio/0.1/followingEvent$delta_old>(?X,?Y), <http://purl.org/vocab/bio/0.1/followingEvent>(?Y,?Z) .
        INSERT INTO "dbrdf_followingEvent_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_followingEvent_delta_old" t0, "dbrdf_followingEvent" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_followingEvent" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- <http://purl.org/vocab/bio/0.1/followingEvent$delta_new>(?X,?Z) :- <http://purl.org/vocab/bio/0.1/followingEvent>(?X,?Y), <http://purl.org/vocab/bio/0.1/followingEvent$delta_old>(?Y,?Z) .
        INSERT INTO "dbrdf_followingEvent_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_followingEvent" t0, "dbrdf_followingEvent_delta_old" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_followingEvent" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- <http://purl.org/vocab/bio/0.1/followingEvent$delta_new>(?Y,?X1) :- <http://purl.org/vocab/bio/0.1/followingEvent$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_followingEvent_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_followingEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_followingEvent" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://purl.org/vocab/bio/0.1/followingEvent$delta_new>(?X0,?Y) :- <http://purl.org/vocab/bio/0.1/followingEvent$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_followingEvent_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_followingEvent_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_followingEvent" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_followingEvent_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_followingEvent_delta_old" t0;
        INSERT INTO "dbrdf_followingEvent"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_followingEvent_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_followingEvent_delta_old";
        INSERT INTO "dbrdf_followingEvent_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_followingEvent_delta_new" t0;
        TRUNCATE TABLE "dbrdf_followingEvent_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 75
    ---- DEPENDS ON: 74, 0, 54, 50, 62, 39, 38, 40, 37, 14
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/death>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_death" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/participant>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_participant" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/immediatelyFollowingEvent>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_immediatelyFollowingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/event>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_event" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/agent>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_agent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/immediatelyPrecedingEvent>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_immediatelyPrecedingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/followingEvent>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_followingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/birth>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_birth" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/relationship>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_relationship" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/mother>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_mother" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/father>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_father" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/child>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_child" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/concurrentEvent>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_concurrentEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/initiatingEvent>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_initiatingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/precedingEvent>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_precedingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:differentFrom(?X,?Y) :- <http://purl.org/vocab/bio/0.1/concludingEvent>(?X,?Y) .
    INSERT INTO "dbrdf_differentFrom"(s, o) SELECT t0.s, t0.o FROM "dbrdf_concludingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = 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_differentFrom_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_differentFrom_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_differentFrom" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_differentFrom_delta_old" ON "dbrdf_differentFrom_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_differentFrom_delta_old" ON "dbrdf_differentFrom_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_differentFrom_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://www.w3.org/2002/07/owl#differentFrom$delta_new>(?Y,?X1) :- <http://www.w3.org/2002/07/owl#differentFrom$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_differentFrom_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_differentFrom_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://www.w3.org/2002/07/owl#differentFrom$delta_new>(?X0,?Y) :- <http://www.w3.org/2002/07/owl#differentFrom$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_differentFrom_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_differentFrom_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_differentFrom" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 76
    ---- DEPENDS ON: 74, 0, 52, 50, 62, 49, 41, 39, 38, 40, 37, 14, 61
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/principal>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_principal" 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://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/IndividualEvent>(?X) .
    INSERT INTO "dbrdf_Event"(s) SELECT t0.s FROM "dbrdf_IndividualEvent" 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://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/state>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_state" 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://purl.org/vocab/bio/0.1/Event>(?X1) :- <http://purl.org/vocab/bio/0.1/concurrentEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.o FROM "dbrdf_concurrentEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/Event>(?X1) :- <http://purl.org/vocab/bio/0.1/immediatelyPrecedingEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.o FROM "dbrdf_immediatelyPrecedingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/precedingEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_precedingEvent" 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://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/immediatelyPrecedingEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_immediatelyPrecedingEvent" 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://purl.org/vocab/bio/0.1/Event>(?X1) :- <http://purl.org/vocab/bio/0.1/initiatingEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.o FROM "dbrdf_initiatingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/parent>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_parent" 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://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/followingEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_followingEvent" 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://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/spectator>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_spectator" 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://purl.org/vocab/bio/0.1/Event>(?X1) :- <http://purl.org/vocab/bio/0.1/followingEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.o FROM "dbrdf_followingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

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

    -- [Rule] <http://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/partner>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_partner" 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://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/immediatelyFollowingEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_immediatelyFollowingEvent" 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://purl.org/vocab/bio/0.1/Event>(?X1) :- <http://purl.org/vocab/bio/0.1/immediatelyFollowingEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.o FROM "dbrdf_immediatelyFollowingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/Event>(?X1) :- <http://purl.org/vocab/bio/0.1/concludingEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.o FROM "dbrdf_concludingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/agent>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_agent" 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://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/position>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_position" 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://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/concurrentEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_concurrentEvent" 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://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/eventInterval>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_eventInterval" 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://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/officiator>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_officiator" 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://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/witness>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_witness" 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://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/employer>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_employer" 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://purl.org/vocab/bio/0.1/Event>(?X1) :- <http://purl.org/vocab/bio/0.1/precedingEvent>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.o FROM "dbrdf_precedingEvent" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event" ex WHERE ex.s = t0.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/GroupEvent>(?X) .
    INSERT INTO "dbrdf_Event"(s) SELECT t0.s FROM "dbrdf_GroupEvent" 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://purl.org/vocab/bio/0.1/Event>(?X) :- <http://purl.org/vocab/bio/0.1/organization>(?X,?X1) .
    INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_organization" 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;

    -- 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;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/vocab/bio/0.1/Event$delta_new>(?Y) :- <http://purl.org/vocab/bio/0.1/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);


        -- 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";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 77
    ---- DEPENDS ON: 76, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://linkedevents.org/ontology/Event>(?X) :- <http://purl.org/vocab/bio/0.1/Event>(?X) .
    INSERT INTO "dbrdf_Event0"(s) SELECT t0.s FROM "dbrdf_Event" 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_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://linkedevents.org/ontology/Event$delta_new>(?Y) :- <http://linkedevents.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_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 78
    ---- DEPENDS ON: 76, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://purl.org/NET/c4dm/event.owl#Event>(?X) :- <http://purl.org/vocab/bio/0.1/Event>(?X) .
    INSERT INTO "dbrdf_Event1"(s) SELECT t0.s FROM "dbrdf_Event" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event1" 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_old1"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Event_delta_old1"(s) SELECT t0.s FROM "dbrdf_Event1" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Event_delta_old1" ON "dbrdf_Event_delta_old1"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Event_delta_new1"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/NET/c4dm/event.owl#Event$delta_new>(?Y) :- <http://purl.org/NET/c4dm/event.owl#Event$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Event_delta_new1"(s) SELECT t1.o FROM "dbrdf_Event_delta_old1" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Event1" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Event1"(s) SELECT DISTINCT t0.s FROM "dbrdf_Event_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_Event_delta_old1";
        INSERT INTO "dbrdf_Event_delta_old1"(s) SELECT DISTINCT t0.s FROM "dbrdf_Event_delta_new1" t0;
        TRUNCATE TABLE "dbrdf_Event_delta_new1";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 79
    ---- DEPENDS ON: 76, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://purl.org/dc/dcmitype/Event>(?X) :- <http://purl.org/vocab/bio/0.1/Event>(?X) .
    INSERT INTO "dbrdf_Event2"(s) SELECT t0.s FROM "dbrdf_Event" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event2" 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_old2"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Event_delta_old2"(s) SELECT t0.s FROM "dbrdf_Event2" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Event_delta_old2" ON "dbrdf_Event_delta_old2"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Event_delta_new2"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://purl.org/dc/dcmitype/Event$delta_new>(?Y) :- <http://purl.org/dc/dcmitype/Event$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Event_delta_new2"(s) SELECT t1.o FROM "dbrdf_Event_delta_old2" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Event2" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Event2"(s) SELECT DISTINCT t0.s FROM "dbrdf_Event_delta_new2" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Event_delta_old2";
        INSERT INTO "dbrdf_Event_delta_old2"(s) SELECT DISTINCT t0.s FROM "dbrdf_Event_delta_new2" t0;
        TRUNCATE TABLE "dbrdf_Event_delta_new2";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 80
    ---- DEPENDS ON: 76, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://sw.opencyc.org/2009/04/07/concept/en/Event>(?X) :- <http://purl.org/vocab/bio/0.1/Event>(?X) .
    INSERT INTO "dbrdf_Event3"(s) SELECT t0.s FROM "dbrdf_Event" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Event3" 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_old3"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Event_delta_old3"(s) SELECT t0.s FROM "dbrdf_Event3" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Event_delta_old3" ON "dbrdf_Event_delta_old3"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Event_delta_new3"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://sw.opencyc.org/2009/04/07/concept/en/Event$delta_new>(?Y) :- <http://sw.opencyc.org/2009/04/07/concept/en/Event$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Event_delta_new3"(s) SELECT t1.o FROM "dbrdf_Event_delta_old3" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Event3" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Event3"(s) SELECT DISTINCT t0.s FROM "dbrdf_Event_delta_new3" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Event_delta_old3";
        INSERT INTO "dbrdf_Event_delta_old3"(s) SELECT DISTINCT t0.s FROM "dbrdf_Event_delta_new3" t0;
        TRUNCATE TABLE "dbrdf_Event_delta_new3";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 81
    ---- DEPENDS ON: 0, 53, 69, 13, 75
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] owl:Nothing(?X) :- <http://purl.org/NET/crm-owl#E79_Part_Addition>(?X), <http://purl.org/NET/crm-owl#E80_Part_Removal>(?X) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT t0.s FROM "dbrdf_E79_Part_Addition" t0, "dbrdf_E80_Part_Removal" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(?X) :- <http://xmlns.com/foaf/0.1/Organization>(?X), <http://xmlns.com/foaf/0.1/Person>(?X) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT t0.s FROM "dbrdf_Organization" t0, "dbrdf_Person" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(?X) :- <http://xmlns.com/foaf/0.1/Document>(?X), <http://xmlns.com/foaf/0.1/Organization>(?X) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT t0.s FROM "dbrdf_Document" t0, "dbrdf_Organization" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(?X) :- <http://purl.org/NET/crm-owl#E44_Place_Appellation>(?X), <http://purl.org/NET/crm-owl#E49_Time_Appellation>(?X) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT t0.s FROM "dbrdf_E44_Place_Appellation" t0, "dbrdf_E49_Time_Appellation" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(?X) :- <http://xmlns.com/foaf/0.1/Person>(?X), <http://xmlns.com/foaf/0.1/Project>(?X) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT t0.s FROM "dbrdf_Person" t0, "dbrdf_Project" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(?X) :- <http://purl.org/NET/crm-owl#E52_Time-Span>(?X), <http://purl.org/NET/crm-owl#E53_Place>(?X) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT t0.s FROM "dbrdf_E52_Time_Span" t0, "dbrdf_E53_Place" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(?X) :- <http://purl.org/NET/crm-owl#E2_Temporal_Entity>(?X), <http://purl.org/NET/crm-owl#E77_Persistent_Item>(?X) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT t0.s FROM "dbrdf_E2_Temporal_Entity" t0, "dbrdf_E77_Persistent_Item" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(?X) :- <http://purl.org/NET/crm-owl#E18_Physical_Thing>(?X), <http://purl.org/NET/crm-owl#E28_Conceptual_Object>(?X) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT t0.s FROM "dbrdf_E18_Physical_Thing" t0, "dbrdf_E28_Conceptual_Object" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(?X) :- <http://xmlns.com/foaf/0.1/Document>(?X), <http://xmlns.com/foaf/0.1/Project>(?X) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT t0.s FROM "dbrdf_Document" t0, "dbrdf_Project" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(<int$false>) :- owl:differentFrom(?X,?Y) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT 26425 FROM "dbrdf_differentFrom" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = 26425);
    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_Nothing_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Nothing_delta_old"(s) SELECT t0.s FROM "dbrdf_Nothing" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Nothing_delta_old" ON "dbrdf_Nothing_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Nothing_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://www.w3.org/2002/07/owl#Nothing$delta_new>(?Y) :- <http://www.w3.org/2002/07/owl#Nothing$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Nothing_delta_new"(s) SELECT t1.o FROM "dbrdf_Nothing_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT t0.s FROM "dbrdf_Nothing_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Nothing_delta_old";
        INSERT INTO "dbrdf_Nothing_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Nothing_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Nothing_delta_new";

    END LOOP;

    -- END Recursive rules

    RETURN total_tuples;
END;
$$ LANGUAGE plpgsql;

-- END FUNCTION:   do_reasoning_all
------------------------------------------------------------------------------------------
