 			WHERE id not in (
 			SELECT id
 			FROM supply.ego_dp_res_powerplant
-			WHERE version = 'v0.4.0'
+			WHERE version = 'v0.4.1'
 			Group BY id
 			HAVING count(*) > 1
 			Order by id)
 		 AND scenario = 'Status Quo'
 		 AND preversion = 'v0.3.0'
-		 AND version = 'v0.4.0'
+		 AND version = 'v0.4.1'
 		 AND electrical_capacity > 0
 		 AND generation_type in ('solar','wind')
 		 AND generation_subtype not in ('wind_offshore')

			SELECT id
			FROM supply.ego_dp_res_powerplant
			WHERE scenario in ('NEP 2035')
			AND version = 'v0.4.0'
			AND generation_type not in ('biomass','gas','reservoir','run_of_river')
			AND flag in ('commissioning', 'repowering')
			AND generation_subtype not in ('wind_offshore')

    AND (shutdown IS NULL or shutdown >= 2015)
    AND capacity > 0 
    AND preversion = 'v0.3.0'
    AND version = 'v0.4.1';

ALTER MATERIALIZED VIEW supply.ego_dp_conv_powerplant_sq_mview
    OWNER TO oeuser; 
