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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Event_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Event_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28491;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Event_delta_old" ON "dbrdf_Event_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Event_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Event_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Event_delta_old0"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28492;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Event_delta_old0" ON "dbrdf_Event_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Event_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


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


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


        -- Propagate $delta_new

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

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

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_isbn_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_isbn_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28493;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_isbn_delta_old" ON "dbrdf_isbn_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_isbn_delta_old" ON "dbrdf_isbn_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_isbn_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1981
    ---- DEPENDS ON: 1980, 1918, 1597, 1380, 1216, 1156, 176, 125, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Book_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Book_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28494;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Book_delta_old" ON "dbrdf_Book_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Book_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Book_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Book_delta_old0"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28496;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Book_delta_old0" ON "dbrdf_Book_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Book_delta_new0"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Book_delta_old1"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Book_delta_old1"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28495;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Book_delta_old1" ON "dbrdf_Book_delta_old1"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Book_delta_new1"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


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


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


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


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


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


        -- Propagate $delta_new

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

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

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

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_winsInEurope_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_winsInEurope_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28497;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_winsInEurope_delta_old" ON "dbrdf_winsInEurope_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_winsInEurope_delta_old" ON "dbrdf_winsInEurope_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_winsInEurope_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1983
    ---- DEPENDS ON: 1982, 1924, 1624, 1362, 1004, 702, 605, 462, 421, 401, 355, 272, 268, 203, 202, 96, 94, 71, 61, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_GolfPlayer_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_GolfPlayer_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28498;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_GolfPlayer_delta_old" ON "dbrdf_GolfPlayer_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_GolfPlayer_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_VolleyballLeague_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_VolleyballLeague_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28499;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_VolleyballLeague_delta_old" ON "dbrdf_VolleyballLeague_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_VolleyballLeague_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1985
    ---- DEPENDS ON: 1984, 1967, 1893, 1697, 1696, 1544, 1510, 1500, 1480, 1464, 1453, 1435, 1377, 1342, 1212, 1070, 1013, 1204, 667, 550, 424, 423, 1939, 292, 284, 193, 154, 140, 126, 55, 27, 26, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsLeague_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SportsLeague_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28500;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SportsLeague_delta_old" ON "dbrdf_SportsLeague_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsLeague_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_city_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_city_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28501;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_city_delta_old" ON "dbrdf_city_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_city_delta_old" ON "dbrdf_city_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_city_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1987
    ---- DEPENDS ON: 1986, 1483, 1465, 575, 387, 309, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_City_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_City_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28502;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_City_delta_old" ON "dbrdf_City_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_City_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_City_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_City_delta_old0"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28503;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_City_delta_old0" ON "dbrdf_City_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_City_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- <http://schema.org/City$delta_new>(?Y) :- <http://schema.org/City$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_City_delta_new"(s) SELECT t1.o FROM "dbrdf_City_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28502);


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


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


        -- Propagate $delta_new

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

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

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_certification_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_certification_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28504;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_certification_delta_old" ON "dbrdf_certification_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_certification_delta_old" ON "dbrdf_certification_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_certification_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1989
    ---- DEPENDS ON: 1988, 1862, 1261, 769, 650, 186, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Single_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Single_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28505;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Single_delta_old" ON "dbrdf_Single_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Single_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1990
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_nationalRanking_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_nationalRanking_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28506;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_nationalRanking_delta_old" ON "dbrdf_nationalRanking_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_nationalRanking_delta_old" ON "dbrdf_nationalRanking_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_nationalRanking_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1991
    ---- DEPENDS ON: 0, 1608, 1555, 1295, 1276, 1144, 377, 256, 153
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Automobile_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Automobile_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28507;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Automobile_delta_old" ON "dbrdf_Automobile_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Automobile_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1992
    ---- DEPENDS ON: 1991, 1632, 1961, 1596, 1709, 1825, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://schema.org/Product>(?X) :- <http://dbpedia.org/ontology/Automobile>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28508 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28507 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28508);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28508 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28127 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28508);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28508 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28471 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28508);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://schema.org/Product>(?X) :- <http://dbpedia.org/ontology/Locomotive>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28508 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28090 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28508);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28508 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28206 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28508);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28508 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28328 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28508);
    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 "__triples" t0 WHERE t0.p = 2 AND t0.o = 28508;
    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, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28508);


        -- Propagate $delta_new

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

    -- Nonrecursive rules

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Monarch_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Monarch_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28509;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Monarch_delta_old" ON "dbrdf_Monarch_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Monarch_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1994
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfPads_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_numberOfPads_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28510;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_numberOfPads_delta_old" ON "dbrdf_numberOfPads_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_numberOfPads_delta_old" ON "dbrdf_numberOfPads_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_numberOfPads_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1995
    ---- DEPENDS ON: 1994, 1691, 1523, 1415, 1402, 1184, 809, 803, 553, 184, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_LaunchPad_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_LaunchPad_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28511;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_LaunchPad_delta_old" ON "dbrdf_LaunchPad_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_LaunchPad_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1996
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_specialist_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_specialist_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28512;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_specialist_delta_old" ON "dbrdf_specialist_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_specialist_delta_old" ON "dbrdf_specialist_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_specialist_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1997
    ---- DEPENDS ON: 1996, 1990, 1884, 1866, 1841, 1777, 1690, 1654, 1592, 1591, 1589, 1568, 1519, 1467, 1425, 1383, 1312, 1284, 1280, 1271, 1260, 1231, 1200, 1196, 1189, 1147, 1123, 1044, 990, 935, 913, 861, 820, 669, 632, 622, 546, 509, 497, 425, 376, 372, 314, 289, 237, 168, 98, 92, 16, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_School_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_School_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28513;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_School_delta_old" ON "dbrdf_School_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_School_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_School_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_School_delta_old0"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28514;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_School_delta_old0" ON "dbrdf_School_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_School_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


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


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


        -- Propagate $delta_new

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

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1998
    ---- DEPENDS ON: 1957, 1615, 1556, 1512, 1466, 1281, 1820, 1129, 1083, 1025, 933, 912, 866, 786, 760, 689, 1078, 1997, 558, 354, 340, 48, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_EducationalOrganization_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_EducationalOrganization_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28515;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_EducationalOrganization_delta_old" ON "dbrdf_EducationalOrganization_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_EducationalOrganization_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_EducationalInstitution_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_EducationalInstitution_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28516;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_EducationalInstitution_delta_old" ON "dbrdf_EducationalInstitution_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_EducationalInstitution_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


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


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


        -- Propagate $delta_new

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

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 1999
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_constructionMaterial_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_constructionMaterial_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28517;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_constructionMaterial_delta_old" ON "dbrdf_constructionMaterial_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_constructionMaterial_delta_old" ON "dbrdf_constructionMaterial_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_constructionMaterial_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2000
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_spurType_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_spurType_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28518;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_spurType_delta_old" ON "dbrdf_spurType_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_spurType_delta_old" ON "dbrdf_spurType_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_spurType_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2001
    ---- DEPENDS ON: 2000, 1868, 1403, 1213, 645, 541, 387, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Road>(?X) :- <http://dbpedia.org/ontology/spurType>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28519 FROM "__triples" t0 WHERE t0.p = 28518 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28519);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28519 FROM "__triples" t0 WHERE t0.p = 28376 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28519);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28519 FROM "__triples" t0 WHERE t0.p = 27893 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28519);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28519 FROM "__triples" t0 WHERE t0.p = 27699 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28519);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Road>(?X) :- <http://dbpedia.org/ontology/spurOf>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28519 FROM "__triples" t0 WHERE t0.p = 27127 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28519);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28519 FROM "__triples" t0 WHERE t0.p = 27023 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28519);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28519 FROM "__triples" t0 WHERE t0.p = 26869 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28519);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28519 FROM "__triples" t0 WHERE t0.p = 27127 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28519);
    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 "__triples" t0 WHERE t0.p = 2 AND t0.o = 28519;
    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, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28519);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/speedLimit>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 28254 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 28122 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 28023 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 28011 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 27891 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 27869 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28519 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28104 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 27375 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27278 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 27247 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 27551 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 27527 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/RouteOfTransportation>(?X) :- <http://dbpedia.org/ontology/lineLength>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 27074 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 27047 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 28146 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 26966 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 28013 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 26915 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 26881 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28167 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28520 FROM "__triples" t0 WHERE t0.p = 27375 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 26730 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 27647 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 26602 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27761 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 27090 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27894 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 26569 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28520 FROM "__triples" t0 WHERE t0.p = 26569 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28520 FROM "__triples" t0 WHERE t0.p = 26881 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28520);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28520 FROM "__triples" t0 WHERE t0.p = 27708 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28520);
    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 "__triples" t0 WHERE t0.p = 2 AND t0.o = 28520;
    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, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28520);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2003
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_march_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_march_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28521;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_march_delta_old" ON "dbrdf_march_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_march_delta_old" ON "dbrdf_march_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_march_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2004
    ---- DEPENDS ON: 2003, 1802, 1586, 1570, 1537, 968, 1989, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_MusicalWork_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MusicalWork_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28522;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MusicalWork_delta_old" ON "dbrdf_MusicalWork_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MusicalWork_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2005
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_leaderParty_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_leaderParty_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28523;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_leaderParty_delta_old" ON "dbrdf_leaderParty_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_leaderParty_delta_old" ON "dbrdf_leaderParty_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_leaderParty_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2006
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_activeYearsEndDate_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_activeYearsEndDate_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28524;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_activeYearsEndDate_delta_old" ON "dbrdf_activeYearsEndDate_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_activeYearsEndDate_delta_old" ON "dbrdf_activeYearsEndDate_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_activeYearsEndDate_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2007
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_archipelago_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_archipelago_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28525;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_archipelago_delta_old" ON "dbrdf_archipelago_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_archipelago_delta_old" ON "dbrdf_archipelago_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_archipelago_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2008
    ---- DEPENDS ON: 2007, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Atoll_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Atoll_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28526;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Atoll_delta_old" ON "dbrdf_Atoll_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Atoll_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2009
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_europeanUnionEntranceDate_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_europeanUnionEntranceDate_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28527;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_europeanUnionEntranceDate_delta_old" ON "dbrdf_europeanUnionEntranceDate_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_europeanUnionEntranceDate_delta_old" ON "dbrdf_europeanUnionEntranceDate_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_europeanUnionEntranceDate_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2010
    ---- DEPENDS ON: 2009, 1889, 1857, 1852, 1783, 1731, 1648, 1420, 1412, 1395, 1376, 1305, 1274, 1236, 1167, 1146, 1121, 1034, 983, 982, 927, 843, 762, 755, 721, 663, 591, 562, 554, 136, 123, 7, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Country>(?X1) :- <http://dbpedia.org/ontology/usingCountry>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28529 FROM "__triples" t0 WHERE t0.p = 27653 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28529);
    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_Country_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Country_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28528;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Country_delta_old" ON "dbrdf_Country_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Country_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Country_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Country_delta_old0"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28529;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Country_delta_old0" ON "dbrdf_Country_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Country_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/Country$delta_new>(?X) :- <http://dbpedia.org/ontology/Country$delta_old>(?X) .
        INSERT INTO "dbrdf_Country_delta_new"(s) SELECT t0.s FROM "dbrdf_Country_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28528);


        -- <http://schema.org/Country$delta_new>(?Y) :- <http://schema.org/Country$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Country_delta_new"(s) SELECT t1.o FROM "dbrdf_Country_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28528);


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


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


        -- Propagate $delta_new

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

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28529 FROM "dbrdf_Country_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_Country_delta_old0";
        INSERT INTO "dbrdf_Country_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Country_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Country_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2011
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_contractor_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_contractor_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28530;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_contractor_delta_old" ON "dbrdf_contractor_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_contractor_delta_old" ON "dbrdf_contractor_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_contractor_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2012
    ---- DEPENDS ON: 2011, 1906, 1899, 1779, 1730, 1617, 1728, 0, 1332, 1179, 1108, 1081, 1054, 1035, 985, 929, 692, 685, 536, 416, 408, 343, 300, 171, 35
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Company_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Company_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28531;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Company_delta_old" ON "dbrdf_Company_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Company_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2013
    ---- DEPENDS ON: 2011, 1925, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Skyscraper_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Skyscraper_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28532;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Skyscraper_delta_old" ON "dbrdf_Skyscraper_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Skyscraper_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2014
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_MouseGeneLocation_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MouseGeneLocation_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28533;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MouseGeneLocation_delta_old" ON "dbrdf_MouseGeneLocation_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MouseGeneLocation_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2015
    ---- DEPENDS ON: 2014, 1958, 1659, 1619, 1193, 320, 166, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_GeneLocation_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_GeneLocation_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28534;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_GeneLocation_delta_old" ON "dbrdf_GeneLocation_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_GeneLocation_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2016
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_distanceToLondon_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_distanceToLondon_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28535;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_distanceToLondon_delta_old" ON "dbrdf_distanceToLondon_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_distanceToLondon_delta_old" ON "dbrdf_distanceToLondon_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_distanceToLondon_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2017
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Church_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Church_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28536;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Church_delta_old" ON "dbrdf_Church_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Church_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2018
    ---- DEPENDS ON: 2017, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_ReligiousBuilding_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_ReligiousBuilding_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28537;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_ReligiousBuilding_delta_old" ON "dbrdf_ReligiousBuilding_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_ReligiousBuilding_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2019
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_coden_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_coden_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28538;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_coden_delta_old" ON "dbrdf_coden_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_coden_delta_old" ON "dbrdf_coden_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_coden_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2020
    ---- DEPENDS ON: 2019, 1803, 1896, 1981, 942, 868, 852, 524, 1746, 179, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_WrittenWork_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_WrittenWork_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28539;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_WrittenWork_delta_old" ON "dbrdf_WrittenWork_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_WrittenWork_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2021
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2022
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2023
    ---- DEPENDS ON: 2022, 2003, 1882, 1737, 1707, 1682, 1671, 1550, 1486, 1456, 1448, 1334, 1234, 1180, 1098, 1089, 1065, 960, 878, 876, 856, 851, 759, 735, 648, 643, 588, 583, 325, 264, 260, 231, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/MilitaryUnit>(?X) :- <http://dbpedia.org/ontology/identificationSymbol>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 28179 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 28168 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 28041 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27976 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27946 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27824 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 28235 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27584 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27575 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27938 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27550 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 28541 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27361 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27339 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27334 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27359 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27218 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27130 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/MilitaryUnit>(?X) :- <http://dbpedia.org/ontology/patron>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27070 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27065 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 28204 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 28391 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 26807 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27721 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27125 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 26742 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27445 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27242 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28542 FROM "__triples" t0 WHERE t0.p = 26713 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 27666 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28542 FROM "__triples" t0 WHERE t0.p = 26742 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 26746 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28542 FROM "__triples" t0 WHERE t0.p = 28521 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28542);
    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 "__triples" t0 WHERE t0.p = 2 AND t0.o = 28542;
    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, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28542);


        -- Propagate $delta_new

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28543, t0.o FROM "dbrdf_grossDomesticProduct_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_grossDomesticProduct_delta_old";
        INSERT INTO "dbrdf_grossDomesticProduct_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_grossDomesticProduct_delta_new" t0;
        TRUNCATE TABLE "dbrdf_grossDomesticProduct_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_espnId_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_espnId_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28544;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_espnId_delta_old" ON "dbrdf_espnId_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_espnId_delta_old" ON "dbrdf_espnId_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_espnId_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/espnId$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/espnId$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_espnId_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_espnId_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28544 AND ex.o = t0.o);


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2026
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_surfaceArea_delta_old1"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_surfaceArea_delta_old1"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28545;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_surfaceArea_delta_old1" ON "dbrdf_surfaceArea_delta_old1"(s, o); CREATE INDEX "IDX_1_dbrdf_surfaceArea_delta_old1" ON "dbrdf_surfaceArea_delta_old1"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_surfaceArea_delta_new1"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2027
    ---- DEPENDS ON: 2026, 1907, 1865, 1705, 1633, 1625, 1484, 981, 900, 888, 840, 717, 633, 570, 440, 313, 59, 49, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Galaxy>(?X) :- <http://dbpedia.org/ontology/Galaxy/meanTemperature>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28546 FROM "__triples" t0 WHERE t0.p = 26531 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28546);
    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_Galaxy_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Galaxy_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28546;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Galaxy_delta_old" ON "dbrdf_Galaxy_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Galaxy_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/Galaxy$delta_new>(?Y) :- <http://dbpedia.org/ontology/Galaxy$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Galaxy_delta_new"(s) SELECT t1.o FROM "dbrdf_Galaxy_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28546);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2028
    ---- DEPENDS ON: 1970, 1749, 2027, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

    -- [Rule] <http://dbpedia.org/ontology/CelestialBody>(?X) :- <http://dbpedia.org/ontology/Galaxy>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28547 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28546 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28547);
    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_CelestialBody_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_CelestialBody_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28547;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_CelestialBody_delta_old" ON "dbrdf_CelestialBody_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_CelestialBody_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/CelestialBody$delta_new>(?Y) :- <http://dbpedia.org/ontology/CelestialBody$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_CelestialBody_delta_new"(s) SELECT t1.o FROM "dbrdf_CelestialBody_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28547);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2029
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 28548, t0.o FROM "dbrdf_geologicPeriod_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_geologicPeriod_delta_old";
        INSERT INTO "dbrdf_geologicPeriod_delta_old"(s, o) SELECT DISTINCT t0.s, t0.o FROM "dbrdf_geologicPeriod_delta_new" t0;
        TRUNCATE TABLE "dbrdf_geologicPeriod_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_gameEngine_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_gameEngine_delta_old"(s, o) SELECT t0.s, t0.o FROM "__triples" t0 WHERE t0.p = 28549;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_gameEngine_delta_old" ON "dbrdf_gameEngine_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_gameEngine_delta_old" ON "dbrdf_gameEngine_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_gameEngine_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/gameEngine$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/gameEngine$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_gameEngine_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_gameEngine_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28549 AND ex.o = t0.o);


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2031
    ---- DEPENDS ON: 2030, 1504, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- [Rule] <http://dbpedia.org/ontology/VideoGame>(?X) :- <http://dbpedia.org/ontology/gameArtist>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28550 FROM "__triples" t0 WHERE t0.p = 27995 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28550);
    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_VideoGame_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_VideoGame_delta_old"(s) SELECT t0.s FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28550;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_VideoGame_delta_old" ON "dbrdf_VideoGame_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_VideoGame_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/VideoGame$delta_new>(?Y) :- <http://dbpedia.org/ontology/VideoGame$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_VideoGame_delta_new"(s) SELECT t1.o FROM "dbrdf_VideoGame_delta_old" t0, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28550);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2032
    ---- DEPENDS ON: 1666, 1604, 2031, 1316, 1247, 1194, 793, 719, 641, 506, 448, 270, 110, 106, 93, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Software>(?X) :- <http://dbpedia.org/ontology/latestReleaseDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28551 FROM "__triples" t0 WHERE t0.p = 28163 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28551);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28551 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28550 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28551);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28551 FROM "__triples" t0 WHERE t0.p = 27806 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28551);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28551 FROM "__triples" t0 WHERE t0.p = 27734 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28551);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28551 FROM "__triples" t0 WHERE t0.p = 27680 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28551);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28551 FROM "__triples" t0 WHERE t0.p = 27276 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28551);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28551 FROM "__triples" t0 WHERE t0.p = 27202 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28551);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Software>(?X) :- <http://dbpedia.org/ontology/latestPreviewDate>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28551 FROM "__triples" t0 WHERE t0.p = 27123 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28551);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28551 FROM "__triples" t0 WHERE t0.p = 26988 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28551);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28551 FROM "__triples" t0 WHERE t0.p = 26930 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28551);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28551 FROM "__triples" t0 WHERE t0.p = 28098 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28551);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28551 FROM "__triples" t0 WHERE t0.p = 26752 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28551);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28551 FROM "__triples" t0 WHERE t0.p = 26592 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28551);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28551 FROM "__triples" t0 WHERE t0.p = 26588 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28551);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28551 FROM "__triples" t0 WHERE t0.p = 26575 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28551);
    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 "__triples" t0 WHERE t0.p = 2 AND t0.o = 28551;
    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, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28551);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28551 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 2033
    ---- DEPENDS ON: 1906, 2032, 1752, 1732, 2004, 1976, 1585, 1575, 1153, 1113, 1878, 992, 985, 890, 796, 763, 603, 596, 594, 1941, 1748, 1929, 291, 258, 194, 169, 159, 157, 89, 2020, 32, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Work>(?X) :- <http://dbpedia.org/ontology/Software>(?X) .
    INSERT INTO "__triples"(s, p, o) SELECT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28551 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 28229 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28522 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28487 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28553 FROM "__triples" t0 WHERE t0.p = 28067 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 28067 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 28078 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28553 FROM "__triples" t0 WHERE t0.p = 27639 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 27599 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28386 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28553 FROM "__triples" t0 WHERE t0.p = 27477 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 27470 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 27246 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Work>(?X) :- <http://dbpedia.org/ontology/translator>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 27076 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28450 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28247 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28438 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 27639 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28553 FROM "__triples" t0 WHERE t0.p = 27374 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 27085 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 27078 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 26773 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 26651 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 26641 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 26639 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 26676 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 27279 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28553 FROM "__triples" t0 WHERE t0.p = 26639 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 26571 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 28415 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28539 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 26514 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 FROM "__triples" t0 WHERE t0.p = 26740 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28553 FROM "__triples" t0 WHERE t0.p = 28251 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28553);
    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 "__triples" t0 WHERE t0.p = 2 AND t0.o = 28552;
    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 "__triples" t0 WHERE t0.p = 2 AND t0.o = 28553;
    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 "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28552);


        -- <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, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28552);


        -- <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 "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28553);


        -- <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, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28553);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28552 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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28553 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 2034
    ---- 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 "__triples" t0 WHERE t0.p = 28554;
    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, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 28554 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, "__triples" t1 WHERE t0.o = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 28554 AND ex.o = t1.o);


        -- Propagate $delta_new

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2036
    ---- DEPENDS ON: 2035, 2016, 1911, 1885, 1787, 1763, 1739, 1688, 1685, 1616, 1551, 1524, 1496, 1481, 1375, 1298, 1227, 1137, 1097, 1045, 1008, 966, 957, 896, 1987, 818, 784, 746, 678, 638, 621, 601, 525, 498, 452, 397, 131, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Settlement>(?X) :- <http://dbpedia.org/ontology/scottishName>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 28555 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 28394 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28556 FROM "__triples" t0 WHERE t0.p = 28262 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 28237 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 28185 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 28110 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 28042 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 28420 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27865 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 28262 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27986 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27714 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27583 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27530 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 28535 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27493 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27787 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27380 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28503 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27623 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27301 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27267 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27229 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27103 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27083 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 28287 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 28182 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27007 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 28015 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 26934 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 26879 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27120 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27161 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27971 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27493 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27442 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 26613 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28556 FROM "__triples" t0 WHERE t0.p = 26879 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 27451 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 FROM "__triples" t0 WHERE t0.p = 26980 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28556);
    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 "__triples" t0 WHERE t0.p = 2 AND t0.o = 28556;
    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, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28556);


        -- Propagate $delta_new

        INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28556 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 2037
    ---- DEPENDS ON: 2024, 2005, 1942, 1927, 1926, 1891, 1868, 1864, 2008, 1834, 1817, 1807, 1774, 1767, 1754, 1750, 1739, 1738, 1702, 2036, 1631, 2010, 1623, 1621, 1487, 1482, 1469, 1465, 1462, 1458, 1454, 1439, 1438, 1422, 1421, 1413, 1409, 1408, 1329, 1301, 1298, 1278, 1275, 1263, 1249, 1244, 1225, 1219, 1183, 1169, 1165, 1148, 1117, 1105, 1090, 1074, 1045, 1041, 1038, 1018, 1016, 997, 993, 992, 973, 968, 963, 957, 939, 936, 915, 908, 906, 894, 884, 877, 859, 849, 819, 816, 815, 814, 812, 798, 784, 779, 776, 767, 711, 700, 673, 666, 648, 615, 613, 590, 586, 580, 533, 532, 523, 522, 516, 505, 503, 498, 490, 487, 483, 482, 461, 452, 442, 419, 393, 382, 305, 295, 293, 269, 246, 243, 235, 209, 204, 1945, 156, 148, 130, 129, 128, 118, 114, 86, 81, 74, 47, 14, 8, 4, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/PopulatedPlace>(?X) :- <http://dbpedia.org/ontology/leaderParty>(?X,?X1) .
    INSERT INTO "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28523 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28451 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28435 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28400 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28372 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28526 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28307 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28273 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28266 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28253 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28249 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28236 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28556 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28237 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28126 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28529 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28118 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28116 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28118 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27977 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27972 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27952 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27948 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27928 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27912 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27903 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27899 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27898 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27791 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27787 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27750 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27736 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27669 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27651 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27634 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27603 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27591 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27576 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27731 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27655 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27955 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28435 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27523 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27911 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28317 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27503 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27501 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27478 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27458 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27453 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27448 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27442 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27421 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27390 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27378 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27368 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27360 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27342 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27298 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27297 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27262 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27259 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27250 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27705 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27194 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27183 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28436 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27148 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27097 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27095 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27576 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27791 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27482 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28543 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28339 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27591 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27267 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27929 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27014 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27004 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26987 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27819 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26980 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26972 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26969 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26965 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26964 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26943 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27302 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26924 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27767 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27501 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27297 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27299 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26875 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26864 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27763 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27392 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27912 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27262 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26787 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27526 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27399 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27004 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26777 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26775 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27072 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26934 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26751 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27062 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26728 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26725 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27421 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26717 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27281 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28199 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26972 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26691 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26686 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27295 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 28454 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27959 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27250 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26901 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26638 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26691 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27559 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26612 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26611 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26610 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27155 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26600 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26596 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26596 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27944 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 28376 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26775 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27477 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26568 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27130 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27332 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26563 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27530 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26556 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26998 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27014 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27005 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26985 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26630 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26529 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27015 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27424 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 2 AND t0.o = 27711 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 27068 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26489 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.s, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26485 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.s AND ex.p = 2 AND ex.o = 28557);
    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 "__triples"(s, p, o) SELECT DISTINCT t0.o, 2, 28557 FROM "__triples" t0 WHERE t0.p = 26495 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t0.o AND ex.p = 2 AND ex.o = 28557);
    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 "__triples" t0 WHERE t0.p = 2 AND t0.o = 28557;
    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, "__triples" t1 WHERE t0.s = t1.s AND t1.p = 26459 AND NOT EXISTS (SELECT 1 FROM "__triples" ex WHERE ex.s = t1.o AND ex.p = 2 AND ex.o = 28557);


        -- Propagate $delta_new

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

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