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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Film>(?X) :- <http://dbpedia.org/ontology/filmPolskiId>(?X,?X1) .
    INSERT INTO "dbrdf_Film"(s) SELECT DISTINCT t0.s FROM "dbrdf_filmPolskiId" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Film" 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_Movie_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Movie_delta_old"(s) SELECT t0.s FROM "dbrdf_Movie" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Movie_delta_old" ON "dbrdf_Movie_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Movie_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Film_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Film_delta_old"(s) SELECT t0.s FROM "dbrdf_Film" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Film_delta_old" ON "dbrdf_Film_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Film_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://schema.org/Movie$delta_new>(?X) :- <http://dbpedia.org/ontology/Film$delta_old>(?X) .
        INSERT INTO "dbrdf_Movie_delta_new"(s) SELECT t0.s FROM "dbrdf_Film_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Movie" ex WHERE ex.s = t0.s);


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


        -- <http://dbpedia.org/ontology/Film$delta_new>(?X) :- <http://schema.org/Movie$delta_old>(?X) .
        INSERT INTO "dbrdf_Film_delta_new"(s) SELECT t0.s FROM "dbrdf_Movie_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Film" ex WHERE ex.s = t0.s);


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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Movie"(s) SELECT DISTINCT t0.s FROM "dbrdf_Movie_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Movie_delta_old";
        INSERT INTO "dbrdf_Movie_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Movie_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Movie_delta_new";

        INSERT INTO "dbrdf_Film"(s) SELECT DISTINCT t0.s FROM "dbrdf_Film_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Film_delta_old";
        INSERT INTO "dbrdf_Film_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Film_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Film_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2021
    ---- DEPENDS ON: 2020, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_FilmR_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_FilmR_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_FilmR" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_FilmR_delta_old" ON "dbrdf_FilmR_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_FilmR_delta_old" ON "dbrdf_FilmR_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_FilmR_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2022
    ---- DEPENDS ON: 444, 2021, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/CoStarring>(?X0,?X3) :- <http://dbpedia.org/ontology/starring>(?X1,?X0), <http://dbpedia.org/ontology/FilmR>(?X1,?X2), <http://dbpedia.org/ontology/starring>(?X2,?X3) .
    INSERT INTO "dbrdf_CoStarring"(s, o) SELECT DISTINCT t0.o, t2.o FROM "dbrdf_starring0" t0, "dbrdf_FilmR" t1, "dbrdf_starring0" t2 WHERE t0.s = t1.s AND t1.o = t2.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_CoStarring" ex WHERE ex.s = t0.o AND ex.o = t2.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_CoStarring_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_CoStarring_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_CoStarring" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_CoStarring_delta_old" ON "dbrdf_CoStarring_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_CoStarring_delta_old" ON "dbrdf_CoStarring_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_CoStarring_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2023
    ---- DEPENDS ON: 1907, 1788, 1383, 1302, 1081, 997, 990, 968, 955, 231, 116, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Aircraft_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Aircraft_delta_old"(s) SELECT t0.s FROM "dbrdf_Aircraft" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Aircraft_delta_old" ON "dbrdf_Aircraft_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Aircraft_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2024
    ---- DEPENDS ON: 2023, 1947, 1941, 1828, 1294, 1656, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Product_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Product_delta_old"(s) SELECT t0.s FROM "dbrdf_Product" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Product_delta_old" ON "dbrdf_Product_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Product_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2025
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_commandModule_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_commandModule_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_commandModule" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_commandModule_delta_old" ON "dbrdf_commandModule_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_commandModule_delta_old" ON "dbrdf_commandModule_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_commandModule_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2026
    ---- DEPENDS ON: 2025, 2015, 1830, 1807, 1677, 1667, 1652, 1632, 1584, 1469, 1453, 1432, 1411, 1279, 1272, 1267, 1172, 1170, 1150, 1109, 1105, 1073, 1059, 995, 933, 925, 916, 900, 814, 753, 742, 733, 703, 654, 519, 518, 505, 455, 445, 317, 238, 237, 141, 124, 108, 105, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/SpaceMission>(?X) :- <http://dbpedia.org/ontology/launchPad>(?X,?X1) .
    INSERT INTO "dbrdf_SpaceMission"(s) SELECT DISTINCT t0.s FROM "dbrdf_launchPad" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SpaceMission" 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_SpaceMission_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SpaceMission_delta_old"(s) SELECT t0.s FROM "dbrdf_SpaceMission" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SpaceMission_delta_old" ON "dbrdf_SpaceMission_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SpaceMission_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_SpaceMission"(s) SELECT DISTINCT t0.s FROM "dbrdf_SpaceMission_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SpaceMission_delta_old";
        INSERT INTO "dbrdf_SpaceMission_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SpaceMission_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SpaceMission_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2027
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_cornishName_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_cornishName_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_cornishName" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_cornishName_delta_old" ON "dbrdf_cornishName_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_cornishName_delta_old" ON "dbrdf_cornishName_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_cornishName_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2028
    ---- DEPENDS ON: 2027, 2014, 1981, 1934, 1852, 1818, 1771, 1758, 1606, 1561, 1531, 1528, 1475, 1446, 1445, 1407, 1285, 1269, 1157, 1113, 1066, 1047, 897, 1936, 783, 719, 679, 537, 479, 475, 407, 381, 345, 290, 289, 224, 137, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Settlement>(?X) :- <http://dbpedia.org/ontology/jointCommunity>(?X,?X1) .
    INSERT INTO "dbrdf_Settlement"(s) SELECT DISTINCT t0.s FROM "dbrdf_jointCommunity" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Settlement" 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_Settlement_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Settlement_delta_old"(s) SELECT t0.s FROM "dbrdf_Settlement" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Settlement_delta_old" ON "dbrdf_Settlement_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Settlement_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Settlement"(s) SELECT DISTINCT t0.s FROM "dbrdf_Settlement_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Settlement_delta_old";
        INSERT INTO "dbrdf_Settlement_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Settlement_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Settlement_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2029
    ---- DEPENDS ON: 2013, 2010, 1997, 1994, 1957, 1904, 1898, 1892, 1869, 1842, 1841, 1839, 1813, 1787, 1786, 1775, 1750, 1747, 1738, 1709, 1959, 1643, 1641, 1612, 1561, 1560, 1556, 1553, 1552, 1542, 1524, 1521, 1519, 1514, 1501, 1500, 1475, 1474, 1473, 1472, 1463, 1446, 1426, 1398, 1393, 1388, 1387, 2028, 1320, 1290, 1289, 1285, 1281, 1276, 1275, 1255, 1235, 1217, 1212, 1196, 1189, 1180, 1137, 1121, 1115, 1102, 1083, 1058, 1054, 1048, 1032, 1022, 1018, 1011, 1010, 1008, 959, 957, 947, 941, 940, 903, 840, 801, 793, 783, 782, 746, 740, 736, 732, 724, 714, 681, 1622, 666, 625, 619, 616, 613, 602, 581, 576, 553, 539, 529, 504, 484, 1873, 454, 428, 412, 407, 390, 385, 381, 359, 338, 337, 336, 331, 329, 320, 311, 295, 262, 221, 210, 208, 198, 197, 182, 175, 172, 140, 103, 97, 30, 21, 12, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/PopulatedPlace>(?X1) :- <http://dbpedia.org/ontology/destination>(?X,?X1) .
    INSERT INTO "dbrdf_PopulatedPlace"(s) SELECT DISTINCT t0.o FROM "dbrdf_destination" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_PopulatedPlace" 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_PopulatedPlace_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_PopulatedPlace_delta_old"(s) SELECT t0.s FROM "dbrdf_PopulatedPlace" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_PopulatedPlace_delta_old" ON "dbrdf_PopulatedPlace_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_PopulatedPlace_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_PopulatedPlace"(s) SELECT DISTINCT t0.s FROM "dbrdf_PopulatedPlace_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_PopulatedPlace_delta_old";
        INSERT INTO "dbrdf_PopulatedPlace_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_PopulatedPlace_delta_new" t0;
        TRUNCATE TABLE "dbrdf_PopulatedPlace_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2030
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_honours_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_honours_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_honours" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_honours_delta_old" ON "dbrdf_honours_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_honours_delta_old" ON "dbrdf_honours_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_honours_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2031
    ---- DEPENDS ON: 2030, 1886, 1845, 1748, 1740, 1666, 1570, 1187, 917, 879, 707, 541, 510, 470, 432, 186, 111, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/SoccerClub>(?X) :- <http://dbpedia.org/ontology/firstGame>(?X,?X1) .
    INSERT INTO "dbrdf_SoccerClub"(s) SELECT DISTINCT t0.s FROM "dbrdf_firstGame" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SoccerClub" 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_SoccerClub_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SoccerClub_delta_old"(s) SELECT t0.s FROM "dbrdf_SoccerClub" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SoccerClub_delta_old" ON "dbrdf_SoccerClub_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SoccerClub_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_SoccerClub"(s) SELECT DISTINCT t0.s FROM "dbrdf_SoccerClub_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SoccerClub_delta_old";
        INSERT INTO "dbrdf_SoccerClub_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SoccerClub_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SoccerClub_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2032
    ---- DEPENDS ON: 1860, 1789, 1783, 1723, 1708, 1670, 1576, 1538, 1457, 2031, 1326, 1317, 1308, 1184, 1097, 1064, 987, 872, 1404, 737, 701, 636, 615, 589, 434, 287, 254, 209, 203, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/SportsTeam>(?X1) :- <http://dbpedia.org/ontology/team>(?X,?X1) .
    INSERT INTO "dbrdf_SportsTeam0"(s) SELECT DISTINCT t0.o FROM "dbrdf_team" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SportsTeam0" 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_SportsTeam_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SportsTeam_delta_old"(s) SELECT t0.s FROM "dbrdf_SportsTeam" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SportsTeam_delta_old" ON "dbrdf_SportsTeam_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsTeam_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsTeam_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SportsTeam_delta_old0"(s) SELECT t0.s FROM "dbrdf_SportsTeam0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SportsTeam_delta_old0" ON "dbrdf_SportsTeam_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsTeam_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


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


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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_SportsTeam"(s) SELECT DISTINCT t0.s FROM "dbrdf_SportsTeam_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SportsTeam_delta_old";
        INSERT INTO "dbrdf_SportsTeam_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SportsTeam_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SportsTeam_delta_new";

        INSERT INTO "dbrdf_SportsTeam0"(s) SELECT DISTINCT t0.s FROM "dbrdf_SportsTeam_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_SportsTeam_delta_old0";
        INSERT INTO "dbrdf_SportsTeam_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_SportsTeam_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_SportsTeam_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2033
    ---- DEPENDS ON: 2031, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_FootballClubR_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_FootballClubR_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_FootballClubR" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_FootballClubR_delta_old" ON "dbrdf_FootballClubR_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_FootballClubR_delta_old" ON "dbrdf_FootballClubR_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_FootballClubR_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2034
    ---- DEPENDS ON: 1308, 2033, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/sameFootballTeam>(?X0,?X3) :- <http://dbpedia.org/ontology/team>(?X0,?X1), <http://dbpedia.org/ontology/FootballClubR>(?X1,?X2), <http://dbpedia.org/ontology/team>(?X3,?X2) .
    INSERT INTO "dbrdf_sameFootballTeam"(s, o) SELECT DISTINCT t0.s, t2.s FROM "dbrdf_team" t0, "dbrdf_FootballClubR" t1, "dbrdf_team" t2 WHERE t0.o = t1.s AND t1.o = t2.o AND NOT EXISTS (SELECT 1 FROM "dbrdf_sameFootballTeam" ex WHERE ex.s = t0.s AND ex.o = t2.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_sameFootballTeam_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_sameFootballTeam_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_sameFootballTeam" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_sameFootballTeam_delta_old" ON "dbrdf_sameFootballTeam_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_sameFootballTeam_delta_old" ON "dbrdf_sameFootballTeam_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_sameFootballTeam_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2035
    ---- DEPENDS ON: 1996, 2034, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/FootballTeamMates>(?X0,?X3) :- <http://dbpedia.org/ontology/FootballPlayerR>(?X0,?X1), <http://dbpedia.org/ontology/sameFootballTeam>(?X1,?X2), <http://dbpedia.org/ontology/FootballPlayerR>(?X2,?X3) .
    INSERT INTO "dbrdf_FootballTeamMates"(s, o) SELECT DISTINCT t0.s, t2.o FROM "dbrdf_FootballPlayerR" t0, "dbrdf_sameFootballTeam" t1, "dbrdf_FootballPlayerR" t2 WHERE t0.o = t1.s AND t1.o = t2.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_FootballTeamMates" ex WHERE ex.s = t0.s AND ex.o = t2.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_FootballTeamMates_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_FootballTeamMates_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_FootballTeamMates" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_FootballTeamMates_delta_old" ON "dbrdf_FootballTeamMates_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_FootballTeamMates_delta_old" ON "dbrdf_FootballTeamMates_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_FootballTeamMates_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2036
    ---- DEPENDS ON: 1308, 2035, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/TeamMates>(?X,?Y) :- <http://dbpedia.org/ontology/FootballTeamMates>(?X,?Y) .
    INSERT INTO "dbrdf_TeamMates"(s, o) SELECT t0.s, t0.o FROM "dbrdf_FootballTeamMates" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_TeamMates" 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://dbpedia.org/ontology/TeamMates>(?X0,?X2) :- <http://dbpedia.org/ontology/team>(?X0,?X1), <http://dbpedia.org/ontology/team>(?X2,?X1) .
    INSERT INTO "dbrdf_TeamMates"(s, o) SELECT DISTINCT t0.s, t1.s FROM "dbrdf_team" t0, "dbrdf_team" t1 WHERE t0.o = t1.o AND NOT EXISTS (SELECT 1 FROM "dbrdf_TeamMates" ex WHERE ex.s = t0.s AND ex.o = t1.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_TeamMates_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_TeamMates_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_TeamMates" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_TeamMates_delta_old" ON "dbrdf_TeamMates_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_TeamMates_delta_old" ON "dbrdf_TeamMates_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_TeamMates_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2037
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_ShoppingMall_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_ShoppingMall_delta_old"(s) SELECT t0.s FROM "dbrdf_ShoppingMall" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_ShoppingMall_delta_old" ON "dbrdf_ShoppingMall_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_ShoppingMall_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_ShoppingCenter_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_ShoppingCenter_delta_old"(s) SELECT t0.s FROM "dbrdf_ShoppingCenter" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_ShoppingCenter_delta_old" ON "dbrdf_ShoppingCenter_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_ShoppingCenter_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/ShoppingMall$delta_new>(?X) :- <http://schema.org/ShoppingCenter$delta_old>(?X) .
        INSERT INTO "dbrdf_ShoppingMall_delta_new"(s) SELECT t0.s FROM "dbrdf_ShoppingCenter_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_ShoppingMall" ex WHERE ex.s = t0.s);


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


        -- <http://schema.org/ShoppingCenter$delta_new>(?X) :- <http://dbpedia.org/ontology/ShoppingMall$delta_old>(?X) .
        INSERT INTO "dbrdf_ShoppingCenter_delta_new"(s) SELECT t0.s FROM "dbrdf_ShoppingMall_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_ShoppingCenter" ex WHERE ex.s = t0.s);


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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_ShoppingMall"(s) SELECT DISTINCT t0.s FROM "dbrdf_ShoppingMall_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_ShoppingMall_delta_old";
        INSERT INTO "dbrdf_ShoppingMall_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_ShoppingMall_delta_new" t0;
        TRUNCATE TABLE "dbrdf_ShoppingMall_delta_new";

        INSERT INTO "dbrdf_ShoppingCenter"(s) SELECT DISTINCT t0.s FROM "dbrdf_ShoppingCenter_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_ShoppingCenter_delta_old";
        INSERT INTO "dbrdf_ShoppingCenter_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_ShoppingCenter_delta_new" t0;
        TRUNCATE TABLE "dbrdf_ShoppingCenter_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2038
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_lowestMountain_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_lowestMountain_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_lowestMountain" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_lowestMountain_delta_old" ON "dbrdf_lowestMountain_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_lowestMountain_delta_old" ON "dbrdf_lowestMountain_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_lowestMountain_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2039
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Pope_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Pope_delta_old"(s) SELECT t0.s FROM "dbrdf_Pope" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Pope_delta_old" ON "dbrdf_Pope_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Pope_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Pope"(s) SELECT DISTINCT t0.s FROM "dbrdf_Pope_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Pope_delta_old";
        INSERT INTO "dbrdf_Pope_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Pope_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Pope_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2040
    ---- DEPENDS ON: 2039, 536, 343, 1870, 118, 100, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Cleric>(?X) :- <http://dbpedia.org/ontology/Cardinal>(?X) .
    INSERT INTO "dbrdf_Cleric"(s) SELECT t0.s FROM "dbrdf_Cardinal" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Cleric" 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_Cleric_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Cleric_delta_old"(s) SELECT t0.s FROM "dbrdf_Cleric" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Cleric_delta_old" ON "dbrdf_Cleric_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Cleric_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Cleric"(s) SELECT DISTINCT t0.s FROM "dbrdf_Cleric_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Cleric_delta_old";
        INSERT INTO "dbrdf_Cleric_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Cleric_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Cleric_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2041
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Senator_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Senator_delta_old"(s) SELECT t0.s FROM "dbrdf_Senator" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Senator_delta_old" ON "dbrdf_Senator_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Senator_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Senator"(s) SELECT DISTINCT t0.s FROM "dbrdf_Senator_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Senator_delta_old";
        INSERT INTO "dbrdf_Senator_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Senator_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Senator_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2042
    ---- DEPENDS ON: 2041, 1452, 1027, 790, 695, 490, 379, 318, 275, 218, 204, 155, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Politician>(?X) :- <http://dbpedia.org/ontology/VicePresident>(?X) .
    INSERT INTO "dbrdf_Politician"(s) SELECT t0.s FROM "dbrdf_VicePresident" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Politician" 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_Politician_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Politician_delta_old"(s) SELECT t0.s FROM "dbrdf_Politician" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Politician_delta_old" ON "dbrdf_Politician_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Politician_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Politician"(s) SELECT DISTINCT t0.s FROM "dbrdf_Politician_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Politician_delta_old";
        INSERT INTO "dbrdf_Politician_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Politician_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Politician_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2043
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_seasonNumber_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_seasonNumber_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_seasonNumber" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_seasonNumber_delta_old" ON "dbrdf_seasonNumber_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_seasonNumber_delta_old" ON "dbrdf_seasonNumber_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_seasonNumber_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2044
    ---- DEPENDS ON: 2043, 1920, 1859, 1642, 37, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_TVEpisode_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_TVEpisode_delta_old"(s) SELECT t0.s FROM "dbrdf_TVEpisode" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_TVEpisode_delta_old" ON "dbrdf_TVEpisode_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_TVEpisode_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_TelevisionEpisode_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_TelevisionEpisode_delta_old"(s) SELECT t0.s FROM "dbrdf_TelevisionEpisode" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_TelevisionEpisode_delta_old" ON "dbrdf_TelevisionEpisode_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_TelevisionEpisode_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


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


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


        -- Propagate $delta_new

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

        INSERT INTO "dbrdf_TelevisionEpisode"(s) SELECT DISTINCT t0.s FROM "dbrdf_TelevisionEpisode_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_TelevisionEpisode_delta_old";
        INSERT INTO "dbrdf_TelevisionEpisode_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_TelevisionEpisode_delta_new" t0;
        TRUNCATE TABLE "dbrdf_TelevisionEpisode_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2045
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Criminal_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Criminal_delta_old"(s) SELECT t0.s FROM "dbrdf_Criminal" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Criminal_delta_old" ON "dbrdf_Criminal_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Criminal_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Criminal"(s) SELECT DISTINCT t0.s FROM "dbrdf_Criminal_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Criminal_delta_old";
        INSERT INTO "dbrdf_Criminal_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Criminal_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Criminal_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2046
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_formerBroadcastNetwork_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_formerBroadcastNetwork_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_formerBroadcastNetwork" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_formerBroadcastNetwork_delta_old" ON "dbrdf_formerBroadcastNetwork_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_formerBroadcastNetwork_delta_old" ON "dbrdf_formerBroadcastNetwork_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_formerBroadcastNetwork_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2047
    ---- DEPENDS ON: 2046, 1019, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- [Rule] <http://dbpedia.org/ontology/BroadcastNetwork>(?X1) :- <http://dbpedia.org/ontology/formerBroadcastNetwork>(?X,?X1) .
    INSERT INTO "dbrdf_BroadcastNetwork"(s) SELECT DISTINCT t0.o FROM "dbrdf_formerBroadcastNetwork" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_BroadcastNetwork" 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_BroadcastNetwork_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_BroadcastNetwork_delta_old"(s) SELECT t0.s FROM "dbrdf_BroadcastNetwork" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_BroadcastNetwork_delta_old" ON "dbrdf_BroadcastNetwork_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_BroadcastNetwork_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_BroadcastNetwork"(s) SELECT DISTINCT t0.s FROM "dbrdf_BroadcastNetwork_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_BroadcastNetwork_delta_old";
        INSERT INTO "dbrdf_BroadcastNetwork_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_BroadcastNetwork_delta_new" t0;
        TRUNCATE TABLE "dbrdf_BroadcastNetwork_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2048
    ---- DEPENDS ON: 2046, 1940, 1868, 1858, 1832, 2047, 1689, 1672, 1665, 1644, 1518, 1463, 1386, 1355, 1344, 1696, 1075, 1062, 1019, 1001, 960, 811, 757, 721, 691, 531, 493, 482, 94, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Broadcaster>(?X) :- <http://dbpedia.org/ontology/shareOfAudience>(?X,?X1) .
    INSERT INTO "dbrdf_Broadcaster"(s) SELECT DISTINCT t0.s FROM "dbrdf_shareOfAudience" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Broadcaster" 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_Broadcaster_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Broadcaster_delta_old"(s) SELECT t0.s FROM "dbrdf_Broadcaster" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Broadcaster_delta_old" ON "dbrdf_Broadcaster_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Broadcaster_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Broadcaster"(s) SELECT DISTINCT t0.s FROM "dbrdf_Broadcaster_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Broadcaster_delta_old";
        INSERT INTO "dbrdf_Broadcaster_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Broadcaster_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Broadcaster_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2049
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_latestPreviewDate_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_latestPreviewDate_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_latestPreviewDate" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_latestPreviewDate_delta_old" ON "dbrdf_latestPreviewDate_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_latestPreviewDate_delta_old" ON "dbrdf_latestPreviewDate_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_latestPreviewDate_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2050
    ---- DEPENDS ON: 2049, 1638, 1478, 1362, 1277, 1247, 2009, 722, 684, 635, 303, 291, 250, 178, 53, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Software>(?X) :- <http://dbpedia.org/ontology/computingPlatform>(?X,?X1) .
    INSERT INTO "dbrdf_Software"(s) SELECT DISTINCT t0.s FROM "dbrdf_computingPlatform" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Software" 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_Software_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Software_delta_old"(s) SELECT t0.s FROM "dbrdf_Software" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Software_delta_old" ON "dbrdf_Software_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Software_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Software"(s) SELECT DISTINCT t0.s FROM "dbrdf_Software_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Software_delta_old";
        INSERT INTO "dbrdf_Software_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Software_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Software_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2051
    ---- DEPENDS ON: 1965, 1863, 1821, 1808, 1804, 1780, 2044, 1865, 2020, 2050, 1509, 1844, 1955, 1241, 1208, 730, 653, 503, 495, 1763, 444, 421, 416, 348, 329, 314, 236, 1987, 89, 68, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Work>(?X1) :- <http://dbpedia.org/ontology/endingTheme>(?X,?X1) .
    INSERT INTO "dbrdf_Work"(s) SELECT DISTINCT t0.o FROM "dbrdf_endingTheme" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Work" 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_CreativeWork_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_CreativeWork_delta_old"(s) SELECT t0.s FROM "dbrdf_CreativeWork" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_CreativeWork_delta_old" ON "dbrdf_CreativeWork_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_CreativeWork_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Work_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Work_delta_old"(s) SELECT t0.s FROM "dbrdf_Work" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Work_delta_old" ON "dbrdf_Work_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Work_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://schema.org/CreativeWork$delta_new>(?X) :- <http://dbpedia.org/ontology/Work$delta_old>(?X) .
        INSERT INTO "dbrdf_CreativeWork_delta_new"(s) SELECT t0.s FROM "dbrdf_Work_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_CreativeWork" ex WHERE ex.s = t0.s);


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


        -- <http://dbpedia.org/ontology/Work$delta_new>(?X) :- <http://schema.org/CreativeWork$delta_old>(?X) .
        INSERT INTO "dbrdf_Work_delta_new"(s) SELECT t0.s FROM "dbrdf_CreativeWork_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Work" ex WHERE ex.s = t0.s);


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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_CreativeWork"(s) SELECT DISTINCT t0.s FROM "dbrdf_CreativeWork_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_CreativeWork_delta_old";
        INSERT INTO "dbrdf_CreativeWork_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_CreativeWork_delta_new" t0;
        TRUNCATE TABLE "dbrdf_CreativeWork_delta_new";

        INSERT INTO "dbrdf_Work"(s) SELECT DISTINCT t0.s FROM "dbrdf_Work_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Work_delta_old";
        INSERT INTO "dbrdf_Work_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Work_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Work_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2052
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_parentMountainPeak_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_parentMountainPeak_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_parentMountainPeak" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_parentMountainPeak_delta_old" ON "dbrdf_parentMountainPeak_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_parentMountainPeak_delta_old" ON "dbrdf_parentMountainPeak_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_parentMountainPeak_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2053
    ---- DEPENDS ON: 2052, 2038, 1778, 1706, 1544, 1423, 1361, 1311, 1304, 1245, 1221, 1090, 1043, 891, 805, 735, 704, 465, 427, 297, 266, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Mountain>(?X) :- <http://dbpedia.org/ontology/alpsSubsection>(?X,?X1) .
    INSERT INTO "dbrdf_Mountain0"(s) SELECT DISTINCT t0.s FROM "dbrdf_alpsSubsection" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Mountain0" 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_Mountain_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Mountain_delta_old"(s) SELECT t0.s FROM "dbrdf_Mountain" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Mountain_delta_old" ON "dbrdf_Mountain_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Mountain_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Mountain_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Mountain_delta_old0"(s) SELECT t0.s FROM "dbrdf_Mountain0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Mountain_delta_old0" ON "dbrdf_Mountain_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Mountain_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


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


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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Mountain"(s) SELECT DISTINCT t0.s FROM "dbrdf_Mountain_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Mountain_delta_old";
        INSERT INTO "dbrdf_Mountain_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Mountain_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Mountain_delta_new";

        INSERT INTO "dbrdf_Mountain0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Mountain_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_Mountain_delta_old0";
        INSERT INTO "dbrdf_Mountain_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Mountain_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Mountain_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2054
    ---- DEPENDS ON: 2053, 1884, 1297, 624, 780, 395, 1201, 1707, 10, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/NaturalPlace>(?X) :- <http://dbpedia.org/ontology/majorVolcano>(?X,?X1) .
    INSERT INTO "dbrdf_NaturalPlace"(s) SELECT DISTINCT t0.s FROM "dbrdf_majorVolcano" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_NaturalPlace" 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_NaturalPlace_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_NaturalPlace_delta_old"(s) SELECT t0.s FROM "dbrdf_NaturalPlace" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_NaturalPlace_delta_old" ON "dbrdf_NaturalPlace_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_NaturalPlace_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_NaturalPlace"(s) SELECT DISTINCT t0.s FROM "dbrdf_NaturalPlace_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_NaturalPlace_delta_old";
        INSERT INTO "dbrdf_NaturalPlace_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_NaturalPlace_delta_new" t0;
        TRUNCATE TABLE "dbrdf_NaturalPlace_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2055
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_aircraftPatrol_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_aircraftPatrol_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_aircraftPatrol" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_aircraftPatrol_delta_old" ON "dbrdf_aircraftPatrol_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_aircraftPatrol_delta_old" ON "dbrdf_aircraftPatrol_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_aircraftPatrol_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2056
    ---- DEPENDS ON: 2055, 1992, 1954, 1819, 1797, 1777, 1769, 1757, 1704, 1619, 1471, 1447, 1400, 1367, 1296, 1156, 1053, 1000, 864, 856, 834, 749, 673, 663, 626, 620, 601, 592, 530, 437, 210, 207, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/MilitaryUnit>(?X) :- <http://dbpedia.org/ontology/garrison>(?X,?X1) .
    INSERT INTO "dbrdf_MilitaryUnit"(s) SELECT DISTINCT t0.s FROM "dbrdf_garrison" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MilitaryUnit" 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_MilitaryUnit_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MilitaryUnit_delta_old"(s) SELECT t0.s FROM "dbrdf_MilitaryUnit" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MilitaryUnit_delta_old" ON "dbrdf_MilitaryUnit_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MilitaryUnit_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_MilitaryUnit"(s) SELECT DISTINCT t0.s FROM "dbrdf_MilitaryUnit_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_MilitaryUnit_delta_old";
        INSERT INTO "dbrdf_MilitaryUnit_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_MilitaryUnit_delta_new" t0;
        TRUNCATE TABLE "dbrdf_MilitaryUnit_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2057
    ---- DEPENDS ON: 1968, 1918, 1813, 1811, 1782, 1759, 2032, 1718, 1633, 1624, 1617, 1589, 1543, 1444, 1382, 1249, 1459, 1736, 1179, 1155, 1138, 1134, 1594, 1016, 1015, 2048, 1004, 989, 961, 958, 895, 1922, 876, 871, 858, 835, 829, 1990, 813, 807, 806, 660, 2056, 593, 564, 364, 301, 274, 910, 220, 147, 116, 76, 1929, 50, 32, 1972, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Organisation>(?X1) :- <http://dbpedia.org/ontology/veneratedIn>(?X,?X1) .
    INSERT INTO "dbrdf_Organisation"(s) SELECT DISTINCT t0.o FROM "dbrdf_veneratedIn" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Organisation" 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_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;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Organisation_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Organisation_delta_old"(s) SELECT t0.s FROM "dbrdf_Organisation" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Organisation_delta_old" ON "dbrdf_Organisation_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Organisation_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://schema.org/Organization$delta_new>(?X) :- <http://dbpedia.org/ontology/Organisation$delta_old>(?X) .
        INSERT INTO "dbrdf_Organization_delta_new"(s) SELECT t0.s FROM "dbrdf_Organisation_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Organization" ex WHERE ex.s = t0.s);


        -- <http://schema.org/Organization$delta_new>(?Y) :- <http://schema.org/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);


        -- <http://dbpedia.org/ontology/Organisation$delta_new>(?X) :- <http://schema.org/Organization$delta_old>(?X) .
        INSERT INTO "dbrdf_Organisation_delta_new"(s) SELECT t0.s FROM "dbrdf_Organization_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Organisation" ex WHERE ex.s = t0.s);


        -- <http://dbpedia.org/ontology/Organisation$delta_new>(?Y) :- <http://dbpedia.org/ontology/Organisation$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Organisation_delta_new"(s) SELECT t1.o FROM "dbrdf_Organisation_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Organisation" 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";

        INSERT INTO "dbrdf_Organisation"(s) SELECT DISTINCT t0.s FROM "dbrdf_Organisation_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Organisation_delta_old";
        INSERT INTO "dbrdf_Organisation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Organisation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Organisation_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2058
    ---- DEPENDS ON: 2055, 2023, 1992, 1966, 1947, 1899, 1941, 1880, 1846, 1828, 1797, 1754, 1715, 1704, 1498, 1491, 1447, 1402, 1296, 1191, 1156, 1140, 1104, 1053, 1000, 2012, 986, 901, 900, 856, 749, 1573, 626, 620, 601, 530, 507, 437, 376, 278, 268, 240, 2017, 93, 1831, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/MeanOfTransportation>(?X1) :- <http://dbpedia.org/ontology/lunarRover>(?X,?X1) .
    INSERT INTO "dbrdf_MeanOfTransportation"(s) SELECT DISTINCT t0.o FROM "dbrdf_lunarRover" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_MeanOfTransportation" 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_MeanOfTransportation_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MeanOfTransportation_delta_old"(s) SELECT t0.s FROM "dbrdf_MeanOfTransportation" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MeanOfTransportation_delta_old" ON "dbrdf_MeanOfTransportation_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MeanOfTransportation_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_MeanOfTransportation"(s) SELECT DISTINCT t0.s FROM "dbrdf_MeanOfTransportation_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_MeanOfTransportation_delta_old";
        INSERT INTO "dbrdf_MeanOfTransportation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_MeanOfTransportation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_MeanOfTransportation_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2059
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_worldChampion_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_worldChampion_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_worldChampion" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_worldChampion_delta_old" ON "dbrdf_worldChampion_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_worldChampion_delta_old" ON "dbrdf_worldChampion_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_worldChampion_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2060
    ---- DEPENDS ON: 2059, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/SnookerChamp>(?X) :- <http://dbpedia.org/ontology/worldChampion>(?X,?X1) .
    INSERT INTO "dbrdf_SnookerChamp"(s) SELECT DISTINCT t0.s FROM "dbrdf_worldChampion" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SnookerChamp" 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_SnookerChamp_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SnookerChamp_delta_old"(s) SELECT t0.s FROM "dbrdf_SnookerChamp" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SnookerChamp_delta_old" ON "dbrdf_SnookerChamp_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SnookerChamp_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_SnookerChamp"(s) SELECT DISTINCT t0.s FROM "dbrdf_SnookerChamp_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SnookerChamp_delta_old";
        INSERT INTO "dbrdf_SnookerChamp_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SnookerChamp_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SnookerChamp_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2061
    ---- DEPENDS ON: 1866, 1671, 2060, 1464, 1416, 1242, 1144, 773, 426, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/SnookerPlayer>(?X) :- <http://dbpedia.org/ontology/highestBreak>(?X,?X1) .
    INSERT INTO "dbrdf_SnookerPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_highestBreak" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_SnookerPlayer" 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_SnookerPlayer_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SnookerPlayer_delta_old"(s) SELECT t0.s FROM "dbrdf_SnookerPlayer" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SnookerPlayer_delta_old" ON "dbrdf_SnookerPlayer_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SnookerPlayer_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_SnookerPlayer"(s) SELECT DISTINCT t0.s FROM "dbrdf_SnookerPlayer_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SnookerPlayer_delta_old";
        INSERT INTO "dbrdf_SnookerPlayer_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_SnookerPlayer_delta_new" t0;
        TRUNCATE TABLE "dbrdf_SnookerPlayer_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2062
    ---- DEPENDS ON: 1995, 1794, 1789, 1708, 1679, 1457, 1431, 1341, 1326, 1197, 1184, 1162, 2061, 1154, 1897, 1097, 1086, 1046, 1806, 938, 1927, 1441, 1567, 752, 1146, 686, 1901, 508, 341, 269, 258, 139, 1729, 134, 1700, 87, 66, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/MartialArtist>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_MartialArtist" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" 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_Athlete_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Athlete_delta_old"(s) SELECT t0.s FROM "dbrdf_Athlete" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Athlete_delta_old" ON "dbrdf_Athlete_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Athlete_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Athlete"(s) SELECT DISTINCT t0.s FROM "dbrdf_Athlete_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Athlete_delta_old";
        INSERT INTO "dbrdf_Athlete_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Athlete_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Athlete_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2063
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_bicycleInformation_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_bicycleInformation_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_bicycleInformation" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_bicycleInformation_delta_old" ON "dbrdf_bicycleInformation_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_bicycleInformation_delta_old" ON "dbrdf_bicycleInformation_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_bicycleInformation_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2064
    ---- DEPENDS ON: 2063, 2018, 1991, 1625, 1615, 1449, 1350, 1334, 870, 621, 543, 245, 173, 23, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Station>(?X) :- <http://dbpedia.org/ontology/servingRailwayLine>(?X,?X1) .
    INSERT INTO "dbrdf_Station"(s) SELECT DISTINCT t0.s FROM "dbrdf_servingRailwayLine" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Station" 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_Station_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Station_delta_old"(s) SELECT t0.s FROM "dbrdf_Station" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Station_delta_old" ON "dbrdf_Station_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Station_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Station"(s) SELECT DISTINCT t0.s FROM "dbrdf_Station_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Station_delta_old";
        INSERT INTO "dbrdf_Station_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Station_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Station_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2065
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_notInValueSpace_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_notInValueSpace_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_notInValueSpace" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_notInValueSpace_delta_old" ON "dbrdf_notInValueSpace_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_notInValueSpace_delta_old" ON "dbrdf_notInValueSpace_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_notInValueSpace_delta_new"(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/2003/11/swrlb#notInValueSpace$delta_new>(?Y,?X1) :- <http://www.w3.org/2003/11/swrlb#notInValueSpace$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_notInValueSpace_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_notInValueSpace_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_notInValueSpace" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://www.w3.org/2003/11/swrlb#notInValueSpace$delta_new>(?X0,?Y) :- <http://www.w3.org/2003/11/swrlb#notInValueSpace$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_notInValueSpace_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_notInValueSpace_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_notInValueSpace" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2066
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_spurOf_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_spurOf_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_spurOf" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_spurOf_delta_old" ON "dbrdf_spurOf_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_spurOf_delta_old" ON "dbrdf_spurOf_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_spurOf_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2067
    ---- DEPENDS ON: 2066, 1948, 1747, 1580, 1091, 935, 659, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Road_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Road_delta_old"(s) SELECT t0.s FROM "dbrdf_Road" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Road_delta_old" ON "dbrdf_Road_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Road_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2068
    ---- DEPENDS ON: 1881, 1800, 1680, 1513, 1505, 1461, 1389, 1333, 1228, 1139, 1122, 1118, 1100, 1085, 2067, 1366, 671, 633, 629, 574, 440, 400, 1259, 322, 1721, 936, 225, 115, 91, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_RouteOfTransportation_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_RouteOfTransportation_delta_old"(s) SELECT t0.s FROM "dbrdf_RouteOfTransportation" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_RouteOfTransportation_delta_old" ON "dbrdf_RouteOfTransportation_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_RouteOfTransportation_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2069
    ---- DEPENDS ON: 2068, 1817, 2064, 1179, 1130, 1674, 788, 599, 572, 561, 555, 546, 1945, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Infrastructure>(?X) :- <http://dbpedia.org/ontology/subsequentInfrastructure>(?X,?X1) .
    INSERT INTO "dbrdf_Infrastructure"(s) SELECT DISTINCT t0.s FROM "dbrdf_subsequentInfrastructure" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Infrastructure" 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_Infrastructure_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Infrastructure_delta_old"(s) SELECT t0.s FROM "dbrdf_Infrastructure" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Infrastructure_delta_old" ON "dbrdf_Infrastructure_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Infrastructure_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Infrastructure"(s) SELECT DISTINCT t0.s FROM "dbrdf_Infrastructure_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Infrastructure_delta_old";
        INSERT INTO "dbrdf_Infrastructure_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Infrastructure_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Infrastructure_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2070
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_visitorsPerYear_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_visitorsPerYear_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_visitorsPerYear" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_visitorsPerYear_delta_old" ON "dbrdf_visitorsPerYear_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_visitorsPerYear_delta_old" ON "dbrdf_visitorsPerYear_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_visitorsPerYear_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2071
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_nrhpReferenceNumber_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_nrhpReferenceNumber_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_nrhpReferenceNumber" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_nrhpReferenceNumber_delta_old" ON "dbrdf_nrhpReferenceNumber_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_nrhpReferenceNumber_delta_old" ON "dbrdf_nrhpReferenceNumber_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_nrhpReferenceNumber_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2072
    ---- DEPENDS ON: 2071, 2070, 2065, 2063, 2059, 2049, 2043, 2027, 2025, 2019, 2018, 2015, 2014, 2013, 2011, 2010, 0, 2007, 1995, 1994, 1991, 1988, 1986, 1984, 1981, 1974, 1967, 1966, 1963, 1960, 1952, 1949, 1944, 1943, 1940, 1939, 1937, 1934, 1924, 1918, 1916, 1907, 1900, 1896, 1895, 1893, 1889, 1887, 1886, 1882, 1881, 1880, 1878, 1877, 1876, 1874, 1872, 1868, 1866, 1863, 1859, 1858, 1857, 1851, 1842, 1840, 1837, 1835, 1827, 1818, 1817, 1816, 1811, 1810, 1807, 1805, 1803, 1801, 1800, 1798, 1795, 1788, 1787, 1782, 1781, 1780, 1776, 1775, 1771, 1768, 1767, 1765, 1758, 1757, 1756, 1755, 1754, 1751, 1749, 1748, 1746, 1745, 1742, 1737, 1728, 1726, 1725, 1720, 1719, 1717, 1715, 1713, 1712, 1710, 1709, 1701, 1699, 1698, 1695, 1694, 1691, 1690, 1689, 1688, 1680, 1677, 1676, 1671, 1668, 1665, 1664, 1662, 1660, 1657, 1654, 1653, 1652, 1651, 1649, 1646, 1644, 1638, 1632, 1629, 1628, 1626, 1625, 1624, 1621, 1614, 1613, 1611, 1610, 1607, 1606, 1605, 1602, 1598, 1597, 1596, 1595, 1592, 1588, 1586, 1585, 1583, 1582, 1581, 1579, 1577, 1575, 1572, 1571, 1570, 1565, 1564, 1563, 1562, 1560, 1559, 1552, 1548, 1546, 1545, 1543, 1541, 1539, 1537, 1536, 1535, 1534, 1533, 1532, 1530, 1529, 1528, 1527, 1525, 1523, 1520, 1518, 1517, 1514, 1513, 1511, 1508, 1504, 1502, 1500, 1499, 1497, 1496, 1492, 1486, 1485, 1484, 1483, 1480, 1476, 1474, 1472, 1470, 1469, 1467, 1465, 1464, 1461, 1460, 1456, 1451, 1449, 1445, 1443, 1440, 1437, 1436, 1435, 1430, 1428, 1427, 1426, 1416, 1413, 1410, 1407, 1401, 1400, 1399, 1397, 1392, 1391, 1389, 1385, 1383, 1382, 1380, 1379, 1377, 1374, 1373, 1371, 1368, 1367, 1363, 1362, 1358, 1355, 1353, 1351, 1350, 1349, 1348, 1346, 1345, 1339, 1338, 1337, 1335, 1334, 1333, 1330, 1329, 1318, 1314, 1313, 1312, 1311, 1310, 1306, 1303, 1302, 1299, 1298, 1292, 1290, 1289, 1288, 1284, 1282, 1281, 1272, 1270, 1269, 1268, 1266, 1263, 1262, 1258, 1255, 1254, 1248, 1247, 1246, 1245, 1244, 1242, 1240, 1238, 1236, 1235, 1234, 1233, 1232, 1229, 1228, 1227, 1226, 1225, 1223, 1222, 1221, 1219, 1218, 1216, 1213, 1212, 1211, 1209, 1208, 1207, 1206, 1202, 1200, 1199, 1196, 1195, 1192, 1190, 1188, 1187, 1186, 1183, 1178, 1176, 1173, 1166, 1164, 1163, 1162, 1160, 1157, 1155, 1153, 1151, 1150, 1148, 1147, 1145, 1144, 1143, 1141, 1140, 1136, 1135, 1133, 1131, 1130, 1129, 1128, 1127, 1125, 1123, 1120, 1117, 1116, 1115, 1111, 1110, 1108, 1107, 1106, 1103, 1100, 1099, 1098, 1095, 1094, 1093, 1089, 1088, 1085, 1084, 1081, 1078, 1075, 1071, 1070, 1068, 1067, 1066, 1063, 1061, 1058, 1054, 1052, 1050, 1049, 1047, 1044, 1042, 1040, 1039, 1038, 1037, 1036, 1035, 1031, 1028, 1026, 1020, 1018, 1017, 1012, 1010, 1007, 1006, 1001, 998, 997, 996, 994, 991, 990, 989, 988, 986, 985, 978, 977, 974, 970, 969, 968, 966, 963, 955, 952, 951, 950, 948, 947, 946, 943, 942, 934, 931, 930, 928, 926, 925, 922, 920, 918, 917, 915, 906, 905, 902, 893, 892, 890, 889, 887, 886, 885, 883, 881, 875, 873, 871, 870, 869, 868, 867, 864, 860, 858, 857, 854, 852, 843, 842, 841, 840, 834, 833, 832, 830, 828, 824, 823, 822, 821, 819, 817, 816, 814, 812, 811, 809, 802, 800, 799, 798, 797, 791, 787, 784, 779, 775, 774, 773, 765, 764, 763, 761, 760, 757, 753, 751, 750, 748, 744, 741, 738, 733, 731, 726, 721, 720, 719, 718, 716, 712, 711, 709, 708, 707, 706, 705, 703, 698, 696, 691, 688, 687, 683, 681, 678, 675, 673, 672, 671, 667, 666, 665, 664, 656, 654, 652, 651, 650, 648, 647, 646, 645, 640, 634, 631, 629, 627, 623, 621, 617, 614, 613, 611, 607, 606, 597, 596, 595, 594, 591, 590, 586, 584, 580, 577, 576, 574, 573, 571, 568, 567, 565, 562, 561, 560, 559, 558, 557, 555, 554, 553, 552, 551, 549, 548, 547, 544, 543, 542, 541, 540, 538, 537, 535, 534, 533, 532, 531, 526, 518, 517, 516, 513, 512, 511, 509, 507, 506, 504, 500, 498, 493, 492, 491, 488, 486, 484, 483, 482, 481, 478, 477, 476, 471, 470, 466, 464, 463, 462, 460, 458, 457, 456, 453, 452, 447, 446, 445, 442, 440, 438, 436, 433, 426, 424, 419, 415, 413, 412, 411, 408, 405, 404, 403, 400, 397, 396, 394, 393, 391, 389, 388, 383, 382, 375, 374, 370, 369, 368, 367, 365, 363, 361, 358, 355, 354, 353, 349, 347, 346, 344, 330, 327, 326, 325, 324, 316, 315, 313, 310, 307, 304, 301, 299, 290, 289, 288, 282, 281, 277, 273, 272, 270, 265, 264, 255, 253, 252, 249, 248, 247, 246, 245, 238, 237, 233, 231, 230, 228, 224, 223, 215, 214, 212, 205, 195, 191, 190, 189, 184, 180, 179, 178, 176, 173, 172, 171, 170, 169, 168, 166, 165, 164, 163, 162, 160, 158, 157, 156, 154, 152, 151, 148, 147, 144, 143, 135, 133, 130, 125, 121, 120, 117, 112, 110, 108, 106, 105, 104, 99, 94, 91, 90, 86, 83, 81, 78, 73, 70, 69, 67, 47, 42, 40, 38, 27, 26, 25, 8, 5, 4
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] owl:Nothing(<int$false>) :- swrlb:notInValueSpace(?X1,xsd:string), <http://dbpedia.org/ontology/bicycleInformation>(?X,?X1) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT 26425 FROM "dbrdf_notInValueSpace" t0, "dbrdf_bicycleInformation" t1 WHERE t0.s = t1.o AND t0.o = 26426 AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = 26425);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(<int$false>) :- swrlb:notInValueSpace(?X1,xsd:string), <http://dbpedia.org/ontology/cornishName>(?X,?X1) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT 26425 FROM "dbrdf_notInValueSpace" t0, "dbrdf_cornishName" t1 WHERE t0.s = t1.o AND t0.o = 26426 AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = 26425);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(<int$false>) :- swrlb:notInValueSpace(?X1,xsd:string), <http://dbpedia.org/ontology/commandModule>(?X,?X1) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT 26425 FROM "dbrdf_notInValueSpace" t0, "dbrdf_commandModule" t1 WHERE t0.s = t1.o AND t0.o = 26426 AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = 26425);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(<int$false>) :- swrlb:notInValueSpace(?X1,xsd:string), <http://dbpedia.org/ontology/cityType>(?X,?X1) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT 26425 FROM "dbrdf_notInValueSpace" t0, "dbrdf_cityType" t1 WHERE t0.s = t1.o AND t0.o = 26426 AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = 26425);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(<int$false>) :- swrlb:notInValueSpace(?X1,xsd:nonNegativeInteger), <http://dbpedia.org/ontology/numberOfCounties>(?X,?X1) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT 26425 FROM "dbrdf_notInValueSpace" t0, "dbrdf_numberOfCounties" t1 WHERE t0.s = t1.o AND t0.o = 26427 AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = 26425);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(<int$false>) :- swrlb:notInValueSpace(?X1,xsd:gYear), <http://dbpedia.org/ontology/deathYear>(?X,?X1) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT 26425 FROM "dbrdf_notInValueSpace" t0, "dbrdf_deathYear" t1 WHERE t0.s = t1.o AND t0.o = 26428 AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = 26425);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(<int$false>) :- swrlb:notInValueSpace(?X1,xsd:string), <http://dbpedia.org/ontology/geologicPeriod>(?X,?X1) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT 26425 FROM "dbrdf_notInValueSpace" t0, "dbrdf_geologicPeriod" t1 WHERE t0.s = t1.o AND t0.o = 26426 AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = 26425);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(<int$false>) :- swrlb:notInValueSpace(?X1,xsd:double), <http://dbpedia.org/ontology/grossDomesticProduct>(?X,?X1) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT 26425 FROM "dbrdf_notInValueSpace" t0, "dbrdf_grossDomesticProduct" t1 WHERE t0.s = t1.o AND t0.o = 26429 AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = 26425);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(<int$false>) :- swrlb:notInValueSpace(?X1,xsd:boolean), <http://dbpedia.org/ontology/canBaggageChecked>(?X,?X1) .
    INSERT INTO "dbrdf_Nothing"(s) SELECT DISTINCT 26425 FROM "dbrdf_notInValueSpace" t0, "dbrdf_canBaggageChecked" t1 WHERE t0.s = t1.o AND t0.o = 26430 AND NOT EXISTS (SELECT 1 FROM "dbrdf_Nothing" ex WHERE ex.s = 26425);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] owl:Nothing(<int$false>) :- swrlb:notInValueSpace(?X1,xsd:string), <http://dbpedia.org/ontology/sixthFormStudents>(?X,?X1) .
