     FROM supply.ego_dp_res_powerplant
     WHERE scenario =  'Status Quo'
     AND electrical_capacity > 0
-    AND preversion = 'v0.3.0'
-    AND version = 'v0.4.4';
+    --AND preversion = 'v0.3.0'
+    --AND version = 'v0.4.4';
 
 ALTER MATERIALIZED VIEW supply.ego_dp_res_powerplant_sq_mview
     OWNER TO oeuser;

			SELECT id
			FROM supply.ego_dp_res_powerplant
			WHERE scenario in ('NEP 2035')
			AND version = 'v0.4.4'
			Group BY id
			Order by id)
		 AND scenario in ('NEP 2035')
		 And preversion = 'v0.3.0'
		 AND version = 'v0.4.4'
		 AND electrical_capacity > 0
		 ORDER BY id	
	) sub2

			FROM supply.ego_dp_res_powerplant
			WHERE scenario in ('eGo 100')
			AND generation_type not in ('gas')
			--AND version = 'v0.4.4'
			AND flag in ('commissioning', 'repowering')
			Group BY id
			Order by id)
		 AND scenario in ('eGo 100')
		 --And preversion = 'v0.3.0'
		 --AND version = 'v0.4.4'
		 AND electrical_capacity > 0
		 ORDER BY id	
	) sub2
