insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='64' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='81')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='81')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='81')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='423.4' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='81')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.485' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='81')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.627' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='81')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.23' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='81')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.87' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='81')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='755' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='81')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='881' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='81')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2857' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='81')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1175' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='81')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='6.35' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='81')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='81')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='53.0735294117647' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='82')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='82')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='82')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='440' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='82')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.581' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='82')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.737' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='82')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.333' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='82')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.94' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='82')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='990' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='82')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1165' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='82')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2337' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='82')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1575' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='82')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5.5' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='82')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='82')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='51' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='83')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='83')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='83')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='432' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='83')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.581' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='83')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.737' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='83')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.333' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='83')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.94' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='83')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='809' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='83')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1118' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='83')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2276' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='83')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1512' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='83')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='83')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='83')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='38.965' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='84')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='84')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='84')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='514.8' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='84')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.672' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='84')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.834' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='84')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.684' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='84')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='84')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='858' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='84')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1336' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='84')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1338' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='84')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1818' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='84')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='6.5' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='84')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='84')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='52.3382352941177' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='85')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='85')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='85')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='579.6' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='85')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.63' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='85')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.789' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='85')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.424' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='85')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.96' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='85')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='765' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='85')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1298' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='85')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1877' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='85')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1764' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='85')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='7' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='85')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='85')  );
insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='50' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='86')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='86')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='86')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='442' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='86')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.534' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='86')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.687' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='86')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.35' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='86')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.92' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='86')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='795' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='86')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1097' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='86')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2235' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='86')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1474' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='86')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='6' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='86')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='86')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='56' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='87')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='87')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='87')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='455.8' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='87')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.547' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='87')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.699' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='87')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.295' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='87')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.91' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='87')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='733' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='87')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1086' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='87')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2531' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='87')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1459' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='87')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='87')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='87')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='63.1323529411765' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='88')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='88')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='88')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='447.2' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='88')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.539' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='88')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.695' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='88')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.298' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='88')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.91' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='88')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1061' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='88')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1085' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='88')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2691' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='88')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1456' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='88')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='88')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='88')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='71.2647058823529' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='89')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='89')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='89')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='376.3' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='89')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='89')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.642' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='89')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.224' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='89')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.88' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='89')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1238' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='89')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='939' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='89')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3089' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='89')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1255' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='89')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='89')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='89')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='62' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='90')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='90')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='90')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='410.4' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='90')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.503' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='90')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.646' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='90')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.243' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='90')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.89' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='90')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='794' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='90')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='969' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='90')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2753' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='90')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1299' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='90')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='90')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='90')  );
insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='72.2647058823529' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='91')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='91')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='91')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='371' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='91')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='91')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.642' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='91')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.214' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='91')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.88' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='91')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1075' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='91')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='942' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='91')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3192' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='91')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1257' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='91')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='91')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='91')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='61' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='92')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='92')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='92')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='396' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='92')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.495' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='92')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.639' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='92')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.24' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='92')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.87' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='92')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='633' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='92')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='963' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='92')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2724' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='92')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1293' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='92')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='92')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='92')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='58' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='93')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='93')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='93')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='349.8' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='93')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.495' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='93')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.639' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='93')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.24' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='93')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.87' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='93')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='633' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='93')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='944' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='93')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2608' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='93')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1268' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='93')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='6' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='93')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='93')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='58' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='94')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='94')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='94')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='349.8' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='94')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.495' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='94')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.639' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='94')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.24' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='94')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.87' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='94')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='633' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='94')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='939' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='94')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2675' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='94')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1260' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='94')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='94')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='94')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='58' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='95')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='95')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='95')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='349.8' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='95')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.495' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='95')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.639' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='95')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.24' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='95')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.87' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='95')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='633' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='95')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='948' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='95')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2682' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='95')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1273' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='95')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='95')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='95')  );
insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='61' and r.name='CLIMAT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='96')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='ZETE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='96')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZHIV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='96')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='396' and r.name='E' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='96')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.495' and r.name='FECSA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='96')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.639' and r.name='FECSN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='96')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.24' and r.name='FCH PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='96')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.87' and r.name='FECS PSD' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='96')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='633' and r.name='PLU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='96')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='930' and r.name='EPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='96')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2790' and r.name='DJU' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='96')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1248' and r.name='IGP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='96')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='6' and r.name='Vmoy1' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='96')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ZDE' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='DEPT' and iv.value='96')  );
insert into result(name) values('UMUR_def');insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UMUR_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '1', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '1', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '1.05', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '1.05', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '1.11', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '1.11', r.id from result r where r.name='UMUR_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.05' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.05' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.11' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.11' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.8', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '1', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.84', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '1.05', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.89', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '1.11', r.id from result r where r.name='UMUR_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.8' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.84' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.05' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.89' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.11' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.7', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.8', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.74', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.84', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.78', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.89', r.id from result r where r.name='UMUR_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.7' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.8' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.74' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.84' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.78' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.89' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.45', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.47', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.53', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.56', r.id from result r where r.name='UMUR_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.45' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.47' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.53' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.56' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.47', r.id from result r where r.name='UMUR_def';insert into result_val(value, result_id) select '0.47', r.id from result r where r.name='UMUR_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.4' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.4' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.4' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.4' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.47' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.47' and r.name='UMUR_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );
insert into result(name) values('UMUR_imur');insert into result_val(value, result_id) select '100', r.id from result r where r.name='UMUR_imur'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='100' and r.name='UMUR_imur' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='IMUR' and iv.value='1')  );insert into result_val(value, result_id) select '0.98', r.id from result r where r.name='UMUR_imur'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.98' and r.name='UMUR_imur' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='IMUR' and iv.value='2')  );insert into result_val(value, result_id) select '0.56', r.id from result r where r.name='UMUR_imur'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.56' and r.name='UMUR_imur' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='IMUR' and iv.value='3')  );insert into result_val(value, result_id) select '0.42', r.id from result r where r.name='UMUR_imur'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.42' and r.name='UMUR_imur' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='IMUR' and iv.value='4')  );
insert into result(name) values('UPLAN_def');insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UPLAN_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.95', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.95', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '1', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '1', r.id from result r where r.name='UPLAN_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.9' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.9' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.95' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.95' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.8', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.84', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.95', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.89', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '1', r.id from result r where r.name='UPLAN_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.8' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.9' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.84' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.95' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.89' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.55', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.7', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.58', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.74', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.61', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.78', r.id from result r where r.name='UPLAN_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.55' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.7' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.58' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.74' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.61' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.78' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.55', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.58', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.63', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.61', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.67', r.id from result r where r.name='UPLAN_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.55' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.6' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.58' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.63' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.61' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.67' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.43', r.id from result r where r.name='UPLAN_def';insert into result_val(value, result_id) select '0.43', r.id from result r where r.name='UPLAN_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.4' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.4' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.4' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.4' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.43' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.43' and r.name='UPLAN_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );
insert into result(name) values('UPLAN_iplan');insert into result_val(value, result_id) select '100', r.id from result r where r.name='UPLAN_iplan'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='100' and r.name='UPLAN_iplan' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='IPLAN' and iv.value='1')  );insert into result_val(value, result_id) select '0.87', r.id from result r where r.name='UPLAN_iplan'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.87' and r.name='UPLAN_iplan' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='IPLAN' and iv.value='2')  );insert into result_val(value, result_id) select '0.56', r.id from result r where r.name='UPLAN_iplan'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.56' and r.name='UPLAN_iplan' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='IPLAN' and iv.value='3')  );insert into result_val(value, result_id) select '0.42', r.id from result r where r.name='UPLAN_iplan'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.42' and r.name='UPLAN_iplan' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='IPLAN' and iv.value='4')  );
insert into result(name) values('UTOIT_itoit1_def');insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UTOIT_itoit1_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.53', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.53', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.56', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.56', r.id from result r where r.name='UTOIT_itoit1_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.53' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.53' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.56' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.56' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.42', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.53', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.44', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.56', r.id from result r where r.name='UTOIT_itoit1_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.4' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.42' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.53' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.44' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.56' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.32', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.32', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.33', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.33', r.id from result r where r.name='UTOIT_itoit1_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.3' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.3' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.32' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.32' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.33' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.33' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.25', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.25', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.26', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.26', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.28', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.28', r.id from result r where r.name='UTOIT_itoit1_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.25' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.25' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.26' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.26' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.28' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.28' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.23', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.23', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.23', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.23', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='UTOIT_itoit1_def';insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='UTOIT_itoit1_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.23' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.23' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.23' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.23' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.3' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.3' and r.name='UTOIT_itoit1_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );
insert into result(name) values('UTOIT_itoit1_toit3');insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='UTOIT_itoit1_toit3'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='1')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.75', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.75', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.79', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.79', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.83', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.83', r.id from result r where r.name='UTOIT_itoit1_toit3'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.75' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.75' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.79' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.79' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.83' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.83' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='2')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.7', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.75', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.74', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.79', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.78', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.83', r.id from result r where r.name='UTOIT_itoit1_toit3'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.7' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.75' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.74' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.79' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.78' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.83' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='3')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.55', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.42', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.58', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.44', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.61', r.id from result r where r.name='UTOIT_itoit1_toit3'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.4' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.55' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.42' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.58' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.44' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.61' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='4')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.35', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.37', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.42', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.39', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.44', r.id from result r where r.name='UTOIT_itoit1_toit3'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.35' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.4' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.37' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.42' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.39' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.44' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='5')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='UTOIT_itoit1_toit3';insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='UTOIT_itoit1_toit3'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.3' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.3' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='1')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.3' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.3' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='2')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.3' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='1')    or (i.name='ZHIV' and iv.value='3')   );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.3' and r.name='UTOIT_itoit1_toit3' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='AC' and iv.value='6')    or (i.name='EJ' and iv.value='0')    or (i.name='ZHIV' and iv.value='3')   );
insert into result(name) values('UTOIT_itoitdef');insert into result_val(value, result_id) select '100', r.id from result r where r.name='UTOIT_itoitdef';insert into result_val(value, result_id) select '100', r.id from result r where r.name='UTOIT_itoitdef';insert into result_val(value, result_id) select '100', r.id from result r where r.name='UTOIT_itoitdef'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='100' and r.name='UTOIT_itoitdef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='TOIT' and iv.value='1')    or (i.name='ITOIT' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='100' and r.name='UTOIT_itoitdef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='TOIT' and iv.value='2')    or (i.name='ITOIT' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='100' and r.name='UTOIT_itoitdef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='TOIT' and iv.value='3')    or (i.name='ITOIT' and iv.value='1')     );insert into result_val(value, result_id) select '0.43', r.id from result r where r.name='UTOIT_itoitdef';insert into result_val(value, result_id) select '0.61', r.id from result r where r.name='UTOIT_itoitdef';insert into result_val(value, result_id) select '1', r.id from result r where r.name='UTOIT_itoitdef'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.43' and r.name='UTOIT_itoitdef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='TOIT' and iv.value='1')    or (i.name='ITOIT' and iv.value='2')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.61' and r.name='UTOIT_itoitdef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='TOIT' and iv.value='2')    or (i.name='ITOIT' and iv.value='2')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='UTOIT_itoitdef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='TOIT' and iv.value='3')    or (i.name='ITOIT' and iv.value='2')     );insert into result_val(value, result_id) select '0.23', r.id from result r where r.name='UTOIT_itoitdef';insert into result_val(value, result_id) select '0.38', r.id from result r where r.name='UTOIT_itoitdef';insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='UTOIT_itoitdef'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.23' and r.name='UTOIT_itoitdef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='TOIT' and iv.value='1')    or (i.name='ITOIT' and iv.value='3')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.38' and r.name='UTOIT_itoitdef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='TOIT' and iv.value='2')    or (i.name='ITOIT' and iv.value='3')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='UTOIT_itoitdef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='TOIT' and iv.value='3')    or (i.name='ITOIT' and iv.value='3')     );insert into result_val(value, result_id) select '0.19', r.id from result r where r.name='UTOIT_itoitdef';insert into result_val(value, result_id) select '0.27', r.id from result r where r.name='UTOIT_itoitdef';insert into result_val(value, result_id) select '0.27', r.id from result r where r.name='UTOIT_itoitdef'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.19' and r.name='UTOIT_itoitdef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='TOIT' and iv.value='1')    or (i.name='ITOIT' and iv.value='4')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.27' and r.name='UTOIT_itoitdef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='TOIT' and iv.value='2')    or (i.name='ITOIT' and iv.value='4')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.27' and r.name='UTOIT_itoitdef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='TOIT' and iv.value='3')    or (i.name='ITOIT' and iv.value='4')     );
insert into result(name) values('Uterrasse_itoit_def');insert into result_val(value, result_id) select '100', r.id from result r where r.name='Uterrasse_itoit_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='100' and r.name='Uterrasse_itoit_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ITOIT' and iv.value='1')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='Uterrasse_itoit_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='Uterrasse_itoit_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ITOIT' and iv.value='2')  );insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='Uterrasse_itoit_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='Uterrasse_itoit_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ITOIT' and iv.value='3')  );insert into result_val(value, result_id) select '0.27', r.id from result r where r.name='Uterrasse_itoit_def'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.27' and r.name='Uterrasse_itoit_def' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ITOIT' and iv.value='4')  );
insert into result(name) values('Ufenetres');insert into result_val(value, result_id) select '4.2', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '3.9', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '4.95', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '4.95', r.id from result r where r.name='Ufenetres'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4.2' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='1')    or (i.name='VIT' and iv.value='1')   or (i.name='VOL' and iv.value='0')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.9' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='2')    or (i.name='VIT' and iv.value='1')   or (i.name='VOL' and iv.value='0')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4.95' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='3')    or (i.name='VIT' and iv.value='1')   or (i.name='VOL' and iv.value='0')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4.95' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='4')    or (i.name='VIT' and iv.value='1')   or (i.name='VOL' and iv.value='0')     );insert into result_val(value, result_id) select '2.9', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '2.75', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '4', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '4', r.id from result r where r.name='Ufenetres'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.9' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='1')    or (i.name='VIT' and iv.value='2')   or (i.name='VOL' and iv.value='0')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.75' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='2')    or (i.name='VIT' and iv.value='2')   or (i.name='VOL' and iv.value='0')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='3')    or (i.name='VIT' and iv.value='2')   or (i.name='VOL' and iv.value='0')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='4')    or (i.name='VIT' and iv.value='2')   or (i.name='VOL' and iv.value='0')     );insert into result_val(value, result_id) select '2.8', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '2.55', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '3.8', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '3.15', r.id from result r where r.name='Ufenetres'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.8' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='1')    or (i.name='VIT' and iv.value='3')   or (i.name='VOL' and iv.value='0')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.55' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='2')    or (i.name='VIT' and iv.value='3')   or (i.name='VOL' and iv.value='0')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.8' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='3')    or (i.name='VIT' and iv.value='3')   or (i.name='VOL' and iv.value='0')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.15' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='4')    or (i.name='VIT' and iv.value='3')   or (i.name='VOL' and iv.value='0')     );insert into result_val(value, result_id) select '2.42', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '2.2', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '3.42', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '2.77', r.id from result r where r.name='Ufenetres'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.42' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='1')    or (i.name='VIT' and iv.value='4')   or (i.name='VOL' and iv.value='0')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.2' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='2')    or (i.name='VIT' and iv.value='4')   or (i.name='VOL' and iv.value='0')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.42' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='3')    or (i.name='VIT' and iv.value='4')   or (i.name='VOL' and iv.value='0')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.77' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='4')    or (i.name='VIT' and iv.value='4')   or (i.name='VOL' and iv.value='0')     );insert into result_val(value, result_id) select '2.35', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '2.15', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '2.8', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '2.8', r.id from result r where r.name='Ufenetres'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.35' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='1')    or (i.name='VIT' and iv.value='5')   or (i.name='VOL' and iv.value='0')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.15' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='2')    or (i.name='VIT' and iv.value='5')   or (i.name='VOL' and iv.value='0')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.8' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='3')    or (i.name='VIT' and iv.value='5')   or (i.name='VOL' and iv.value='0')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.8' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='4')    or (i.name='VIT' and iv.value='5')   or (i.name='VOL' and iv.value='0')     );insert into result_val(value, result_id) select '3.55', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '3.3', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '4.05', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '4.05', r.id from result r where r.name='Ufenetres'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.55' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='1')    or (i.name='VIT' and iv.value='1')   or (i.name='VOL' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.3' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='2')    or (i.name='VIT' and iv.value='1')   or (i.name='VOL' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4.05' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='3')    or (i.name='VIT' and iv.value='1')   or (i.name='VOL' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4.05' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='4')    or (i.name='VIT' and iv.value='1')   or (i.name='VOL' and iv.value='1')     );insert into result_val(value, result_id) select '2.6', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '2.5', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '3.5', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '3.5', r.id from result r where r.name='Ufenetres'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.6' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='1')    or (i.name='VIT' and iv.value='2')   or (i.name='VOL' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.5' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='2')    or (i.name='VIT' and iv.value='2')   or (i.name='VOL' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.5' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='3')    or (i.name='VIT' and iv.value='2')   or (i.name='VOL' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.5' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='4')    or (i.name='VIT' and iv.value='2')   or (i.name='VOL' and iv.value='1')     );insert into result_val(value, result_id) select '2.45', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '2.25', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '3.25', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '2.7', r.id from result r where r.name='Ufenetres'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.45' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='1')    or (i.name='VIT' and iv.value='3')   or (i.name='VOL' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.25' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='2')    or (i.name='VIT' and iv.value='3')   or (i.name='VOL' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.25' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='3')    or (i.name='VIT' and iv.value='3')   or (i.name='VOL' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.7' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='4')    or (i.name='VIT' and iv.value='3')   or (i.name='VOL' and iv.value='1')     );insert into result_val(value, result_id) select '2.14', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '1.96', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '2.94', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '2.39', r.id from result r where r.name='Ufenetres'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.14' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='1')    or (i.name='VIT' and iv.value='4')   or (i.name='VOL' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.96' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='2')    or (i.name='VIT' and iv.value='4')   or (i.name='VOL' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.94' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='3')    or (i.name='VIT' and iv.value='4')   or (i.name='VOL' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.39' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='4')    or (i.name='VIT' and iv.value='4')   or (i.name='VOL' and iv.value='1')     );insert into result_val(value, result_id) select '2.1', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '1.95', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '2.4', r.id from result r where r.name='Ufenetres';insert into result_val(value, result_id) select '2.4', r.id from result r where r.name='Ufenetres'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.1' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='1')    or (i.name='VIT' and iv.value='5')   or (i.name='VOL' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.95' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='2')    or (i.name='VIT' and iv.value='5')   or (i.name='VOL' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.4' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='3')    or (i.name='VIT' and iv.value='5')   or (i.name='VOL' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.4' and r.name='Ufenetres' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='MF' and iv.value='4')    or (i.name='VIT' and iv.value='5')   or (i.name='VOL' and iv.value='1')     );
insert into result(name) values('TPV');insert into result_val(value, result_id) select '0.464', r.id from result r where r.name='TPV';insert into result_val(value, result_id) select '0.352', r.id from result r where r.name='TPV';insert into result(name) values('GCO2');insert into result_val(value, result_id) select '0.089', r.id from result r where r.name='GCO2';insert into result_val(value, result_id) select '0.234', r.id from result r where r.name='GCO2';insert into result_val(value, result_id) select '0.274', r.id from result r where r.name='GCO2';insert into result_val(value, result_id) select '0.32', r.id from result r where r.name='GCO2';insert into result_val(value, result_id) select '0.013', r.id from result r where r.name='GCO2';insert into result_val(value, result_id) select '0.384', r.id from result r where r.name='GCO2';insert into result_val(value, result_id) select '0.089', r.id from result r where r.name='GCO2';insert into result_val(value, result_id) select '0.205', r.id from result r where r.name='GCO2';insert into result(name) values('GCO2_ECS');insert into result_val(value, result_id) select '0.089', r.id from result r where r.name='GCO2_ECS';insert into result_val(value, result_id) select '0.234', r.id from result r where r.name='GCO2_ECS';insert into result_val(value, result_id) select '0.274', r.id from result r where r.name='GCO2_ECS';insert into result_val(value, result_id) select '0.32', r.id from result r where r.name='GCO2_ECS';insert into result_val(value, result_id) select '0.013', r.id from result r where r.name='GCO2_ECS';insert into result_val(value, result_id) select '0.384', r.id from result r where r.name='GCO2_ECS';insert into result_val(value, result_id) select '0.089', r.id from result r where r.name='GCO2_ECS';insert into result_val(value, result_id) select '0.205', r.id from result r where r.name='GCO2_ECS';insert into result(name) values('U1_MUR');insert into result_val(value, result_id) select '3.2', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '2.65', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '2.4', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '2.05', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '2.7', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '1.98', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '1.35', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '1.6', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '0.95', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '3.5', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '2.75', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '2', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '2.15', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '1.7', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '2.8', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '2.3', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '0.47', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '1.03', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '0.55', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '0.39', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '0.98', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '0.56', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '0.42', r.id from result r where r.name='U1_MUR';insert into result_val(value, result_id) select '2.5', r.id from result r where r.name='U1_MUR';insert into result(name) values('U1_TOIT');insert into result_val(value, result_id) select '2.5', r.id from result r where r.name='U1_TOIT';insert into result_val(value, result_id) select '2.3', r.id from result r where r.name='U1_TOIT';insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='U1_TOIT';insert into result_val(value, result_id) select '1.45', r.id from result r where r.name='U1_TOIT';insert into result_val(value, result_id) select '2.5', r.id from result r where r.name='U1_TOIT';insert into result_val(value, result_id) select '2.5', r.id from result r where r.name='U1_TOIT';insert into result_val(value, result_id) select '0.24', r.id from result r where r.name='U1_TOIT';insert into result_val(value, result_id) select '0.43', r.id from result r where r.name='U1_TOIT';insert into result_val(value, result_id) select '0.23', r.id from result r where r.name='U1_TOIT';insert into result_val(value, result_id) select '0.19', r.id from result r where r.name='U1_TOIT';insert into result_val(value, result_id) select '0.61', r.id from result r where r.name='U1_TOIT';insert into result_val(value, result_id) select '0.38', r.id from result r where r.name='U1_TOIT';insert into result_val(value, result_id) select '0.27', r.id from result r where r.name='U1_TOIT';insert into result_val(value, result_id) select '1', r.id from result r where r.name='U1_TOIT';insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='U1_TOIT';insert into result_val(value, result_id) select '0.27', r.id from result r where r.name='U1_TOIT';insert into result(name) values('U1_SOL');insert into result_val(value, result_id) select '2', r.id from result r where r.name='U1_SOL';insert into result_val(value, result_id) select '1.45', r.id from result r where r.name='U1_SOL';insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='U1_SOL';insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='U1_SOL';insert into result_val(value, result_id) select '1.6', r.id from result r where r.name='U1_SOL';insert into result_val(value, result_id) select '1.45', r.id from result r where r.name='U1_SOL';insert into result_val(value, result_id) select '1.6', r.id from result r where r.name='U1_SOL';insert into result_val(value, result_id) select '1.75', r.id from result r where r.name='U1_SOL';insert into result_val(value, result_id) select '2', r.id from result r where r.name='U1_SOL';insert into result_val(value, result_id) select '0.8', r.id from result r where r.name='U1_SOL';insert into result_val(value, result_id) select '0.87', r.id from result r where r.name='U1_SOL';insert into result_val(value, result_id) select '0.56', r.id from result r where r.name='U1_SOL';insert into result_val(value, result_id) select '0.42', r.id from result r where r.name='U1_SOL';insert into result(name) values('lambda');insert into result_val(value, result_id) select '0.04', r.id from result r where r.name='lambda';insert into result_val(value, result_id) select '0.048', r.id from result r where r.name='lambda';insert into result_val(value, result_id) select '0.038', r.id from result r where r.name='lambda';insert into result_val(value, result_id) select '0.04', r.id from result r where r.name='lambda';insert into result_val(value, result_id) select '0.04', r.id from result r where r.name='lambda';insert into result_val(value, result_id) select '0.035', r.id from result r where r.name='lambda';insert into result_val(value, result_id) select '0.027', r.id from result r where r.name='lambda';insert into result_val(value, result_id) select '0.024', r.id from result r where r.name='lambda';insert into result_val(value, result_id) select '0.038', r.id from result r where r.name='lambda';insert into result_val(value, result_id) select '0.039', r.id from result r where r.name='lambda';insert into result_val(value, result_id) select '0.04', r.id from result r where r.name='lambda';insert into result(name) values('R');insert into result_val(value, result_id) select '3.5', r.id from result r where r.name='R';insert into result_val(value, result_id) select '4.25', r.id from result r where r.name='R';insert into result_val(value, result_id) select '5', r.id from result r where r.name='R';
insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.464' and r.name='TPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='P' and iv.value='1');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.352' and r.name='TPV' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='P' and iv.value='2');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.089' and r.name='GCO2' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENCH' and iv.value='1');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.234' and r.name='GCO2' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENCH' and iv.value='2');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.274' and r.name='GCO2' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENCH' and iv.value='3');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.32' and r.name='GCO2' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENCH' and iv.value='4');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.013' and r.name='GCO2' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENCH' and iv.value='5');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.384' and r.name='GCO2' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENCH' and iv.value='6');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.089' and r.name='GCO2' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENCH' and iv.value='7');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.205' and r.name='GCO2' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENCH' and iv.value='8');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.089' and r.name='GCO2_ECS' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENECS' and iv.value='1');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.234' and r.name='GCO2_ECS' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENECS' and iv.value='2');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.274' and r.name='GCO2_ECS' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENECS' and iv.value='3');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.32' and r.name='GCO2_ECS' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENECS' and iv.value='4');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.013' and r.name='GCO2_ECS' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENECS' and iv.value='5');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.384' and r.name='GCO2_ECS' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENECS' and iv.value='6');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.089' and r.name='GCO2_ECS' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENECS' and iv.value='7');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.205' and r.name='GCO2_ECS' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='ENECS' and iv.value='8');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.2' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='1');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.65' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='2');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.4' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='3');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.05' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='4');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.7' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='5');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.98' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='6');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.35' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='7');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.6' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='8');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.95' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='9');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.5' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='10');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.75' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='11');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='12');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.15' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='13');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.7' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='14');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.8' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='15');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.3' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='16');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.47' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='17');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.03' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='18');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.55' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='19');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.39' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='20');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.98' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='21');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.56' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='22');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.42' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='23');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.5' and r.name='U1_MUR' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TMUR' and iv.value='24');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.5' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='1');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.3' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='2');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.2' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='3');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.45' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='4');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.5' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='5');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.5' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='6');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.24' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='7');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.43' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='8');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.23' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='9');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.19' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='10');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.61' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='11');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.38' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='12');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.27' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='13');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='14');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='15');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.27' and r.name='U1_TOIT' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTOIT' and iv.value='16');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='U1_SOL' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TSOL' and iv.value='1');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.45' and r.name='U1_SOL' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TSOL' and iv.value='2');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.1' and r.name='U1_SOL' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TSOL' and iv.value='3');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.1' and r.name='U1_SOL' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TSOL' and iv.value='4');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.6' and r.name='U1_SOL' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TSOL' and iv.value='5');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.45' and r.name='U1_SOL' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TSOL' and iv.value='6');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.6' and r.name='U1_SOL' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TSOL' and iv.value='7');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.75' and r.name='U1_SOL' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TSOL' and iv.value='8');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='U1_SOL' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TSOL' and iv.value='9');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.8' and r.name='U1_SOL' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TSOL' and iv.value='10');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.87' and r.name='U1_SOL' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TSOL' and iv.value='11');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.56' and r.name='U1_SOL' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TSOL' and iv.value='12');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.42' and r.name='U1_SOL' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TSOL' and iv.value='13');
insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.04' and r.name='lambda' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TISO' and iv.value='1');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.048' and r.name='lambda' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TISO' and iv.value='2');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.038' and r.name='lambda' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TISO' and iv.value='3');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.04' and r.name='lambda' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TISO' and iv.value='4');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.04' and r.name='lambda' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TISO' and iv.value='5');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.035' and r.name='lambda' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TISO' and iv.value='6');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.027' and r.name='lambda' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TISO' and iv.value='7');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.024' and r.name='lambda' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TISO' and iv.value='8');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.038' and r.name='lambda' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TISO' and iv.value='9');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.039' and r.name='lambda' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TISO' and iv.value='10');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.04' and r.name='lambda' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TISO' and iv.value='11');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.5' and r.name='R' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTV' and iv.value='1');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4.25' and r.name='R' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTV' and iv.value='2');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5' and r.name='R' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TTV' and iv.value='3');
insert into result(name) values('U20_FEN');insert into result(name) values('U21_FEN');insert into result_val(value, result_id) select '2.8', r.id from result r where r.name='U20_FEN';insert into result_val(value, result_id) select '2.55', r.id from result r where r.name='U21_FEN'; insert into result_val(value, result_id) select '2.42', r.id from result r where r.name='U20_FEN';insert into result_val(value, result_id) select '2.2', r.id from result r where r.name='U21_FEN'; insert into result_val(value, result_id) select '2.35', r.id from result r where r.name='U20_FEN';insert into result_val(value, result_id) select '2.15', r.id from result r where r.name='U21_FEN'; insert into result_val(value, result_id) select '2.45', r.id from result r where r.name='U20_FEN';insert into result_val(value, result_id) select '2.25', r.id from result r where r.name='U21_FEN'; insert into result_val(value, result_id) select '2.14', r.id from result r where r.name='U20_FEN';insert into result_val(value, result_id) select '1.96', r.id from result r where r.name='U21_FEN'; insert into result_val(value, result_id) select '2.1', r.id from result r where r.name='U20_FEN';insert into result_val(value, result_id) select '1.95', r.id from result r where r.name='U21_FEN'; insert into result_val(value, result_id) select '', r.id from result r where r.name='U20_FEN';insert into result_val(value, result_id) select '', r.id from result r where r.name='U21_FEN'; insert into result(name) values('U1_FEN');insert into result_val(value, result_id) select '4.2', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '3.9', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '4.95', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '4.95', r.id from result r where r.name='U1_FEN'; insert into result_val(value, result_id) select '2.9', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '2.75', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '4', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '4', r.id from result r where r.name='U1_FEN'; insert into result_val(value, result_id) select '2.8', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '2.55', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '3.8', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '3.15', r.id from result r where r.name='U1_FEN'; insert into result_val(value, result_id) select '2.42', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '2.2', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '3.42', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '2.77', r.id from result r where r.name='U1_FEN'; insert into result_val(value, result_id) select '2.35', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '2.15', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '2.8', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '2.8', r.id from result r where r.name='U1_FEN'; insert into result_val(value, result_id) select '3.55', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '3.3', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '4.05', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '4.05', r.id from result r where r.name='U1_FEN'; insert into result_val(value, result_id) select '2.6', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '2.5', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '3.5', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '3.5', r.id from result r where r.name='U1_FEN'; insert into result_val(value, result_id) select '2.45', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '2.25', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '3.25', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '2.7', r.id from result r where r.name='U1_FEN'; insert into result_val(value, result_id) select '2.14', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '1.96', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '2.94', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '2.39', r.id from result r where r.name='U1_FEN'; insert into result_val(value, result_id) select '2.1', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '1.95', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '2.4', r.id from result r where r.name='U1_FEN';insert into result_val(value, result_id) select '2.4', r.id from result r where r.name='U1_FEN'; insert into result(name) values('CX');insert into result_val(value, result_id) select '0', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.93', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.93', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.93', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.93', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.93', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.96', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '1', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.96', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.84', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.96', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.92', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.84', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.78', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.88', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.91', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.88', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.78', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.55', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.66', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.68', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.66', r.id from result r where r.name='CX';insert into result_val(value, result_id) select '0.55', r.id from result r where r.name='CX';
insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.8' and r.name='U20_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='TVIT' and iv.value='1')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.55' and r.name='U21_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='TVIT' and iv.value='1')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.42' and r.name='U20_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='TVIT' and iv.value='2')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.2' and r.name='U21_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='TVIT' and iv.value='2')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.35' and r.name='U20_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='TVIT' and iv.value='3')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.15' and r.name='U21_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='TVIT' and iv.value='3')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.45' and r.name='U20_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='TVIT' and iv.value='4')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.25' and r.name='U21_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='TVIT' and iv.value='4')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.14' and r.name='U20_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='TVIT' and iv.value='5')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.96' and r.name='U21_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='TVIT' and iv.value='5')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.1' and r.name='U20_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='TVIT' and iv.value='6')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.95' and r.name='U21_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='TVIT' and iv.value='6')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='' and r.name='U20_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='TVIT' and iv.value='')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='' and r.name='U21_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='TVIT' and iv.value='')  ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4.2' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='1')  or (i.name='MF' and iv.value='1'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.9' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='1')  or (i.name='MF' and iv.value='2'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4.95' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='1')  or (i.name='MF' and iv.value='3'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4.95' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='1')  or (i.name='MF' and iv.value='4')); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.9' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='2')  or (i.name='MF' and iv.value='1'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.75' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='2')  or (i.name='MF' and iv.value='2'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='2')  or (i.name='MF' and iv.value='3'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='2')  or (i.name='MF' and iv.value='4')); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.8' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='3')  or (i.name='MF' and iv.value='1'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.55' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='3')  or (i.name='MF' and iv.value='2'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.8' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='3')  or (i.name='MF' and iv.value='3'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.15' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='3')  or (i.name='MF' and iv.value='4')); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.42' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='4')  or (i.name='MF' and iv.value='1'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.2' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='4')  or (i.name='MF' and iv.value='2'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.42' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='4')  or (i.name='MF' and iv.value='3'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.77' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='4')  or (i.name='MF' and iv.value='4')); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.35' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='5')  or (i.name='MF' and iv.value='1'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.15' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='5')  or (i.name='MF' and iv.value='2'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.8' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='5')  or (i.name='MF' and iv.value='3'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.8' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='0')  or  (i.name='VIT' and iv.value='5')  or (i.name='MF' and iv.value='4')); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.55' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='1')  or (i.name='MF' and iv.value='1'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.3' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='1')  or (i.name='MF' and iv.value='2'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4.05' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='1')  or (i.name='MF' and iv.value='3'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4.05' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='1')  or (i.name='MF' and iv.value='4')); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.6' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='2')  or (i.name='MF' and iv.value='1'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.5' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='2')  or (i.name='MF' and iv.value='2'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.5' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='2')  or (i.name='MF' and iv.value='3'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.5' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='2')  or (i.name='MF' and iv.value='4')); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.45' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='3')  or (i.name='MF' and iv.value='1'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.25' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='3')  or (i.name='MF' and iv.value='2'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.25' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='3')  or (i.name='MF' and iv.value='3'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.7' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='3')  or (i.name='MF' and iv.value='4')); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.14' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='4')  or (i.name='MF' and iv.value='1'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.96' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='4')  or (i.name='MF' and iv.value='2'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.94' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='4')  or (i.name='MF' and iv.value='3'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.39' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='4')  or (i.name='MF' and iv.value='4')); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.1' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='5')  or (i.name='MF' and iv.value='1'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.95' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='5')  or (i.name='MF' and iv.value='2'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.4' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='5')  or (i.name='MF' and iv.value='3'));insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.4' and r.name='U1_FEN' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='VOL' and iv.value='1')  or  (i.name='VIT' and iv.value='5')  or (i.name='MF' and iv.value='4')); 
insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='1')    or (i.name='INC' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='2')    or (i.name='INC' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='3')    or (i.name='INC' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.93' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='4')    or (i.name='INC' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.93' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='5')    or (i.name='INC' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.93' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='6')    or (i.name='INC' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.93' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='7')    or (i.name='INC' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.93' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='8')    or (i.name='INC' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='1')    or (i.name='INC' and iv.value='2')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='2')    or (i.name='INC' and iv.value='2')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='3')    or (i.name='INC' and iv.value='2')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.9' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='4')    or (i.name='INC' and iv.value='2')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.96' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='5')    or (i.name='INC' and iv.value='2')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='6')    or (i.name='INC' and iv.value='2')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.96' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='7')    or (i.name='INC' and iv.value='2')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.9' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='8')    or (i.name='INC' and iv.value='2')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='1')    or (i.name='INC' and iv.value='3')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='2')    or (i.name='INC' and iv.value='3')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='3')    or (i.name='INC' and iv.value='3')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.84' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='4')    or (i.name='INC' and iv.value='3')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.9' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='5')    or (i.name='INC' and iv.value='3')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.96' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='6')    or (i.name='INC' and iv.value='3')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.92' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='7')    or (i.name='INC' and iv.value='3')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.84' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='8')    or (i.name='INC' and iv.value='3')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='1')    or (i.name='INC' and iv.value='4')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='2')    or (i.name='INC' and iv.value='4')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='3')    or (i.name='INC' and iv.value='4')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.78' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='4')    or (i.name='INC' and iv.value='4')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.88' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='5')    or (i.name='INC' and iv.value='4')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.91' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='6')    or (i.name='INC' and iv.value='4')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.88' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='7')    or (i.name='INC' and iv.value='4')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.78' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='8')    or (i.name='INC' and iv.value='4')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='1')    or (i.name='INC' and iv.value='5')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='2')    or (i.name='INC' and iv.value='5')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='3')    or (i.name='INC' and iv.value='5')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.55' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='4')    or (i.name='INC' and iv.value='5')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.66' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='5')    or (i.name='INC' and iv.value='5')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.68' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='6')    or (i.name='INC' and iv.value='5')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.66' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='7')    or (i.name='INC' and iv.value='5')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.55' and r.name='CX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='OR' and iv.value='8')    or (i.name='INC' and iv.value='5')     );
insert into result(name) values('SCB');insert into result_val(value, result_id) select '1', r.id from result r where r.name='SCB'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='SCB' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TOIT' and iv.value='1');insert into result_val(value, result_id) select '1.3', r.id from result r where r.name='SCB'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.3' and r.name='SCB' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TOIT' and iv.value='2');insert into result(name) values('Kportes');insert into result_val(value, result_id) select '3.5', r.id from result r where r.name='Kportes'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.5' and r.name='Kportes' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TPOR' and iv.value='1');insert into result_val(value, result_id) select '4', r.id from result r where r.name='Kportes'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4' and r.name='Kportes' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TPOR' and iv.value='2');insert into result_val(value, result_id) select '4.5', r.id from result r where r.name='Kportes'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4.5' and r.name='Kportes' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TPOR' and iv.value='3');insert into result_val(value, result_id) select '3.3', r.id from result r where r.name='Kportes'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.3' and r.name='Kportes' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TPOR' and iv.value='4');insert into result_val(value, result_id) select '5.8', r.id from result r where r.name='Kportes'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5.8' and r.name='Kportes' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TPOR' and iv.value='5');insert into result_val(value, result_id) select '5.8', r.id from result r where r.name='Kportes'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5.8' and r.name='Kportes' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TPOR' and iv.value='6');insert into result_val(value, result_id) select '5.5', r.id from result r where r.name='Kportes'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5.5' and r.name='Kportes' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TPOR' and iv.value='7');insert into result_val(value, result_id) select '4.8', r.id from result r where r.name='Kportes'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4.8' and r.name='Kportes' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TPOR' and iv.value='8');insert into result_val(value, result_id) select '2', r.id from result r where r.name='Kportes'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='Kportes' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TPOR' and iv.value='9');insert into result_val(value, result_id) select '1.5', r.id from result r where r.name='Kportes'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.5' and r.name='Kportes' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='TPOR' and iv.value='10');insert into result(name) values('a_ARA');insert into result_val(value, result_id) select '0.45', r.id from result r where r.name='a_ARA'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.45' and r.name='a_ARA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='VENT' and iv.value='1');insert into result_val(value, result_id) select '0.35', r.id from result r where r.name='a_ARA'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.35' and r.name='a_ARA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='VENT' and iv.value='2');insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='a_ARA'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.3' and r.name='a_ARA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='VENT' and iv.value='3');insert into result_val(value, result_id) select '0.25', r.id from result r where r.name='a_ARA'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.25' and r.name='a_ARA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='VENT' and iv.value='4');insert into result_val(value, result_id) select '0.2', r.id from result r where r.name='a_ARA'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.2' and r.name='a_ARA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='VENT' and iv.value='5');insert into result_val(value, result_id) select '0.16', r.id from result r where r.name='a_ARA'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.16' and r.name='a_ARA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='VENT' and iv.value='6');insert into result_val(value, result_id) select '0.14', r.id from result r where r.name='a_ARA'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.14' and r.name='a_ARA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='VENT' and iv.value='7');insert into result_val(value, result_id) select '0.1', r.id from result r where r.name='a_ARA'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.1' and r.name='a_ARA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='VENT' and iv.value='8');insert into result(name) values('a_sse');insert into result_val(value, result_id) select '0.03', r.id from result r where r.name='a_sse'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.03' and r.name='a_sse' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='VER' and iv.value='1');insert into result_val(value, result_id) select '0.023', r.id from result r where r.name='a_sse'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.023' and r.name='a_sse' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='VER' and iv.value='0');
insert into result(name) values('SCA');insert into result(name) values('ST');insert into result(name) values('SP');insert into result(name) values('PTA');insert into result(name) values('PTAMAX');insert into result_val(value, result_id) select '1', r.id from result r where r.name='SCA';insert into result_val(value, result_id) select '0', r.id from result r where r.name='ST';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SP';insert into result_val(value, result_id) select '1.46', r.id from result r where r.name='PTA';insert into result_val(value, result_id) select '0.64', r.id from result r where r.name='PTAMAX';insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='SCA';insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='ST';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SP';insert into result_val(value, result_id) select '1.46', r.id from result r where r.name='PTA';insert into result_val(value, result_id) select '0.64', r.id from result r where r.name='PTAMAX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SCA';insert into result_val(value, result_id) select '1', r.id from result r where r.name='ST';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SP';insert into result_val(value, result_id) select '1.46', r.id from result r where r.name='PTA';insert into result_val(value, result_id) select '0.64', r.id from result r where r.name='PTAMAX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SCA';insert into result_val(value, result_id) select '1', r.id from result r where r.name='ST';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SP';insert into result_val(value, result_id) select '1.96', r.id from result r where r.name='PTA';insert into result_val(value, result_id) select '0.74', r.id from result r where r.name='PTAMAX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SCA';insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='ST';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SP';insert into result_val(value, result_id) select '1.96', r.id from result r where r.name='PTA';insert into result_val(value, result_id) select '0.74', r.id from result r where r.name='PTAMAX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SCA';insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='ST';insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='SP';insert into result_val(value, result_id) select '2.11', r.id from result r where r.name='PTA';insert into result_val(value, result_id) select '1.29', r.id from result r where r.name='PTAMAX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SCA';insert into result_val(value, result_id) select '0', r.id from result r where r.name='ST';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SP';insert into result_val(value, result_id) select '1.76', r.id from result r where r.name='PTA';insert into result_val(value, result_id) select '0.94', r.id from result r where r.name='PTAMAX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SCA';insert into result_val(value, result_id) select '0', r.id from result r where r.name='ST';insert into result_val(value, result_id) select '1', r.id from result r where r.name='SP';insert into result_val(value, result_id) select '1.91', r.id from result r where r.name='PTA';insert into result_val(value, result_id) select '1.49', r.id from result r where r.name='PTAMAX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SCA';insert into result_val(value, result_id) select '0', r.id from result r where r.name='ST';insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='SP';insert into result_val(value, result_id) select '1.91', r.id from result r where r.name='PTA';insert into result_val(value, result_id) select '1.49', r.id from result r where r.name='PTAMAX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SCA';insert into result_val(value, result_id) select '0', r.id from result r where r.name='ST';insert into result_val(value, result_id) select '1', r.id from result r where r.name='SP';insert into result_val(value, result_id) select '1.51', r.id from result r where r.name='PTA';insert into result_val(value, result_id) select '1.39', r.id from result r where r.name='PTAMAX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SCA';insert into result_val(value, result_id) select '0', r.id from result r where r.name='ST';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SP';insert into result_val(value, result_id) select '2.41', r.id from result r where r.name='PTA';insert into result_val(value, result_id) select '1.69', r.id from result r where r.name='PTAMAX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SCA';insert into result_val(value, result_id) select '0', r.id from result r where r.name='ST';insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='SP';insert into result_val(value, result_id) select '1.91', r.id from result r where r.name='PTA';insert into result_val(value, result_id) select '1.49', r.id from result r where r.name='PTAMAX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SCA';insert into result_val(value, result_id) select '1', r.id from result r where r.name='ST';insert into result_val(value, result_id) select '1', r.id from result r where r.name='SP';insert into result_val(value, result_id) select '2.11', r.id from result r where r.name='PTA';insert into result_val(value, result_id) select '1.29', r.id from result r where r.name='PTAMAX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SCA';insert into result_val(value, result_id) select '1', r.id from result r where r.name='ST';insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='SP';insert into result_val(value, result_id) select '2.11', r.id from result r where r.name='PTA';insert into result_val(value, result_id) select '1.29', r.id from result r where r.name='PTAMAX';insert into result_val(value, result_id) select '0', r.id from result r where r.name='SCA';insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='ST';insert into result_val(value, result_id) select '1', r.id from result r where r.name='SP';insert into result_val(value, result_id) select '2.11', r.id from result r where r.name='PTA';insert into result_val(value, result_id) select '1.29', r.id from result r where r.name='PTAMAX';
insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='SCA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='1');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='ST' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='1');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='1');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.46' and r.name='PTA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='1');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.64' and r.name='PTAMAX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='1');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='SCA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='2');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='ST' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='2');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='2');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.46' and r.name='PTA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='2');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.64' and r.name='PTAMAX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='2');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SCA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='3');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ST' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='3');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='3');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.46' and r.name='PTA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='3');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.64' and r.name='PTAMAX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='3');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SCA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='4');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ST' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='4');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='4');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.96' and r.name='PTA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='4');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.74' and r.name='PTAMAX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='4');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SCA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='5');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='ST' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='5');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='5');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.96' and r.name='PTA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='5');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.74' and r.name='PTAMAX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='5');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SCA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='6');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='ST' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='6');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='SP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='6');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.11' and r.name='PTA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='6');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.29' and r.name='PTAMAX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='6');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SCA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='7');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='ST' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='7');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='7');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.76' and r.name='PTA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='7');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.94' and r.name='PTAMAX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='7');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SCA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='8');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='ST' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='8');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='SP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='8');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.91' and r.name='PTA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='8');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.49' and r.name='PTAMAX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='8');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SCA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='9');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='ST' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='9');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='SP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='9');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.91' and r.name='PTA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='9');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.49' and r.name='PTAMAX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='9');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SCA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='10');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='ST' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='10');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='SP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='10');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.51' and r.name='PTA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='10');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.39' and r.name='PTAMAX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='10');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SCA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='11');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='ST' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='11');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='11');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.41' and r.name='PTA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='11');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.69' and r.name='PTAMAX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='11');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SCA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='12');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='ST' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='12');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='SP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='12');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.91' and r.name='PTA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='12');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.49' and r.name='PTAMAX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='12');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SCA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='13');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ST' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='13');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='SP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='13');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.11' and r.name='PTA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='13');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.29' and r.name='PTAMAX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='13');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SCA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='14');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='ST' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='14');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='SP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='14');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.11' and r.name='PTA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='14');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.29' and r.name='PTAMAX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='14');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0' and r.name='SCA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='15');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.5' and r.name='ST' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='15');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1' and r.name='SP' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='15');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.11' and r.name='PTA' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='15');insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.29' and r.name='PTAMAX' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (i.name='CF' and iv.value='15');
insert into result(name) values('a_ICH*');insert into result_val(value, result_id) select '1.06326422115896', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.06326422115896', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.04134124752681', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.04134124752681', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.0307153164296', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.0307153164296', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.01010101010101', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.01010101010101', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.10803324099723', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.10803324099723', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.05263157894737', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.05263157894737', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.09649122807018', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.09649122807018', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.421727395411606', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.421727395411606', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.33820439733965', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.33820439733965', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.50204277817832', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.50204277817832', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.6124871001032', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.6124871001032', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.23034066223275', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.11295431158892', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.86955026098922', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.77115287883189', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.76568635760093', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.67275549667456', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.69505890329689', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.60584527680758', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.58911772184083', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.50547994700711', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.23034066223275', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.11295431158892', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.86955026098922', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.77115287883189', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.76568635760093', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.67275549667456', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.69505890329689', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.60584527680758', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.58911772184083', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.50547994700711', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '3.34168755221387', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '3.16580925999209', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.55186728430985', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.46565243518152', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.16959064327485', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.16959064327485', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.11111111111111', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.11111111111111', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.11111111111111', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.11111111111111', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.26811372322208', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.1421074052653', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.10610560013479', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.98909973346064', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.9656985601258', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.85649308456326', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.84284240011794', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.74046226677806', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.73443990599336', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.63808213343817', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.26811372322208', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.1421074052653', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.10610560013479', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.98909973346064', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.9656985601258', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.85649308456326', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.84284240011794', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.74046226677806', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.73443990599336', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.63808213343817', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '3.69', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '3.48', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '3.28', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '3.09', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.95', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.78', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.68', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.53', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.94854784018871', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '2.78473962684489', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.567028430805521', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.535526851316325', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.538677009265245', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.538677009265245', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.460710600029485', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.435115566694514', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.437675070028011', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.437675070028011', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.368568480023588', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.348092453355611', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.350140056022409', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.350140056022409', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.63808213343817', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '1.54707757046938', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.69', r.id from result r where r.name='a_ICH*';insert into result_val(value, result_id) select '0.69', r.id from result r where r.name='a_ICH*';
insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.06326422115896' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='1') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.06326422115896' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='1') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.04134124752681' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='2') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.04134124752681' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='2') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.0307153164296' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='3') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.0307153164296' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='3') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.01010101010101' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='4') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.01010101010101' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='4') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.10803324099723' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='5') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.10803324099723' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='5') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.05263157894737' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='6') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.05263157894737' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='6') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.09649122807018' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='7') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.09649122807018' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='7') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.421727395411606' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='8') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.421727395411606' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='8') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.33820439733965' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='9') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.33820439733965' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='9') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.50204277817832' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='10') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.50204277817832' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='10') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.6124871001032' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='11') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.6124871001032' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='11') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.23034066223275' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='12') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.11295431158892' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='12') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.86955026098922' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='13') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.77115287883189' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='13') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.76568635760093' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='14') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.67275549667456' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='14') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.69505890329689' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='15') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.60584527680758' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='15') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.58911772184083' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='16') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.50547994700711' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='16') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.23034066223275' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='17') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.11295431158892' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='17') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.86955026098922' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='18') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.77115287883189' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='18') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.76568635760093' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='19') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.67275549667456' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='19') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.69505890329689' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='20') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.60584527680758' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='20') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.58911772184083' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='21') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.50547994700711' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='21') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.34168755221387' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='22') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.16580925999209' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='22') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.55186728430985' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='23') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.46565243518152' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='23') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.16959064327485' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='24') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.16959064327485' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='24') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.11111111111111' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='25') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.11111111111111' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='25') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.11111111111111' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='26') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.11111111111111' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='26') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.26811372322208' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='27') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.1421074052653' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='27') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.10610560013479' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='28') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.98909973346064' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='28') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.9656985601258' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='29') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.85649308456326' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='29') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.84284240011794' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='30') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.74046226677806' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='30') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.73443990599336' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='31') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.63808213343817' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='31') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.26811372322208' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='32') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.1421074052653' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='32') or (i.name='ROB' and iv.value='1') );
insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.10610560013479' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='33') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.98909973346064' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='33') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.9656985601258' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='34') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.85649308456326' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='34') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.84284240011794' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='35') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.74046226677806' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='35') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.73443990599336' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='36') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.63808213343817' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='36') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.69' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='37') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.48' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='37') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.28' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='38') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.09' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='38') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.95' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='39') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.78' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='39') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.68' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='40') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.53' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='40') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.94854784018871' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='41') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.78473962684489' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='41') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.567028430805521' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='42') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.535526851316325' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='42') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.538677009265245' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='43') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.538677009265245' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='43') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.460710600029485' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='44') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.435115566694514' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='44') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.437675070028011' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='45') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.437675070028011' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='45') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.368568480023588' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='46') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.348092453355611' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='46') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.350140056022409' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='47') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.350140056022409' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='47') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.63808213343817' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='48') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.54707757046938' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='48') or (i.name='ROB' and iv.value='1') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.69' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='49') or (i.name='ROB' and iv.value='0') );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.69' and r.name='a_ICH*' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='CH_a' and iv.value='49') or (i.name='ROB' and iv.value='1') );
insert into result(name) values('a_IecsB');insert into result_val(value, result_id) select '1.72', r.id from result r where r.name='a_IecsB';insert into result_val(value, result_id) select '1.57', r.id from result r where r.name='a_IecsB';insert into result_val(value, result_id) select '1.49', r.id from result r where r.name='a_IecsB';insert into result_val(value, result_id) select '1.41', r.id from result r where r.name='a_IecsB';insert into result_val(value, result_id) select '1.42', r.id from result r where r.name='a_IecsB';insert into result_val(value, result_id) select '1.38', r.id from result r where r.name='a_IecsB';insert into result(name) values('a_IecsG');insert into result_val(value, result_id) select '2.12', r.id from result r where r.name='a_IecsG';insert into result_val(value, result_id) select '3.52', r.id from result r where r.name='a_IecsG';insert into result_val(value, result_id) select '1.99', r.id from result r where r.name='a_IecsG';insert into result_val(value, result_id) select '2.77', r.id from result r where r.name='a_IecsG';insert into result_val(value, result_id) select '1.81', r.id from result r where r.name='a_IecsG';insert into result_val(value, result_id) select '2.57', r.id from result r where r.name='a_IecsG';insert into result_val(value, result_id) select '1.75', r.id from result r where r.name='a_IecsG';insert into result_val(value, result_id) select '2.48', r.id from result r where r.name='a_IecsG';insert into result_val(value, result_id) select '1.62', r.id from result r where r.name='a_IecsG';insert into result_val(value, result_id) select '2.31', r.id from result r where r.name='a_IecsG';insert into result(name) values('a_IecsRI');insert into result_val(value, result_id) select '1.87', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '1.37', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '3.16', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.32', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.91', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.13', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.7', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '1.98', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.52', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '1.85', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.36', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '1.73', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.88', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.11', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.5', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '1.83', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '3.16', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.32', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.91', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.13', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.7', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '1.98', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.52', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '1.85', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.36', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '1.73', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '4.54', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '3.94', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '4.05', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.97', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '2.39', r.id from result r where r.name='a_IecsRI';insert into result_val(value, result_id) select '1.75', r.id from result r where r.name='a_IecsRI';insert into result(name) values('a_IecsDef');insert into result_val(value, result_id) select '1.14', r.id from result r where r.name='a_IecsDef'; insert into result_val(value, result_id) select '2.26', r.id from result r where r.name='a_IecsDef'; insert into result_val(value, result_id) select '3.52', r.id from result r where r.name='a_IecsDef'; insert into result_val(value, result_id) select '2.77', r.id from result r where r.name='a_IecsDef'; insert into result_val(value, result_id) select '2.57', r.id from result r where r.name='a_IecsDef'; insert into result_val(value, result_id) select '2.48', r.id from result r where r.name='a_IecsDef'; insert into result_val(value, result_id) select '2.31', r.id from result r where r.name='a_IecsDef'; 
insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.72' and r.name='a_IecsB' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='B' and iv.value='1')    or (i.name='ECS_a' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.57' and r.name='a_IecsB' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='B' and iv.value='2')    or (i.name='ECS_a' and iv.value='1')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.49' and r.name='a_IecsB' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='B' and iv.value='1')    or (i.name='ECS_a' and iv.value='2')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.41' and r.name='a_IecsB' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='B' and iv.value='2')    or (i.name='ECS_a' and iv.value='2')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.42' and r.name='a_IecsB' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='B' and iv.value='1')    or (i.name='ECS_a' and iv.value='3')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.38' and r.name='a_IecsB' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='B' and iv.value='2')    or (i.name='ECS_a' and iv.value='3')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.12' and r.name='a_IecsG' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='G' and iv.value='1')    or (i.name='ECS_a' and iv.value='6')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.52' and r.name='a_IecsG' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='G' and iv.value='2')    or (i.name='ECS_a' and iv.value='6')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.99' and r.name='a_IecsG' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='G' and iv.value='1')    or (i.name='ECS_a' and iv.value='7')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.77' and r.name='a_IecsG' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='G' and iv.value='2')    or (i.name='ECS_a' and iv.value='7')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.81' and r.name='a_IecsG' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='G' and iv.value='1')    or (i.name='ECS_a' and iv.value='8')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.57' and r.name='a_IecsG' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='G' and iv.value='2')    or (i.name='ECS_a' and iv.value='8')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.75' and r.name='a_IecsG' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='G' and iv.value='1')    or (i.name='ECS_a' and iv.value='9')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.48' and r.name='a_IecsG' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='G' and iv.value='2')    or (i.name='ECS_a' and iv.value='9')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.62' and r.name='a_IecsG' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='G' and iv.value='1')    or (i.name='ECS_a' and iv.value='10')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.31' and r.name='a_IecsG' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='G' and iv.value='2')    or (i.name='ECS_a' and iv.value='10')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.87' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='16')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.37' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='16')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.16' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='17')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.32' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='17')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.91' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='18')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.13' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='18')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.7' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='19')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.98' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='19')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.52' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='20')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.85' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='20')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.36' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='21')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.73' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='21')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.88' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='22')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.11' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='22')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.5' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='23')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.83' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='23')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.16' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='24')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.32' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='24')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.91' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='25')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.13' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='25')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.7' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='26')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.98' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='26')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.52' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='27')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.85' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='27')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.36' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='28')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.73' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='28')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4.54' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='29')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.94' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='29')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4.05' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='30')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.97' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='30')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.39' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='0')    or (i.name='ECS_a' and iv.value='31')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.75' and r.name='a_IecsRI' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (       (i.name='RI' and iv.value='1')    or (i.name='ECS_a' and iv.value='31')     );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.14' and r.name='a_IecsDef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (   (i.name='ECS_a' and iv.value='4')     ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.26' and r.name='a_IecsDef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (   (i.name='ECS_a' and iv.value='5')     ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3.52' and r.name='a_IecsDef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (   (i.name='ECS_a' and iv.value='11')     ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.77' and r.name='a_IecsDef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (   (i.name='ECS_a' and iv.value='12')     ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.57' and r.name='a_IecsDef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (   (i.name='ECS_a' and iv.value='13')     ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.48' and r.name='a_IecsDef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (   (i.name='ECS_a' and iv.value='14')     ); insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2.31' and r.name='a_IecsDef' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (   (i.name='ECS_a' and iv.value='15')     ); 
insert into result(name) values('a_Rclim');insert into result_val(value, result_id) select '1.5', r.id from result r where r.name='a_Rclim';insert into result_val(value, result_id) select '2', r.id from result r where r.name='a_Rclim'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1.5' and r.name='a_Rclim' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='BigCF' and iv.value='1') or (i.name='ZETE' and iv.value='1')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='a_Rclim' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='BigCF' and iv.value='0') or (i.name='ZETE' and iv.value='1')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='a_Rclim';insert into result_val(value, result_id) select '3', r.id from result r where r.name='a_Rclim'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2' and r.name='a_Rclim' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='BigCF' and iv.value='1') or (i.name='ZETE' and iv.value='2')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3' and r.name='a_Rclim' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='BigCF' and iv.value='0') or (i.name='ZETE' and iv.value='2')  );insert into result_val(value, result_id) select '3', r.id from result r where r.name='a_Rclim';insert into result_val(value, result_id) select '4', r.id from result r where r.name='a_Rclim'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3' and r.name='a_Rclim' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='BigCF' and iv.value='1') or (i.name='ZETE' and iv.value='3')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4' and r.name='a_Rclim' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='BigCF' and iv.value='0') or (i.name='ZETE' and iv.value='3')  );insert into result_val(value, result_id) select '4', r.id from result r where r.name='a_Rclim';insert into result_val(value, result_id) select '5', r.id from result r where r.name='a_Rclim'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4' and r.name='a_Rclim' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='BigCF' and iv.value='1') or (i.name='ZETE' and iv.value='4')  );insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5' and r.name='a_Rclim' and not exists   (select * from value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where ( (i.name='BigCF' and iv.value='0') or (i.name='ZETE' and iv.value='4')  );


