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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Country_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Country_delta_old"(s) SELECT t0.s FROM "dbrdf_Country" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Country_delta_old" ON "dbrdf_Country_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Country_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Country_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Country_delta_old0"(s) SELECT t0.s FROM "dbrdf_Country0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Country_delta_old0" ON "dbrdf_Country_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Country_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


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


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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Country"(s) SELECT DISTINCT t0.s FROM "dbrdf_Country_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Country_delta_old";
        INSERT INTO "dbrdf_Country_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Country_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Country_delta_new";

        INSERT INTO "dbrdf_Country0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Country_delta_new0" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Country_delta_old0";
        INSERT INTO "dbrdf_Country_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Country_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Country_delta_new0";

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Company>(?X) :- <http://dbpedia.org/ontology/internationally>(?X,?X1) .
    INSERT INTO "dbrdf_Company"(s) SELECT DISTINCT t0.s FROM "dbrdf_internationally" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Company" 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_Company_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Company_delta_old"(s) SELECT t0.s FROM "dbrdf_Company" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Company_delta_old" ON "dbrdf_Company_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Company_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Company"(s) SELECT DISTINCT t0.s FROM "dbrdf_Company_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Company_delta_old";
        INSERT INTO "dbrdf_Company_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Company_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Company_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Nonrecursive rules

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

    -- [Rule] <http://dbpedia.org/ontology/Skyscraper>(?X) :- <http://dbpedia.org/ontology/highestBuildingInYear>(?X,?X1) .
    INSERT INTO "dbrdf_Skyscraper"(s) SELECT DISTINCT t0.s FROM "dbrdf_highestBuildingInYear" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Skyscraper" 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_Skyscraper_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Skyscraper_delta_old"(s) SELECT t0.s FROM "dbrdf_Skyscraper" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Skyscraper_delta_old" ON "dbrdf_Skyscraper_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Skyscraper_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Skyscraper"(s) SELECT DISTINCT t0.s FROM "dbrdf_Skyscraper_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Skyscraper_delta_old";
        INSERT INTO "dbrdf_Skyscraper_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Skyscraper_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Skyscraper_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_MouseGeneLocation_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MouseGeneLocation_delta_old"(s) SELECT t0.s FROM "dbrdf_MouseGeneLocation" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MouseGeneLocation_delta_old" ON "dbrdf_MouseGeneLocation_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MouseGeneLocation_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_MouseGeneLocation"(s) SELECT DISTINCT t0.s FROM "dbrdf_MouseGeneLocation_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_MouseGeneLocation_delta_old";
        INSERT INTO "dbrdf_MouseGeneLocation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_MouseGeneLocation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_MouseGeneLocation_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Nonrecursive rules

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/GeneLocation>(?X) :- <http://dbpedia.org/ontology/geneLocationEnd>(?X,?X1) .
    INSERT INTO "dbrdf_GeneLocation"(s) SELECT DISTINCT t0.s FROM "dbrdf_geneLocationEnd" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_GeneLocation" 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_GeneLocation_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_GeneLocation_delta_old"(s) SELECT t0.s FROM "dbrdf_GeneLocation" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_GeneLocation_delta_old" ON "dbrdf_GeneLocation_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_GeneLocation_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_GeneLocation"(s) SELECT DISTINCT t0.s FROM "dbrdf_GeneLocation_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_GeneLocation_delta_old";
        INSERT INTO "dbrdf_GeneLocation_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_GeneLocation_delta_new" t0;
        TRUNCATE TABLE "dbrdf_GeneLocation_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Church_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Church_delta_old"(s) SELECT t0.s FROM "dbrdf_Church" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Church_delta_old" ON "dbrdf_Church_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Church_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Church"(s) SELECT DISTINCT t0.s FROM "dbrdf_Church_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Church_delta_old";
        INSERT INTO "dbrdf_Church_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Church_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Church_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/ReligiousBuilding>(?X) :- <http://dbpedia.org/ontology/Church>(?X) .
    INSERT INTO "dbrdf_ReligiousBuilding"(s) SELECT t0.s FROM "dbrdf_Church" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_ReligiousBuilding" 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_ReligiousBuilding_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_ReligiousBuilding_delta_old"(s) SELECT t0.s FROM "dbrdf_ReligiousBuilding" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_ReligiousBuilding_delta_old" ON "dbrdf_ReligiousBuilding_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_ReligiousBuilding_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_ReligiousBuilding"(s) SELECT DISTINCT t0.s FROM "dbrdf_ReligiousBuilding_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_ReligiousBuilding_delta_old";
        INSERT INTO "dbrdf_ReligiousBuilding_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_ReligiousBuilding_delta_new" t0;
        TRUNCATE TABLE "dbrdf_ReligiousBuilding_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/WrittenWork>(?X) :- <http://dbpedia.org/ontology/literaryGenre>(?X,?X1) .
    INSERT INTO "dbrdf_WrittenWork"(s) SELECT DISTINCT t0.s FROM "dbrdf_literaryGenre" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_WrittenWork" 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_WrittenWork_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_WrittenWork_delta_old"(s) SELECT t0.s FROM "dbrdf_WrittenWork" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_WrittenWork_delta_old" ON "dbrdf_WrittenWork_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_WrittenWork_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_WrittenWork"(s) SELECT DISTINCT t0.s FROM "dbrdf_WrittenWork_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_WrittenWork_delta_old";
        INSERT INTO "dbrdf_WrittenWork_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_WrittenWork_delta_new" t0;
        TRUNCATE TABLE "dbrdf_WrittenWork_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_aircraftHelicopterTransport_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_aircraftHelicopterTransport_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_aircraftHelicopterTransport" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_aircraftHelicopterTransport_delta_old" ON "dbrdf_aircraftHelicopterTransport_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_aircraftHelicopterTransport_delta_old" ON "dbrdf_aircraftHelicopterTransport_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_aircraftHelicopterTransport_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_MilitaryUnit_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MilitaryUnit_delta_old"(s) SELECT t0.s FROM "dbrdf_MilitaryUnit" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MilitaryUnit_delta_old" ON "dbrdf_MilitaryUnit_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MilitaryUnit_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2023
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_canBaggageChecked_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_canBaggageChecked_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_canBaggageChecked" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_canBaggageChecked_delta_old" ON "dbrdf_canBaggageChecked_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_canBaggageChecked_delta_old" ON "dbrdf_canBaggageChecked_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_canBaggageChecked_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2024
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_grossDomesticProduct_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_grossDomesticProduct_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_grossDomesticProduct" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_grossDomesticProduct_delta_old" ON "dbrdf_grossDomesticProduct_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_grossDomesticProduct_delta_old" ON "dbrdf_grossDomesticProduct_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_grossDomesticProduct_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_espnId_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_espnId_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_espnId" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_espnId_delta_old" ON "dbrdf_espnId_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_espnId_delta_old" ON "dbrdf_espnId_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_espnId_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Galaxy>(?X) :- <http://dbpedia.org/ontology/Galaxy/meanTemperature>(?X,?X1) .
    INSERT INTO "dbrdf_Galaxy"(s) SELECT DISTINCT t0.s FROM "dbrdf_meanTemperature" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Galaxy" 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_Galaxy_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Galaxy_delta_old"(s) SELECT t0.s FROM "dbrdf_Galaxy" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Galaxy_delta_old" ON "dbrdf_Galaxy_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Galaxy_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Galaxy"(s) SELECT DISTINCT t0.s FROM "dbrdf_Galaxy_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Galaxy_delta_old";
        INSERT INTO "dbrdf_Galaxy_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Galaxy_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Galaxy_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Nonrecursive rules

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

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

    -- [Rule] <http://dbpedia.org/ontology/CelestialBody>(?X) :- <http://dbpedia.org/ontology/Galaxy>(?X) .
    INSERT INTO "dbrdf_CelestialBody"(s) SELECT t0.s FROM "dbrdf_Galaxy" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_CelestialBody" 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_CelestialBody_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_CelestialBody_delta_old"(s) SELECT t0.s FROM "dbrdf_CelestialBody" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_CelestialBody_delta_old" ON "dbrdf_CelestialBody_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_CelestialBody_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_CelestialBody"(s) SELECT DISTINCT t0.s FROM "dbrdf_CelestialBody_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_CelestialBody_delta_old";
        INSERT INTO "dbrdf_CelestialBody_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_CelestialBody_delta_new" t0;
        TRUNCATE TABLE "dbrdf_CelestialBody_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_geologicPeriod_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_geologicPeriod_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_geologicPeriod" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_geologicPeriod_delta_old" ON "dbrdf_geologicPeriod_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_geologicPeriod_delta_old" ON "dbrdf_geologicPeriod_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_geologicPeriod_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_gameEngine_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_gameEngine_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_gameEngine" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_gameEngine_delta_old" ON "dbrdf_gameEngine_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_gameEngine_delta_old" ON "dbrdf_gameEngine_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_gameEngine_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Nonrecursive rules

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

    -- [Rule] <http://dbpedia.org/ontology/VideoGame>(?X) :- <http://dbpedia.org/ontology/gameArtist>(?X,?X1) .
    INSERT INTO "dbrdf_VideoGame"(s) SELECT DISTINCT t0.s FROM "dbrdf_gameArtist" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_VideoGame" 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_VideoGame_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_VideoGame_delta_old"(s) SELECT t0.s FROM "dbrdf_VideoGame" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_VideoGame_delta_old" ON "dbrdf_VideoGame_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_VideoGame_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_VideoGame"(s) SELECT DISTINCT t0.s FROM "dbrdf_VideoGame_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_VideoGame_delta_old";
        INSERT INTO "dbrdf_VideoGame_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_VideoGame_delta_new" t0;
        TRUNCATE TABLE "dbrdf_VideoGame_delta_new";

    END LOOP;

    -- END Recursive rules

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

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Software_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Software_delta_old"(s) SELECT t0.s FROM "dbrdf_Software" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Software_delta_old" ON "dbrdf_Software_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Software_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2033
    ---- DEPENDS ON: 1906, 2032, 1752, 1731, 2004, 1974, 1585, 1575, 1153, 1112, 1878, 992, 985, 890, 796, 762, 603, 596, 594, 1941, 1748, 1929, 291, 258, 194, 169, 159, 157, 89, 2020, 32, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_CreativeWork_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_CreativeWork_delta_old"(s) SELECT t0.s FROM "dbrdf_CreativeWork" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_CreativeWork_delta_old" ON "dbrdf_CreativeWork_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_CreativeWork_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Work_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Work_delta_old"(s) SELECT t0.s FROM "dbrdf_Work" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Work_delta_old" ON "dbrdf_Work_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Work_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


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


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


        -- Propagate $delta_new

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

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2034
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_notInValueSpace_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_notInValueSpace_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_notInValueSpace" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_notInValueSpace_delta_old" ON "dbrdf_notInValueSpace_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_notInValueSpace_delta_old" ON "dbrdf_notInValueSpace_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_notInValueSpace_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://www.w3.org/2003/11/swrlb#notInValueSpace$delta_new>(?Y,?X1) :- <http://www.w3.org/2003/11/swrlb#notInValueSpace$delta_old>(?X0,?X1), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_notInValueSpace_delta_new"(s, o) SELECT t1.o, t0.o FROM "dbrdf_notInValueSpace_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_notInValueSpace" ex WHERE ex.s = t1.o AND ex.o = t0.o);


        -- <http://www.w3.org/2003/11/swrlb#notInValueSpace$delta_new>(?X0,?Y) :- <http://www.w3.org/2003/11/swrlb#notInValueSpace$delta_old>(?X0,?X1), owl:sameAs(?X1,?Y) .
        INSERT INTO "dbrdf_notInValueSpace_delta_new"(s, o) SELECT t0.s, t1.o FROM "dbrdf_notInValueSpace_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.o = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_notInValueSpace" ex WHERE ex.s = t0.s AND ex.o = t1.o);


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2035
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_scottishName_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_scottishName_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_scottishName" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_scottishName_delta_old" ON "dbrdf_scottishName_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_scottishName_delta_old" ON "dbrdf_scottishName_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_scottishName_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Settlement_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Settlement_delta_old"(s) SELECT t0.s FROM "dbrdf_Settlement" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Settlement_delta_old" ON "dbrdf_Settlement_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Settlement_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2037
    ---- DEPENDS ON: 2024, 2005, 1942, 1927, 1926, 1891, 1868, 1864, 2007, 1834, 1817, 1807, 1774, 1767, 1755, 1750, 1739, 1738, 1704, 2036, 1631, 2010, 1622, 1621, 1487, 1482, 1469, 1465, 1461, 1457, 1455, 1439, 1438, 1423, 1421, 1413, 1409, 1408, 1329, 1301, 1298, 1278, 1275, 1263, 1249, 1244, 1224, 1219, 1183, 1169, 1165, 1148, 1117, 1104, 1091, 1074, 1045, 1041, 1038, 1018, 1016, 997, 993, 992, 973, 969, 963, 957, 939, 936, 914, 908, 906, 894, 884, 877, 859, 849, 819, 816, 815, 813, 812, 798, 784, 779, 776, 768, 711, 700, 673, 666, 648, 615, 612, 590, 586, 580, 533, 532, 523, 522, 516, 505, 503, 498, 490, 487, 483, 482, 461, 452, 442, 419, 393, 382, 305, 295, 293, 268, 246, 243, 235, 209, 204, 1948, 156, 148, 130, 129, 128, 118, 114, 86, 81, 74, 47, 14, 8, 4, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_PopulatedPlace_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_PopulatedPlace_delta_old"(s) SELECT t0.s FROM "dbrdf_PopulatedPlace" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_PopulatedPlace_delta_old" ON "dbrdf_PopulatedPlace_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_PopulatedPlace_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_comparable_delta_old"(s integer, o integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_comparable_delta_old"(s, o) SELECT t0.s, t0.o FROM "dbrdf_comparable" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_comparable_delta_old" ON "dbrdf_comparable_delta_old"(s, o); CREATE INDEX "IDX_1_dbrdf_comparable_delta_old" ON "dbrdf_comparable_delta_old"(o);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_comparable_delta_new"(s integer, o integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2039
    ---- DEPENDS ON: 2038, 1578, 1518, 1473, 1440, 1184, 1162, 1075, 983, 809, 803, 681, 662, 337, 155, 141, 40, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- [Rule] <http://dbpedia.org/ontology/Rocket>(?X) :- <http://dbpedia.org/ontology/maidenFlight>(?X,?X1) .
    INSERT INTO "dbrdf_Rocket"(s) SELECT DISTINCT t0.s FROM "dbrdf_maidenFlight" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Rocket" 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_Rocket_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Rocket_delta_old"(s) SELECT t0.s FROM "dbrdf_Rocket" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Rocket_delta_old" ON "dbrdf_Rocket_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Rocket_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/Rocket$delta_new>(?Y) :- <http://dbpedia.org/ontology/Rocket$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Rocket_delta_new"(s) SELECT t1.o FROM "dbrdf_Rocket_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Rocket" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Rocket"(s) SELECT DISTINCT t0.s FROM "dbrdf_Rocket_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Rocket_delta_old";
        INSERT INTO "dbrdf_Rocket_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Rocket_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Rocket_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2040
    ---- DEPENDS ON: 2021, 1959, 1992, 1950, 1874, 1558, 1550, 1543, 1486, 1456, 1448, 1972, 1436, 1378, 1234, 1180, 1098, 1089, 1065, 1961, 1029, 1010, 1596, 960, 2039, 878, 856, 851, 760, 1758, 692, 643, 1709, 573, 515, 512, 422, 394, 331, 1782, 195, 102, 99, 90, 44, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_MeanOfTransportation_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_MeanOfTransportation_delta_old"(s) SELECT t0.s FROM "dbrdf_MeanOfTransportation" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_MeanOfTransportation_delta_old" ON "dbrdf_MeanOfTransportation_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_MeanOfTransportation_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2042
    ---- DEPENDS ON: 2041, 2023, 1810, 1809, 1722, 1657, 1496, 1353, 923, 853, 644, 244, 211, 9, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Station_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Station_delta_old"(s) SELECT t0.s FROM "dbrdf_Station" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Station_delta_old" ON "dbrdf_Station_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Station_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Station"(s) SELECT DISTINCT t0.s FROM "dbrdf_Station_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Station_delta_old";
        INSERT INTO "dbrdf_Station_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Station_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Station_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2043
    ---- DEPENDS ON: 1910, 1569, 1538, 1159, 1149, 1143, 1584, 1998, 688, 2002, 2042, 234, 216, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Infrastructure_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Infrastructure_delta_old"(s) SELECT t0.s FROM "dbrdf_Infrastructure" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Infrastructure_delta_old" ON "dbrdf_Infrastructure_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Infrastructure_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Infrastructure"(s) SELECT DISTINCT t0.s FROM "dbrdf_Infrastructure_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Infrastructure_delta_old";
        INSERT INTO "dbrdf_Infrastructure_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Infrastructure_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Infrastructure_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2044
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2045
    ---- DEPENDS ON: 2044, 1956, 1831, 1780, 1572, 1406, 1391, 1241, 1139, 1005, 989, 785, 703, 599, 327, 197, 181, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_SoccerClub_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SoccerClub_delta_old"(s) SELECT t0.s FROM "dbrdf_SoccerClub" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SoccerClub_delta_old" ON "dbrdf_SoccerClub_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SoccerClub_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2046
    ---- DEPENDS ON: 1937, 1892, 1854, 1849, 1784, 1729, 1647, 1571, 1355, 1684, 1264, 1242, 1195, 1185, 1174, 2045, 964, 932, 930, 874, 589, 564, 460, 390, 356, 280, 165, 83, 34, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsTeam_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SportsTeam_delta_old"(s) SELECT t0.s FROM "dbrdf_SportsTeam" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SportsTeam_delta_old" ON "dbrdf_SportsTeam_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsTeam_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsTeam_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SportsTeam_delta_old0"(s) SELECT t0.s FROM "dbrdf_SportsTeam0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SportsTeam_delta_old0" ON "dbrdf_SportsTeam_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SportsTeam_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


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


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


        -- Propagate $delta_new

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

        INSERT INTO "dbrdf_SportsTeam0"(s) SELECT DISTINCT t0.s FROM "dbrdf_SportsTeam_delta_new0" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_SportsTeam_delta_old0";
        INSERT INTO "dbrdf_SportsTeam_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_SportsTeam_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_SportsTeam_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2047
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2048
    ---- DEPENDS ON: 2047, 1700, 1665, 1602, 1478, 1262, 1240, 1092, 1060, 998, 970, 943, 907, 782, 771, 642, 457, 432, 386, 330, 177, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Mountain_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Mountain_delta_old"(s) SELECT t0.s FROM "dbrdf_Mountain" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Mountain_delta_old" ON "dbrdf_Mountain_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Mountain_delta_new"(s integer) ON COMMIT DROP;
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Mountain_delta_old0"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Mountain_delta_old0"(s) SELECT t0.s FROM "dbrdf_Mountain0" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Mountain_delta_old0" ON "dbrdf_Mountain_delta_old0"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Mountain_delta_new0"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


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


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


        -- Propagate $delta_new

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

        INSERT INTO "dbrdf_Mountain0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Mountain_delta_new0" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Mountain_delta_old0";
        INSERT INTO "dbrdf_Mountain_delta_old0"(s) SELECT DISTINCT t0.s FROM "dbrdf_Mountain_delta_new0" t0;
        TRUNCATE TABLE "dbrdf_Mountain_delta_new0";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2049
    ---- DEPENDS ON: 1634, 1955, 1580, 1701, 658, 2048, 245, 1297, 151, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_NaturalPlace_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_NaturalPlace_delta_old"(s) SELECT t0.s FROM "dbrdf_NaturalPlace" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_NaturalPlace_delta_old" ON "dbrdf_NaturalPlace_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_NaturalPlace_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2050
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2051
    ---- DEPENDS ON: 2050, 1007, 1943, 774, 208, 53, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Cleric_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Cleric_delta_old"(s) SELECT t0.s FROM "dbrdf_Cleric" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Cleric_delta_old" ON "dbrdf_Cleric_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Cleric_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2053
    ---- DEPENDS ON: 2052, 1462, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_BroadcastNetwork_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_BroadcastNetwork_delta_old"(s) SELECT t0.s FROM "dbrdf_BroadcastNetwork" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_BroadcastNetwork_delta_old" ON "dbrdf_BroadcastNetwork_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_BroadcastNetwork_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2054
    ---- DEPENDS ON: 2052, 1917, 2053, 1840, 1833, 1663, 1655, 1513, 1503, 1492, 1462, 1424, 1225, 1214, 1206, 1135, 1109, 1102, 1094, 1049, 995, 880, 1844, 686, 683, 606, 503, 481, 308, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Broadcaster_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Broadcaster_delta_old"(s) SELECT t0.s FROM "dbrdf_Broadcaster" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Broadcaster_delta_old" ON "dbrdf_Broadcaster_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Broadcaster_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2055
    ---- DEPENDS ON: 1888, 2046, 1717, 1605, 1588, 1863, 1569, 1540, 1793, 1476, 1459, 2054, 1418, 1976, 1354, 1346, 1337, 1328, 1315, 1258, 1215, 2022, 1175, 997, 975, 948, 934, 1253, 901, 1996, 830, 797, 1985, 2012, 675, 654, 619, 584, 575, 556, 548, 530, 480, 412, 407, 365, 361, 357, 346, 345, 316, 309, 307, 85, 37, 25, 15, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


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


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


        -- Propagate $delta_new

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

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2056
    ---- DEPENDS ON: 0
    ----------------------------------------

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

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

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2057
    ---- DEPENDS ON: 2056, 0
    ----------------------------------------

    -- Nonrecursive rules

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_SnookerChamp_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SnookerChamp_delta_old"(s) SELECT t0.s FROM "dbrdf_SnookerChamp" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SnookerChamp_delta_old" ON "dbrdf_SnookerChamp_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SnookerChamp_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2058
    ---- DEPENDS ON: 2057, 1733, 1695, 1601, 1419, 1410, 1290, 604, 163, 0
    ----------------------------------------

    -- Nonrecursive rules

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

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

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

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

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

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

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

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

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

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_SnookerPlayer_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_SnookerPlayer_delta_old"(s) SELECT t0.s FROM "dbrdf_SnookerPlayer" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_SnookerPlayer_delta_old" ON "dbrdf_SnookerPlayer_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_SnookerPlayer_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

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


        -- Propagate $delta_new

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

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2059
    ---- DEPENDS ON: 2025, 1892, 1849, 1800, 1729, 1706, 1647, 1577, 1571, 1549, 1715, 1274, 1574, 1006, 945, 821, 1847, 758, 730, 1855, 466, 413, 2058, 1494, 390, 384, 374, 1118, 1186, 1983, 1680, 1367, 271, 196, 97, 1859, 60, 0
    ----------------------------------------

    -- Nonrecursive rules

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/espnId>(?X,?X1) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT DISTINCT t0.s FROM "dbrdf_espnId" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/club>(?X,?X1) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT DISTINCT t0.s FROM "dbrdf_club" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/FigureSkater>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_FigureSkater" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/youthClub>(?X,?X1) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT DISTINCT t0.s FROM "dbrdf_youthClub" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/sportSpecialty>(?X,?X1) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT DISTINCT t0.s FROM "dbrdf_sportSpecialty" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/formerTeam>(?X,?X1) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT DISTINCT t0.s FROM "dbrdf_formerTeam" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/NationalCollegiateAthleticAssociationAthlete>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_NationalCollegiateAthleticAssociationAthlete" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/nationalTeam>(?X,?X1) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT DISTINCT t0.s FROM "dbrdf_nationalTeam" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/trainer>(?X,?X1) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT DISTINCT t0.s FROM "dbrdf_trainer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/IceHockeyPlayer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_IceHockeyPlayer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/sportCountry>(?X,?X1) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT DISTINCT t0.s FROM "dbrdf_sportCountry" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/FormulaOneRacer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_FormulaOneRacer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/GaelicGamesPlayer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_GaelicGamesPlayer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/sportDiscipline>(?X,?X1) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT DISTINCT t0.s FROM "dbrdf_sportDiscipline" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/NascarDriver>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_NascarDriver" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/VolleyballPlayer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_VolleyballPlayer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/draftTeam>(?X,?X1) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT DISTINCT t0.s FROM "dbrdf_draftTeam" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/Boxer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_Boxer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/MartialArtist>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_MartialArtist" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/SoccerPlayer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_SoccerPlayer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/RugbyPlayer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_RugbyPlayer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/SnookerPlayer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_SnookerPlayer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/BaseballPlayer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_BaseballPlayer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/debutTeam>(?X,?X1) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT DISTINCT t0.s FROM "dbrdf_debutTeam" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/BadmintonPlayer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_BadmintonPlayer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/Cyclist>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_Cyclist" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/Wrestler>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_Wrestler" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/TeamMember>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_TeamMember" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/GolfPlayer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_GolfPlayer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/GridironFootballPlayer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_GridironFootballPlayer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/supplementalDraftRound>(?X,?X1) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT DISTINCT t0.s FROM "dbrdf_supplementalDraftRound" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/TennisPlayer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_TennisPlayer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/BullFighter>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_BullFighter" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/BasketballPlayer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_BasketballPlayer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/Swimmer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_Swimmer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/Cricketer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_Cricketer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- [Rule] <http://dbpedia.org/ontology/Athlete>(?X) :- <http://dbpedia.org/ontology/AustralianRulesFootballPlayer>(?X) .
    INSERT INTO "dbrdf_Athlete"(s) SELECT t0.s FROM "dbrdf_AustralianRulesFootballPlayer" t0 WHERE NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t0.s);
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    total_tuples := total_tuples + rows_nr;

    -- Prepare temporary tables for recursive rules

    delta_old_size := 0;

    CREATE LOCAL TEMPORARY TABLE "dbrdf_Athlete_delta_old"(s integer) ON COMMIT DROP;
    INSERT INTO "dbrdf_Athlete_delta_old"(s) SELECT t0.s FROM "dbrdf_Athlete" t0;
    GET DIAGNOSTICS rows_nr = ROW_COUNT;
    delta_old_size := delta_old_size + rows_nr;
    CREATE INDEX "IDX_0_dbrdf_Athlete_delta_old" ON "dbrdf_Athlete_delta_old"(s);
    CREATE LOCAL TEMPORARY TABLE "dbrdf_Athlete_delta_new"(s integer) ON COMMIT DROP;

    -- Iterate recursive rules

    WHILE delta_old_size <> 0 LOOP
        delta_old_size := 0;

        -- Evaluate seminaive rules

        -- <http://dbpedia.org/ontology/Athlete$delta_new>(?Y) :- <http://dbpedia.org/ontology/Athlete$delta_old>(?X0), owl:sameAs(?X0,?Y) .
        INSERT INTO "dbrdf_Athlete_delta_new"(s) SELECT t1.o FROM "dbrdf_Athlete_delta_old" t0, "dbrdf_sameAs" t1 WHERE t0.s = t1.s AND NOT EXISTS (SELECT 1 FROM "dbrdf_Athlete" ex WHERE ex.s = t1.o);


        -- Propagate $delta_new

        INSERT INTO "dbrdf_Athlete"(s) SELECT DISTINCT t0.s FROM "dbrdf_Athlete_delta_new" t0;
        GET DIAGNOSTICS rows_nr = ROW_COUNT;
        total_tuples := total_tuples + rows_nr;
        delta_old_size := delta_old_size + rows_nr;
        TRUNCATE TABLE "dbrdf_Athlete_delta_old";
        INSERT INTO "dbrdf_Athlete_delta_old"(s) SELECT DISTINCT t0.s FROM "dbrdf_Athlete_delta_new" t0;
        TRUNCATE TABLE "dbrdf_Athlete_delta_new";

    END LOOP;

    -- END Recursive rules

    ----------------------------------------
    ---- COMPONENT 2060
    ---- DEPENDS ON: 0, 1991, 1975, 1973, 1957, 1940, 1928, 1916, 1909, 1883, 1882, 1876, 1872, 1871, 1860, 1845, 1816, 1788, 1778, 1772, 1753, 1746, 1737, 1723, 1716, 1713, 1707, 1693, 1675, 1654, 1648, 1645, 1640, 1638, 1615, 1614, 1607, 1587, 1560, 1549, 1547, 1534, 1699, 1517, 1504, 1499, 1490, 1651, 1471, 1466, 1455, 1416, 1411, 1409, 1407, 1405, 1383, 1382, 1381, 1375, 1373, 1368, 1364, 1359, 1349, 1347, 1339, 1336, 1335, 1331, 1315, 1312, 1311, 1288, 1286, 1285, 1282, 1271, 1743, 1262, 1260, 1237, 1211, 1207, 1201, 1189, 1172, 1171, 1166, 1160, 1157, 1156, 1150, 1360, 1147, 1131, 1130, 1119, 1113, 1099, 1090, 1073, 1069, 1064, 1062, 1050, 1047, 1036, 1030, 1027, 1025, 1021, 1014, 994, 976, 968, 950, 939, 913, 904, 898, 897, 892, 887, 886, 881, 876, 875, 872, 864, 826, 824, 805, 794, 787, 785, 765, 748, 743, 742, 739, 727, 718, 2051, 716, 706, 696, 693, 689, 675, 1563, 640, 630, 609, 599, 596, 594, 590, 588, 585, 2059, 584, 577, 569, 558, 557, 556, 554, 528, 517, 511, 508, 493, 492, 491, 489, 488, 473, 450, 443, 429, 407, 404, 400, 369, 366, 361, 356, 340, 332, 323, 315, 297, 296, 291, 290, 280, 273, 267, 266, 263, 258, 254, 253, 250, 249, 231, 225, 223, 222, 221, 219, 217, 204, 200, 1902, 176, 172, 1965, 150, 135, 115, 1565, 103, 101, 98, 89, 88, 67, 66, 64, 56, 979, 1507, 31, 28, 1726, 13, 10
    ----------------------------------------

    -- Nonrecursive rules

    -- [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>(?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/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/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/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>(?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/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/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>(?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/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>(?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/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/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/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>(?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/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>(?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>(?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>(?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>(?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>(?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>(?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>(?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>(?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>(?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/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>(?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>(?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/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>(?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>(?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/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/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/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/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/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>(?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/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/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>(?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>(?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/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) .
