 		calc_renpass_gis.renpass_gis_results C
 	WHERE
 	(C.obj_label LIKE '%%' || SQ.country || '%%' || SQ.renpass_gis_source || '%%')
-	AND C.scenario_id = 6
+	AND C.scenario_id = 32
 	AND C.type = 'to_bus';
 
 -- Make an array, INSERT into generator_pq_set

	-- conds
	WHERE obj_label LIKE '%%DE%%' -- only Germany
	AND obj_label not LIKE '%%powerline%%' -- without any powerlines
	AND scenario_id = 7
	 -- take only one flow (input), storage output flow seems to be the right one (?)
	AND ((obj_label LIKE '%%storage%%' AND type = 'from_bus') or (obj_label not LIKE '%%storage%%' AND type = 'to_bus'))
) AS SQ

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