START TRANSACTION;
TRUNCATE table value_assoc;
TRUNCATE table input_val;
TRUNCATE table result_val;
TRUNCATE table input;
TRUNCATE table result;

insert into input(name) values('DEPT');insert into input_val(value, input_id, title) select '1', i.id, '01 - Ain' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '2', i.id, '02 - Aisne' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '3', i.id, '03 - Allier' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '4', i.id, '04 - Alpes de Haute Provence' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '5', i.id, '05 - Hautes Alpes' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '6', i.id, '06 - Alpes Maritimes' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '7', i.id, '07 - Ardèche' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '8', i.id, '08 - Ardennes' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '9', i.id, '09 - Ariège' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '10', i.id, '10 - Aube' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '11', i.id, '11 - Aude' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '12', i.id, '12 - Aveyron' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '13', i.id, '13 - Bouches du Rhône' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '14', i.id, '14 - Calvados' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '15', i.id, '15 - Cantal' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '16', i.id, '16 - Charente' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '17', i.id, '17 - Charente Maritime' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '18', i.id, '18 - Cher' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '19', i.id, '19 - Corrèze' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '20', i.id, '2A - Corse du Sud' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '21', i.id, '2B - Haute Corse' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '22', i.id, '21 - Côte d\'Or' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '23', i.id, '22 - Côtes d\'Armor' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '24', i.id, '23 - Creuse' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '25', i.id, '24 - Dordogne' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '26', i.id, '25 - Doubs' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '27', i.id, '26 - Drôme' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '28', i.id, '27 - Eure' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '29', i.id, '28 - Eure et Loir' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '30', i.id, '29 - Finistère' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '31', i.id, '30 - Gard' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '32', i.id, '31 - Haute Garonne' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '33', i.id, '32 - Gers' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '34', i.id, '33 - Gironde' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '35', i.id, '34 - Hérault' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '36', i.id, '35 - Ile et Vilaine' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '37', i.id, '36 - Indre' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '38', i.id, '37 - Indre et Loire' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '39', i.id, '38 - Isère' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '40', i.id, '39 - Jura' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '41', i.id, '40 - Landes' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '42', i.id, '41 - Loir et Cher' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '43', i.id, '42 - Loire' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '44', i.id, '43 - Haute Loire' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '45', i.id, '44 - Loire Atlantique' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '46', i.id, '45 - Loiret' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '47', i.id, '46 - Lot' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '48', i.id, '47 - Lot et Garonne' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '49', i.id, '48 - Lozère' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '50', i.id, '49 - Maine et Loire' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '51', i.id, '50 - Manche' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '52', i.id, '51 - Marne' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '53', i.id, '52 - Haute Marne' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '54', i.id, '53 - Mayenne' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '55', i.id, '54 - Meurthe et Moselle' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '56', i.id, '55 - Meuse' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '57', i.id, '56 - Morbihan' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '58', i.id, '57 - Moselle' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '59', i.id, '58 - Nièvre' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '60', i.id, '59 - Nord' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '61', i.id, '60 - Oise' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '62', i.id, '61 - Orne' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '63', i.id, '62 - Pas de Calais' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '64', i.id, '63 - Puy de Dôme' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '65', i.id, '64 - Pyrénées Atlantiques' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '66', i.id, '65 - Hautes Pyrénées' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '67', i.id, '66 - Pyrénées Orientales' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '68', i.id, '67 - Bas Rhin' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '69', i.id, '68 - Haut Rhin' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '70', i.id, '69 - Rhône' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '71', i.id, '70 - Haute Saône' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '72', i.id, '71 - Saône et Loire' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '73', i.id, '72 - Sarthe' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '74', i.id, '73 - Savoie' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '75', i.id, '74 - Haute Savoie' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '76', i.id, '75 - Paris' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '77', i.id, '76 - Seine Maritime' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '78', i.id, '77 - Seine et Marne' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '79', i.id, '78 - Yvelines' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '80', i.id, '79 - Deux Sèvres' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '81', i.id, '80 - Somme' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '82', i.id, '81 - Tarn' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '83', i.id, '82 - Tarn et Garonne' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '84', i.id, '83 -Var' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '85', i.id, '84 - Vaucluse' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '86', i.id, '85 - Vendée' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '87', i.id, '86 - Vienne' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '88', i.id, '87 - Haute Vienne' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '89', i.id, '88 - Vosges' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '90', i.id, '89 - Yonne' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '91', i.id, '90 - Territoire de Belfort' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '92', i.id, '91 - Essonne' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '93', i.id, '92 - Hauts de Seine' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '94', i.id, '93 - Seine Saint Denis' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '95', i.id, '94 - Val de Marne' from input i where i.name='DEPT';insert into input_val(value, input_id, title) select '96', i.id, '95 - Val d\'Oise' from input i where i.name='DEPT';insert into input(name) values('TCH');insert into input_val(value, input_id, title) select '1', i.id, 'Chauffage individuel' from input i where i.name='TCH';insert into input_val(value, input_id, title) select '2', i.id, 'Chauffage collectif' from input i where i.name='TCH';insert into input(name) values('SH');insert into input(name) values('ROB');insert into input(name) values('R');
insert into input(name) values('ZONE');insert into input_val(value, input_id, title) select '1', i.id, 'H1' from input i where i.name='ZONE';insert into input_val(value, input_id, title) select '2', i.id, 'H2' from input i where i.name='ZONE';insert into input_val(value, input_id, title) select '3', i.id, 'H3' from input i where i.name='ZONE';insert into input(name) values('ACFLAG');insert into input_val(value, input_id, title) select '1', i.id, 'Non' from input i where i.name='ACFLAG';insert into input_val(value, input_id, title) select '2', i.id, 'Oui' from input i where i.name='ACFLAG';insert into input(name) values('LOG');insert into input_val(value, input_id, title, image_url) select '1', i.id, 'Maison', 'maison.png' from input i where i.name='LOG';insert into input_val(value, input_id, title, image_url) select '2', i.id, 'Appartement', 'appartement.png' from input i where i.name='LOG';insert into input_val(value, input_id, title, image_url) select '3', i.id, 'Immeuble collectif', 'appartement.png' from input i where i.name='LOG';insert into input(name) values('ENR');insert into input_val(value, input_id, title) select '1', i.id, 'Électricité' from input i where i.name='ENR';insert into input_val(value, input_id, title) select '2', i.id, 'Combustible (gaz, fioul, bois)' from input i where i.name='ENR';insert into input(name) values('OWNER');insert into input_val(value, input_id, title) select '1', i.id, 'Propriétaire' from input i where i.name='OWNER';insert into input_val(value, input_id, title) select '2', i.id, 'Locataire' from input i where i.name='OWNER';insert into input_val(value, input_id, title) select '3', i.id, 'Autre' from input i where i.name='OWNER';insert into input(name) values('SEC');insert into input_val(value, input_id, title) select '1', i.id, 'Bureaux' from input i where i.name='SEC';insert into input_val(value, input_id, title) select '2', i.id, 'Enseignement' from input i where i.name='SEC';insert into input_val(value, input_id, title) select '3', i.id, 'Commerces' from input i where i.name='SEC';insert into input_val(value, input_id, title) select '4', i.id, 'Hôtel / restaurant' from input i where i.name='SEC';insert into input_val(value, input_id, title) select '5', i.id, 'Santé' from input i where i.name='SEC';insert into input_val(value, input_id, title) select '6', i.id, 'Autres secteurs' from input i where i.name='SEC';insert into input(name) values('SEC2');insert into input_val(value, input_id, title) select '1', i.id, 'Cinémas' from input i where i.name='SEC2';insert into input_val(value, input_id, title) select '2', i.id, 'Salles d\'un volume supérieur à 250 m3' from input i where i.name='SEC2';insert into input_val(value, input_id, title) select '3', i.id, 'Enseignement' from input i where i.name='SEC2';insert into input_val(value, input_id, title) select '4', i.id, 'Restauration' from input i where i.name='SEC2';insert into input_val(value, input_id, title) select '5', i.id, 'Autres locaux' from input i where i.name='SEC2';insert into input(name) values('SEC3');insert into input_val(value, input_id, title) select '1', i.id, 'Santé avec hébergement' from input i where i.name='SEC3';insert into input_val(value, input_id, title) select '2', i.id, 'Hôtels et autres hébergements' from input i where i.name='SEC3';insert into input_val(value, input_id, title) select '3', i.id, 'Santé sans hébergements' from input i where i.name='SEC3';insert into input_val(value, input_id, title) select '4', i.id, 'Bureaux, restauration, commerces' from input i where i.name='SEC3';insert into input_val(value, input_id, title) select '5', i.id, 'Autres secteurs' from input i where i.name='SEC3';insert into input(name) values('SEC4');insert into input_val(value, input_id, title) select '1', i.id, 'Enseignement' from input i where i.name='SEC4';insert into input_val(value, input_id, title) select '2', i.id, 'Salles d\'un volume supérieur à 250 m3' from input i where i.name='SEC4';insert into input_val(value, input_id, title) select '3', i.id, 'Autres locaux' from input i where i.name='SEC4';insert into input_val(value, input_id, title) select '4', i.id, 'Bureaux' from input i where i.name='SEC4';insert into input_val(value, input_id, title) select '5', i.id, 'Locaux sportifs' from input i where i.name='SEC4';insert into input(name) values('SEC5');insert into input_val(value, input_id, title) select '1', i.id, 'Cinémas' from input i where i.name='SEC5';insert into input_val(value, input_id, title) select '2', i.id, 'Salles d\'un volume supérieur à 250 m3' from input i where i.name='SEC5';insert into input_val(value, input_id, title) select '3', i.id, 'Enseignement' from input i where i.name='SEC5';insert into input_val(value, input_id, title) select '4', i.id, 'Autres locaux' from input i where i.name='SEC5';insert into input(name) values('SEC6');insert into input_val(value, input_id, title) select '1', i.id, 'Bureaux' from input i where i.name='SEC6';insert into input_val(value, input_id, title) select '2', i.id, 'Enseignement' from input i where i.name='SEC6';insert into input_val(value, input_id, title) select '3', i.id, 'Restauration' from input i where i.name='SEC6';insert into input_val(value, input_id, title) select '4', i.id, 'Autres locaux (dont chambres d\'hôtel)' from input i where i.name='SEC6';insert into input(name) values('SEC7');insert into input_val(value, input_id, title) select '1', i.id, 'Bureaux' from input i where i.name='SEC7';insert into input_val(value, input_id, title) select '2', i.id, 'Enseignement' from input i where i.name='SEC7';insert into input_val(value, input_id, title) select '3', i.id, 'Restauration' from input i where i.name='SEC7';insert into input_val(value, input_id, title) select '4', i.id, 'Autres locaux' from input i where i.name='SEC7';insert into input_val(value, input_id, title) select '5', i.id, 'Salles d’un volume supérieur à 250 m3*' from input i where i.name='SEC7';insert into input(name) values('P3_TER_RC_POWER');insert into input(name) values('ENER');insert into input_val(value, input_id, title) select '1', i.id, 'Électricité' from input i where i.name='ENER';insert into input_val(value, input_id, title) select '2', i.id, 'Combustible (gaz, fioul, bois)' from input i where i.name='ENER';insert into input(name) values('P3_STOT');insert into input(name) values('ENR_COMB');insert into input_val(value, input_id, title) select '1', i.id, 'Gaz naturel' from input i where i.name='ENR_COMB';insert into input_val(value, input_id, title) select '2', i.id, 'Propane' from input i where i.name='ENR_COMB';insert into input_val(value, input_id, title) select '3', i.id, 'Fioul' from input i where i.name='ENR_COMB';insert into input_val(value, input_id, title) select '4', i.id, 'Bois ou biomasse' from input i where i.name='ENR_COMB';insert into input_val(value, input_id, title) select '5', i.id, 'Autres' from input i where i.name='ENR_COMB';insert into input(name) values('COMBLES');insert into input_val(value, input_id, title) select '1', i.id, 'Perdus' from input i where i.name='COMBLES';insert into input_val(value, input_id, title) select '0', i.id, 'Habités' from input i where i.name='COMBLES';insert into input(name) values('SHCLASS');insert into input_val(value, input_id, title) select '1', i.id, 'S < 35' from input i where i.name='SHCLASS';insert into input_val(value, input_id, title) select '2', i.id, '35 <= S < 60' from input i where i.name='SHCLASS';insert into input_val(value, input_id, title) select '3', i.id, '60<= S < 80' from input i where i.name='SHCLASS';insert into input_val(value, input_id, title) select '4', i.id, '80 <= S < 100' from input i where i.name='SHCLASS';insert into input_val(value, input_id, title) select '5', i.id, '100 <= S <= 130' from input i where i.name='SHCLASS';insert into input_val(value, input_id, title) select '6', i.id, 'S > 130' from input i where i.name='SHCLASS';insert into input(name) values('COPAA');insert into input(name) values('COPEE');insert into input(name) values('COPAE');insert into input(name) values('COPAACLASS');insert into input_val(value, input_id, title) select '1', i.id, '< 3,4' from input i where i.name='COPAACLASS';insert into input_val(value, input_id, title) select '2', i.id, '3,4 <= COP < 3,6' from input i where i.name='COPAACLASS';insert into input_val(value, input_id, title) select '3', i.id, '> 3,6' from input i where i.name='COPAACLASS';insert into input(name) values('COPEECLASS');insert into input_val(value, input_id, title) select '1', i.id, '< 3,4' from input i where i.name='COPEECLASS';insert into input_val(value, input_id, title) select '2', i.id, '3,4 <= COP < 3,5' from input i where i.name='COPEECLASS';insert into input_val(value, input_id, title) select '3', i.id, '3,5 <= COP < 3,6' from input i where i.name='COPEECLASS';insert into input_val(value, input_id, title) select '4', i.id, '> 3,6' from input i where i.name='COPEECLASS';insert into input(name) values('COPAECLASS');insert into input_val(value, input_id, title) select '1', i.id, '< 3,4' from input i where i.name='COPAECLASS';insert into input_val(value, input_id, title) select '2', i.id, '3,4 <= COP < 3,5' from input i where i.name='COPAECLASS';insert into input_val(value, input_id, title) select '3', i.id, '3,5 <= COP < 3,6' from input i where i.name='COPAECLASS';insert into input_val(value, input_id, title) select '4', i.id, '> 3,6' from input i where i.name='COPAECLASS';insert into input(name) values('RAD');insert into input(name) values('NCAPCESI');insert into input(name) values('SCAPCESI');insert into input(name) values('SCAPSSC');insert into input(name) values('SISOC');insert into input(name) values('RC');insert into input(name) values('SISOM');insert into input(name) values('RM');insert into input(name) values('SISOP');insert into input(name) values('RP');insert into input(name) values('SISOT');insert into input(name) values('RT');insert into input_val(value, input_id, title) select '3', i.id, 'Inférieure à 3.5' from input i where i.name='RT';insert into input_val(value, input_id, title) select '4', i.id, 'Supérieure ou égale à 3.5' from input i where i.name='RT';insert into input(name) values('FEN');insert into input(name) values('UW');insert into input(name) values('HYG');insert into input_val(value, input_id, title) select '1', i.id, 'Hygro A' from input i where i.name='HYG';insert into input_val(value, input_id, title) select '2', i.id, 'Hygro B' from input i where i.name='HYG';insert into input(name) values('Teff');insert into input(name) values('TeffCLASS');insert into input_val(value, input_id, title) select '1', i.id, '< 15' from input i where i.name='TeffCLASS';insert into input_val(value, input_id, title) select '2', i.id, '15 <= teff =< 25' from input i where i.name='TeffCLASS';insert into input_val(value, input_id, title) select '3', i.id, '25 < teff <= 50' from input i where i.name='TeffCLASS';insert into input_val(value, input_id, title) select '4', i.id, '50 < teff <= 75' from input i where i.name='TeffCLASS';insert into input_val(value, input_id, title) select '5', i.id, '75 < teff <= 100' from input i where i.name='TeffCLASS';insert into input(name) values('NUH');insert into input(name) values('MONT');insert into input_val(value, input_id, title) select '1', i.id, 'débits inégaux' from input i where i.name='MONT';insert into input_val(value, input_id, title) select '2', i.id, 'débits égaux' from input i where i.name='MONT';insert into input(name) values('CUSAGE2');insert into input_val(value, input_id, title) select '1', i.id, 'Chauffage' from input i where i.name='CUSAGE2';insert into input_val(value, input_id, title) select '2', i.id, 'Chauffage et eau chaude sanitaire accumulée' from input i where i.name='CUSAGE2';insert into input_val(value, input_id, title) select '3', i.id, 'Chauffage et eau chaude sanitaire instantanée' from input i where i.name='CUSAGE2';insert into input(name) values('PVEV');insert into input(name) values('TYPE_CAISSON');insert into input_val(value, input_id, title) select '1', i.id, 'Basse consommation' from input i where i.name='TYPE_CAISSON';insert into input_val(value, input_id, title) select '2', i.id, 'Standard' from input i where i.name='TYPE_CAISSON';insert into input(name) values('P3_TYPE_INSTALL');insert into input_val(value, input_id, title) select '1', i.id, 'Installation d’une VMC double flux autoréglable' from input i where i.name='P3_TYPE_INSTALL';insert into input_val(value, input_id, title) select '2', i.id, 'Installation d’une VMC double flux modulé :' from input i where i.name='P3_TYPE_INSTALL';insert into input(name) values('POWER');insert into input(name) values('POWERCLASS');insert into input_val(value, input_id, title) select '1', i.id, '< 30 kW' from input i where i.name='POWERCLASS';insert into input_val(value, input_id, title) select '2', i.id, '>= 30 kW' from input i where i.name='POWERCLASS';insert into input(name) values('SCHAUF');insert into input(name) values('SCHAUF_GT');insert into input(name) values('CUSAGE');insert into input_val(value, input_id, title) select '1', i.id, 'Chauffage' from input i where i.name='CUSAGE';insert into input_val(value, input_id, title) select '2', i.id, 'Chauffage et eau chaude sanitaire' from input i where i.name='CUSAGE';insert into input(name) values('SISOF');insert into input(name) values('LISOH');insert into input(name) values('LISOEC');insert into input(name) values('PTH');insert into input(name) values('PES');insert into input(name) values('TERCOPCLASS');insert into input_val(value, input_id, title) select '1', i.id, '< 3,4' from input i where i.name='TERCOPCLASS';insert into input_val(value, input_id, title) select '2', i.id, '3,4 <= COP < 3,5' from input i where i.name='TERCOPCLASS';insert into input_val(value, input_id, title) select '3', i.id, '3,5 <= COP < 3,6' from input i where i.name='TERCOPCLASS';insert into input_val(value, input_id, title) select '4', i.id, '> 3,6' from input i where i.name='TERCOPCLASS';insert into input(name) values('TENR');insert into input(name) values('APPVEV');insert into input_val(value, input_id, title) select '1', i.id, 'Chauffage, pompage' from input i where i.name='APPVEV';insert into input_val(value, input_id, title) select '2', i.id, 'Ventilation, renouvellement d\'air : locaux assurant un hébergement' from input i where i.name='APPVEV';insert into input_val(value, input_id, title) select '3', i.id, 'Ventilation, renouvellement d\'air : autres locaux' from input i where i.name='APPVEV';insert into input_val(value, input_id, title) select '4', i.id, 'Réfrigération' from input i where i.name='APPVEV';insert into input_val(value, input_id, title) select '5', i.id, 'Climatisation' from input i where i.name='APPVEV';insert into input(name) values('PENGINETER');insert into input(name) values('PCLIM');insert into input(name) values('LEDGEST');insert into input_val(value, input_id, title) select '1', i.id, 'Sans gestion de l\'éclairage' from input i where i.name='LEDGEST';insert into input_val(value, input_id, title) select '2', i.id, 'Détection de présence OU variation de lumière' from input i where i.name='LEDGEST';insert into input_val(value, input_id, title) select '3', i.id, 'Détection de présence ET variation de lumière' from input i where i.name='LEDGEST';insert into input(name) values('LUMGEST');insert into input_val(value, input_id, title) select '1', i.id, 'Sans gestion automatique' from input i where i.name='LUMGEST';insert into input_val(value, input_id, title) select '2', i.id, 'Contrôle détection présence OU variation de lumière' from input i where i.name='LUMGEST';insert into input_val(value, input_id, title) select '3', i.id, 'Détection de présence ET variation de lumière' from input i where i.name='LUMGEST';insert into input(name) values('LEDLIFE');insert into input_val(value, input_id, title) select '1', i.id, 'Supérieure ou égale à 20 000 heures' from input i where i.name='LEDLIFE';insert into input_val(value, input_id, title) select '2', i.id, 'Supérieure ou égale à 40 000 heures' from input i where i.name='LEDLIFE';insert into input(name) values('NLED');insert into input(name) values('SFROID');insert into input(name) values('P3_CUSAGE');insert into input_val(value, input_id, title) select '1', i.id, 'Production d’eau chaude sanitaire' from input i where i.name='P3_CUSAGE';insert into input_val(value, input_id, title) select '2', i.id, 'Chauffage' from input i where i.name='P3_CUSAGE';insert into input_val(value, input_id, title) select '3', i.id, 'Production d’eau chaude sanitaire et chauffage' from input i where i.name='P3_CUSAGE';insert into input(name) values('P3_PUISSANCE_LED');insert into input_val(value, input_id, title) select '1', i.id, 'P < 5' from input i where i.name='P3_PUISSANCE_LED';insert into input_val(value, input_id, title) select '2', i.id, '5 <= P < 8' from input i where i.name='P3_PUISSANCE_LED';insert into input_val(value, input_id, title) select '3', i.id, '8 <= P' from input i where i.name='P3_PUISSANCE_LED';insert into input(name) values('SE');insert into input_val(value, input_id, title) select '1', i.id, 'Oui' from input i where i.name='SE';insert into input_val(value, input_id, title) select '0', i.id, 'Non' from input i where i.name='SE';insert into input(name) values('SELENGTH');insert into input_val(value, input_id, title) select '1', i.id, '1 an' from input i where i.name='SELENGTH';insert into input_val(value, input_id, title) select '2', i.id, '2 ans' from input i where i.name='SELENGTH';insert into input_val(value, input_id, title) select '3', i.id, '3 ans' from input i where i.name='SELENGTH';insert into input_val(value, input_id, title) select '4', i.id, '4 ans' from input i where i.name='SELENGTH';insert into input_val(value, input_id, title) select '5', i.id, '5 ans' from input i where i.name='SELENGTH';insert into input_val(value, input_id, title) select '6', i.id, '6 ans' from input i where i.name='SELENGTH';insert into input_val(value, input_id, title) select '7', i.id, '7 ans' from input i where i.name='SELENGTH';insert into input_val(value, input_id, title) select '8', i.id, '8 ans' from input i where i.name='SELENGTH';insert into input(name) values('NPROG');insert into input(name) values('NAPP');insert into input(name) values('SCLIM');insert into input(name) values('P3_TYEP_CLIM');insert into input_val(value, input_id, title) select '1', i.id, 'Climatisation de confort d\'un local (hors datacenter)' from input i where i.name='P3_TYEP_CLIM';insert into input_val(value, input_id, title) select '2', i.id, 'Climatisation d\'un datacenter' from input i where i.name='P3_TYEP_CLIM';insert into input_val(value, input_id, title) select '3', i.id, 'Autres application de type réfrigération ou conditionnement d\'ambiance hors confort des occupants' from input i where i.name='P3_TYEP_CLIM';insert into input(name) values('TYPE_CLIM');insert into input_val(value, input_id, title) select '1', i.id, 'Réfrigération ou condionnement d\'ambiance hors confort' from input i where i.name='TYPE_CLIM';insert into input_val(value, input_id, title) select '2', i.id, 'Climatisation de confort d\'un local' from input i where i.name='TYPE_CLIM';insert into input(name) values('P3_LOG');insert into input_val(value, input_id, title) select '1', i.id, 'Logement existant' from input i where i.name='P3_LOG';insert into input_val(value, input_id, title) select '2', i.id, 'Logement neuf' from input i where i.name='P3_LOG';insert into input(name) values('P3_RT');insert into input_val(value, input_id, title) select '1', i.id, '0.5 <= R <1.2' from input i where i.name='P3_RT';insert into input_val(value, input_id, title) select '2', i.id, '1.2 <= R' from input i where i.name='P3_RT';insert into input(name) values('PAERO');insert into input(name) values('HLOC');insert into input(name) values('HLOCCLASS');insert into input_val(value, input_id, title) select '1', i.id, '5 <= h < 10' from input i where i.name='HLOCCLASS';insert into input_val(value, input_id, title) select '2', i.id, 'h >= 10' from input i where i.name='HLOCCLASS';insert into input(name) values('MFUNC');insert into input_val(value, input_id, title) select '1', i.id, '1 fois 8h' from input i where i.name='MFUNC';insert into input_val(value, input_id, title) select '2', i.id, '2 fois 8h' from input i where i.name='MFUNC';insert into input_val(value, input_id, title) select '3', i.id, '3 fois 8h avec arrêt le week-end' from input i where i.name='MFUNC';insert into input_val(value, input_id, title) select '4', i.id, '3 fois 8h sans arrêt le week-end' from input i where i.name='MFUNC';insert into input(name) values('PENGINE');insert into input(name) values('PENGINE2');insert into input(name) values('APPENGINE');insert into input_val(value, input_id, title) select '1', i.id, 'Pompage' from input i where i.name='APPENGINE';insert into input_val(value, input_id, title) select '2', i.id, 'Ventilation' from input i where i.name='APPENGINE';insert into input_val(value, input_id, title) select '3', i.id, 'Air comprimé' from input i where i.name='APPENGINE';insert into input_val(value, input_id, title) select '4', i.id, 'Compresseur froid' from input i where i.name='APPENGINE';insert into input_val(value, input_id, title) select '5', i.id, 'Broyeurs, convoyeurs, agitateurs' from input i where i.name='APPENGINE';insert into input(name) values('PENGINECLASS');insert into input_val(value, input_id, title) select '1', i.id, 'P <= 630 kW' from input i where i.name='PENGINECLASS';insert into input_val(value, input_id, title) select '2', i.id, 'P > 630 kW' from input i where i.name='PENGINECLASS';insert into input(name) values('PLIGHT');insert into input(name) values('NLIGHT');insert into input(name) values('PLIGHTSOD');insert into input_val(value, input_id, title) select '1', i.id, 'Puissance <= 70 W' from input i where i.name='PLIGHTSOD';insert into input_val(value, input_id, title) select '2', i.id, '70 < Puissance < 250 W' from input i where i.name='PLIGHTSOD';insert into input_val(value, input_id, title) select '3', i.id, 'Puissance >= 250 W' from input i where i.name='PLIGHTSOD';insert into input(name) values('SCOND');insert into input_val(value, input_id, title) select '1', i.id, 'Condensation par rapport à l\'atmosphère' from input i where i.name='SCOND';insert into input_val(value, input_id, title) select '2', i.id, 'Condensateurs eau seuls' from input i where i.name='SCOND';insert into input(name) values('DeltaTypeCond');insert into input_val(value, input_id, title) select '1', i.id, 'Sur air sec' from input i where i.name='DeltaTypeCond';insert into input_val(value, input_id, title) select '2', i.id, 'Sur air humide' from input i where i.name='DeltaTypeCond';insert into input(name) values('PCOMP');insert into input(name) values('EVAPLEVEL');insert into input_val(value, input_id, title) select '1', i.id, 'Très basses températeurs (de -56°C à -26°C); températeure d\'évaporation moyenne =-38°C' from input i where i.name='EVAPLEVEL';insert into input_val(value, input_id, title) select '2', i.id, 'Basses températeurs (de -25°C à -6°C); températeure d\'évaporation moyenne =-15°C' from input i where i.name='EVAPLEVEL';insert into input_val(value, input_id, title) select '3', i.id, 'Froid positif (de -5°C à 5°C); températeure d\'évaporation moyenne =0°C' from input i where i.name='EVAPLEVEL';insert into input(name) values('CONDFUNC');insert into input_val(value, input_id, title) select '1', i.id, '1x8 (5j/7)' from input i where i.name='CONDFUNC';insert into input_val(value, input_id, title) select '2', i.id, '2x8 (5j/7)' from input i where i.name='CONDFUNC';insert into input_val(value, input_id, title) select '3', i.id, '2x8 (6j/7)' from input i where i.name='CONDFUNC';insert into input_val(value, input_id, title) select '4', i.id, '2x8 (7j/7)' from input i where i.name='CONDFUNC';insert into input_val(value, input_id, title) select '5', i.id, '3x8 (5j/7)' from input i where i.name='CONDFUNC';insert into input_val(value, input_id, title) select '6', i.id, '3x8 (6j/7)' from input i where i.name='CONDFUNC';insert into input_val(value, input_id, title) select '7', i.id, '3x8 (7j/7)' from input i where i.name='CONDFUNC';insert into input(name) values('DTASEC');insert into input_val(value, input_id, title) select '1', i.id, '0' from input i where i.name='DTASEC';insert into input_val(value, input_id, title) select '2', i.id, '1' from input i where i.name='DTASEC';insert into input_val(value, input_id, title) select '3', i.id, '2' from input i where i.name='DTASEC';insert into input_val(value, input_id, title) select '4', i.id, '3' from input i where i.name='DTASEC';insert into input_val(value, input_id, title) select '5', i.id, '4' from input i where i.name='DTASEC';insert into input_val(value, input_id, title) select '6', i.id, '5' from input i where i.name='DTASEC';insert into input_val(value, input_id, title) select '7', i.id, '6' from input i where i.name='DTASEC';insert into input_val(value, input_id, title) select '8', i.id, '7' from input i where i.name='DTASEC';insert into input_val(value, input_id, title) select '9', i.id, '8' from input i where i.name='DTASEC';insert into input_val(value, input_id, title) select '10', i.id, '9' from input i where i.name='DTASEC';insert into input_val(value, input_id, title) select '11', i.id, '10' from input i where i.name='DTASEC';insert into input_val(value, input_id, title) select '12', i.id, '11' from input i where i.name='DTASEC';insert into input_val(value, input_id, title) select '13', i.id, '12 ou plus' from input i where i.name='DTASEC';insert into input(name) values('DTAHUM');insert into input_val(value, input_id, title) select '14', i.id, '10' from input i where i.name='DTAHUM';insert into input_val(value, input_id, title) select '15', i.id, '11' from input i where i.name='DTAHUM';insert into input_val(value, input_id, title) select '16', i.id, '12' from input i where i.name='DTAHUM';insert into input_val(value, input_id, title) select '17', i.id, '13' from input i where i.name='DTAHUM';insert into input_val(value, input_id, title) select '18', i.id, '14' from input i where i.name='DTAHUM';insert into input_val(value, input_id, title) select '19', i.id, '15' from input i where i.name='DTAHUM';insert into input_val(value, input_id, title) select '20', i.id, '16' from input i where i.name='DTAHUM';insert into input_val(value, input_id, title) select '21', i.id, '17' from input i where i.name='DTAHUM';insert into input_val(value, input_id, title) select '22', i.id, '18' from input i where i.name='DTAHUM';insert into input_val(value, input_id, title) select '23', i.id, '19' from input i where i.name='DTAHUM';insert into input_val(value, input_id, title) select '24', i.id, '20' from input i where i.name='DTAHUM';insert into input_val(value, input_id, title) select '25', i.id, '21' from input i where i.name='DTAHUM';insert into input_val(value, input_id, title) select '26', i.id, '22 ou plus' from input i where i.name='DTAHUM';
insert into input(name) values('DTEAU');insert into input_val(value, input_id, title) select '27', i.id, '6 ou moins' from input i where i.name='DTEAU';insert into input_val(value, input_id, title) select '28', i.id, '7' from input i where i.name='DTEAU';insert into input_val(value, input_id, title) select '29', i.id, '8 ou plus' from input i where i.name='DTEAU';insert into input(name) values('DTCOND');insert into input_val(value, input_id, title) select '1', i.id, '0' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '2', i.id, '1' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '3', i.id, '2' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '4', i.id, '3' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '5', i.id, '4' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '6', i.id, '5' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '7', i.id, '6' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '8', i.id, '7' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '9', i.id, '8' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '10', i.id, '9' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '11', i.id, '10' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '12', i.id, '11' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '13', i.id, '12 ou plus' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '14', i.id, '10' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '15', i.id, '11' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '16', i.id, '12' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '17', i.id, '13' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '18', i.id, '14' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '19', i.id, '15' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '20', i.id, '16' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '21', i.id, '17' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '22', i.id, '18' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '23', i.id, '19' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '24', i.id, '20' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '25', i.id, '21' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '26', i.id, '22 ou plus' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '27', i.id, '6 ou moins' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '28', i.id, '7' from input i where i.name='DTCOND';insert into input_val(value, input_id, title) select '29', i.id, '8 ou plus' from input i where i.name='DTCOND';insert into input(name) values('NATFLUIDE');insert into input_val(value, input_id, title) select '1', i.id, 'pour les réseaux de vapeur' from input i where i.name='NATFLUIDE';insert into input_val(value, input_id, title) select '2', i.id, 'pour les réseaux d\'eau chaude' from input i where i.name='NATFLUIDE';insert into input_val(value, input_id, title) select '3', i.id, 'pour les réseaux d\'eau surchauffée' from input i where i.name='NATFLUIDE';insert into input_val(value, input_id, title) select '4', i.id, 'pour les réseaux de fluide organique' from input i where i.name='NATFLUIDE';insert into input(name) values('MFUNC2');insert into input_val(value, input_id, title) select '1', i.id, '1x8' from input i where i.name='MFUNC2';insert into input_val(value, input_id, title) select '2', i.id, '2x8 ou 3x8 avec arrêt le week-end' from input i where i.name='MFUNC2';insert into input_val(value, input_id, title) select '3', i.id, '3x8 sans arrêt le week-end' from input i where i.name='MFUNC2';insert into input(name) values('NPOINT');insert into input(name) values('SEQTYPE');insert into input_val(value, input_id, title) select '1', i.id, 'simple sans option "optimisation d\'énergie"' from input i where i.name='SEQTYPE';insert into input_val(value, input_id, title) select '2', i.id, 'avec option "optimisation d\'énergie"' from input i where i.name='SEQTYPE';insert into input(name) values('NCOMP');insert into input_val(value, input_id, title) select '1', i.id, '2' from input i where i.name='NCOMP';insert into input_val(value, input_id, title) select '2', i.id, '3' from input i where i.name='NCOMP';insert into input_val(value, input_id, title) select '3', i.id, '4' from input i where i.name='NCOMP';insert into input_val(value, input_id, title) select '4', i.id, '5' from input i where i.name='NCOMP';insert into input_val(value, input_id, title) select '5', i.id, '6' from input i where i.name='NCOMP';insert into input_val(value, input_id, title) select '6', i.id, '7' from input i where i.name='NCOMP';insert into input_val(value, input_id, title) select '7', i.id, '8' from input i where i.name='NCOMP';insert into input(name) values('PCOMPTOT');insert into input(name) values('DTEMPREG');insert into input_val(value, input_id, title) select '1', i.id, '1' from input i where i.name='DTEMPREG';insert into input_val(value, input_id, title) select '2', i.id, '2' from input i where i.name='DTEMPREG';insert into input_val(value, input_id, title) select '3', i.id, '3' from input i where i.name='DTEMPREG';insert into input_val(value, input_id, title) select '4', i.id, '4' from input i where i.name='DTEMPREG';insert into input_val(value, input_id, title) select '5', i.id, '5' from input i where i.name='DTEMPREG';insert into input(name) values('P3_MV_POWER');insert into input(name) values('P3_MEUBLE_FRIG');insert into input_val(value, input_id, title) select '1', i.id, 'Simple' from input i where i.name='P3_MEUBLE_FRIG';insert into input_val(value, input_id, title) select '2', i.id, 'Double' from input i where i.name='P3_MEUBLE_FRIG';insert into input_val(value, input_id, title) select '3', i.id, 'Combiné' from input i where i.name='P3_MEUBLE_FRIG';insert into input(name) values('P3_LONG_COUVERCLES');insert into input(name) values('work_start_date');insert into input(name) values('P3_SCHAUF');insert into input(name) values('P3_SHCLASS');insert into input_val(value, input_id, title) select '1', i.id, 'S < 35' from input i where i.name='P3_SHCLASS';insert into input_val(value, input_id, title) select '2', i.id, '35 <= S < 60' from input i where i.name='P3_SHCLASS';insert into input_val(value, input_id, title) select '3', i.id, '60<= S < 70' from input i where i.name='P3_SHCLASS';insert into input_val(value, input_id, title) select '4', i.id, '70 <= S < 90' from input i where i.name='P3_SHCLASS';insert into input_val(value, input_id, title) select '5', i.id, '90 <= S < 110' from input i where i.name='P3_SHCLASS';insert into input_val(value, input_id, title) select '6', i.id, '110 <= S <= 130' from input i where i.name='P3_SHCLASS';insert into input_val(value, input_id, title) select '7', i.id, 'S > 130' from input i where i.name='P3_SHCLASS';insert into input(name) values('P3_COPE');insert into input(name) values('P3_COPECLASS');insert into input_val(value, input_id, title) select '1', i.id, '3,4 <= COP < 4' from input i where i.name='P3_COPECLASS';insert into input_val(value, input_id, title) select '2', i.id, 'COP >= 4' from input i where i.name='P3_COPECLASS';insert into input(name) values('P3_ETAS');insert into input(name) values('P3_ETASCLASS');insert into input_val(value, input_id, title) select '1', i.id, '102% <= Etas < 110 %' from input i where i.name='P3_ETASCLASS';insert into input_val(value, input_id, title) select '2', i.id, '110% <= Etas < 120 %' from input i where i.name='P3_ETASCLASS';insert into input_val(value, input_id, title) select '3', i.id, 'Etas >= 120 %' from input i where i.name='P3_ETASCLASS';insert into input(name) values('P3_COPA');insert into input(name) values('P3_COPACLASS');insert into input_val(value, input_id, title) select '1', i.id, '3,9 <= COP < 4.3' from input i where i.name='P3_COPACLASS';insert into input_val(value, input_id, title) select '2', i.id, 'COP >= 4.3' from input i where i.name='P3_COPACLASS';insert into input(name) values('P3_CH_POWER');insert into input(name) values('P3_POWERCLASS');insert into input_val(value, input_id, title) select '1', i.id, 'P<= 400 kW' from input i where i.name='P3_POWERCLASS';insert into input_val(value, input_id, title) select '2', i.id, 'P > 400 kW' from input i where i.name='P3_POWERCLASS';insert into input(name) values('P3_CH_COND_POWER');insert into input(name) values('P3_OTHER_EQ');insert into input_val(value, input_id, title) select '0', i.id, 'Non' from input i where i.name='P3_OTHER_EQ';insert into input_val(value, input_id, title) select '1', i.id, 'Oui' from input i where i.name='P3_OTHER_EQ';insert into input(name) values('P3_TOT_NEW_CH_POWER');insert into input(name) values('P3_PAC_POWER');insert into input(name) values('P3_CHAUFF_TOT_POWER');insert into input(name) values('P3_SELENGTH');insert into input_val(value, input_id, title) select '1', i.id, '1 an' from input i where i.name='P3_SELENGTH';insert into input_val(value, input_id, title) select '2', i.id, '2 ans' from input i where i.name='P3_SELENGTH';insert into input_val(value, input_id, title) select '3', i.id, '3 ans' from input i where i.name='P3_SELENGTH';insert into input_val(value, input_id, title) select '4', i.id, '4 ans' from input i where i.name='P3_SELENGTH';insert into input_val(value, input_id, title) select '5', i.id, '5 ans' from input i where i.name='P3_SELENGTH';insert into input_val(value, input_id, title) select '6', i.id, '6 ans' from input i where i.name='P3_SELENGTH';insert into input_val(value, input_id, title) select '7', i.id, '7 ans' from input i where i.name='P3_SELENGTH';insert into input_val(value, input_id, title) select '8', i.id, '8 ans' from input i where i.name='P3_SELENGTH';insert into input_val(value, input_id, title) select '9', i.id, '9 ans' from input i where i.name='P3_SELENGTH';insert into input_val(value, input_id, title) select '10', i.id, '10 ans' from input i where i.name='P3_SELENGTH';insert into input(name) values('P3_PVEV');insert into input(name) values('P3_FERM');insert into input(name) values('P3_LAMP_FC');insert into input(name) values('P3_HYDRO_TYPE');insert into input_val(value, input_id, title) select '1', i.id, 'Pomme de douche de classe Z' from input i where i.name='P3_HYDRO_TYPE';insert into input_val(value, input_id, title) select '2', i.id, 'Pomme de douche de classe ZZ ou Watersense' from input i where i.name='P3_HYDRO_TYPE';insert into input_val(value, input_id, title) select '3', i.id, '1 Aérateur non régulé de classe Z' from input i where i.name='P3_HYDRO_TYPE';insert into input_val(value, input_id, title) select '4', i.id, '2 Aérateur non régulé de classe Z' from input i where i.name='P3_HYDRO_TYPE';insert into input_val(value, input_id, title) select '5', i.id, '1 Aérateurs auto-régulés' from input i where i.name='P3_HYDRO_TYPE';insert into input_val(value, input_id, title) select '6', i.id, '2 Aérateurs auto-régulés' from input i where i.name='P3_HYDRO_TYPE';insert into input_val(value, input_id, title) select '7', i.id, 'Pomme de douche de classe ZZ ou Watersense + 2 aérateurs auto-régulés' from input i where i.name='P3_HYDRO_TYPE';insert into input(name) values('P3_NHYDRO');insert into input(name) values('P3_PAC_COL_POWER');insert into input(name) values('P3_TOT_NEW_PAC_POWER');insert into input(name) values('P3_HAS_PAC_POWER');insert into input_val(value, input_id, title) select '0', i.id, 'Non' from input i where i.name='P3_HAS_PAC_POWER';insert into input_val(value, input_id, title) select '1', i.id, 'Oui' from input i where i.name='P3_HAS_PAC_POWER';insert into input(name) values('P3_PAC_COPE');insert into input(name) values('P3_HAS_PAC');insert into input_val(value, input_id, title) select '0', i.id, 'Non' from input i where i.name='P3_HAS_PAC';insert into input_val(value, input_id, title) select '1', i.id, 'Oui' from input i where i.name='P3_HAS_PAC';insert into input(name) values('P3_IK');insert into input_val(value, input_id, title) select '0', i.id, 'Inférieur à 10' from input i where i.name='P3_IK';insert into input_val(value, input_id, title) select '1', i.id, 'Egal à 10' from input i where i.name='P3_IK';insert into input(name) values('P3_LUMGEST');insert into input_val(value, input_id, title) select '0', i.id, 'Contrôle détection présence OU tenant compte des apports de la lumière du jour' from input i where i.name='P3_LUMGEST';insert into input_val(value, input_id, title) select '1', i.id, 'Contrôle détection présence ET tenant compte des apports de la lumière du jour' from input i where i.name='P3_LUMGEST';insert into input(name) values('P3_NEMET');insert into input(name) values('P3_TYPE_PAC');insert into input_val(value, input_id, title) select '0', i.id, 'basse température' from input i where i.name='P3_TYPE_PAC';insert into input_val(value, input_id, title) select '1', i.id, 'moyenne ou haute température' from input i where i.name='P3_TYPE_PAC';insert into input(name) values('P3_APPVEV');insert into input_val(value, input_id, title) select '1', i.id, 'Chauffage, pompage' from input i where i.name='P3_APPVEV';insert into input_val(value, input_id, title) select '2', i.id, 'Ventilation, renouvellement d\'air' from input i where i.name='P3_APPVEV';insert into input_val(value, input_id, title) select '3', i.id, 'Réfrigération' from input i where i.name='P3_APPVEV';insert into input_val(value, input_id, title) select '4', i.id, 'Climatisation' from input i where i.name='P3_APPVEV';insert into input_val(value, input_id, title) select '5', i.id, 'Autres applications' from input i where i.name='P3_APPVEV';insert into input(name) values('P3_GLASSDOOR_LENGTH');insert into input(name) values('P3_STUBE');insert into input(name) values('P3_LED_POWER');insert into input(name) values('P3_GESTION_ECL');insert into input_val(value, input_id, title) select '1', i.id, 'Sans dispositif de gestion' from input i where i.name='P3_GESTION_ECL';insert into input_val(value, input_id, title) select '2', i.id, 'Variation de la puissance en fonction de la lumière du jour' from input i where i.name='P3_GESTION_ECL';insert into input_val(value, input_id, title) select '3', i.id, 'Variation de puissance en fonction de l\'activité' from input i where i.name='P3_GESTION_ECL';insert into input_val(value, input_id, title) select '4', i.id, 'Variation en fonction de l\'activité et de la lumière du jour' from input i where i.name='P3_GESTION_ECL';insert into input(name) values('P3_NBR_LAMP');insert into input(name) values('P3_NBR_LUM');insert into input(name) values('P3_ECLAIRAGE_TYPE');insert into input_val(value, input_id, title) select '1', i.id, 'lampes à LED' from input i where i.name='P3_ECLAIRAGE_TYPE';insert into input_val(value, input_id, title) select '2', i.id, 'luminaires à modules LED' from input i where i.name='P3_ECLAIRAGE_TYPE';insert into input(name) values('P3_TYPE_LED_GESTION');insert into input_val(value, input_id, title) select '1', i.id, 'Aucun dispositif ' from input i where i.name='P3_TYPE_LED_GESTION';insert into input_val(value, input_id, title) select '2', i.id, 'Détection de présence ou variation de lumière' from input i where i.name='P3_TYPE_LED_GESTION';insert into input_val(value, input_id, title) select '3', i.id, 'Détection et variation de lumière' from input i where i.name='P3_TYPE_LED_GESTION';
insert into input(name) values('P3_DUREE_VIE_LUM');insert into input_val(value, input_id, title) select '1', i.id, 'Inférieure à  25 000 heures' from input i where i.name='P3_DUREE_VIE_LUM';insert into input_val(value, input_id, title) select '2', i.id, 'Supérieure ou égale à 25 000 et inférieure à 50 000 heures' from input i where i.name='P3_DUREE_VIE_LUM';insert into input_val(value, input_id, title) select '3', i.id, 'Supérieure ou égale à 50 000 heures' from input i where i.name='P3_DUREE_VIE_LUM';insert into input(name) values('P3_LIEU_INSTALL');insert into input_val(value, input_id, title) select '1', i.id, 'un espace de vente ou de stockage d’un commerce' from input i where i.name='P3_LIEU_INSTALL';insert into input_val(value, input_id, title) select '2', i.id, 'un établissement sportif' from input i where i.name='P3_LIEU_INSTALL';insert into input_val(value, input_id, title) select '3', i.id, 'un parking couvert d’un bâtiment tertiaire ou d’habitation' from input i where i.name='P3_LIEU_INSTALL';insert into input(name) values('P3_NBR_TUBE_LED');insert into input(name) values('P3_LONG_TUBE');insert into input_val(value, input_id, title) select '1', i.id, '1.2 m' from input i where i.name='P3_LONG_TUBE';insert into input_val(value, input_id, title) select '2', i.id, '1.5 m' from input i where i.name='P3_LONG_TUBE';insert into input(name) values('P3_BALAST');insert into input_val(value, input_id, title) select '1', i.id, 'Oui' from input i where i.name='P3_BALAST';insert into input_val(value, input_id, title) select '2', i.id, 'Non' from input i where i.name='P3_BALAST';insert into input(name) values('P3_B_ECS');insert into input(name) values('P3_PES_ECS');insert into input(name) values('P3_SV');insert into input(name) values('P3_TYPE_VENTILATION');insert into input_val(value, input_id, title) select '1', i.id, 'Modulée proportionnelle' from input i where i.name='P3_TYPE_VENTILATION';insert into input_val(value, input_id, title) select '2', i.id, 'Modulée à détection de présence' from input i where i.name='P3_TYPE_VENTILATION';insert into input_val(value, input_id, title) select '3', i.id, 'A débit d’air constant' from input i where i.name='P3_TYPE_VENTILATION';insert into input(name) values('P3_TYPE_VENTILATION_2');insert into input_val(value, input_id, title) select '1', i.id, 'Modulée proportionnelle' from input i where i.name='P3_TYPE_VENTILATION_2';insert into input_val(value, input_id, title) select '2', i.id, 'Modulée à détection de présence' from input i where i.name='P3_TYPE_VENTILATION_2';insert into input_val(value, input_id, title) select '3', i.id, 'A débit d’air constant avec échangeur ' from input i where i.name='P3_TYPE_VENTILATION_2';insert into input(name) values('P3_TER_HYDRO_TYPE');insert into input_val(value, input_id, title) select '1', i.id, 'Pomme de douche de classe Z' from input i where i.name='P3_TER_HYDRO_TYPE';insert into input_val(value, input_id, title) select '2', i.id, 'Pomme de douche de classe ZZ ou Watersense' from input i where i.name='P3_TER_HYDRO_TYPE';insert into input_val(value, input_id, title) select '3', i.id, 'Aérateurs non régulés Classe Z' from input i where i.name='P3_TER_HYDRO_TYPE';insert into input_val(value, input_id, title) select '4', i.id, 'Aérateurs auto-régulés' from input i where i.name='P3_TER_HYDRO_TYPE';insert into input(name) values('P3_TER_SEC1');insert into input_val(value, input_id, title) select '1', i.id, 'Bureaux ' from input i where i.name='P3_TER_SEC1';insert into input_val(value, input_id, title) select '2', i.id, 'Enseignement' from input i where i.name='P3_TER_SEC1';insert into input_val(value, input_id, title) select '3', i.id, 'Hôtellerie et habitat communautaire' from input i where i.name='P3_TER_SEC1';insert into input_val(value, input_id, title) select '4', i.id, 'Santé' from input i where i.name='P3_TER_SEC1';insert into input_val(value, input_id, title) select '5', i.id, 'Etablissements sportifs' from input i where i.name='P3_TER_SEC1';insert into input_val(value, input_id, title) select '6', i.id, 'Autres secteurs' from input i where i.name='P3_TER_SEC1';insert into input(name) values('P3_TER_SEC2');insert into input_val(value, input_id, title) select '1', i.id, 'Santé' from input i where i.name='P3_TER_SEC2';insert into input_val(value, input_id, title) select '2', i.id, 'Hôtellerie et habitat communautaire' from input i where i.name='P3_TER_SEC2';insert into input_val(value, input_id, title) select '3', i.id, 'Etablissements sportifs' from input i where i.name='P3_TER_SEC2';insert into input(name) values('P3_TER_NBR_SYS');insert into input(name) values('P3_TER_DESTRAT_SEC');insert into input_val(value, input_id, title) select '1', i.id, 'Activités sportives ou transports' from input i where i.name='P3_TER_DESTRAT_SEC';insert into input_val(value, input_id, title) select '2', i.id, 'Commerce, spectacles, conférences, loisirs, lieux de cultes' from input i where i.name='P3_TER_DESTRAT_SEC';insert into input(name) values('P3_RECUP_POWER');insert into input(name) values('P3_HEAT_USE');insert into input_val(value, input_id, title) select '1', i.id, 'Chauffage de locaux ou d\'ECS' from input i where i.name='P3_HEAT_USE';insert into input_val(value, input_id, title) select '2', i.id, 'Procédé industriel' from input i where i.name='P3_HEAT_USE';insert into input(name) values('P3_COLD_POWER');insert into input(name) values('P3_DESTRAT_POWER');insert into input(name) values('P3_DESTRAT_TYPE');insert into input_val(value, input_id, title) select '1', i.id, 'Système convectif' from input i where i.name='P3_DESTRAT_TYPE';insert into input_val(value, input_id, title) select '2', i.id, 'Système radiatif' from input i where i.name='P3_DESTRAT_TYPE';insert into input(name) values('P3_FRIG_POWER');insert into input(name) values('P3_PTHERM');insert into input(name) values('P3_PRESSE_POWER');insert into input(name) values('P3_PRESSE_TYPE');insert into input_val(value, input_id, title) select '1', i.id, 'Presse à injecter toute électrique' from input i where i.name='P3_PRESSE_TYPE';insert into input_val(value, input_id, title) select '2', i.id, 'Presse à injecter hybride' from input i where i.name='P3_PRESSE_TYPE';insert into input_val(value, input_id, title) select '3', i.id, 'Transformation d\'une presse existante en presse hybride' from input i where i.name='P3_PRESSE_TYPE';insert into input(name) values('P3_MFUNC');insert into input_val(value, input_id, title) select '1', i.id, '1x8h ou < 3000 h/an' from input i where i.name='P3_MFUNC';insert into input_val(value, input_id, title) select '2', i.id, '2x8h ou >= 3000 et < 5000 h/an' from input i where i.name='P3_MFUNC';insert into input_val(value, input_id, title) select '3', i.id, '3x8h avec arrêt le week-end ou >= 5000 et < 7000 h/an' from input i where i.name='P3_MFUNC';insert into input_val(value, input_id, title) select '4', i.id, '3x8h sans arrêt le week-end ou >= 7000 h/an' from input i where i.name='P3_MFUNC';insert into input(name) values('P3_RECUP_FROID_POWER');insert into input(name) values('P3_RECUP_FROID_POWER_OTHER');insert into input(name) values('IND_ZONE');insert into input_val(value, input_id, title) select '1', i.id, 'A' from input i where i.name='IND_ZONE';insert into input_val(value, input_id, title) select '2', i.id, 'B' from input i where i.name='IND_ZONE';insert into input_val(value, input_id, title) select '3', i.id, 'C' from input i where i.name='IND_ZONE';insert into input_val(value, input_id, title) select '4', i.id, 'D' from input i where i.name='IND_ZONE';insert into input(name) values('P3_TYPE_OPERATION');insert into input_val(value, input_id, title) select '1', i.id, 'Mise en place d’un ou plusieurs brûleurs auto-récupérateurs' from input i where i.name='P3_TYPE_OPERATION';insert into input_val(value, input_id, title) select '2', i.id, 'Mise en place d’un ou plusieurs brûleurs régénératifs (brûleur auto-régénératif ou paire de brûleurs régénératifs)' from input i where i.name='P3_TYPE_OPERATION';insert into input_val(value, input_id, title) select '3', i.id, 'Transformation d’un ou plusieurs brûleurs existants par l’installation d’un récupérateur de chaleur sur les fumées du four pour préchauffer l’air comburant' from input i where i.name='P3_TYPE_OPERATION';insert into input(name) values('TEMPERATURE');insert into input_val(value, input_id, title) select '1', i.id, '600 <= T <= 750' from input i where i.name='TEMPERATURE';insert into input_val(value, input_id, title) select '2', i.id, '750 < T <= 1000' from input i where i.name='TEMPERATURE';insert into input_val(value, input_id, title) select '3', i.id, '1000 < T <= 1250' from input i where i.name='TEMPERATURE';insert into input_val(value, input_id, title) select '4', i.id, '1250 < T' from input i where i.name='TEMPERATURE';insert into input(name) values('P3_BRU_POWER');insert into input(name) values('P3_IND_LONG_TUBE');insert into input_val(value, input_id, title) select '1', i.id, '0,6 m' from input i where i.name='P3_IND_LONG_TUBE';insert into input_val(value, input_id, title) select '2', i.id, '1.2 m' from input i where i.name='P3_IND_LONG_TUBE';insert into input_val(value, input_id, title) select '3', i.id, '1.5 m' from input i where i.name='P3_IND_LONG_TUBE';insert into input(name) values('BAT_TYPE');insert into input_val(value, input_id, title) select '1', i.id, 'Bâtiment existant' from input i where i.name='BAT_TYPE';insert into input_val(value, input_id, title) select '2', i.id, 'Bâtiment neuf' from input i where i.name='BAT_TYPE';insert into input(name) values('P3_SSERRE');insert into input(name) values('P3_SBAT');insert into input(name) values('P3_SSERRE_EQ');insert into input(name) values('P3_SERTYPE');insert into input_val(value, input_id, title) select '1', i.id, 'Serres maraîchères' from input i where i.name='P3_SERTYPE';insert into input_val(value, input_id, title) select '2', i.id, 'Serres horticoles' from input i where i.name='P3_SERTYPE';insert into input(name) values('P3_AGR_APPVEV');insert into input_val(value, input_id, title) select '1', i.id, 'Pompe d’irrigation' from input i where i.name='P3_AGR_APPVEV';insert into input_val(value, input_id, title) select '2', i.id, 'Ventilateur de bâtiments d’élevage' from input i where i.name='P3_AGR_APPVEV';insert into input_val(value, input_id, title) select '3', i.id, 'Ventilation d’une serre' from input i where i.name='P3_AGR_APPVEV';insert into input_val(value, input_id, title) select '4', i.id, 'Pompe à vide d’une salle de traite' from input i where i.name='P3_AGR_APPVEV';insert into input_val(value, input_id, title) select '5', i.id, 'Chauffage d’une serre (pompe, ventilateur d’un brûleur)' from input i where i.name='P3_AGR_APPVEV';insert into input_val(value, input_id, title) select '6', i.id, 'Autres applications' from input i where i.name='P3_AGR_APPVEV';insert into input(name) values('P3_VEV');insert into input(name) values('P3_TYPELOG');insert into input_val(value, input_id, title) select '1', i.id, 'Logement existant' from input i where i.name='P3_TYPELOG';insert into input_val(value, input_id, title) select '2', i.id, 'Logement neuf' from input i where i.name='P3_TYPELOG';insert into input(name) values('P3_LEDLIFE_OM');insert into input_val(value, input_id, title) select '1', i.id, '25 000 <= Dv < 40 000' from input i where i.name='P3_LEDLIFE_OM';insert into input_val(value, input_id, title) select '2', i.id, '40 000 <= Dv' from input i where i.name='P3_LEDLIFE_OM';insert into input(name) values('P3_SECTOR');insert into input_val(value, input_id, title) select '1', i.id, 'Aviculture' from input i where i.name='P3_SECTOR';insert into input_val(value, input_id, title) select '2', i.id, 'Maraichage ou Myciculture ou Hydroponie' from input i where i.name='P3_SECTOR';insert into input_val(value, input_id, title) select '3', i.id, 'Viticulture' from input i where i.name='P3_SECTOR';insert into input(name) values('P3_ECHANGER_POWER_RECUPEREE');insert into input(name) values('P3_POWER_COMPRESSEUR');insert into input(name) values('P3_ECHANGER_POWER');insert into input(name) values('P3_MILK_PRODUCTION');insert into input(name) values('P3_AGRI_CH_QUANTITY');insert into input(name) values('P3_REG_POWER');insert into input(name) values('P3_EFFLIGHT');insert into input(name) values('P3_ULOR');insert into input(name) values('P3_ULR');insert into input(name) values('P3_HORLOGE');insert into input(name) values('P3_CH_QUANTITY');insert into input(name) values('P3_VOYAGE');insert into input(name) values('P3_CARCAT');insert into input_val(value, input_id, title) select '1', i.id, 'M1' from input i where i.name='P3_CARCAT';insert into input_val(value, input_id, title) select '2', i.id, 'N1' from input i where i.name='P3_CARCAT';insert into input_val(value, input_id, title) select '3', i.id, 'N2 et N3' from input i where i.name='P3_CARCAT';insert into input_val(value, input_id, title) select '4', i.id, 'M2 et M3' from input i where i.name='P3_CARCAT';insert into input(name) values('P3_NBCARCAT');insert into input(name) values('P3_LUBVOL_1');insert into input(name) values('P3_LUBVOL_2');insert into input(name) values('P3_LUBVOL_3');insert into input(name) values('P3_LUBPERF_1');insert into input(name) values('P3_LUBPERF_2');insert into input(name) values('P3_LUBPERF_3');insert into input(name) values('P3_PNEU_A');insert into input(name) values('P3_PNEU_B');insert into input(name) values('P3_PNEU_C');insert into input(name) values('P3_LUBVOL');insert into input(name) values('P3_LUBPERF');insert into input(name) values('P3_OPTCAR');insert into input(name) values('P3_VOLOPT');insert into input(name) values('P3_GAINOPT');insert into input(name) values('P3_CONCENTROPT');insert into input(name) values('P3_FORMTYPE');insert into input_val(value, input_id, title) select '1', i.id, 'Véhicules destinés au transport de marchandises de catégories N2 ou N3' from input i where i.name='P3_FORMTYPE';insert into input_val(value, input_id, title) select '2', i.id, 'Véhicules destinés au transport de personnes de catégories M2 ou M3' from input i where i.name='P3_FORMTYPE';insert into input(name) values('P3_NBPERS');insert into input(name) values('P3_FORMTYPE2');insert into input_val(value, input_id, title) select '1', i.id, 'Véhicules de catégorie M1' from input i where i.name='P3_FORMTYPE2';insert into input_val(value, input_id, title) select '2', i.id, 'Véhicules de catégorie N1' from input i where i.name='P3_FORMTYPE2';insert into input(name) values('P3_TYPESTA');insert into input_val(value, input_id, title) select '1', i.id, 'Type A' from input i where i.name='P3_TYPESTA';insert into input_val(value, input_id, title) select '2', i.id, 'Type B' from input i where i.name='P3_TYPESTA';insert into input_val(value, input_id, title) select '3', i.id, 'Type C' from input i where i.name='P3_TYPESTA';insert into input(name) values('P3_NBSTA');insert into input(name) values('P3_NBPNEUM');insert into input(name) values('P3_CARTYPE');insert into input_val(value, input_id, title) select '1', i.id, 'Ensemble articulé' from input i where i.name='P3_CARTYPE';insert into input_val(value, input_id, title) select '2', i.id, 'Porteur' from input i where i.name='P3_CARTYPE';insert into input(name) values('P3_NBEXT');insert into input(name) values('P3_NBVEHIC');insert into input(name) values('P3_NBVEHICOPT');insert into input(name) values('P3_NBCARTE');insert into input(name) values('P3_UTI');insert into input(name) values('P3_PTC');insert into input(name) values('P3_MILEAGE');insert into input(name) values('P3_TYPE_ENGINE');insert into input_val(value, input_id, title) select '1', i.id, 'Transmission directe' from input i where i.name='P3_TYPE_ENGINE';insert into input_val(value, input_id, title) select '2', i.id, 'Motoréducteur à engrenages' from input i where i.name='P3_TYPE_ENGINE';insert into input_val(value, input_id, title) select '3', i.id, 'Transmission par poulie et courroie synchrone (dentée)' from input i where i.name='P3_TYPE_ENGINE';insert into input(name) values('P3_PENGINE');insert into input(name) values('P3_VOLBAT');insert into input_val(value, input_id, title) select '1', i.id, 'Volailles de chair sans parcours' from input i where i.name='P3_VOLBAT';insert into input_val(value, input_id, title) select '2', i.id, 'Volailles de chair avec parcours' from input i where i.name='P3_VOLBAT';insert into input_val(value, input_id, title) select '3', i.id, 'Palmipèdes PAG (prêts à gaver)' from input i where i.name='P3_VOLBAT';insert into input_val(value, input_id, title) select '4', i.id, 'Futurs reproducteurs' from input i where i.name='P3_VOLBAT';insert into input_val(value, input_id, title) select '5', i.id, 'Poulettes futures pondeuses' from input i where i.name='P3_VOLBAT';insert into input_val(value, input_id, title) select '6', i.id, 'Autres types d’élevage de volailles' from input i where i.name='P3_VOLBAT';insert into input(name) values('P3_NBR_CAR');insert into input(name) values('P3_TRA_E');insert into input(name) values('P3_ELIG_E');insert into input_val(value, input_id, title) select '1', i.id, 'Oui' from input i where i.name='P3_ELIG_E';insert into input_val(value, input_id, title) select '2', i.id, 'Non' from input i where i.name='P3_ELIG_E';insert into input(name) values('P3_TER_VOYAGE');insert into input(name) values('P3_TER_BASSIN_NAVIGATION');insert into input_val(value, input_id, title) select '1', i.id, 'Seine' from input i where i.name='P3_TER_BASSIN_NAVIGATION';insert into input_val(value, input_id, title) select '2', i.id, 'Rhône' from input i where i.name='P3_TER_BASSIN_NAVIGATION';insert into input_val(value, input_id, title) select '3', i.id, 'Nord  Pas-de-Calais' from input i where i.name='P3_TER_BASSIN_NAVIGATION';insert into input_val(value, input_id, title) select '4', i.id, 'Rhin/Moselle' from input i where i.name='P3_TER_BASSIN_NAVIGATION';insert into input_val(value, input_id, title) select '5', i.id, 'Interbassin' from input i where i.name='P3_TER_BASSIN_NAVIGATION';insert into input(name) values('P3_TER_TYPE_BATEAUX');insert into input_val(value, input_id, title) select '1', i.id, 'Bateau DEK (1 000 t)' from input i where i.name='P3_TER_TYPE_BATEAUX';insert into input_val(value, input_id, title) select '2', i.id, 'Bateau RHK (1 350 t)' from input i where i.name='P3_TER_TYPE_BATEAUX';insert into input_val(value, input_id, title) select '3', i.id, 'Bateau Grand Rhénan (2 500 t)' from input i where i.name='P3_TER_TYPE_BATEAUX';insert into input_val(value, input_id, title) select '4', i.id, 'Bateau Convois (4 400 t)' from input i where i.name='P3_TER_TYPE_BATEAUX';insert into input(name) values('P3_T_KM');insert into input(name) values('P3_TRA_MAT');insert into input_val(value, input_id, title) select '1', i.id, 'Un automoteur' from input i where i.name='P3_TRA_MAT';insert into input_val(value, input_id, title) select '2', i.id, 'Un pousseur' from input i where i.name='P3_TRA_MAT';insert into input(name) values('P3_TRA_M');insert into input_val(value, input_id, title) select '1', i.id, 'M <= 400 t' from input i where i.name='P3_TRA_M';insert into input_val(value, input_id, title) select '2', i.id, '400 t < M <= 650 t' from input i where i.name='P3_TRA_M';insert into input_val(value, input_id, title) select '3', i.id, '650 t < M <= 1000 t ' from input i where i.name='P3_TRA_M';insert into input_val(value, input_id, title) select '4', i.id, '1000 t < M <= 1550 t ' from input i where i.name='P3_TRA_M';insert into input_val(value, input_id, title) select '5', i.id, '1 500 t < M' from input i where i.name='P3_TRA_M';insert into input(name) values('P3_TRA_P');insert into input_val(value, input_id, title) select '1', i.id, '295 kW <=  P <= 590 kW' from input i where i.name='P3_TRA_P';insert into input_val(value, input_id, title) select '2', i.id, '590 kW <  P <=  880 kW' from input i where i.name='P3_TRA_P';insert into input_val(value, input_id, title) select '3', i.id, '880 kW < P' from input i where i.name='P3_TRA_P';insert into input(name) values('P3_TYPE_MAT_INSTALL');insert into input_val(value, input_id, title) select '1', i.id, 'Un économètre ou un débitmètre ;' from input i where i.name='P3_TYPE_MAT_INSTALL';insert into input_val(value, input_id, title) select '2', i.id, 'Un économètre ou un débitmètre, et un ensemble d’équipements de navigation composé d’un loch, d’un  anémomètre, d’un GPS, d’un compte-tours et d’un sondeur. ' from input i where i.name='P3_TYPE_MAT_INSTALL';insert into input(name) values('P3_TRA_KILOM');insert into input(name) values('P3_IND_APPVEV');insert into input_val(value, input_id, title) select '1', i.id, 'Pompage' from input i where i.name='P3_IND_APPVEV';insert into input_val(value, input_id, title) select '2', i.id, 'Ventilation' from input i where i.name='P3_IND_APPVEV';insert into input_val(value, input_id, title) select '3', i.id, 'Compresseur d\'air' from input i where i.name='P3_IND_APPVEV';insert into input_val(value, input_id, title) select '4', i.id, 'Compresseur frigorifique' from input i where i.name='P3_IND_APPVEV';insert into input_val(value, input_id, title) select '5', i.id, 'Autres applications' from input i where i.name='P3_IND_APPVEV';insert into input(name) values('ID_CERT_IMMATR');insert into input(name) values('entreprise');insert into input(name) values('ag_existing_client');insert into input(name) values('ag_new_client');insert into input(name) values('ag_offer_type');insert into input(name) values('cumacs');insert into input(name) values('official_code');insert into input(name) values('P3_TER_PVEV');
insert into result(name) values('ZONE');insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='1')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='2')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='3')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='4')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='5')  );insert into result_val(value, result_id) select '3', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='6')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='7')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='8')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='9')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='10')  );insert into result_val(value, result_id) select '3', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='11')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='12')  );insert into result_val(value, result_id) select '3', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='13')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='14')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='15')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='16')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='17')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='18')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='19')  );insert into result_val(value, result_id) select '3', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='20')  );insert into result_val(value, result_id) select '3', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='21')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='22')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='23')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='24')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='25')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='26')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='27')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='28')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='29')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='30')  );insert into result_val(value, result_id) select '3', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='31')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='32')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='33')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='34')  );insert into result_val(value, result_id) select '3', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='35')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='36')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='37')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='38')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='39')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='40')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='41')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='42')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='43')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='44')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='45')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='46')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='47')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='48')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='49')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='50')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='51')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='52')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='53')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='54')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='55')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='56')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='57')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='58')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='59')  );
insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='60')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='61')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='62')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='63')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='64')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='65')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='66')  );insert into result_val(value, result_id) select '3', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='67')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='68')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='69')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='70')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='71')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='72')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='73')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='74')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='75')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='76')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='77')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='78')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='79')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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='80')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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 result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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 result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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 result_val(value, result_id) select '3', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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 result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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 result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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 result_val(value, result_id) select '2', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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 result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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 result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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 result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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 result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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 result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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 result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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 result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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 result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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 result_val(value, result_id) select '1', r.id from result r where r.name='ZONE'; insert into value_assoc(resultval_id, inputval_id) select 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='ZONE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.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('FC_SH_M');insert into result_val(value, result_id) select '0.2', r.id from result r where r.name='FC_SH_M'; insert into value_assoc(resultval_id, inputval_id) select rv.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='FC_SH_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SHCLASS' and iv.value='1')  );insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='FC_SH_M'; insert into value_assoc(resultval_id, inputval_id) select rv.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='FC_SH_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SHCLASS' and iv.value='2')  );insert into result_val(value, result_id) select '0.7', r.id from result r where r.name='FC_SH_M'; insert into value_assoc(resultval_id, inputval_id) select rv.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='FC_SH_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SHCLASS' and iv.value='3')  );insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='FC_SH_M'; insert into value_assoc(resultval_id, inputval_id) select rv.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='FC_SH_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SHCLASS' and iv.value='4')  );insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='FC_SH_M'; insert into value_assoc(resultval_id, inputval_id) select 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='FC_SH_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SHCLASS' and iv.value='5')  );insert into result_val(value, result_id) select '1.4', r.id from result r where r.name='FC_SH_M'; insert into value_assoc(resultval_id, inputval_id) select 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.4' and r.name='FC_SH_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SHCLASS' and iv.value='6')  );insert into result(name) values('FC_SH_A');insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='FC_SH_A'; insert into value_assoc(resultval_id, inputval_id) select rv.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='FC_SH_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SHCLASS' and iv.value='1')  );insert into result_val(value, result_id) select '0.7', r.id from result r where r.name='FC_SH_A'; insert into value_assoc(resultval_id, inputval_id) select rv.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='FC_SH_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SHCLASS' and iv.value='2')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='FC_SH_A'; insert into value_assoc(resultval_id, inputval_id) select 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='FC_SH_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SHCLASS' and iv.value='3')  );insert into result_val(value, result_id) select '1.4', r.id from result r where r.name='FC_SH_A'; insert into value_assoc(resultval_id, inputval_id) select 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.4' and r.name='FC_SH_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SHCLASS' and iv.value='4')  );insert into result_val(value, result_id) select '1.7', r.id from result r where r.name='FC_SH_A'; insert into value_assoc(resultval_id, inputval_id) select 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='FC_SH_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SHCLASS' and iv.value='5')  );insert into result_val(value, result_id) select '2.2', r.id from result r where r.name='FC_SH_A'; insert into value_assoc(resultval_id, inputval_id) select 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='FC_SH_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SHCLASS' and iv.value='6')  );insert into result(name) values('TER_FC_EN1');insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='TER_FC_EN1'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_EN1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='1')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='TER_FC_EN1'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_EN1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='2')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='TER_FC_EN1'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_EN1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='3')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='TER_FC_EN1'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_EN1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='4')  );insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='TER_FC_EN1'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FC_EN1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='5')  );insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='TER_FC_EN1'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_EN1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='6')  );insert into result(name) values('TER_FC_EN2');insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='TER_FC_EN2'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_EN2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='1')  );insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='TER_FC_EN2'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_EN2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='2')  );insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='TER_FC_EN2'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_EN2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='3')  );insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='TER_FC_EN2'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_EN2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='4')  );insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='TER_FC_EN2'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_EN2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='5')  );insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='TER_FC_EN2'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_EN2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='6')  );
insert into result(name) values('TER_FC_TH1');insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='TER_FC_TH1'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FC_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='1')  );insert into result_val(value, result_id) select '0.8', r.id from result r where r.name='TER_FC_TH1'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='2')  );insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='TER_FC_TH1'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FC_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='3')  );insert into result_val(value, result_id) select '1.4', r.id from result r where r.name='TER_FC_TH1'; insert into value_assoc(resultval_id, inputval_id) select 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.4' and r.name='TER_FC_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='4')  );insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='TER_FC_TH1'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='5')  );insert into result_val(value, result_id) select '0.8', r.id from result r where r.name='TER_FC_TH1'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='6')  );insert into result(name) values('TER_FC_TH2');insert into result_val(value, result_id) select '1.3', r.id from result r where r.name='TER_FC_TH2'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FC_TH2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='1')  );insert into result_val(value, result_id) select '0.7', r.id from result r where r.name='TER_FC_TH2'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_TH2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='2')  );insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='TER_FC_TH2'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FC_TH2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='3')  );insert into result_val(value, result_id) select '1.4', r.id from result r where r.name='TER_FC_TH2'; insert into value_assoc(resultval_id, inputval_id) select 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.4' and r.name='TER_FC_TH2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='4')  );insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='TER_FC_TH2'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FC_TH2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='5')  );insert into result_val(value, result_id) select '0.7', r.id from result r where r.name='TER_FC_TH2'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_TH2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='6')  );insert into result(name) values('TER_FO_TH1');insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='TER_FO_TH1'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FO_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='1')  );insert into result_val(value, result_id) select '0.8', r.id from result r where r.name='TER_FO_TH1'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FO_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='2')  );insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='TER_FO_TH1'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FO_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='3')  );insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='TER_FO_TH1'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FO_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='4')  );insert into result_val(value, result_id) select '1.4', r.id from result r where r.name='TER_FO_TH1'; insert into value_assoc(resultval_id, inputval_id) select 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.4' and r.name='TER_FO_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='5')  );insert into result_val(value, result_id) select '0.8', r.id from result r where r.name='TER_FO_TH1'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FO_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='6')  );insert into result(name) values('TER_FC2_TH1');insert into result_val(value, result_id) select '1', r.id from result r where r.name='TER_FC2_TH1'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FC2_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC2' and iv.value='1')  );insert into result_val(value, result_id) select '0.7', r.id from result r where r.name='TER_FC2_TH1'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC2_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC2' and iv.value='2')  );insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='TER_FC2_TH1'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC2_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC2' and iv.value='3')  );insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='TER_FC2_TH1'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC2_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC2' and iv.value='4')  );insert into result_val(value, result_id) select '0.2', r.id from result r where r.name='TER_FC2_TH1'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC2_TH1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC2' and iv.value='5')  );insert into result(name) values('TER_FC2_TH2');insert into result_val(value, result_id) select '1', r.id from result r where r.name='TER_FC2_TH2'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FC2_TH2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC4' and iv.value='1')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='TER_FC2_TH2'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC2_TH2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC4' and iv.value='2')  );insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='TER_FC2_TH2'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC2_TH2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC4' and iv.value='3')  );insert into result_val(value, result_id) select '0.4', r.id from result r where r.name='TER_FC2_TH2'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC2_TH2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC4' and iv.value='4')  );insert into result_val(value, result_id) select '0.2', r.id from result r where r.name='TER_FC2_TH2'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC2_TH2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC4' and iv.value='5')  );insert into result(name) values('TER_FC2_TH2_GT');insert into result_val(value, result_id) select '1', r.id from result r where r.name='TER_FC2_TH2_GT'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FC2_TH2_GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC4' and iv.value='1')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='TER_FC2_TH2_GT'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC2_TH2_GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC4' and iv.value='2')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='TER_FC2_TH2_GT'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC2_TH2_GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC4' and iv.value='3')  );insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='TER_FC2_TH2_GT'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC2_TH2_GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC4' and iv.value='4')  );insert into result_val(value, result_id) select '0.2', r.id from result r where r.name='TER_FC2_TH2_GT'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC2_TH2_GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC4' and iv.value='5')  );insert into result(name) values('TER_FC5_TH');insert into result_val(value, result_id) select '1', r.id from result r where r.name='TER_FC5_TH'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FC5_TH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC5' and iv.value='1')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='TER_FC5_TH'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC5_TH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC5' and iv.value='2')  );insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='TER_FC5_TH'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC5_TH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC5' and iv.value='3')  );insert into result_val(value, result_id) select '0.2', r.id from result r where r.name='TER_FC5_TH'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC5_TH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC5' and iv.value='4')  );insert into result(name) values('CH_COND_MU_M');insert into result_val(value, result_id) select '120000', r.id from result r where r.name='CH_COND_MU_M'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='120000' and r.name='CH_COND_MU_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '110000', r.id from result r where r.name='CH_COND_MU_M'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='110000' and r.name='CH_COND_MU_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '74000', r.id from result r where r.name='CH_COND_MU_M'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='74000' and r.name='CH_COND_MU_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('CH_COND_MU_A');insert into result_val(value, result_id) select '61000', r.id from result r where r.name='CH_COND_MU_A'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='61000' and r.name='CH_COND_MU_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '53000', r.id from result r where r.name='CH_COND_MU_A'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='53000' and r.name='CH_COND_MU_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '40000', r.id from result r where r.name='CH_COND_MU_A'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='40000' and r.name='CH_COND_MU_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('CH_BAS_MU_M');insert into result_val(value, result_id) select '40000', r.id from result r where r.name='CH_BAS_MU_M'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='40000' and r.name='CH_BAS_MU_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '34000', r.id from result r where r.name='CH_BAS_MU_M'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='34000' and r.name='CH_BAS_MU_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '24000', r.id from result r where r.name='CH_BAS_MU_M'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='24000' and r.name='CH_BAS_MU_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('CH_BAS_MU_A');insert into result_val(value, result_id) select '21000', r.id from result r where r.name='CH_BAS_MU_A'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='21000' and r.name='CH_BAS_MU_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '18000', r.id from result r where r.name='CH_BAS_MU_A'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='18000' and r.name='CH_BAS_MU_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '14000', r.id from result r where r.name='CH_BAS_MU_A'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='14000' and r.name='CH_BAS_MU_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('CH_BIO_MU');insert into result_val(value, result_id) select '230000', r.id from result r where r.name='CH_BIO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='230000' and r.name='CH_BIO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '190000', r.id from result r where r.name='CH_BIO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='190000' and r.name='CH_BIO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '130000', r.id from result r where r.name='CH_BIO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='130000' and r.name='CH_BIO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('CH_BOIS_MU');insert into result_val(value, result_id) select '58000', r.id from result r where r.name='CH_BOIS_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='58000' and r.name='CH_BOIS_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '48000', r.id from result r where r.name='CH_BOIS_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='48000' and r.name='CH_BOIS_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '32000', r.id from result r where r.name='CH_BOIS_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='32000' and r.name='CH_BOIS_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('PROG_MU_M');insert into result_val(value, result_id) select '28000', r.id from result r where r.name='PROG_MU_M'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='28000' and r.name='PROG_MU_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '23000', r.id from result r where r.name='PROG_MU_M'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='23000' and r.name='PROG_MU_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '15000', r.id from result r where r.name='PROG_MU_M'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='15000' and r.name='PROG_MU_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );
insert into result(name) values('PROG_MU_A');insert into result_val(value, result_id) select '13000', r.id from result r where r.name='PROG_MU_A'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='13000' and r.name='PROG_MU_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '10000', r.id from result r where r.name='PROG_MU_A'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='10000' and r.name='PROG_MU_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '6900', r.id from result r where r.name='PROG_MU_A'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='6900' and r.name='PROG_MU_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('PROG_ELEC_MU_M');insert into result_val(value, result_id) select '18000', r.id from result r where r.name='PROG_ELEC_MU_M'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='18000' and r.name='PROG_ELEC_MU_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '14000', r.id from result r where r.name='PROG_ELEC_MU_M'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='14000' and r.name='PROG_ELEC_MU_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '9200', r.id from result r where r.name='PROG_ELEC_MU_M'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='9200' and r.name='PROG_ELEC_MU_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('PROG_ELEC_MU_A');insert into result_val(value, result_id) select '5300', r.id from result r where r.name='PROG_ELEC_MU_A'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5300' and r.name='PROG_ELEC_MU_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '4400', r.id from result r where r.name='PROG_ELEC_MU_A'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4400' and r.name='PROG_ELEC_MU_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '2900', r.id from result r where r.name='PROG_ELEC_MU_A'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2900' and r.name='PROG_ELEC_MU_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('REG_MU');insert into result_val(value, result_id) select '9400', r.id from result r where r.name='REG_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='9400' and r.name='REG_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '8900', r.id from result r where r.name='REG_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='8900' and r.name='REG_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '5200', r.id from result r where r.name='REG_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5200' and r.name='REG_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('CESI_MU');insert into result_val(value, result_id) select '6400', r.id from result r where r.name='CESI_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='6400' and r.name='CESI_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '7700', r.id from result r where r.name='CESI_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='7700' and r.name='CESI_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '10000', r.id from result r where r.name='CESI_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='10000' and r.name='CESI_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('SSC_MU');insert into result_val(value, result_id) select '4050', r.id from result r where r.name='SSC_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4050' and r.name='SSC_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '4050', r.id from result r where r.name='SSC_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4050' and r.name='SSC_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '4050', r.id from result r where r.name='SSC_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4050' and r.name='SSC_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('ISOH_MU');insert into result_val(value, result_id) select '5000', r.id from result r where r.name='ISOH_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5000' and r.name='ISOH_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '4100', r.id from result r where r.name='ISOH_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4100' and r.name='ISOH_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '2700', r.id from result r where r.name='ISOH_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2700' and r.name='ISOH_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('COMPTAGE_MU');insert into result_val(value, result_id) select '20000', r.id from result r where r.name='COMPTAGE_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='20000' and r.name='COMPTAGE_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '18000', r.id from result r where r.name='COMPTAGE_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='18000' and r.name='COMPTAGE_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '11000', r.id from result r where r.name='COMPTAGE_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='11000' and r.name='COMPTAGE_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('EQUI_MU');insert into result_val(value, result_id) select '13400', r.id from result r where r.name='EQUI_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='13400' and r.name='EQUI_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '11000', r.id from result r where r.name='EQUI_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='11000' and r.name='EQUI_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '7400', r.id from result r where r.name='EQUI_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='7400' and r.name='EQUI_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  ); insert into result(name) values('RESEAU_ISO_MU');  insert into result_val(value, result_id) select '7500', r.id from result r where r.name='RESEAU_ISO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='7500' and r.name='RESEAU_ISO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '7200', r.id from result r where r.name='RESEAU_ISO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='7200' and r.name='RESEAU_ISO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '6500', r.id from result r where r.name='RESEAU_ISO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='6500' and r.name='RESEAU_ISO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('RBRRC_MU_A');insert into result_val(value, result_id) select '55500', r.id from result r where r.name='RBRRC_MU_A'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='55500' and r.name='RBRRC_MU_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '47900', r.id from result r where r.name='RBRRC_MU_A'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='47900' and r.name='RBRRC_MU_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '35600', r.id from result r where r.name='RBRRC_MU_A'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='35600' and r.name='RBRRC_MU_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('RBRRC_MU_M');insert into result_val(value, result_id) select '96300', r.id from result r where r.name='RBRRC_MU_M'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='96300' and r.name='RBRRC_MU_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '81400', r.id from result r where r.name='RBRRC_MU_M'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='81400' and r.name='RBRRC_MU_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '58600', r.id from result r where r.name='RBRRC_MU_M'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='58600' and r.name='RBRRC_MU_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_CH_BAS_MU1GT');insert into result_val(value, result_id) select '340', r.id from result r where r.name='TER_CH_BAS_MU1GT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='340' and r.name='TER_CH_BAS_MU1GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '280', r.id from result r where r.name='TER_CH_BAS_MU1GT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='280' and r.name='TER_CH_BAS_MU1GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '180', r.id from result r where r.name='TER_CH_BAS_MU1GT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='180' and r.name='TER_CH_BAS_MU1GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_CH_BAS_MU2GT');insert into result_val(value, result_id) select '380', r.id from result r where r.name='TER_CH_BAS_MU2GT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='380' and r.name='TER_CH_BAS_MU2GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '320', r.id from result r where r.name='TER_CH_BAS_MU2GT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='320' and r.name='TER_CH_BAS_MU2GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '220', r.id from result r where r.name='TER_CH_BAS_MU2GT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='220' and r.name='TER_CH_BAS_MU2GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_CH_COND_MU1GT');insert into result_val(value, result_id) select '780', r.id from result r where r.name='TER_CH_COND_MU1GT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='780' and r.name='TER_CH_COND_MU1GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '630', r.id from result r where r.name='TER_CH_COND_MU1GT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='630' and r.name='TER_CH_COND_MU1GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '430', r.id from result r where r.name='TER_CH_COND_MU1GT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='430' and r.name='TER_CH_COND_MU1GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_CH_COND_MU2GT');insert into result_val(value, result_id) select '830', r.id from result r where r.name='TER_CH_COND_MU2GT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='830' and r.name='TER_CH_COND_MU2GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '720', r.id from result r where r.name='TER_CH_COND_MU2GT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='720' and r.name='TER_CH_COND_MU2GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '510', r.id from result r where r.name='TER_CH_COND_MU2GT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='510' and r.name='TER_CH_COND_MU2GT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_PLANCHER_MU');insert into result_val(value, result_id) select '140', r.id from result r where r.name='TER_PLANCHER_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='140' and r.name='TER_PLANCHER_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '120', r.id from result r where r.name='TER_PLANCHER_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='120' and r.name='TER_PLANCHER_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '80', r.id from result r where r.name='TER_PLANCHER_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='80' and r.name='TER_PLANCHER_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_PLANCHER_MUGT');insert into result_val(value, result_id) select '120', r.id from result r where r.name='TER_PLANCHER_MUGT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='120' and r.name='TER_PLANCHER_MUGT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '100', r.id from result r where r.name='TER_PLANCHER_MUGT'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_PLANCHER_MUGT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '70', r.id from result r where r.name='TER_PLANCHER_MUGT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='70' and r.name='TER_PLANCHER_MUGT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_ROB_MU');insert into result_val(value, result_id) select '50', r.id from result r where r.name='TER_ROB_MU'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_ROB_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '40', r.id from result r where r.name='TER_ROB_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='40' and r.name='TER_ROB_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '30', r.id from result r where r.name='TER_ROB_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='30' and r.name='TER_ROB_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_ROB_MUGT');insert into result_val(value, result_id) select '40', r.id from result r where r.name='TER_ROB_MUGT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='40' and r.name='TER_ROB_MUGT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '30', r.id from result r where r.name='TER_ROB_MUGT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='30' and r.name='TER_ROB_MUGT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '20', r.id from result r where r.name='TER_ROB_MUGT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='20' and r.name='TER_ROB_MUGT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_ISOH_MU');
insert into result_val(value, result_id) select '5000', r.id from result r where r.name='TER_ISOH_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5000' and r.name='TER_ISOH_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '4100', r.id from result r where r.name='TER_ISOH_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4100' and r.name='TER_ISOH_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '2700', r.id from result r where r.name='TER_ISOH_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2700' and r.name='TER_ISOH_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_PROG_MU');insert into result_val(value, result_id) select '130', r.id from result r where r.name='TER_PROG_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='130' and r.name='TER_PROG_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '110', r.id from result r where r.name='TER_PROG_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='110' and r.name='TER_PROG_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '70', r.id from result r where r.name='TER_PROG_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='70' and r.name='TER_PROG_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_PROG_MUGT');insert into result_val(value, result_id) select '110', r.id from result r where r.name='TER_PROG_MUGT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='110' and r.name='TER_PROG_MUGT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '90', r.id from result r where r.name='TER_PROG_MUGT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='90' and r.name='TER_PROG_MUGT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '60', r.id from result r where r.name='TER_PROG_MUGT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='60' and r.name='TER_PROG_MUGT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_OPTI_MU');insert into result_val(value, result_id) select '180', r.id from result r where r.name='TER_OPTI_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='180' and r.name='TER_OPTI_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '150', r.id from result r where r.name='TER_OPTI_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='150' and r.name='TER_OPTI_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '100', r.id from result r where r.name='TER_OPTI_MU'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_OPTI_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_OPTI_MUGT');insert into result_val(value, result_id) select '150', r.id from result r where r.name='TER_OPTI_MUGT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='150' and r.name='TER_OPTI_MUGT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '130', r.id from result r where r.name='TER_OPTI_MUGT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='130' and r.name='TER_OPTI_MUGT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '80', r.id from result r where r.name='TER_OPTI_MUGT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='80' and r.name='TER_OPTI_MUGT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_FC_PAC');insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='TER_FC_PAC'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FC_PAC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='TER_FC_PAC'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_PAC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='TER_FC_PAC'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_FC_PAC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_VEV_MU');insert into result_val(value, result_id) select '17000', r.id from result r where r.name='TER_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='17000' and r.name='TER_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPVEV' and iv.value='1')  );insert into result_val(value, result_id) select '29000', r.id from result r where r.name='TER_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='29000' and r.name='TER_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPVEV' and iv.value='2')  );insert into result_val(value, result_id) select '11000', r.id from result r where r.name='TER_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='11000' and r.name='TER_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPVEV' and iv.value='3')  );insert into result_val(value, result_id) select '7100', r.id from result r where r.name='TER_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='7100' and r.name='TER_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPVEV' and iv.value='4')  );insert into result_val(value, result_id) select '1700', r.id from result r where r.name='TER_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1700' and r.name='TER_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPVEV' and iv.value='5')  );insert into result(name) values('TER_CLIM_MU');insert into result_val(value, result_id) select '450', r.id from result r where r.name='TER_CLIM_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='450' and r.name='TER_CLIM_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='1')  );insert into result_val(value, result_id) select '0', r.id from result r where r.name='TER_CLIM_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_CLIM_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='2')  );insert into result_val(value, result_id) select '660', r.id from result r where r.name='TER_CLIM_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='660' and r.name='TER_CLIM_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='3')  );insert into result_val(value, result_id) select '880', r.id from result r where r.name='TER_CLIM_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='880' and r.name='TER_CLIM_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='4')  );insert into result_val(value, result_id) select '0', r.id from result r where r.name='TER_CLIM_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.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='TER_CLIM_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='5')  );insert into result_val(value, result_id) select '450', r.id from result r where r.name='TER_CLIM_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='450' and r.name='TER_CLIM_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='6')  );insert into result(name) values('TER_FC_CLIM');insert into result_val(value, result_id) select '1', r.id from result r where r.name='TER_FC_CLIM'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FC_CLIM' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='TER_FC_CLIM'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FC_CLIM' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '2', r.id from result r where r.name='TER_FC_CLIM'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_FC_CLIM' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_MU_VENTILO_CH');insert into result_val(value, result_id) select '70', r.id from result r where r.name='TER_MU_VENTILO_CH'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='70' and r.name='TER_MU_VENTILO_CH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '61', r.id from result r where r.name='TER_MU_VENTILO_CH'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_MU_VENTILO_CH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '52', r.id from result r where r.name='TER_MU_VENTILO_CH'; insert into value_assoc(resultval_id, inputval_id) select 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' and r.name='TER_MU_VENTILO_CH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_MU_VENTILO_FR');insert into result_val(value, result_id) select '11', r.id from result r where r.name='TER_MU_VENTILO_FR'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='11' and r.name='TER_MU_VENTILO_FR' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '15', r.id from result r where r.name='TER_MU_VENTILO_FR'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='15' and r.name='TER_MU_VENTILO_FR' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '28', r.id from result r where r.name='TER_MU_VENTILO_FR'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='28' and r.name='TER_MU_VENTILO_FR' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_RAD_MU');insert into result_val(value, result_id) select '100', r.id from result r where r.name='TER_RAD_MU'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_RAD_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '80', r.id from result r where r.name='TER_RAD_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='80' and r.name='TER_RAD_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '60', r.id from result r where r.name='TER_RAD_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='60' and r.name='TER_RAD_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('TER_RAD_MUGT');insert into result_val(value, result_id) select '80', r.id from result r where r.name='TER_RAD_MUGT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='80' and r.name='TER_RAD_MUGT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '70', r.id from result r where r.name='TER_RAD_MUGT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='70' and r.name='TER_RAD_MUGT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '50', r.id from result r where r.name='TER_RAD_MUGT'; insert into value_assoc(resultval_id, inputval_id) select 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='TER_RAD_MUGT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('P3_SEC2_MU');insert into result_val(value, result_id) select '0.85', r.id from result r where r.name='P3_SEC2_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.85' and r.name='P3_SEC2_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_TER_SEC2' and iv.value='1')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='P3_SEC2_MU'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_SEC2_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_TER_SEC2' and iv.value='2')  );insert into result_val(value, result_id) select '4', r.id from result r where r.name='P3_SEC2_MU'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_SEC2_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_TER_SEC2' and iv.value='3')  );insert into result(name) values('P3_SEC1_MU');insert into result_val(value, result_id) select '1.7', r.id from result r where r.name='P3_SEC1_MU'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_SEC1_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_TER_SEC1' and iv.value='1')  );insert into result_val(value, result_id) select '4.3', r.id from result r where r.name='P3_SEC1_MU'; insert into value_assoc(resultval_id, inputval_id) select 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.3' and r.name='P3_SEC1_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_TER_SEC1' and iv.value='2')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='P3_SEC1_MU'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_SEC1_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_TER_SEC1' and iv.value='3')  );insert into result_val(value, result_id) select '0.85', r.id from result r where r.name='P3_SEC1_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='0.85' and r.name='P3_SEC1_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_TER_SEC1' and iv.value='4')  );insert into result_val(value, result_id) select '4', r.id from result r where r.name='P3_SEC1_MU'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_SEC1_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_TER_SEC1' and iv.value='5')  );insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='P3_SEC1_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_SEC1_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_TER_SEC1' and iv.value='6')  );insert into result(name) values('CH_COND_COL_MU');insert into result_val(value, result_id) select '100000', r.id from result r where r.name='CH_COND_COL_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='100000' and r.name='CH_COND_COL_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '87000', r.id from result r where r.name='CH_COND_COL_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='87000' and r.name='CH_COND_COL_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '65000', r.id from result r where r.name='CH_COND_COL_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='65000' and r.name='CH_COND_COL_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('CH_BAS_COL_MU');insert into result_val(value, result_id) select '32000', r.id from result r where r.name='CH_BAS_COL_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='32000' and r.name='CH_BAS_COL_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '27000', r.id from result r where r.name='CH_BAS_COL_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='27000' and r.name='CH_BAS_COL_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '20000', r.id from result r where r.name='CH_BAS_COL_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='20000' and r.name='CH_BAS_COL_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('OPTREL_COL_MU');insert into result_val(value, result_id) select '19000', r.id from result r where r.name='OPTREL_COL_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='19000' and r.name='OPTREL_COL_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '15000', r.id from result r where r.name='OPTREL_COL_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='15000' and r.name='OPTREL_COL_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '10000', r.id from result r where r.name='OPTREL_COL_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='10000' and r.name='OPTREL_COL_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );
insert into result(name) values('FM_CH_SE');insert into result_val(value, result_id) select '1.04', r.id from result r where r.name='FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.04' and r.name='FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='1')  );insert into result_val(value, result_id) select '1.07', r.id from result r where r.name='FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.07' and r.name='FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='2')  );insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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='FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='3')  );insert into result_val(value, result_id) select '1.13', r.id from result r where r.name='FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.13' and r.name='FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='4')  );insert into result_val(value, result_id) select '1.16', r.id from result r where r.name='FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.16' and r.name='FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='5')  );insert into result_val(value, result_id) select '1.19', r.id from result r where r.name='FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.19' and r.name='FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='6')  );insert into result_val(value, result_id) select '1.22', r.id from result r where r.name='FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.22' and r.name='FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='7')  );insert into result_val(value, result_id) select '1.24', r.id from result r where r.name='FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.24' and r.name='FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='8')  );insert into result(name) values('FM_CH_BIO_SE');insert into result_val(value, result_id) select '1.04', r.id from result r where r.name='FM_CH_BIO_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.04' and r.name='FM_CH_BIO_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='1')  );insert into result_val(value, result_id) select '1.07', r.id from result r where r.name='FM_CH_BIO_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.07' and r.name='FM_CH_BIO_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='2')  );insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='FM_CH_BIO_SE'; insert into value_assoc(resultval_id, inputval_id) select 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='FM_CH_BIO_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='3')  );insert into result_val(value, result_id) select '1.13', r.id from result r where r.name='FM_CH_BIO_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.13' and r.name='FM_CH_BIO_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='4')  );insert into result_val(value, result_id) select '1.16', r.id from result r where r.name='FM_CH_BIO_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.16' and r.name='FM_CH_BIO_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='5')  );insert into result_val(value, result_id) select '1.18', r.id from result r where r.name='FM_CH_BIO_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.18' and r.name='FM_CH_BIO_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='6')  );insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='FM_CH_BIO_SE'; insert into value_assoc(resultval_id, inputval_id) select 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='FM_CH_BIO_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='7')  );insert into result_val(value, result_id) select '1.22', r.id from result r where r.name='FM_CH_BIO_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.22' and r.name='FM_CH_BIO_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SELENGTH' and iv.value='8')  );insert into result(name) values('PROG_COMB_COL_MU');insert into result_val(value, result_id) select '13000', r.id from result r where r.name='PROG_COMB_COL_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='13000' and r.name='PROG_COMB_COL_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '11000', r.id from result r where r.name='PROG_COMB_COL_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='11000' and r.name='PROG_COMB_COL_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '7100', r.id from result r where r.name='PROG_COMB_COL_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='7100' and r.name='PROG_COMB_COL_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('RECUP_COND_MU1');insert into result_val(value, result_id) select '19000', r.id from result r where r.name='RECUP_COND_MU1'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='19000' and r.name='RECUP_COND_MU1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '15000', r.id from result r where r.name='RECUP_COND_MU1'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='15000' and r.name='RECUP_COND_MU1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '10000', r.id from result r where r.name='RECUP_COND_MU1'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='10000' and r.name='RECUP_COND_MU1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('RECUP_COND_MU2');insert into result_val(value, result_id) select '24000', r.id from result r where r.name='RECUP_COND_MU2'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='24000' and r.name='RECUP_COND_MU2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '20000', r.id from result r where r.name='RECUP_COND_MU2'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='20000' and r.name='RECUP_COND_MU2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '15000', r.id from result r where r.name='RECUP_COND_MU2'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='15000' and r.name='RECUP_COND_MU2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('IND_MU_STRAT');insert into result_val(value, result_id) select '1500', r.id from result r where r.name='IND_MU_STRAT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1500' and r.name='IND_MU_STRAT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='1')  );insert into result_val(value, result_id) select '3000', r.id from result r where r.name='IND_MU_STRAT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3000' and r.name='IND_MU_STRAT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='2')  );insert into result_val(value, result_id) select '3200', r.id from result r where r.name='IND_MU_STRAT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3200' and r.name='IND_MU_STRAT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='3')  );insert into result_val(value, result_id) select '4500', r.id from result r where r.name='IND_MU_STRAT'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4500' and r.name='IND_MU_STRAT' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='4')  );insert into result(name) values('IND_MU_LIGHT5');insert into result_val(value, result_id) select '20', r.id from result r where r.name='IND_MU_LIGHT5'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='20' and r.name='IND_MU_LIGHT5' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='1')  );insert into result_val(value, result_id) select '45', r.id from result r where r.name='IND_MU_LIGHT5'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='45' and r.name='IND_MU_LIGHT5' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='2')  );insert into result_val(value, result_id) select '60', r.id from result r where r.name='IND_MU_LIGHT5'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='60' and r.name='IND_MU_LIGHT5' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='3')  );insert into result_val(value, result_id) select '80', r.id from result r where r.name='IND_MU_LIGHT5'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='80' and r.name='IND_MU_LIGHT5' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='4')  );insert into result(name) values('ALPHACOND');insert into result_val(value, result_id) select '7900', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='7900' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='1')  );insert into result_val(value, result_id) select '7200', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='7200' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='2')  );insert into result_val(value, result_id) select '6500', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='6500' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='3')  );insert into result_val(value, result_id) select '5800', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5800' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='4')  );insert into result_val(value, result_id) select '5200', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5200' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='5')  );insert into result_val(value, result_id) select '4600', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4600' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='6')  );insert into result_val(value, result_id) select '4000', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4000' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='7')  );insert into result_val(value, result_id) select '3500', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3500' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='8')  );insert into result_val(value, result_id) select '3000', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3000' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='9')  );insert into result_val(value, result_id) select '2500', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2500' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='10')  );insert into result_val(value, result_id) select '2000', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2000' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='11')  );insert into result_val(value, result_id) select '1600', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1600' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='12')  );insert into result_val(value, result_id) select '1200', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1200' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='13')  );insert into result_val(value, result_id) select '7900', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='7900' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='14')  );insert into result_val(value, result_id) select '7200', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='7200' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='15')  );insert into result_val(value, result_id) select '6500', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='6500' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='16')  );insert into result_val(value, result_id) select '5800', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5800' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='17')  );insert into result_val(value, result_id) select '5200', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5200' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='18')  );insert into result_val(value, result_id) select '4600', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4600' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='19')  );insert into result_val(value, result_id) select '4000', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4000' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='20')  );insert into result_val(value, result_id) select '3500', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3500' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='21')  );insert into result_val(value, result_id) select '3000', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3000' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='22')  );insert into result_val(value, result_id) select '2500', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2500' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='23')  );insert into result_val(value, result_id) select '2000', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2000' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='24')  );insert into result_val(value, result_id) select '1600', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1600' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='25')  );insert into result_val(value, result_id) select '1200', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1200' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='26')  );insert into result_val(value, result_id) select '2100', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2100' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='27')  );insert into result_val(value, result_id) select '1500', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1500' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='28')  );insert into result_val(value, result_id) select '1000', r.id from result r where r.name='ALPHACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1000' and r.name='ALPHACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='DTCOND' and iv.value='29')  );
insert into result(name) values('BETACOND');insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='BETACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.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='BETACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='EVAPLEVEL' and iv.value='1')  );insert into result_val(value, result_id) select '0.7', r.id from result r where r.name='BETACOND'; insert into value_assoc(resultval_id, inputval_id) select rv.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='BETACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='EVAPLEVEL' and iv.value='2')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='BETACOND'; insert into value_assoc(resultval_id, inputval_id) select 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='BETACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='EVAPLEVEL' and iv.value='3')  );insert into result(name) values('GAMMACOND');insert into result_val(value, result_id) select '1', r.id from result r where r.name='GAMMACOND'; insert into value_assoc(resultval_id, inputval_id) select 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='GAMMACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='CONDFUNC' and iv.value='1')  );insert into result_val(value, result_id) select '2.1', r.id from result r where r.name='GAMMACOND'; insert into value_assoc(resultval_id, inputval_id) select 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='GAMMACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='CONDFUNC' and iv.value='2')  );insert into result_val(value, result_id) select '2.5', r.id from result r where r.name='GAMMACOND'; insert into value_assoc(resultval_id, inputval_id) select 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='GAMMACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='CONDFUNC' and iv.value='3')  );insert into result_val(value, result_id) select '2.9', r.id from result r where r.name='GAMMACOND'; insert into value_assoc(resultval_id, inputval_id) select 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='GAMMACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='CONDFUNC' and iv.value='4')  );insert into result_val(value, result_id) select '3.1', r.id from result r where r.name='GAMMACOND'; insert into value_assoc(resultval_id, inputval_id) select 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.1' and r.name='GAMMACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='CONDFUNC' and iv.value='5')  );insert into result_val(value, result_id) select '3.8', r.id from result r where r.name='GAMMACOND'; insert into value_assoc(resultval_id, inputval_id) select 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='GAMMACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='CONDFUNC' and iv.value='6')  );insert into result_val(value, result_id) select '4.2', r.id from result r where r.name='GAMMACOND'; insert into value_assoc(resultval_id, inputval_id) select 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='GAMMACOND' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='CONDFUNC' and iv.value='7')  );insert into result(name) values('IND_MU_MV');insert into result_val(value, result_id) select '23000', r.id from result r where r.name='IND_MU_MV'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='23000' and r.name='IND_MU_MV' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPENGINE' and iv.value='1')  );insert into result_val(value, result_id) select '27000', r.id from result r where r.name='IND_MU_MV'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='27000' and r.name='IND_MU_MV' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPENGINE' and iv.value='2')  );insert into result_val(value, result_id) select '12000', r.id from result r where r.name='IND_MU_MV'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='12000' and r.name='IND_MU_MV' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPENGINE' and iv.value='3')  );insert into result_val(value, result_id) select '15000', r.id from result r where r.name='IND_MU_MV'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='15000' and r.name='IND_MU_MV' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPENGINE' and iv.value='4')  );insert into result_val(value, result_id) select '12000', r.id from result r where r.name='IND_MU_MV'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='12000' and r.name='IND_MU_MV' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPENGINE' and iv.value='5')  );insert into result(name) values('IND_MU_REG_FROID');insert into result_val(value, result_id) select '9900', r.id from result r where r.name='IND_MU_REG_FROID'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='9900' and r.name='IND_MU_REG_FROID' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '9900', r.id from result r where r.name='IND_MU_REG_FROID'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='9900' and r.name='IND_MU_REG_FROID' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '7600', r.id from result r where r.name='IND_MU_REG_FROID'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='7600' and r.name='IND_MU_REG_FROID' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('FC_IND_REG_FROID');insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='FC_IND_REG_FROID'; insert into value_assoc(resultval_id, inputval_id) select rv.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='FC_IND_REG_FROID' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='EVAPLEVEL' and iv.value='1')  );insert into result_val(value, result_id) select '0.8', r.id from result r where r.name='FC_IND_REG_FROID'; insert into value_assoc(resultval_id, inputval_id) select rv.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='FC_IND_REG_FROID' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='EVAPLEVEL' and iv.value='2')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='FC_IND_REG_FROID'; insert into value_assoc(resultval_id, inputval_id) select 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='FC_IND_REG_FROID' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='EVAPLEVEL' and iv.value='3')  );insert into result(name) values('IND_MU_RS_VAP');insert into result_val(value, result_id) select '19330', r.id from result r where r.name='IND_MU_RS_VAP'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='19330' and r.name='IND_MU_RS_VAP' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC2' and iv.value='1')  );insert into result_val(value, result_id) select '48330', r.id from result r where r.name='IND_MU_RS_VAP'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='48330' and r.name='IND_MU_RS_VAP' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC2' and iv.value='2')  );insert into result_val(value, result_id) select '77340', r.id from result r where r.name='IND_MU_RS_VAP'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='77340' and r.name='IND_MU_RS_VAP' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC2' and iv.value='3')  );insert into result(name) values('IND_MU_RS_EC');insert into result_val(value, result_id) select '3870', r.id from result r where r.name='IND_MU_RS_EC'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3870' and r.name='IND_MU_RS_EC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC2' and iv.value='1')  );insert into result_val(value, result_id) select '9770', r.id from result r where r.name='IND_MU_RS_EC'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='9770' and r.name='IND_MU_RS_EC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC2' and iv.value='2')  );insert into result_val(value, result_id) select '15460', r.id from result r where r.name='IND_MU_RS_EC'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='15460' and r.name='IND_MU_RS_EC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC2' and iv.value='3')  );insert into result(name) values('IND_MU_RS_ESC');insert into result_val(value, result_id) select '9640', r.id from result r where r.name='IND_MU_RS_ESC'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='9640' and r.name='IND_MU_RS_ESC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC2' and iv.value='1')  );insert into result_val(value, result_id) select '24100', r.id from result r where r.name='IND_MU_RS_ESC'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='24100' and r.name='IND_MU_RS_ESC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC2' and iv.value='2')  );insert into result_val(value, result_id) select '38540', r.id from result r where r.name='IND_MU_RS_ESC'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='38540' and r.name='IND_MU_RS_ESC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC2' and iv.value='3')  );insert into result(name) values('IND_MU_RS_FO');insert into result_val(value, result_id) select '18000', r.id from result r where r.name='IND_MU_RS_FO'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='18000' and r.name='IND_MU_RS_FO' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC2' and iv.value='1')  );insert into result_val(value, result_id) select '45050', r.id from result r where r.name='IND_MU_RS_FO'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='45050' and r.name='IND_MU_RS_FO' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC2' and iv.value='2')  );insert into result_val(value, result_id) select '72080', r.id from result r where r.name='IND_MU_RS_FO'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='72080' and r.name='IND_MU_RS_FO' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC2' and iv.value='3')  );insert into result(name) values('IND_MU_SECHEUR_AC');insert into result_val(value, result_id) select '2050', r.id from result r where r.name='IND_MU_SECHEUR_AC'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2050' and r.name='IND_MU_SECHEUR_AC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='1')  );insert into result_val(value, result_id) select '5100', r.id from result r where r.name='IND_MU_SECHEUR_AC'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5100' and r.name='IND_MU_SECHEUR_AC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='2')  );insert into result_val(value, result_id) select '6300', r.id from result r where r.name='IND_MU_SECHEUR_AC'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='6300' and r.name='IND_MU_SECHEUR_AC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='3')  );insert into result_val(value, result_id) select '8150', r.id from result r where r.name='IND_MU_SECHEUR_AC'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='8150' and r.name='IND_MU_SECHEUR_AC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='4')  );insert into result(name) values('IND_MU_SEQ_SIMPLE');insert into result_val(value, result_id) select '550', r.id from result r where r.name='IND_MU_SEQ_SIMPLE'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='550' and r.name='IND_MU_SEQ_SIMPLE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='1')  );insert into result_val(value, result_id) select '1100', r.id from result r where r.name='IND_MU_SEQ_SIMPLE'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1100' and r.name='IND_MU_SEQ_SIMPLE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='2')  );insert into result_val(value, result_id) select '1650', r.id from result r where r.name='IND_MU_SEQ_SIMPLE'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1650' and r.name='IND_MU_SEQ_SIMPLE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='3')  );insert into result_val(value, result_id) select '2200', r.id from result r where r.name='IND_MU_SEQ_SIMPLE'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2200' and r.name='IND_MU_SEQ_SIMPLE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='4')  );insert into result_val(value, result_id) select '2700', r.id from result r where r.name='IND_MU_SEQ_SIMPLE'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2700' and r.name='IND_MU_SEQ_SIMPLE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='5')  );insert into result_val(value, result_id) select '3200', r.id from result r where r.name='IND_MU_SEQ_SIMPLE'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3200' and r.name='IND_MU_SEQ_SIMPLE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='6')  );insert into result_val(value, result_id) select '3700', r.id from result r where r.name='IND_MU_SEQ_SIMPLE'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3700' and r.name='IND_MU_SEQ_SIMPLE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='7')  );insert into result(name) values('IND_MU_SEQ_OPTION');insert into result_val(value, result_id) select '2500', r.id from result r where r.name='IND_MU_SEQ_OPTION'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2500' and r.name='IND_MU_SEQ_OPTION' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='1')  );insert into result_val(value, result_id) select '3050', r.id from result r where r.name='IND_MU_SEQ_OPTION'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3050' and r.name='IND_MU_SEQ_OPTION' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='2')  );insert into result_val(value, result_id) select '3600', r.id from result r where r.name='IND_MU_SEQ_OPTION'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3600' and r.name='IND_MU_SEQ_OPTION' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='3')  );insert into result_val(value, result_id) select '4100', r.id from result r where r.name='IND_MU_SEQ_OPTION'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4100' and r.name='IND_MU_SEQ_OPTION' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='4')  );insert into result_val(value, result_id) select '4700', r.id from result r where r.name='IND_MU_SEQ_OPTION'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4700' and r.name='IND_MU_SEQ_OPTION' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='5')  );insert into result_val(value, result_id) select '5200', r.id from result r where r.name='IND_MU_SEQ_OPTION'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5200' and r.name='IND_MU_SEQ_OPTION' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='6')  );insert into result_val(value, result_id) select '5700', r.id from result r where r.name='IND_MU_SEQ_OPTION'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5700' and r.name='IND_MU_SEQ_OPTION' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='7')  );insert into result(name) values('P3_FC_SH_M');insert into result_val(value, result_id) select '0.3', r.id from result r where r.name='P3_FC_SH_M'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_FC_SH_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='1')  );insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='P3_FC_SH_M'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_FC_SH_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='2')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='P3_FC_SH_M'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_FC_SH_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='3')  );insert into result_val(value, result_id) select '0.7', r.id from result r where r.name='P3_FC_SH_M'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_FC_SH_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='4')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='P3_FC_SH_M'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_FC_SH_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='5')  );insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='P3_FC_SH_M'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_FC_SH_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='6')  );insert into result_val(value, result_id) select '1.6', r.id from result r where r.name='P3_FC_SH_M'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_FC_SH_M' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='7')  );
insert into result(name) values('P3_FC_SH_M_2');insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='P3_FC_SH_M_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='P3_FC_SH_M_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='1')  );insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='P3_FC_SH_M_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='P3_FC_SH_M_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='2')  );insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='P3_FC_SH_M_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='P3_FC_SH_M_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='3')  );insert into result_val(value, result_id) select '0.7', r.id from result r where r.name='P3_FC_SH_M_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.7' and r.name='P3_FC_SH_M_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='4')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='P3_FC_SH_M_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='P3_FC_SH_M_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='5')  );insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='P3_FC_SH_M_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='P3_FC_SH_M_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='6')  );insert into result_val(value, result_id) select '1.6', r.id from result r where r.name='P3_FC_SH_M_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.6' and r.name='P3_FC_SH_M_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='7')  );insert into result(name) values('P3_FC_SH_A');insert into result_val(value, result_id) select '0.5', r.id from result r where r.name='P3_FC_SH_A'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_FC_SH_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='1')  );insert into result_val(value, result_id) select '0.7', r.id from result r where r.name='P3_FC_SH_A'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_FC_SH_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='2')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='P3_FC_SH_A'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_FC_SH_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='3')  );insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='P3_FC_SH_A'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_FC_SH_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='4')  );insert into result_val(value, result_id) select '1.5', r.id from result r where r.name='P3_FC_SH_A'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_FC_SH_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='5')  );insert into result_val(value, result_id) select '1.9', r.id from result r where r.name='P3_FC_SH_A'; insert into value_assoc(resultval_id, inputval_id) select 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.9' and r.name='P3_FC_SH_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='6')  );insert into result_val(value, result_id) select '2.5', r.id from result r where r.name='P3_FC_SH_A'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_FC_SH_A' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SHCLASS' and iv.value='7')  );insert into result(name) values('P3_PROG_MU_A_C');insert into result_val(value, result_id) select '9100', r.id from result r where r.name='P3_PROG_MU_A_C'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='9100' and r.name='P3_PROG_MU_A_C' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '7400', r.id from result r where r.name='P3_PROG_MU_A_C'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='7400' and r.name='P3_PROG_MU_A_C' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '4900', r.id from result r where r.name='P3_PROG_MU_A_C'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4900' and r.name='P3_PROG_MU_A_C' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('P3_CH_BOIS_MU');insert into result_val(value, result_id) select '29600', r.id from result r where r.name='P3_CH_BOIS_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='29600' and r.name='P3_CH_BOIS_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '24200', r.id from result r where r.name='P3_CH_BOIS_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='24200' and r.name='P3_CH_BOIS_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '16100', r.id from result r where r.name='P3_CH_BOIS_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='16100' and r.name='P3_CH_BOIS_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('P3_CH_BIO_MU');insert into result_val(value, result_id) select '142300', r.id from result r where r.name='P3_CH_BIO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='142300' and r.name='P3_CH_BIO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '116400', r.id from result r where r.name='P3_CH_BIO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='116400' and r.name='P3_CH_BIO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '77600', r.id from result r where r.name='P3_CH_BIO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='77600' and r.name='P3_CH_BIO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('P3_FM_CH_SE');insert into result_val(value, result_id) select '1.01', r.id from result r where r.name='P3_FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.01' and r.name='P3_FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SELENGTH' and iv.value='1')  );insert into result_val(value, result_id) select '1.02', r.id from result r where r.name='P3_FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.02' and r.name='P3_FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SELENGTH' and iv.value='2')  );insert into result_val(value, result_id) select '1.05', r.id from result r where r.name='P3_FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SELENGTH' and iv.value='3')  );insert into result_val(value, result_id) select '1.06', r.id from result r where r.name='P3_FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.06' and r.name='P3_FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SELENGTH' and iv.value='4')  );insert into result_val(value, result_id) select '1.08', r.id from result r where r.name='P3_FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.08' and r.name='P3_FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SELENGTH' and iv.value='5')  );insert into result_val(value, result_id) select '1.11', r.id from result r where r.name='P3_FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SELENGTH' and iv.value='6')  );insert into result_val(value, result_id) select '1.12', r.id from result r where r.name='P3_FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.12' and r.name='P3_FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SELENGTH' and iv.value='7')  );insert into result_val(value, result_id) select '1.15', r.id from result r where r.name='P3_FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.15' and r.name='P3_FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SELENGTH' and iv.value='8')  );insert into result_val(value, result_id) select '1.17', r.id from result r where r.name='P3_FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.17' and r.name='P3_FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SELENGTH' and iv.value='9')  );insert into result_val(value, result_id) select '1.19', r.id from result r where r.name='P3_FM_CH_SE'; insert into value_assoc(resultval_id, inputval_id) select 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.19' and r.name='P3_FM_CH_SE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SELENGTH' and iv.value='10')  );insert into result(name) values('P3_HYDRO_MU');insert into result_val(value, result_id) select '2100', r.id from result r where r.name='P3_HYDRO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2100' and r.name='P3_HYDRO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_HYDRO_TYPE' and iv.value='1')  );insert into result_val(value, result_id) select '3600', r.id from result r where r.name='P3_HYDRO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3600' and r.name='P3_HYDRO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_HYDRO_TYPE' and iv.value='2')  );insert into result_val(value, result_id) select '570', r.id from result r where r.name='P3_HYDRO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='570' and r.name='P3_HYDRO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_HYDRO_TYPE' and iv.value='3')  );insert into result_val(value, result_id) select '1100', r.id from result r where r.name='P3_HYDRO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1100' and r.name='P3_HYDRO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_HYDRO_TYPE' and iv.value='4')  );insert into result_val(value, result_id) select '1100', r.id from result r where r.name='P3_HYDRO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1100' and r.name='P3_HYDRO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_HYDRO_TYPE' and iv.value='5')  );insert into result_val(value, result_id) select '2200', r.id from result r where r.name='P3_HYDRO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2200' and r.name='P3_HYDRO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_HYDRO_TYPE' and iv.value='6')  );insert into result_val(value, result_id) select '5800', r.id from result r where r.name='P3_HYDRO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5800' and r.name='P3_HYDRO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_HYDRO_TYPE' and iv.value='7')  ); insert into result(name) values('P3_RESEAU_ISO_MU');  insert into result_val(value, result_id) select '5600', r.id from result r where r.name='P3_RESEAU_ISO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5600' and r.name='P3_RESEAU_ISO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '4500', r.id from result r where r.name='P3_RESEAU_ISO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4500' and r.name='P3_RESEAU_ISO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '3000', r.id from result r where r.name='P3_RESEAU_ISO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3000' and r.name='P3_RESEAU_ISO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  ); insert into result(name) values('P3_APPART_MU');  insert into result_val(value, result_id) select '17100', r.id from result r where r.name='P3_APPART_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='17100' and r.name='P3_APPART_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '14100', r.id from result r where r.name='P3_APPART_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='14100' and r.name='P3_APPART_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '9300', r.id from result r where r.name='P3_APPART_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='9300' and r.name='P3_APPART_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('P3_TER_FC_ISO');insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='P3_TER_FC_ISO'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_FC_ISO' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='1')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='P3_TER_FC_ISO'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_FC_ISO' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='2')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='P3_TER_FC_ISO'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_FC_ISO' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='3')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='P3_TER_FC_ISO'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_FC_ISO' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='4')  );insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='P3_TER_FC_ISO'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_TER_FC_ISO' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='5')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='P3_TER_FC_ISO'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_FC_ISO' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='6')  );insert into result(name) values('P3_TER_FC_CH');insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='P3_TER_FC_CH'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_TER_FC_CH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='1')  );insert into result_val(value, result_id) select '0.8', r.id from result r where r.name='P3_TER_FC_CH'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_FC_CH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='2')  );insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='P3_TER_FC_CH'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_FC_CH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='3')  );insert into result_val(value, result_id) select '1.4', r.id from result r where r.name='P3_TER_FC_CH'; insert into value_assoc(resultval_id, inputval_id) select 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.4' and r.name='P3_TER_FC_CH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='4')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='P3_TER_FC_CH'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_TER_FC_CH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='5')  );insert into result_val(value, result_id) select '0.8', r.id from result r where r.name='P3_TER_FC_CH'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_FC_CH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='6')  );insert into result(name) values('P3_TER_ROB_MU');insert into result_val(value, result_id) select '110', r.id from result r where r.name='P3_TER_ROB_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='110' and r.name='P3_TER_ROB_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '94', r.id from result r where r.name='P3_TER_ROB_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='94' and r.name='P3_TER_ROB_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '63', r.id from result r where r.name='P3_TER_ROB_MU'; insert into value_assoc(resultval_id, inputval_id) select 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' and r.name='P3_TER_ROB_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );
insert into result(name) values('P3_TER_MU_VEV');insert into result_val(value, result_id) select '14100', r.id from result r where r.name='P3_TER_MU_VEV'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='14100' and r.name='P3_TER_MU_VEV' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_APPVEV' and iv.value='1')  );insert into result_val(value, result_id) select '11300', r.id from result r where r.name='P3_TER_MU_VEV'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='11300' and r.name='P3_TER_MU_VEV' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_APPVEV' and iv.value='2')  );insert into result_val(value, result_id) select '4500', r.id from result r where r.name='P3_TER_MU_VEV'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4500' and r.name='P3_TER_MU_VEV' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_APPVEV' and iv.value='3')  );insert into result_val(value, result_id) select '1100', r.id from result r where r.name='P3_TER_MU_VEV'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1100' and r.name='P3_TER_MU_VEV' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_APPVEV' and iv.value='4')  );insert into result_val(value, result_id) select '1100', r.id from result r where r.name='P3_TER_MU_VEV'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1100' and r.name='P3_TER_MU_VEV' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_APPVEV' and iv.value='5')  );insert into result(name) values('P3_TER_FC_PAC');insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='P3_TER_FC_PAC'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_TER_FC_PAC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='1')  );insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='P3_TER_FC_PAC'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_FC_PAC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='2')  );insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='P3_TER_FC_PAC'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_FC_PAC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='3')  );insert into result_val(value, result_id) select '1.3', r.id from result r where r.name='P3_TER_FC_PAC'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_TER_FC_PAC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='4')  );insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='P3_TER_FC_PAC'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_TER_FC_PAC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='5')  );insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='P3_TER_FC_PAC'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_FC_PAC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='6')  );insert into result(name) values('P3_TER_FC_CHCOL');insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='P3_TER_FC_CHCOL'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_TER_FC_CHCOL' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='1')  );insert into result_val(value, result_id) select '0.7', r.id from result r where r.name='P3_TER_FC_CHCOL'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_FC_CHCOL' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='2')  );insert into result_val(value, result_id) select '0.8', r.id from result r where r.name='P3_TER_FC_CHCOL'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_FC_CHCOL' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='3')  );insert into result_val(value, result_id) select '1.6', r.id from result r where r.name='P3_TER_FC_CHCOL'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_TER_FC_CHCOL' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='4')  );insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='P3_TER_FC_CHCOL'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_TER_FC_CHCOL' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='5')  );insert into result_val(value, result_id) select '0.7', r.id from result r where r.name='P3_TER_FC_CHCOL'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_FC_CHCOL' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='6')  );insert into result(name) values('P3_TER_GEST_CHAUF_FC');insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='P3_TER_GEST_CHAUF_FC'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_TER_GEST_CHAUF_FC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='P3_TER_GEST_CHAUF_FC'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_GEST_CHAUF_FC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='P3_TER_GEST_CHAUF_FC'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_GEST_CHAUF_FC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('P3_TER_LUM_TUBE_FC');insert into result_val(value, result_id) select '0.75', r.id from result r where r.name='P3_TER_LUM_TUBE_FC'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_LUM_TUBE_FC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='1')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='P3_TER_LUM_TUBE_FC'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_LUM_TUBE_FC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='2')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='P3_TER_LUM_TUBE_FC'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_TER_LUM_TUBE_FC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='3')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='P3_TER_LUM_TUBE_FC'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_LUM_TUBE_FC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='4')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='P3_TER_LUM_TUBE_FC'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_LUM_TUBE_FC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='5')  );insert into result_val(value, result_id) select '0.6', r.id from result r where r.name='P3_TER_LUM_TUBE_FC'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_TER_LUM_TUBE_FC' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='6')  ); insert into result(name) values('P3_LUM_GES_MU');  insert into result_val(value, result_id) select '1', r.id from result r where r.name='P3_LUM_GES_MU'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_LUM_GES_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_GESTION_ECL' and iv.value='1')  );insert into result_val(value, result_id) select '1.1', r.id from result r where r.name='P3_LUM_GES_MU'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_LUM_GES_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_GESTION_ECL' and iv.value='2')  );insert into result_val(value, result_id) select '1.22', r.id from result r where r.name='P3_LUM_GES_MU'; insert into value_assoc(resultval_id, inputval_id) select 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.22' and r.name='P3_LUM_GES_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_GESTION_ECL' and iv.value='3')  );insert into result_val(value, result_id) select '1.32', r.id from result r where r.name='P3_LUM_GES_MU'; insert into value_assoc(resultval_id, inputval_id) select 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.32' and r.name='P3_LUM_GES_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_GESTION_ECL' and iv.value='4')  );insert into result(name) values('P3_LED_GES_MU'); insert into result_val(value, result_id) select '1400', r.id from result r where r.name='P3_LED_GES_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1400' and r.name='P3_LED_GES_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_TYPE_LED_GESTION' and iv.value='1')  );insert into result_val(value, result_id) select '1800', r.id from result r where r.name='P3_LED_GES_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1800' and r.name='P3_LED_GES_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_TYPE_LED_GESTION' and iv.value='2')  );insert into result_val(value, result_id) select '2300', r.id from result r where r.name='P3_LED_GES_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2300' and r.name='P3_LED_GES_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_TYPE_LED_GESTION' and iv.value='3')  );insert into result(name) values('P3_SEC_FC_MU');insert into result_val(value, result_id) select '1.2', r.id from result r where r.name='P3_SEC_FC_MU'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_SEC_FC_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='1')  );insert into result_val(value, result_id) select '0.8', r.id from result r where r.name='P3_SEC_FC_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_SEC_FC_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='2')  );insert into result_val(value, result_id) select '0.9', r.id from result r where r.name='P3_SEC_FC_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_SEC_FC_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='3')  );insert into result_val(value, result_id) select '1.4', r.id from result r where r.name='P3_SEC_FC_MU'; insert into value_assoc(resultval_id, inputval_id) select 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.4' and r.name='P3_SEC_FC_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='4')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='P3_SEC_FC_MU'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_SEC_FC_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='5')  );insert into result_val(value, result_id) select '0.8', r.id from result r where r.name='P3_SEC_FC_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.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='P3_SEC_FC_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC' and iv.value='6')  );insert into result(name) values('P3_SH_RAD_MU');insert into result_val(value, result_id) select '65', r.id from result r where r.name='P3_SH_RAD_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='65' and r.name='P3_SH_RAD_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '53', r.id from result r where r.name='P3_SH_RAD_MU'; insert into value_assoc(resultval_id, inputval_id) select 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' and r.name='P3_SH_RAD_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '36', r.id from result r where r.name='P3_SH_RAD_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='36' and r.name='P3_SH_RAD_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('P3_RES_ISO_MU');insert into result_val(value, result_id) select '3000', r.id from result r where r.name='P3_RES_ISO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3000' and r.name='P3_RES_ISO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '2400', r.id from result r where r.name='P3_RES_ISO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2400' and r.name='P3_RES_ISO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '1600', r.id from result r where r.name='P3_RES_ISO_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1600' and r.name='P3_RES_ISO_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('P3_CUSAGE_MU');insert into result_val(value, result_id) select '22700', r.id from result r where r.name='P3_CUSAGE_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='22700' and r.name='P3_CUSAGE_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_CUSAGE' and iv.value='1')  );insert into result_val(value, result_id) select '37200', r.id from result r where r.name='P3_CUSAGE_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='37200' and r.name='P3_CUSAGE_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_CUSAGE' and iv.value='2')  );insert into result_val(value, result_id) select '50600', r.id from result r where r.name='P3_CUSAGE_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='50600' and r.name='P3_CUSAGE_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_CUSAGE' and iv.value='3')  );insert into result(name) values('P3_SCHAUF_MU');insert into result_val(value, result_id) select '65', r.id from result r where r.name='P3_SCHAUF_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='65' and r.name='P3_SCHAUF_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '57', r.id from result r where r.name='P3_SCHAUF_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='57' and r.name='P3_SCHAUF_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '48', r.id from result r where r.name='P3_SCHAUF_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='48' and r.name='P3_SCHAUF_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('P3_SFROID_MU');insert into result_val(value, result_id) select '9', r.id from result r where r.name='P3_SFROID_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='9' and r.name='P3_SFROID_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '13', r.id from result r where r.name='P3_SFROID_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='13' and r.name='P3_SFROID_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '24', r.id from result r where r.name='P3_SFROID_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='24' and r.name='P3_SFROID_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('P3_SEC6_MU_1');insert into result_val(value, result_id) select '0.52', r.id from result r where r.name='P3_SEC6_MU_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.52' and r.name='P3_SEC6_MU_1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC6' and iv.value='1')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='P3_SEC6_MU_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='P3_SEC6_MU_1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC6' and iv.value='2')  );insert into result_val(value, result_id) select '0.64', r.id from result r where r.name='P3_SEC6_MU_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='P3_SEC6_MU_1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC6' and iv.value='3')  );insert into result_val(value, result_id) select '0.51', r.id from result r where r.name='P3_SEC6_MU_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.51' and r.name='P3_SEC6_MU_1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC6' and iv.value='4')  );insert into result(name) values('P3_SEC6_MU_2');
insert into result_val(value, result_id) select '0.41', r.id from result r where r.name='P3_SEC6_MU_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.41' and r.name='P3_SEC6_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC6' and iv.value='1')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='P3_SEC6_MU_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='P3_SEC6_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC6' and iv.value='2')  );insert into result_val(value, result_id) select '0.47', r.id from result r where r.name='P3_SEC6_MU_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='P3_SEC6_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC6' and iv.value='3')  );insert into result_val(value, result_id) select '0.49', r.id from result r where r.name='P3_SEC6_MU_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.49' and r.name='P3_SEC6_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC6' and iv.value='4')  );insert into result(name) values('P3_SEC6_MU_3');insert into result_val(value, result_id) select '0.45', r.id from result r where r.name='P3_SEC6_MU_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.45' and r.name='P3_SEC6_MU_3' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC6' and iv.value='1')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='P3_SEC6_MU_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='P3_SEC6_MU_3' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC6' and iv.value='2')  );insert into result_val(value, result_id) select '0.59', r.id from result r where r.name='P3_SEC6_MU_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.59' and r.name='P3_SEC6_MU_3' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC6' and iv.value='3')  );insert into result_val(value, result_id) select '0.62', r.id from result r where r.name='P3_SEC6_MU_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.62' and r.name='P3_SEC6_MU_3' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC6' and iv.value='4')  );insert into result(name) values('P3_SEC7_MU_1');insert into result_val(value, result_id) select '0.57', r.id from result r where r.name='P3_SEC7_MU_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.57' and r.name='P3_SEC7_MU_1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC7' and iv.value='1')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='P3_SEC7_MU_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='P3_SEC7_MU_1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC7' and iv.value='2')  );insert into result_val(value, result_id) select '0.73', r.id from result r where r.name='P3_SEC7_MU_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.73' and r.name='P3_SEC7_MU_1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC7' and iv.value='3')  );insert into result_val(value, result_id) select '0.69', r.id from result r where r.name='P3_SEC7_MU_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='P3_SEC7_MU_1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC7' and iv.value='4')  );insert into result_val(value, result_id) select '1.96', r.id from result r where r.name='P3_SEC7_MU_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='P3_SEC7_MU_1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC7' and iv.value='5')  );insert into result(name) values('P3_SEC7_MU_2');insert into result_val(value, result_id) select '0.55', r.id from result r where r.name='P3_SEC7_MU_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.55' and r.name='P3_SEC7_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC7' and iv.value='1')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='P3_SEC7_MU_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='P3_SEC7_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC7' and iv.value='2')  );insert into result_val(value, result_id) select '0.68', r.id from result r where r.name='P3_SEC7_MU_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.68' and r.name='P3_SEC7_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC7' and iv.value='3')  );insert into result_val(value, result_id) select '0.72', r.id from result r where r.name='P3_SEC7_MU_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.72' and r.name='P3_SEC7_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC7' and iv.value='4')  );insert into result_val(value, result_id) select '0.72', r.id from result r where r.name='P3_SEC7_MU_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.72' and r.name='P3_SEC7_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC7' and iv.value='5')  );insert into result(name) values('P3_SEC7_MU_3');insert into result_val(value, result_id) select '0.53', r.id from result r where r.name='P3_SEC7_MU_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.53' and r.name='P3_SEC7_MU_3' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC7' and iv.value='1')  );insert into result_val(value, result_id) select '1', r.id from result r where r.name='P3_SEC7_MU_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='P3_SEC7_MU_3' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC7' and iv.value='2')  );insert into result_val(value, result_id) select '0.68', r.id from result r where r.name='P3_SEC7_MU_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.68' and r.name='P3_SEC7_MU_3' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC7' and iv.value='3')  );insert into result_val(value, result_id) select '0.74', r.id from result r where r.name='P3_SEC7_MU_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.74' and r.name='P3_SEC7_MU_3' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC7' and iv.value='4')  );insert into result_val(value, result_id) select '1.5', r.id from result r where r.name='P3_SEC7_MU_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.5' and r.name='P3_SEC7_MU_3' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='SEC7' and iv.value='5')  );insert into result(name) values('P3_BAT_EQ_CH');insert into result_val(value, result_id) select '120', r.id from result r where r.name='P3_BAT_EQ_CH'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='120' and r.name='P3_BAT_EQ_CH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='1')  );insert into result_val(value, result_id) select '100', r.id from result r where r.name='P3_BAT_EQ_CH'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_BAT_EQ_CH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='2')  );insert into result_val(value, result_id) select '67', r.id from result r where r.name='P3_BAT_EQ_CH'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='67' and r.name='P3_BAT_EQ_CH' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='ZONE' and iv.value='3')  );insert into result(name) values('P3_APPVEV_MU');insert into result_val(value, result_id) select '9500', r.id from result r where r.name='P3_APPVEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='9500' and r.name='P3_APPVEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_APPVEV' and iv.value='1')  );insert into result_val(value, result_id) select '11400', r.id from result r where r.name='P3_APPVEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='11400' and r.name='P3_APPVEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_APPVEV' and iv.value='2')  );insert into result_val(value, result_id) select '4600', r.id from result r where r.name='P3_APPVEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4600' and r.name='P3_APPVEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_APPVEV' and iv.value='3')  );insert into result_val(value, result_id) select '1200', r.id from result r where r.name='P3_APPVEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1200' and r.name='P3_APPVEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_APPVEV' and iv.value='4')  );insert into result_val(value, result_id) select '1200', r.id from result r where r.name='P3_APPVEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1200' and r.name='P3_APPVEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_APPVEV' and iv.value='5')  );insert into result(name) values('P3_APPVEV_MU_2');insert into result_val(value, result_id) select '13700', r.id from result r where r.name='P3_APPVEV_MU_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 ='13700' and r.name='P3_APPVEV_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_APPVEV' and iv.value='1')  );insert into result_val(value, result_id) select '16300', r.id from result r where r.name='P3_APPVEV_MU_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 ='16300' and r.name='P3_APPVEV_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_APPVEV' and iv.value='2')  );insert into result_val(value, result_id) select '8000', r.id from result r where r.name='P3_APPVEV_MU_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 ='8000' and r.name='P3_APPVEV_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_APPVEV' and iv.value='3')  );insert into result_val(value, result_id) select '2000', r.id from result r where r.name='P3_APPVEV_MU_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 ='2000' and r.name='P3_APPVEV_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_APPVEV' and iv.value='4')  );insert into result_val(value, result_id) select '2000', r.id from result r where r.name='P3_APPVEV_MU_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 ='2000' and r.name='P3_APPVEV_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_APPVEV' and iv.value='5')  );insert into result(name) values('P3_MEUBLE_FRIG_MU');insert into result_val(value, result_id) select '6700', r.id from result r where r.name='P3_MEUBLE_FRIG_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='6700' and r.name='P3_MEUBLE_FRIG_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_MEUBLE_FRIG' and iv.value='1')  );insert into result_val(value, result_id) select '8200', r.id from result r where r.name='P3_MEUBLE_FRIG_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='8200' and r.name='P3_MEUBLE_FRIG_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_MEUBLE_FRIG' and iv.value='2')  );insert into result_val(value, result_id) select '4600', r.id from result r where r.name='P3_MEUBLE_FRIG_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4600' and r.name='P3_MEUBLE_FRIG_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_MEUBLE_FRIG' and iv.value='3')  );
insert into result(name) values('P3_IND_VEV_MU');insert into result_val(value, result_id) select '18400', r.id from result r where r.name='P3_IND_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='18400' and r.name='P3_IND_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_IND_APPVEV' and iv.value='1')  );insert into result_val(value, result_id) select '12200', r.id from result r where r.name='P3_IND_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='12200' and r.name='P3_IND_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_IND_APPVEV' and iv.value='2')  );insert into result_val(value, result_id) select '9500', r.id from result r where r.name='P3_IND_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='9500' and r.name='P3_IND_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_IND_APPVEV' and iv.value='3')  );insert into result_val(value, result_id) select '8200', r.id from result r where r.name='P3_IND_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='8200' and r.name='P3_IND_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_IND_APPVEV' and iv.value='4')  );insert into result_val(value, result_id) select '6200', r.id from result r where r.name='P3_IND_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='6200' and r.name='P3_IND_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_IND_APPVEV' and iv.value='5')  );insert into result(name) values('P3_MVS_MU');insert into result_val(value, result_id) select '23900', r.id from result r where r.name='P3_MVS_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='23900' and r.name='P3_MVS_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPENGINE' and iv.value='1')  );insert into result_val(value, result_id) select '15800', r.id from result r where r.name='P3_MVS_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='15800' and r.name='P3_MVS_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPENGINE' and iv.value='2')  );insert into result_val(value, result_id) select '9500', r.id from result r where r.name='P3_MVS_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='9500' and r.name='P3_MVS_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPENGINE' and iv.value='3')  );insert into result_val(value, result_id) select '12600', r.id from result r where r.name='P3_MVS_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='12600' and r.name='P3_MVS_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPENGINE' and iv.value='4')  );insert into result_val(value, result_id) select '9500', r.id from result r where r.name='P3_MVS_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='9500' and r.name='P3_MVS_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPENGINE' and iv.value='5')  );insert into result(name) values('P3_MVS_MU_2');insert into result_val(value, result_id) select '17800', r.id from result r where r.name='P3_MVS_MU_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 ='17800' and r.name='P3_MVS_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPENGINE' and iv.value='1')  );insert into result_val(value, result_id) select '17600', r.id from result r where r.name='P3_MVS_MU_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 ='17600' and r.name='P3_MVS_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPENGINE' and iv.value='2')  );insert into result_val(value, result_id) select '9200', r.id from result r where r.name='P3_MVS_MU_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 ='9200' and r.name='P3_MVS_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPENGINE' and iv.value='3')  );insert into result_val(value, result_id) select '14500', r.id from result r where r.name='P3_MVS_MU_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 ='14500' and r.name='P3_MVS_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPENGINE' and iv.value='4')  );insert into result_val(value, result_id) select '11400', r.id from result r where r.name='P3_MVS_MU_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 ='11400' and r.name='P3_MVS_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='APPENGINE' and iv.value='5')  );insert into result(name) values('P3_IND_MU_SEQ_SIMPLE');insert into result_val(value, result_id) select '560', r.id from result r where r.name='P3_IND_MU_SEQ_SIMPLE'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='560' and r.name='P3_IND_MU_SEQ_SIMPLE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='1')  );insert into result_val(value, result_id) select '1100', r.id from result r where r.name='P3_IND_MU_SEQ_SIMPLE'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1100' and r.name='P3_IND_MU_SEQ_SIMPLE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='2')  );insert into result_val(value, result_id) select '1700', r.id from result r where r.name='P3_IND_MU_SEQ_SIMPLE'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1700' and r.name='P3_IND_MU_SEQ_SIMPLE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='3')  );insert into result_val(value, result_id) select '2200', r.id from result r where r.name='P3_IND_MU_SEQ_SIMPLE'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2200' and r.name='P3_IND_MU_SEQ_SIMPLE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='4')  );insert into result_val(value, result_id) select '2700', r.id from result r where r.name='P3_IND_MU_SEQ_SIMPLE'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2700' and r.name='P3_IND_MU_SEQ_SIMPLE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='5')  );insert into result_val(value, result_id) select '3200', r.id from result r where r.name='P3_IND_MU_SEQ_SIMPLE'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3200' and r.name='P3_IND_MU_SEQ_SIMPLE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='6')  );insert into result_val(value, result_id) select '3700', r.id from result r where r.name='P3_IND_MU_SEQ_SIMPLE'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3700' and r.name='P3_IND_MU_SEQ_SIMPLE' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='7')  );insert into result(name) values('P3_IND_MU_SEQ_OPTION');insert into result_val(value, result_id) select '2400', r.id from result r where r.name='P3_IND_MU_SEQ_OPTION'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2400' and r.name='P3_IND_MU_SEQ_OPTION' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='1')  );insert into result_val(value, result_id) select '3000', r.id from result r where r.name='P3_IND_MU_SEQ_OPTION'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3000' and r.name='P3_IND_MU_SEQ_OPTION' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='2')  );insert into result_val(value, result_id) select '3600', r.id from result r where r.name='P3_IND_MU_SEQ_OPTION'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3600' and r.name='P3_IND_MU_SEQ_OPTION' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='3')  );insert into result_val(value, result_id) select '4100', r.id from result r where r.name='P3_IND_MU_SEQ_OPTION'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4100' and r.name='P3_IND_MU_SEQ_OPTION' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='4')  );
insert into result_val(value, result_id) select '4600', r.id from result r where r.name='P3_IND_MU_SEQ_OPTION'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4600' and r.name='P3_IND_MU_SEQ_OPTION' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='5')  );insert into result_val(value, result_id) select '5100', r.id from result r where r.name='P3_IND_MU_SEQ_OPTION'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5100' and r.name='P3_IND_MU_SEQ_OPTION' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='6')  );insert into result_val(value, result_id) select '5600', r.id from result r where r.name='P3_IND_MU_SEQ_OPTION'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5600' and r.name='P3_IND_MU_SEQ_OPTION' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='NCOMP' and iv.value='7')  );insert into result(name) values('P3_IND_DESTRAT_MU_CONV');insert into result_val(value, result_id) select '1300', r.id from result r where r.name='P3_IND_DESTRAT_MU_CONV'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1300' and r.name='P3_IND_DESTRAT_MU_CONV' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='1')  );insert into result_val(value, result_id) select '2700', r.id from result r where r.name='P3_IND_DESTRAT_MU_CONV'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2700' and r.name='P3_IND_DESTRAT_MU_CONV' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='2')  );insert into result_val(value, result_id) select '2900', r.id from result r where r.name='P3_IND_DESTRAT_MU_CONV'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2900' and r.name='P3_IND_DESTRAT_MU_CONV' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='3')  );insert into result_val(value, result_id) select '4000', r.id from result r where r.name='P3_IND_DESTRAT_MU_CONV'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4000' and r.name='P3_IND_DESTRAT_MU_CONV' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='4')  );insert into result(name) values('P3_IND_DESTRAT_MU_CONV_1');insert into result_val(value, result_id) select '470', r.id from result r where r.name='P3_IND_DESTRAT_MU_CONV_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 ='470' and r.name='P3_IND_DESTRAT_MU_CONV_1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='1')  );insert into result_val(value, result_id) select '940', r.id from result r where r.name='P3_IND_DESTRAT_MU_CONV_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 ='940' and r.name='P3_IND_DESTRAT_MU_CONV_1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='2')  );insert into result_val(value, result_id) select '1000', r.id from result r where r.name='P3_IND_DESTRAT_MU_CONV_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 ='1000' and r.name='P3_IND_DESTRAT_MU_CONV_1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='3')  );insert into result_val(value, result_id) select '1400', r.id from result r where r.name='P3_IND_DESTRAT_MU_CONV_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 ='1400' and r.name='P3_IND_DESTRAT_MU_CONV_1' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='4')  );insert into result(name) values('P3_IND_DESTRAT_MU_RAD');insert into result_val(value, result_id) select '470', r.id from result r where r.name='P3_IND_DESTRAT_MU_RAD'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='470' and r.name='P3_IND_DESTRAT_MU_RAD' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='1')  );insert into result_val(value, result_id) select '910', r.id from result r where r.name='P3_IND_DESTRAT_MU_RAD'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='910' and r.name='P3_IND_DESTRAT_MU_RAD' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='2')  );insert into result_val(value, result_id) select '1000', r.id from result r where r.name='P3_IND_DESTRAT_MU_RAD'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1000' and r.name='P3_IND_DESTRAT_MU_RAD' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='3')  );insert into result_val(value, result_id) select '1400', r.id from result r where r.name='P3_IND_DESTRAT_MU_RAD'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1400' and r.name='P3_IND_DESTRAT_MU_RAD' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='4')  );insert into result(name) values('P3_IND_SECHEUR_MU');insert into result_val(value, result_id) select '2300', r.id from result r where r.name='P3_IND_SECHEUR_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2300' and r.name='P3_IND_SECHEUR_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='1')  );insert into result_val(value, result_id) select '5000', r.id from result r where r.name='P3_IND_SECHEUR_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='5000' and r.name='P3_IND_SECHEUR_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='2')  );insert into result_val(value, result_id) select '6800', r.id from result r where r.name='P3_IND_SECHEUR_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='6800' and r.name='P3_IND_SECHEUR_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='3')  );insert into result_val(value, result_id) select '9500', r.id from result r where r.name='P3_IND_SECHEUR_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='9500' and r.name='P3_IND_SECHEUR_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='4')  );insert into result(name) values('P3_IND_RECUP_TOUR_MU');insert into result_val(value, result_id) select '12100', r.id from result r where r.name='P3_IND_RECUP_TOUR_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='12100' and r.name='P3_IND_RECUP_TOUR_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='1')  );insert into result_val(value, result_id) select '26700', r.id from result r where r.name='P3_IND_RECUP_TOUR_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='26700' and r.name='P3_IND_RECUP_TOUR_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='2')  );insert into result_val(value, result_id) select '36400', r.id from result r where r.name='P3_IND_RECUP_TOUR_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='36400' and r.name='P3_IND_RECUP_TOUR_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='3')  );insert into result_val(value, result_id) select '51000', r.id from result r where r.name='P3_IND_RECUP_TOUR_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='51000' and r.name='P3_IND_RECUP_TOUR_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='4')  );insert into result(name) values('P3_IND_ECO_CHAUD_MU');insert into result_val(value, result_id) select '330', r.id from result r where r.name='P3_IND_ECO_CHAUD_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='330' and r.name='P3_IND_ECO_CHAUD_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='1')  );insert into result_val(value, result_id) select '720', r.id from result r where r.name='P3_IND_ECO_CHAUD_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='720' and r.name='P3_IND_ECO_CHAUD_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='2')  );insert into result_val(value, result_id) select '990', r.id from result r where r.name='P3_IND_ECO_CHAUD_MU'; insert into value_assoc(resultval_id, inputval_id) select 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='P3_IND_ECO_CHAUD_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='3')  );insert into result_val(value, result_id) select '1400', r.id from result r where r.name='P3_IND_ECO_CHAUD_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1400' and r.name='P3_IND_ECO_CHAUD_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='4')  );insert into result(name) values('P3_IND_BRULEUR_MU');insert into result_val(value, result_id) select '550', r.id from result r where r.name='P3_IND_BRULEUR_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='550' and r.name='P3_IND_BRULEUR_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='1')  );insert into result_val(value, result_id) select '1200', r.id from result r where r.name='P3_IND_BRULEUR_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1200' and r.name='P3_IND_BRULEUR_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='2')  );insert into result_val(value, result_id) select '1600', r.id from result r where r.name='P3_IND_BRULEUR_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='1600' and r.name='P3_IND_BRULEUR_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='3')  );insert into result_val(value, result_id) select '2300', r.id from result r where r.name='P3_IND_BRULEUR_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2300' and r.name='P3_IND_BRULEUR_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='MFUNC' and iv.value='4')  );insert into result(name) values('P3_IND_RECUP_FROID_MU');insert into result_val(value, result_id) select '21500', r.id from result r where r.name='P3_IND_RECUP_FROID_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='21500' and r.name='P3_IND_RECUP_FROID_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_MFUNC' and iv.value='1')  );insert into result_val(value, result_id) select '43100', r.id from result r where r.name='P3_IND_RECUP_FROID_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='43100' and r.name='P3_IND_RECUP_FROID_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_MFUNC' and iv.value='2')  );insert into result_val(value, result_id) select '64600', r.id from result r where r.name='P3_IND_RECUP_FROID_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='64600' and r.name='P3_IND_RECUP_FROID_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_MFUNC' and iv.value='3')  );insert into result_val(value, result_id) select '90400', r.id from result r where r.name='P3_IND_RECUP_FROID_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='90400' and r.name='P3_IND_RECUP_FROID_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_MFUNC' and iv.value='4')  );insert into result(name) values('P3_AGRI_SC_MU');insert into result_val(value, result_id) select '83', r.id from result r where r.name='P3_AGRI_SC_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='83' and r.name='P3_AGRI_SC_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SERTYPE' and iv.value='1')  );insert into result_val(value, result_id) select '70', r.id from result r where r.name='P3_AGRI_SC_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='70' and r.name='P3_AGRI_SC_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SERTYPE' and iv.value='2')  );insert into result(name) values('P3_AGRI_SERRE_EQ_MU');insert into result_val(value, result_id) select '410', r.id from result r where r.name='P3_AGRI_SERRE_EQ_MU'; insert into value_assoc(resultval_id, inputval_id) select 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' and r.name='P3_AGRI_SERRE_EQ_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SERTYPE' and iv.value='1')  );insert into result_val(value, result_id) select '280', r.id from result r where r.name='P3_AGRI_SERRE_EQ_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='280' and r.name='P3_AGRI_SERRE_EQ_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SERTYPE' and iv.value='2')  );insert into result(name) values('P3_AGRI_SERRE_EQ_MU_2');insert into result_val(value, result_id) select '42', r.id from result r where r.name='P3_AGRI_SERRE_EQ_MU_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 ='42' and r.name='P3_AGRI_SERRE_EQ_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SERTYPE' and iv.value='1')  );insert into result_val(value, result_id) select '22', r.id from result r where r.name='P3_AGRI_SERRE_EQ_MU_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 ='22' and r.name='P3_AGRI_SERRE_EQ_MU_2' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_SERTYPE' and iv.value='2')  );insert into result(name) values('P3_VEV_MU');insert into result_val(value, result_id) select '2600', r.id from result r where r.name='P3_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='2600' and r.name='P3_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='1')  );insert into result_val(value, result_id) select '31800', r.id from result r where r.name='P3_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='31800' and r.name='P3_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='2')  );insert into result_val(value, result_id) select '18700', r.id from result r where r.name='P3_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='18700' and r.name='P3_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='3')  );insert into result_val(value, result_id) select '4600', r.id from result r where r.name='P3_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='4600' and r.name='P3_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='4')  );insert into result_val(value, result_id) select '12500', r.id from result r where r.name='P3_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='12500' and r.name='P3_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='5')  );insert into result_val(value, result_id) select '3700', r.id from result r where r.name='P3_VEV_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='3700' and r.name='P3_VEV_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='6')  );insert into result(name) values('P3_VEV_MU_3');insert into result_val(value, result_id) select '3200', r.id from result r where r.name='P3_VEV_MU_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 ='3200' and r.name='P3_VEV_MU_3' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='1')  );insert into result_val(value, result_id) select '32700', r.id from result r where r.name='P3_VEV_MU_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 ='32700' and r.name='P3_VEV_MU_3' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='2')  );insert into result_val(value, result_id) select '23200', r.id from result r where r.name='P3_VEV_MU_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 ='23200' and r.name='P3_VEV_MU_3' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='3')  );insert into result_val(value, result_id) select '4600', r.id from result r where r.name='P3_VEV_MU_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 ='4600' and r.name='P3_VEV_MU_3' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='4')  );insert into result_val(value, result_id) select '12900', r.id from result r where r.name='P3_VEV_MU_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 ='12900' and r.name='P3_VEV_MU_3' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='5')  );insert into result_val(value, result_id) select '5700', r.id from result r where r.name='P3_VEV_MU_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 ='5700' and r.name='P3_VEV_MU_3' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='6')  );insert into result(name) values('P3_VEV_MU_4');insert into result_val(value, result_id) select '2100', r.id from result r where r.name='P3_VEV_MU_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 ='2100' and r.name='P3_VEV_MU_4' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='1')  );insert into result_val(value, result_id) select '18300', r.id from result r where r.name='P3_VEV_MU_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 ='18300' and r.name='P3_VEV_MU_4' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='2')  );insert into result_val(value, result_id) select '14900', r.id from result r where r.name='P3_VEV_MU_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 ='14900' and r.name='P3_VEV_MU_4' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='3')  );insert into result_val(value, result_id) select '2100', r.id from result r where r.name='P3_VEV_MU_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 ='2100' and r.name='P3_VEV_MU_4' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='4')  );insert into result_val(value, result_id) select '6400', r.id from result r where r.name='P3_VEV_MU_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 ='6400' and r.name='P3_VEV_MU_4' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='5')  );insert into result_val(value, result_id) select '4500', r.id from result r where r.name='P3_VEV_MU_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 ='4500' and r.name='P3_VEV_MU_4' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_AGR_APPVEV' and iv.value='6')  );insert into result(name) values('P3_FORM_MU');insert into result_val(value, result_id) select '12400', r.id from result r where r.name='P3_FORM_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='12400' and r.name='P3_FORM_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_FORMTYPE' and iv.value='1')  );insert into result_val(value, result_id) select '9100', r.id from result r where r.name='P3_FORM_MU'; insert into value_assoc(resultval_id, inputval_id) select rv.id, iv.id from (select _rv.* from result_val _rv inner join result r on r.id=_rv.result_id where _rv.value ='9100' and r.name='P3_FORM_MU' and not exists   (select * from  value_assoc va where va.resultval_id=_rv.id) limit 0,1) as rv inner join input_val iv inner join input i on i.id=iv.input_id where (  (i.name='P3_FORMTYPE' and iv.value='2')  );insert into result(name) values('P3_FORM_MU_2');
