 		) SQ
 	GROUP BY generator_id;
 
-*/
 -- SELECT * FROM model_draft.ego_grid_pf_hv_load WHERE bus > 280000;
 DELETE FROM model_draft.ego_grid_pf_hv_load WHERE bus > 280000;
 

	AND A.nominal_value IS not NULL
	AND A.nominal_value[1] > 0.001
	AND A.source not LIKE '%%powerline%%'
	AND A.scenario_id = 7;
*/

-- INSERT params of Source in model_draft.ego_grid_pf_hv_generator (countries besides Germany)
-- Status Quo

			ON (B.country = substring(A.obj_label, 1, 2))
		WHERE A.obj_label LIKE '%%load%%'
		AND A.type = 'from_bus'
		AND A.scenario_id = 33
		) SQ
		JOIN model_draft.ego_grid_pf_hv_load C on (C.bus = SQ.bus_id)
	WHERE SQ.v_nom = SQ.max_v_nom
