        TRUNCATE TABLE "dbrdf_Building_delta_old";
        INSERT INTO "dbrdf_Building_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Building_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Building_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2075
    ---- DEPENDS ON: 2070, 2069, 1946, 1781, 1725, 1653, 1575, 1562, 1548, 1516, 1385, 1246, 1234, 1160, 1136, 1133, 1131, 970, 817, 784, 758, 571, 466, 95, 2074, 48, 29, 14, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_ArchitecturalStructure_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_ArchitecturalStructure_delta_old"(s) SELECT t0.s FROM "dbrdf_ArchitecturalStructure" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_ArchitecturalStructure_delta_old" ON "dbrdf_ArchitecturalStructure_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_ArchitecturalStructure_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/ArchitecturalStructure$delta_new>(?Y) :- <http://dbpedia.org/ontology/ArchitecturalStructure$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_ArchitecturalStructure_delta_new"(s) SELECT t1.o FROM "dbrdf_ArchitecturalStructure_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_ArchitecturalStructure" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_ArchitecturalStructure"(s) SELECT DISTINCT t0.s FROM "dbrdf_ArchitecturalStructure_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_ArchitecturalStructure_delta_old";
        INSERT INTO "dbrdf_ArchitecturalStructure_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_ArchitecturalStructure_delta_new" t0;
        TRUNCATE TABLE "dbrdf_ArchitecturalStructure_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2076
    ---- DEPENDS ON: 2007, 2029, 1836, 1760, 1617, 1598, 1556, 1545, 1505, 1497, 1466, 1456, 1413, 1408, 1371, 1363, 1358, 1351, 1345, 1306, 1260, 2075, 1211, 1209, 1206, 1205, 1139, 1132, 1128, 1117, 1106, 1092, 1074, 1065, 991, 896, 861, 844, 812, 791, 785, 761, 2073, 700, 694, 693, 660, 644, 637, 630, 567, 500, 949, 1264, 299, 222, 2054, 186, 177, 1319, 104, 85, 75, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Place_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Place_delta_old"(s) SELECT t0.s FROM "dbrdf_Place" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Place_delta_old" ON "dbrdf_Place_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Place_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Place_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Place_delta_old0"(s) SELECT t0.s FROM "dbrdf_Place0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Place_delta_old0" ON "dbrdf_Place_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Place_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/Place$delta_new>(?X) :- <http://dbpedia.org/ontology/Place$delta_old>(?X) .
        INSERT INTO "dbrdf_Place_delta_new"(s) SELECT t0.s FROM "dbrdf_Place_delta_old0" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Place" ex WHERE ex.s = t0.s);


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


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


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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Place"(s) SELECT DISTINCT t0.s FROM "dbrdf_Place_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Place_delta_old";
        INSERT INTO "dbrdf_Place_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Place_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Place_delta_new";

        INSERT INTO "dbrdf_Place0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Place_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_Place_delta_old0";
        INSERT INTO "dbrdf_Place_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Place_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Place_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2077
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_firstDriver_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_firstDriver_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_firstDriver" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_firstDriver_delta_old" ON "dbrdf_firstDriver_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_firstDriver_delta_old" ON "dbrdf_firstDriver_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_firstDriver_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/firstDriver$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/firstDriver$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_firstDriver_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_firstDriver_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_firstDriver" ex WHERE ex.s = t1.o AND ex.o = t0.o);


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2078
    ---- DEPENDS ON: 2077, 2045, 0, 1979, 1964, 1942, 1921, 1920, 1891, 1885, 1864, 1845, 1843, 1829, 1825, 1821, 1816, 1804, 1786, 1777, 1772, 2062, 1769, 1768, 1761, 1759, 1753, 1731, 1730, 1724, 1702, 1697, 1687, 1678, 1645, 1642, 1634, 1633, 1631, 1623, 1619, 1603, 1591, 1587, 1565, 1557, 1554, 1536, 1526, 1510, 1506, 1503, 1490, 1489, 1482, 1471, 1450, 1442, 1439, 1433, 1418, 1414, 1412, 1409, 1396, 1395, 1394, 1374, 1360, 1343, 1342, 1328, 1327, 1322, 1309, 1305, 1283, 1265, 1261, 1256, 1253, 1215, 1214, 1168, 1154, 1152, 1142, 1138, 1132, 1124, 1422, 1096, 1076, 1067, 1061, 1055, 1332, 1034, 1030, 1025, 1023, 1008, 1004, 987, 971, 954, 946, 944, 941, 939, 926, 908, 907, 904, 897, 894, 888, 884, 876, 865, 861, 859, 848, 847, 842, 830, 828, 827, 820, 807, 803, 802, 771, 769, 768, 766, 756, 755, 747, 1784, 735, 734, 730, 727, 717, 701, 690, 685, 678, 677, 676, 670, 658, 653, 651, 643, 642, 641, 632, 630, 592, 585, 583, 582, 570, 569, 568, 566, 563, 557, 1507, 529, 524, 521, 520, 496, 1820, 480, 473, 461, 451, 449, 430, 2000, 414, 409, 402, 397, 392, 387, 380, 373, 372, 357, 352, 351, 342, 312, 302, 294, 1879, 283, 276, 271, 262, 261, 259, 236, 235, 230, 229, 222, 217, 216, 211, 207, 206, 200, 188, 153, 151, 150, 146, 136, 128, 111, 1370, 92, 74, 1080, 65, 61, 60, 2040, 51, 2042, 28, 24, 1171
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Person_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Person_delta_old"(s) SELECT t0.s FROM "dbrdf_Person" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Person_delta_old" ON "dbrdf_Person_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Person_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Person_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Person_delta_old0"(s) SELECT t0.s FROM "dbrdf_Person1" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Person_delta_old0" ON "dbrdf_Person_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Person_delta_new0"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Person_delta_old1"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Person_delta_old1"(s) SELECT t0.s FROM "dbrdf_Person0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Person_delta_old1" ON "dbrdf_Person_delta_old1"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Person_delta_new1"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://xmlns.com/foaf/0.1/Person$delta_new>(?X) :- <http://dbpedia.org/ontology/Person$delta_old>(?X) .
        INSERT INTO "dbrdf_Person_delta_new"(s) SELECT t0.s FROM "dbrdf_Person_delta_old1" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Person" ex WHERE ex.s = t0.s);


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


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


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


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


        -- <http://dbpedia.org/ontology/Person$delta_new>(?X) :- <http://xmlns.com/foaf/0.1/Person$delta_old>(?X) .
        INSERT INTO "dbrdf_Person_delta_new1"(s) SELECT t0.s FROM "dbrdf_Person_delta_old" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Person0" ex WHERE ex.s = t0.s);


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


        -- Propagate $delta_new

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

        INSERT INTO "dbrdf_Person1"(s) SELECT DISTINCT t0.s FROM "dbrdf_Person_delta_new0" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Person_delta_old0";
        INSERT INTO "dbrdf_Person_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Person_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Person_delta_new0";

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2079
    ---- DEPENDS ON: 2078, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_PersonR_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_PersonR_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_PersonR" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_PersonR_delta_old" ON "dbrdf_PersonR_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_PersonR_delta_old" ON "dbrdf_PersonR_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_PersonR_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/PersonR$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/PersonR$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_PersonR_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_PersonR_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_PersonR" ex WHERE ex.s = t1.o AND ex.o = t0.o);


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2080
    ---- DEPENDS ON: 2079, 2022, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/CoStars>(?X0,?X3) :- <http://dbpedia.org/ontology/PersonR>(?X0,?X1), <http://dbpedia.org/ontology/CoStarring>(?X1,?X2), <http://dbpedia.org/ontology/PersonR>(?X2,?X3) .
    INSERT INTO "dbrdf_CoStars"(s, o) SELECT DISTINCT t0.s, t2.o FROM "dbrdf_PersonR" t0, "dbrdf_CoStarring" t1, "dbrdf_PersonR" t2 WHERE t0.o = t1.s AND t1.o = t2.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_CoStars" ex WHERE ex.s = t0.s AND ex.o = t2.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_CoStars_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_CoStars_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_CoStars" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_CoStars_delta_old" ON "dbrdf_CoStars_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_CoStars_delta_old" ON "dbrdf_CoStars_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_CoStars_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/CoStars$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/CoStars$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_CoStars_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_CoStars_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_CoStars" ex WHERE ex.s = t1.o AND ex.o = t0.o);


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2081
    ---- DEPENDS ON: 1309, 1956, 2079, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/musicWorkHasProducer>(?X0,?X3) :- <http://dbpedia.org/ontology/MusicalWorkR>(?X0,?X1), <http://dbpedia.org/ontology/producer>(?X1,?X2), <http://dbpedia.org/ontology/PersonR>(?X2,?X3) .
    INSERT INTO "dbrdf_musicWorkHasProducer"(s, o) SELECT DISTINCT t0.s, t2.o FROM "dbrdf_MusicalWorkR" t0, "dbrdf_producer" t1, "dbrdf_PersonR" t2 WHERE t0.o = t1.s AND t1.o = t2.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_musicWorkHasProducer" ex WHERE ex.s = t0.s AND ex.o = t2.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_musicWorkHasProducer_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_musicWorkHasProducer_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_musicWorkHasProducer" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_musicWorkHasProducer_delta_old" ON "dbrdf_musicWorkHasProducer_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_musicWorkHasProducer_delta_old" ON "dbrdf_musicWorkHasProducer_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_musicWorkHasProducer_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/musicWorkHasProducer$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/musicWorkHasProducer$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_musicWorkHasProducer_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_musicWorkHasProducer_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_musicWorkHasProducer" ex WHERE ex.s = t1.o AND ex.o = t0.o);


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2082
    ---- DEPENDS ON: 2081, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/SimilarMusicalWork>(?X0,?X2) :- <http://dbpedia.org/ontology/musicWorkHasProducer>(?X0,?X1), <http://dbpedia.org/ontology/musicWorkHasProducer>(?X2,?X1) .
    INSERT INTO "dbrdf_SimilarMusicalWork"(s, o) SELECT DISTINCT t0.s, t1.s FROM "dbrdf_musicWorkHasProducer" t0, "dbrdf_musicWorkHasProducer" t1 WHERE t0.o = t1.o AND NOT EXISTS (SELECT 1 FROM "dbrdf_SimilarMusicalWork" ex WHERE ex.s = t0.s AND ex.o = t1.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_SimilarMusicalWork_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SimilarMusicalWork_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_SimilarMusicalWork" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SimilarMusicalWork_delta_old" ON "dbrdf_SimilarMusicalWork_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_SimilarMusicalWork_delta_old" ON "dbrdf_SimilarMusicalWork_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SimilarMusicalWork_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/SimilarMusicalWork$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/SimilarMusicalWork$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_SimilarMusicalWork_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_SimilarMusicalWork_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_SimilarMusicalWork" ex WHERE ex.s = t1.o AND ex.o = t0.o);


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2083
    ---- DEPENDS ON: 1744, 2082, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/similarArtists>(?X0,?X3) :- <http://dbpedia.org/ontology/artist>(?X1,?X0), <http://dbpedia.org/ontology/SimilarMusicalWork>(?X1,?X2), <http://dbpedia.org/ontology/artist>(?X2,?X3) .
    INSERT INTO "dbrdf_similarArtists"(s, o) SELECT DISTINCT t0.o, t2.o FROM "dbrdf_artist" t0, "dbrdf_SimilarMusicalWork" t1, "dbrdf_artist" t2 WHERE t0.s = t1.s AND t1.o = t2.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_similarArtists" ex WHERE ex.s = t0.o AND ex.o = t2.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_similarArtists_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_similarArtists_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_similarArtists" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_similarArtists_delta_old" ON "dbrdf_similarArtists_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_similarArtists_delta_old" ON "dbrdf_similarArtists_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_similarArtists_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/similarArtists$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/similarArtists$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_similarArtists_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_similarArtists_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_similarArtists" ex WHERE ex.s = t1.o AND ex.o = t0.o);


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2084
    ---- DEPENDS ON: 2002, 2083, 2003, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/SimilarMusicGroups>(?X0,?X3) :- <http://schema.org/MusicGroupR>(?X0,?X1), <http://dbpedia.org/ontology/similarArtists>(?X1,?X2), <http://schema.org/MusicGroupR>(?X2,?X3) .
    INSERT INTO "dbrdf_SimilarMusicGroups"(s, o) SELECT DISTINCT t0.s, t2.o FROM "dbrdf_MusicGroupR" t0, "dbrdf_similarArtists" t1, "dbrdf_MusicGroupR" t2 WHERE t0.o = t1.s AND t1.o = t2.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_SimilarMusicGroups" ex WHERE ex.s = t0.s AND ex.o = t2.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/SimilarMusicGroups>(?X0,?X2) :- <http://dbpedia.org/ontology/musicGroupHasGenre>(?X0,?X1), <http://dbpedia.org/ontology/musicGroupHasGenre>(?X2,?X1) .
    INSERT INTO "dbrdf_SimilarMusicGroups"(s, o) SELECT DISTINCT t0.s, t1.s FROM "dbrdf_musicGroupHasGenre" t0, "dbrdf_musicGroupHasGenre" t1 WHERE t0.o = t1.o AND NOT EXISTS (SELECT 1 FROM "dbrdf_SimilarMusicGroups" ex WHERE ex.s = t0.s AND ex.o = t1.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_SimilarMusicGroups_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SimilarMusicGroups_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_SimilarMusicGroups" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SimilarMusicGroups_delta_old" ON "dbrdf_SimilarMusicGroups_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_SimilarMusicGroups_delta_old" ON "dbrdf_SimilarMusicGroups_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SimilarMusicGroups_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/SimilarMusicGroups$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/SimilarMusicGroups$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_SimilarMusicGroups_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_SimilarMusicGroups_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_SimilarMusicGroups" ex WHERE ex.s = t1.o AND ex.o = t0.o);


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2085
    ---- DEPENDS ON: 2084, 1744, 1743, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- [Rule] <http://dbpedia.org/ontology/SimilarMusicArtists>(?X0,?X3) :- <http://dbpedia.org/ontology/artist>(?X1,?X0), <http://dbpedia.org/ontology/SimilarAlbums>(?X1,?X2), <http://dbpedia.org/ontology/artist>(?X2,?X3) .
    INSERT INTO "dbrdf_SimilarMusicArtists"(s, o) SELECT DISTINCT t0.o, t2.o FROM "dbrdf_artist" t0, "dbrdf_SimilarAlbums" t1, "dbrdf_artist" t2 WHERE t0.s = t1.s AND t1.o = t2.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_SimilarMusicArtists" ex WHERE ex.s = t0.o AND ex.o = t2.o);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_SimilarMusicArtists_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SimilarMusicArtists_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_SimilarMusicArtists" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SimilarMusicArtists_delta_old" ON "dbrdf_SimilarMusicArtists_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_SimilarMusicArtists_delta_old" ON "dbrdf_SimilarMusicArtists_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SimilarMusicArtists_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/SimilarMusicArtists$delta_new>(?Y,?X1) :- <http://dbpedia.org/ontology/SimilarMusicArtists$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_SimilarMusicArtists_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_SimilarMusicArtists_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_SimilarMusicArtists" ex WHERE ex.s = t1.o AND ex.o = t0.o);


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2086
    ---- DEPENDS ON: 2078, 964, 2057, 662, 109, 80, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Agent_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Agent_delta_old"(s) SELECT t0.s FROM "dbrdf_Agent" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Agent_delta_old" ON "dbrdf_Agent_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Agent_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2087
    ---- DEPENDS ON: 2077, 1825, 1727, 1716, 1693, 1670, 1662, 1538, 1522, 1462, 1424, 1253, 1060, 983, 872, 690, 430, 410, 309, 287, 254, 120, 35, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_GrandPrix_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_GrandPrix_delta_old"(s) SELECT t0.s FROM "dbrdf_GrandPrix" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_GrandPrix_delta_old" ON "dbrdf_GrandPrix_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_GrandPrix_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/GrandPrix$delta_new>(?Y) :- <http://dbpedia.org/ontology/GrandPrix$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_GrandPrix_delta_new"(s) SELECT t1.o FROM "dbrdf_GrandPrix_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_GrandPrix" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_GrandPrix"(s) SELECT DISTINCT t0.s FROM "dbrdf_GrandPrix_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_GrandPrix_delta_old";
        INSERT INTO "dbrdf_GrandPrix_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_GrandPrix_delta_new" t0;
        TRUNCATE TABLE "dbrdf_GrandPrix_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2088
    ---- DEPENDS ON: 1979, 1923, 1761, 1741, 1599, 820, 566, 474, 242, 194, 1774, 2087, 1604, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsEvent_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SportsEvent_delta_old"(s) SELECT t0.s FROM "dbrdf_SportsEvent" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SportsEvent_delta_old" ON "dbrdf_SportsEvent_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsEvent_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsEvent_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SportsEvent_delta_old0"(s) SELECT t0.s FROM "dbrdf_SportsEvent0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SportsEvent_delta_old0" ON "dbrdf_SportsEvent_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsEvent_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


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


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


        -- Propagate $delta_new

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

        INSERT INTO "dbrdf_SportsEvent0"(s) SELECT DISTINCT t0.s FROM "dbrdf_SportsEvent_delta_new0" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SportsEvent_delta_old0";
        INSERT INTO "dbrdf_SportsEvent_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_SportsEvent_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_SportsEvent_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2089
    ---- DEPENDS ON: 1980, 1970, 1961, 1894, 1549, 1951, 1392, 1300, 883, 775, 2026, 688, 353, 347, 2088, 323, 298, 932, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Event_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Event_delta_old"(s) SELECT t0.s FROM "dbrdf_Event" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Event_delta_old" ON "dbrdf_Event_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Event_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Event_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Event_delta_old0"(s) SELECT t0.s FROM "dbrdf_Event0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Event_delta_old0" ON "dbrdf_Event_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Event_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


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


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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Event"(s) SELECT DISTINCT t0.s FROM "dbrdf_Event_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Event_delta_old";
        INSERT INTO "dbrdf_Event_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Event_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Event_delta_new";

        INSERT INTO "dbrdf_Event0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Event_delta_new0" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Event_delta_old0";
        INSERT INTO "dbrdf_Event_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Event_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Event_delta_new0";

    END LOOP;

    -- END Recursive rules

    RETURN total_tuples;
END;
$$ LANGUAGE plpgsql;

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