text: -- This SQL code was generated by sklearn2sql (development version).
  -- Copyright 2018
  
  -- Model : CaretRegressor_cforest
  -- Dataset : freidman2
  -- Database : mysql
  
  
  -- This SQL code can contain one or more statements, to be executed in the order they appear in this file.
  
  
  
  -- Model deployment code
  
  WITH `RF_0` AS 
  (WITH `DT_node_lookup` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_2` <= 0.5338347169277029) THEN CASE WHEN (`ADS`.`Feature_2` <= 0.2399512252460241) THEN CASE WHEN (`ADS`.`Feature_2` <= 0.1044772945574536) THEN 4 ELSE 5 END ELSE 6 END ELSE CASE WHEN (`ADS`.`Feature_1` <= 808.6138063164557) THEN 8 ELSE CASE WHEN (`ADS`.`Feature_1` <= 1182.939023927105) THEN CASE WHEN (`ADS`.`Feature_2` <= 0.7446274145722073) THEN 11 ELSE 12 END ELSE 13 END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 4 AS nid, 53.8583985058615 AS `E` UNION ALL SELECT 5 AS nid, 189.280900127284 AS `E` UNION ALL SELECT 6 AS nid, 362.26040203879603 AS `E` UNION ALL SELECT 8 AS nid, 379.02218529568 AS `E` UNION ALL SELECT 11 AS nid, 675.461504854587 AS `E` UNION ALL SELECT 12 AS nid, 859.479864135244 AS `E` UNION ALL SELECT 13 AS nid, 1057.99895617527 AS `E`) AS `Values`), 
  `DT_Output` AS 
  (SELECT `DT_node_lookup`.`KEY` AS `KEY`, `DT_node_lookup`.node_id_2 AS node_id_2, `DT_node_data`.nid AS nid, `DT_node_data`.`E` AS `E` 
  FROM `DT_node_lookup` LEFT OUTER JOIN `DT_node_data` ON `DT_node_lookup`.node_id_2 = `DT_node_data`.nid), 
  `RF_Model_0` AS 
  (SELECT `DT_Output`.`KEY` AS `KEY`, `DT_Output`.`E` AS `Estimator` 
  FROM `DT_Output`), 
  `DT_node_lookup_1` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_2` <= 0.4231538473843591) THEN CASE WHEN (`ADS`.`Feature_1` <= 861.2889920462574) THEN 3 ELSE 4 END ELSE CASE WHEN (`ADS`.`Feature_1` <= 880.6272882099099) THEN 6 ELSE CASE WHEN (`ADS`.`Feature_2` <= 0.7446274145722073) THEN 8 ELSE 9 END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data_1` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 3 AS nid, 81.021869958303 AS `E` UNION ALL SELECT 4 AS nid, 242.009939782671 AS `E` UNION ALL SELECT 6 AS nid, 266.03748760750705 AS `E` UNION ALL SELECT 8 AS nid, 771.7111836492261 AS `E` UNION ALL SELECT 9 AS nid, 968.811621759208 AS `E`) AS `Values`), 
  `DT_Output_1` AS 
  (SELECT `DT_node_lookup_1`.`KEY` AS `KEY`, `DT_node_lookup_1`.node_id_2 AS node_id_2, `DT_node_data_1`.nid AS nid, `DT_node_data_1`.`E` AS `E` 
  FROM `DT_node_lookup_1` LEFT OUTER JOIN `DT_node_data_1` ON `DT_node_lookup_1`.node_id_2 = `DT_node_data_1`.nid), 
  `RF_Model_1` AS 
  (SELECT `DT_Output_1`.`KEY` AS `KEY`, `DT_Output_1`.`E` AS `Estimator` 
  FROM `DT_Output_1`), 
  `DT_node_lookup_2` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_2` <= 0.4231538473843591) THEN CASE WHEN (`ADS`.`Feature_2` <= 0.1021602577862684) THEN 3 ELSE 4 END ELSE CASE WHEN (`ADS`.`Feature_1` <= 940.7646066666928) THEN CASE WHEN (`ADS`.`Feature_1` <= 524.0089478061485) THEN 7 ELSE 8 END ELSE CASE WHEN (`ADS`.`Feature_2` <= 0.7937187998169644) THEN CASE WHEN (`ADS`.`Feature_1` <= 1182.939023927105) THEN 11 ELSE 12 END ELSE 13 END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data_2` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 3 AS nid, 61.51596104822661 AS `E` UNION ALL SELECT 4 AS nid, 249.615434543175 AS `E` UNION ALL SELECT 7 AS nid, 239.102958733782 AS `E` UNION ALL SELECT 8 AS nid, 540.508476186694 AS `E` UNION ALL SELECT 11 AS nid, 716.0342478893041 AS `E` UNION ALL SELECT 12 AS nid, 955.695467182138 AS `E` UNION ALL SELECT 13 AS nid, 1184.73423226196 AS `E`) AS `Values`), 
  `DT_Output_2` AS 
  (SELECT `DT_node_lookup_2`.`KEY` AS `KEY`, `DT_node_lookup_2`.node_id_2 AS node_id_2, `DT_node_data_2`.nid AS nid, `DT_node_data_2`.`E` AS `E` 
  FROM `DT_node_lookup_2` LEFT OUTER JOIN `DT_node_data_2` ON `DT_node_lookup_2`.node_id_2 = `DT_node_data_2`.nid), 
  `RF_Model_2` AS 
  (SELECT `DT_Output_2`.`KEY` AS `KEY`, `DT_Output_2`.`E` AS `Estimator` 
  FROM `DT_Output_2`), 
  `DT_node_lookup_3` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_2` <= 0.3404027104874394) THEN CASE WHEN (`ADS`.`Feature_2` <= 0.1021602577862684) THEN 3 ELSE 4 END ELSE CASE WHEN (`ADS`.`Feature_1` <= 681.5157838950513) THEN CASE WHEN (`ADS`.`Feature_1` <= 515.4406205692957) THEN 7 ELSE 8 END ELSE CASE WHEN (`ADS`.`Feature_2` <= 0.7655444377588936) THEN CASE WHEN (`ADS`.`Feature_1` <= 1165.831617725825) THEN 11 ELSE 12 END ELSE 13 END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data_3` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 3 AS nid, 69.8509450261922 AS `E` UNION ALL SELECT 4 AS nid, 246.839428787911 AS `E` UNION ALL SELECT 7 AS nid, 205.933338684185 AS `E` UNION ALL SELECT 8 AS nid, 489.240451131726 AS `E` UNION ALL SELECT 11 AS nid, 625.994288013317 AS `E` UNION ALL SELECT 12 AS nid, 875.1079823134171 AS `E` UNION ALL SELECT 13 AS nid, 1035.0711351918198 AS `E`) AS `Values`), 
  `DT_Output_3` AS 
  (SELECT `DT_node_lookup_3`.`KEY` AS `KEY`, `DT_node_lookup_3`.node_id_2 AS node_id_2, `DT_node_data_3`.nid AS nid, `DT_node_data_3`.`E` AS `E` 
  FROM `DT_node_lookup_3` LEFT OUTER JOIN `DT_node_data_3` ON `DT_node_lookup_3`.node_id_2 = `DT_node_data_3`.nid), 
  `RF_Model_3` AS 
  (SELECT `DT_Output_3`.`KEY` AS `KEY`, `DT_Output_3`.`E` AS `Estimator` 
  FROM `DT_Output_3`), 
  `DT_node_lookup_4` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_2` <= 0.41374778042760707) THEN CASE WHEN (`ADS`.`Feature_2` <= 0.1044772945574536) THEN 3 ELSE CASE WHEN (`ADS`.`Feature_1` <= 761.0600872268959) THEN 5 ELSE 6 END END ELSE CASE WHEN (`ADS`.`Feature_1` <= 524.0089478061485) THEN 8 ELSE CASE WHEN (`ADS`.`Feature_2` <= 0.7937187998169644) THEN CASE WHEN (`ADS`.`Feature_0` <= 27.039396289201328) THEN 11 ELSE 12 END ELSE 13 END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data_4` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 3 AS nid, 61.63526073347071 AS `E` UNION ALL SELECT 5 AS nid, 174.79126965428298 AS `E` UNION ALL SELECT 6 AS nid, 299.51991898921 AS `E` UNION ALL SELECT 8 AS nid, 224.785663155098 AS `E` UNION ALL SELECT 11 AS nid, 639.87986675138 AS `E` UNION ALL SELECT 12 AS nid, 774.429189875796 AS `E` UNION ALL SELECT 13 AS nid, 981.032985947654 AS `E`) AS `Values`), 
  `DT_Output_4` AS 
  (SELECT `DT_node_lookup_4`.`KEY` AS `KEY`, `DT_node_lookup_4`.node_id_2 AS node_id_2, `DT_node_data_4`.nid AS nid, `DT_node_data_4`.`E` AS `E` 
  FROM `DT_node_lookup_4` LEFT OUTER JOIN `DT_node_data_4` ON `DT_node_lookup_4`.node_id_2 = `DT_node_data_4`.nid), 
  `RF_Model_4` AS 
  (SELECT `DT_Output_4`.`KEY` AS `KEY`, `DT_Output_4`.`E` AS `Estimator` 
  FROM `DT_Output_4`), 
  `DT_node_lookup_5` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_2` <= 0.4231538473843591) THEN CASE WHEN (`ADS`.`Feature_2` <= 0.1021602577862684) THEN 3 ELSE 4 END ELSE CASE WHEN (`ADS`.`Feature_1` <= 681.5157838950513) THEN CASE WHEN (`ADS`.`Feature_1` <= 264.7049282490476) THEN 7 ELSE 8 END ELSE CASE WHEN (`ADS`.`Feature_1` <= 1182.939023927105) THEN CASE WHEN (`ADS`.`Feature_2` <= 0.7446274145722073) THEN 11 ELSE 12 END ELSE 13 END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data_5` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 3 AS nid, 68.004004444896 AS `E` UNION ALL SELECT 4 AS nid, 279.049654448519 AS `E` UNION ALL SELECT 7 AS nid, 139.31221914041 AS `E` UNION ALL SELECT 8 AS nid, 367.004196296399 AS `E` UNION ALL SELECT 11 AS nid, 621.866052973839 AS `E` UNION ALL SELECT 12 AS nid, 791.050455705063 AS `E` UNION ALL SELECT 13 AS nid, 1046.97778198306 AS `E`) AS `Values`), 
  `DT_Output_5` AS 
  (SELECT `DT_node_lookup_5`.`KEY` AS `KEY`, `DT_node_lookup_5`.node_id_2 AS node_id_2, `DT_node_data_5`.nid AS nid, `DT_node_data_5`.`E` AS `E` 
  FROM `DT_node_lookup_5` LEFT OUTER JOIN `DT_node_data_5` ON `DT_node_lookup_5`.node_id_2 = `DT_node_data_5`.nid), 
  `RF_Model_5` AS 
  (SELECT `DT_Output_5`.`KEY` AS `KEY`, `DT_Output_5`.`E` AS `Estimator` 
  FROM `DT_Output_5`), 
  `DT_node_lookup_6` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_1` <= 861.2889920462574) THEN CASE WHEN (`ADS`.`Feature_2` <= 0.4977162892084863) THEN 3 ELSE 4 END ELSE CASE WHEN (`ADS`.`Feature_2` <= 0.3441595308948491) THEN 6 ELSE CASE WHEN (`ADS`.`Feature_1` <= 1182.939023927105) THEN 8 ELSE 9 END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data_6` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 3 AS nid, 133.857713434899 AS `E` UNION ALL SELECT 4 AS nid, 359.26710874147204 AS `E` UNION ALL SELECT 6 AS nid, 221.451793168067 AS `E` UNION ALL SELECT 8 AS nid, 744.2221973132091 AS `E` UNION ALL SELECT 9 AS nid, 1003.38734612737 AS `E`) AS `Values`), 
  `DT_Output_6` AS 
  (SELECT `DT_node_lookup_6`.`KEY` AS `KEY`, `DT_node_lookup_6`.node_id_2 AS node_id_2, `DT_node_data_6`.nid AS nid, `DT_node_data_6`.`E` AS `E` 
  FROM `DT_node_lookup_6` LEFT OUTER JOIN `DT_node_data_6` ON `DT_node_lookup_6`.node_id_2 = `DT_node_data_6`.nid), 
  `RF_Model_6` AS 
  (SELECT `DT_Output_6`.`KEY` AS `KEY`, `DT_Output_6`.`E` AS `Estimator` 
  FROM `DT_Output_6`), 
  `DT_node_lookup_7` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_2` <= 0.5338347169277029) THEN CASE WHEN (`ADS`.`Feature_2` <= 0.2399512252460241) THEN 3 ELSE 4 END ELSE CASE WHEN (`ADS`.`Feature_1` <= 681.5157838950513) THEN 6 ELSE CASE WHEN (`ADS`.`Feature_1` <= 946.9080883858653) THEN 8 ELSE CASE WHEN (`ADS`.`Feature_2` <= 0.6089512168171621) THEN 10 ELSE 11 END END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data_7` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 3 AS nid, 123.135827767785 AS `E` UNION ALL SELECT 4 AS nid, 370.27482084698096 AS `E` UNION ALL SELECT 6 AS nid, 353.226302579335 AS `E` UNION ALL SELECT 8 AS nid, 666.581802094056 AS `E` UNION ALL SELECT 10 AS nid, 794.1653851292571 AS `E` UNION ALL SELECT 11 AS nid, 983.1785036876249 AS `E`) AS `Values`), 
  `DT_Output_7` AS 
  (SELECT `DT_node_lookup_7`.`KEY` AS `KEY`, `DT_node_lookup_7`.node_id_2 AS node_id_2, `DT_node_data_7`.nid AS nid, `DT_node_data_7`.`E` AS `E` 
  FROM `DT_node_lookup_7` LEFT OUTER JOIN `DT_node_data_7` ON `DT_node_lookup_7`.node_id_2 = `DT_node_data_7`.nid), 
  `RF_Model_7` AS 
  (SELECT `DT_Output_7`.`KEY` AS `KEY`, `DT_Output_7`.`E` AS `Estimator` 
  FROM `DT_Output_7`), 
  `DT_node_lookup_8` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_2` <= 0.4496335120471355) THEN CASE WHEN (`ADS`.`Feature_1` <= 861.2889920462574) THEN 3 ELSE 4 END ELSE CASE WHEN (`ADS`.`Feature_1` <= 946.9080883858653) THEN CASE WHEN (`ADS`.`Feature_1` <= 524.0089478061485) THEN 7 ELSE 8 END ELSE CASE WHEN (`ADS`.`Feature_2` <= 0.8040097090382655) THEN 10 ELSE 11 END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data_8` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 3 AS nid, 107.654519902633 AS `E` UNION ALL SELECT 4 AS nid, 333.839100634506 AS `E` UNION ALL SELECT 7 AS nid, 262.117249050937 AS `E` UNION ALL SELECT 8 AS nid, 609.590126308466 AS `E` UNION ALL SELECT 10 AS nid, 871.914293619154 AS `E` UNION ALL SELECT 11 AS nid, 1150.32449605317 AS `E`) AS `Values`), 
  `DT_Output_8` AS 
  (SELECT `DT_node_lookup_8`.`KEY` AS `KEY`, `DT_node_lookup_8`.node_id_2 AS node_id_2, `DT_node_data_8`.nid AS nid, `DT_node_data_8`.`E` AS `E` 
  FROM `DT_node_lookup_8` LEFT OUTER JOIN `DT_node_data_8` ON `DT_node_lookup_8`.node_id_2 = `DT_node_data_8`.nid), 
  `RF_Model_8` AS 
  (SELECT `DT_Output_8`.`KEY` AS `KEY`, `DT_Output_8`.`E` AS `Estimator` 
  FROM `DT_Output_8`), 
  `DT_node_lookup_9` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_2` <= 0.4496335120471355) THEN CASE WHEN (`ADS`.`Feature_2` <= 0.1021602577862684) THEN 3 ELSE CASE WHEN (`ADS`.`Feature_1` <= 819.5815430545474) THEN 5 ELSE 6 END END ELSE CASE WHEN (`ADS`.`Feature_1` <= 681.5157838950513) THEN 8 ELSE CASE WHEN (`ADS`.`Feature_1` <= 946.9080883858653) THEN 10 ELSE CASE WHEN (`ADS`.`Feature_2` <= 0.6089512168171621) THEN 12 ELSE 13 END END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data_9` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 3 AS nid, 50.36303504273479 AS `E` UNION ALL SELECT 5 AS nid, 158.557761640749 AS `E` UNION ALL SELECT 6 AS nid, 333.26518868750196 AS `E` UNION ALL SELECT 8 AS nid, 271.903692299159 AS `E` UNION ALL SELECT 10 AS nid, 691.28804946353 AS `E` UNION ALL SELECT 12 AS nid, 812.06613819743 AS `E` UNION ALL SELECT 13 AS nid, 1048.10118619672 AS `E`) AS `Values`), 
  `DT_Output_9` AS 
  (SELECT `DT_node_lookup_9`.`KEY` AS `KEY`, `DT_node_lookup_9`.node_id_2 AS node_id_2, `DT_node_data_9`.nid AS nid, `DT_node_data_9`.`E` AS `E` 
  FROM `DT_node_lookup_9` LEFT OUTER JOIN `DT_node_data_9` ON `DT_node_lookup_9`.node_id_2 = `DT_node_data_9`.nid), 
  `RF_Model_9` AS 
  (SELECT `DT_Output_9`.`KEY` AS `KEY`, `DT_Output_9`.`E` AS `Estimator` 
  FROM `DT_Output_9`)
   SELECT `RF_esu_0`.`KEY`, `RF_esu_0`.`Estimator` 
  FROM (SELECT `RF_Model_0`.`KEY` AS `KEY`, CAST(`RF_Model_0`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_0` UNION ALL SELECT `RF_Model_1`.`KEY` AS `KEY`, CAST(`RF_Model_1`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_1` UNION ALL SELECT `RF_Model_2`.`KEY` AS `KEY`, CAST(`RF_Model_2`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_2` UNION ALL SELECT `RF_Model_3`.`KEY` AS `KEY`, CAST(`RF_Model_3`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_3` UNION ALL SELECT `RF_Model_4`.`KEY` AS `KEY`, CAST(`RF_Model_4`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_4` UNION ALL SELECT `RF_Model_5`.`KEY` AS `KEY`, CAST(`RF_Model_5`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_5` UNION ALL SELECT `RF_Model_6`.`KEY` AS `KEY`, CAST(`RF_Model_6`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_6` UNION ALL SELECT `RF_Model_7`.`KEY` AS `KEY`, CAST(`RF_Model_7`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_7` UNION ALL SELECT `RF_Model_8`.`KEY` AS `KEY`, CAST(`RF_Model_8`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_8` UNION ALL SELECT `RF_Model_9`.`KEY` AS `KEY`, CAST(`RF_Model_9`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_9`) AS `RF_esu_0`), 
  `RF_1` AS 
  (WITH `DT_node_lookup_10` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_2` <= 0.3441595308948491) THEN CASE WHEN (`ADS`.`Feature_2` <= 0.09995386118122852) THEN 3 ELSE 4 END ELSE CASE WHEN (`ADS`.`Feature_1` <= 880.6272882099099) THEN 6 ELSE CASE WHEN (`ADS`.`Feature_2` <= 0.6197110340276971) THEN 8 ELSE 9 END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data_10` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 3 AS nid, 53.6338834744037 AS `E` UNION ALL SELECT 4 AS nid, 257.838249174574 AS `E` UNION ALL SELECT 6 AS nid, 347.018509074011 AS `E` UNION ALL SELECT 8 AS nid, 708.44282144673 AS `E` UNION ALL SELECT 9 AS nid, 1006.77490894066 AS `E`) AS `Values`), 
  `DT_Output_10` AS 
  (SELECT `DT_node_lookup_10`.`KEY` AS `KEY`, `DT_node_lookup_10`.node_id_2 AS node_id_2, `DT_node_data_10`.nid AS nid, `DT_node_data_10`.`E` AS `E` 
  FROM `DT_node_lookup_10` LEFT OUTER JOIN `DT_node_data_10` ON `DT_node_lookup_10`.node_id_2 = `DT_node_data_10`.nid), 
  `RF_Model_10` AS 
  (SELECT `DT_Output_10`.`KEY` AS `KEY`, `DT_Output_10`.`E` AS `Estimator` 
  FROM `DT_Output_10`), 
  `DT_node_lookup_11` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_1` <= 819.5815430545474) THEN CASE WHEN (`ADS`.`Feature_2` <= 0.6479362057456745) THEN CASE WHEN (`ADS`.`Feature_0` <= 49.399885819841096) THEN 4 ELSE 5 END ELSE 6 END ELSE CASE WHEN (`ADS`.`Feature_2` <= 0.4312318655846575) THEN 8 ELSE CASE WHEN (`ADS`.`Feature_1` <= 1165.831617725825) THEN 10 ELSE 11 END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data_11` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 4 AS nid, 76.4666364879304 AS `E` UNION ALL SELECT 5 AS nid, 172.829660079574 AS `E` UNION ALL SELECT 6 AS nid, 303.558312415566 AS `E` UNION ALL SELECT 8 AS nid, 315.734550654598 AS `E` UNION ALL SELECT 10 AS nid, 781.967019451053 AS `E` UNION ALL SELECT 11 AS nid, 1047.5587573994198 AS `E`) AS `Values`), 
  `DT_Output_11` AS 
  (SELECT `DT_node_lookup_11`.`KEY` AS `KEY`, `DT_node_lookup_11`.node_id_2 AS node_id_2, `DT_node_data_11`.nid AS nid, `DT_node_data_11`.`E` AS `E` 
  FROM `DT_node_lookup_11` LEFT OUTER JOIN `DT_node_data_11` ON `DT_node_lookup_11`.node_id_2 = `DT_node_data_11`.nid), 
  `RF_Model_11` AS 
  (SELECT `DT_Output_11`.`KEY` AS `KEY`, `DT_Output_11`.`E` AS `Estimator` 
  FROM `DT_Output_11`), 
  `DT_node_lookup_12` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_2` <= 0.4496335120471355) THEN CASE WHEN (`ADS`.`Feature_1` <= 861.2889920462574) THEN 3 ELSE 4 END ELSE CASE WHEN (`ADS`.`Feature_1` <= 808.6138063164557) THEN 6 ELSE CASE WHEN (`ADS`.`Feature_1` <= 1165.831617725825) THEN 8 ELSE 9 END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data_12` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 3 AS nid, 129.814049656018 AS `E` UNION ALL SELECT 4 AS nid, 303.583907589794 AS `E` UNION ALL SELECT 6 AS nid, 307.687084343376 AS `E` UNION ALL SELECT 8 AS nid, 723.6420967193901 AS `E` UNION ALL SELECT 9 AS nid, 1032.3452934038698 AS `E`) AS `Values`), 
  `DT_Output_12` AS 
  (SELECT `DT_node_lookup_12`.`KEY` AS `KEY`, `DT_node_lookup_12`.node_id_2 AS node_id_2, `DT_node_data_12`.nid AS nid, `DT_node_data_12`.`E` AS `E` 
  FROM `DT_node_lookup_12` LEFT OUTER JOIN `DT_node_data_12` ON `DT_node_lookup_12`.node_id_2 = `DT_node_data_12`.nid), 
  `RF_Model_12` AS 
  (SELECT `DT_Output_12`.`KEY` AS `KEY`, `DT_Output_12`.`E` AS `Estimator` 
  FROM `DT_Output_12`), 
  `DT_node_lookup_13` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_2` <= 0.5593024980266833) THEN CASE WHEN (`ADS`.`Feature_1` <= 1162.827364851761) THEN CASE WHEN (`ADS`.`Feature_0` <= 62.911872734919996) THEN 4 ELSE 5 END ELSE 6 END ELSE CASE WHEN (`ADS`.`Feature_1` <= 940.7646066666928) THEN 8 ELSE CASE WHEN (`ADS`.`Feature_2` <= 0.8040097090382655) THEN 10 ELSE 11 END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data_13` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 4 AS nid, 93.4394449508235 AS `E` UNION ALL SELECT 5 AS nid, 197.64478455192798 AS `E` UNION ALL SELECT 6 AS nid, 439.309660344524 AS `E` UNION ALL SELECT 8 AS nid, 386.058605529322 AS `E` UNION ALL SELECT 10 AS nid, 860.399117492601 AS `E` UNION ALL SELECT 11 AS nid, 1123.47150548629 AS `E`) AS `Values`), 
  `DT_Output_13` AS 
  (SELECT `DT_node_lookup_13`.`KEY` AS `KEY`, `DT_node_lookup_13`.node_id_2 AS node_id_2, `DT_node_data_13`.nid AS nid, `DT_node_data_13`.`E` AS `E` 
  FROM `DT_node_lookup_13` LEFT OUTER JOIN `DT_node_data_13` ON `DT_node_lookup_13`.node_id_2 = `DT_node_data_13`.nid), 
  `RF_Model_13` AS 
  (SELECT `DT_Output_13`.`KEY` AS `KEY`, `DT_Output_13`.`E` AS `Estimator` 
  FROM `DT_Output_13`), 
  `DT_node_lookup_14` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_2` <= 0.5338347169277029) THEN CASE WHEN (`ADS`.`Feature_1` <= 819.5815430545474) THEN 3 ELSE 4 END ELSE CASE WHEN (`ADS`.`Feature_1` <= 946.9080883858653) THEN 6 ELSE CASE WHEN (`ADS`.`Feature_2` <= 0.8040097090382655) THEN CASE WHEN (`ADS`.`Feature_1` <= 1182.939023927105) THEN 9 ELSE 10 END ELSE 11 END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data_14` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 3 AS nid, 128.332327575778 AS `E` UNION ALL SELECT 4 AS nid, 323.77505754723 AS `E` UNION ALL SELECT 6 AS nid, 456.682951526504 AS `E` UNION ALL SELECT 9 AS nid, 723.905883863451 AS `E` UNION ALL SELECT 10 AS nid, 978.8190960591251 AS `E` UNION ALL SELECT 11 AS nid, 1124.4714905704302 AS `E`) AS `Values`), 
  `DT_Output_14` AS 
  (SELECT `DT_node_lookup_14`.`KEY` AS `KEY`, `DT_node_lookup_14`.node_id_2 AS node_id_2, `DT_node_data_14`.nid AS nid, `DT_node_data_14`.`E` AS `E` 
  FROM `DT_node_lookup_14` LEFT OUTER JOIN `DT_node_data_14` ON `DT_node_lookup_14`.node_id_2 = `DT_node_data_14`.nid), 
  `RF_Model_14` AS 
  (SELECT `DT_Output_14`.`KEY` AS `KEY`, `DT_Output_14`.`E` AS `Estimator` 
  FROM `DT_Output_14`), 
  `DT_node_lookup_15` AS 
  (SELECT `ADS`.`KEY` AS `KEY`, CASE WHEN (`ADS`.`Feature_2` <= 0.4496335120471355) THEN CASE WHEN (`ADS`.`Feature_1` <= 598.7469724076399) THEN 3 ELSE CASE WHEN (`ADS`.`Feature_2` <= 0.21965300342994898) THEN 5 ELSE 6 END END ELSE CASE WHEN (`ADS`.`Feature_1` <= 946.9080883858653) THEN CASE WHEN (`ADS`.`Feature_1` <= 524.0089478061485) THEN 9 ELSE 10 END ELSE CASE WHEN (`ADS`.`Feature_2` <= 0.8040097090382655) THEN 12 ELSE 13 END END END AS node_id_2 
  FROM freidman2 AS `ADS`), 
  `DT_node_data_15` AS 
  (SELECT `Values`.nid AS nid, `Values`.`E` AS `E` 
  FROM (SELECT 3 AS nid, 81.2427896718959 AS `E` UNION ALL SELECT 5 AS nid, 171.621688744724 AS `E` UNION ALL SELECT 6 AS nid, 383.366942743927 AS `E` UNION ALL SELECT 9 AS nid, 229.893900064356 AS `E` UNION ALL SELECT 10 AS nid, 558.93227218527 AS `E` UNION ALL SELECT 12 AS nid, 865.765520096626 AS `E` UNION ALL SELECT 13 AS nid, 1195.53894463748 AS `E`) AS `Values`), 
  `DT_Output_15` AS 
  (SELECT `DT_node_lookup_15`.`KEY` AS `KEY`, `DT_node_lookup_15`.node_id_2 AS node_id_2, `DT_node_data_15`.nid AS nid, `DT_node_data_15`.`E` AS `E` 
  FROM `DT_node_lookup_15` LEFT OUTER JOIN `DT_node_data_15` ON `DT_node_lookup_15`.node_id_2 = `DT_node_data_15`.nid), 
  `RF_Model_15` AS 
  (SELECT `DT_Output_15`.`KEY` AS `KEY`, `DT_Output_15`.`E` AS `Estimator` 
  FROM `DT_Output_15`)
   SELECT `RF_esu_1`.`KEY`, `RF_esu_1`.`Estimator` 
  FROM (SELECT `RF_Model_10`.`KEY` AS `KEY`, CAST(`RF_Model_10`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_10` UNION ALL SELECT `RF_Model_11`.`KEY` AS `KEY`, CAST(`RF_Model_11`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_11` UNION ALL SELECT `RF_Model_12`.`KEY` AS `KEY`, CAST(`RF_Model_12`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_12` UNION ALL SELECT `RF_Model_13`.`KEY` AS `KEY`, CAST(`RF_Model_13`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_13` UNION ALL SELECT `RF_Model_14`.`KEY` AS `KEY`, CAST(`RF_Model_14`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_14` UNION ALL SELECT `RF_Model_15`.`KEY` AS `KEY`, CAST(`RF_Model_15`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_Model_15`) AS `RF_esu_1`), 
  `RF` AS 
  (SELECT `RFbig_esu`.`KEY` AS `KEY`, `RFbig_esu`.`Estimator` AS `Estimator` 
  FROM (SELECT `RF_0`.`KEY` AS `KEY`, CAST(`RF_0`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_0` UNION ALL SELECT `RF_1`.`KEY` AS `KEY`, CAST(`RF_1`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM `RF_1`) AS `RFbig_esu`), 
  `RF_avg` AS 
  (SELECT `T`.`KEY` AS `KEY`, CAST(`T`.`Estimator` AS DOUBLE) AS `Estimator` 
  FROM (SELECT `RF`.`KEY` AS `KEY`, avg(CAST(`RF`.`Estimator` AS DOUBLE)) AS `Estimator` 
  FROM `RF` GROUP BY `RF`.`KEY`) AS `T`)
   SELECT `RF_avg`.`KEY` AS `KEY`, `RF_avg`.`Estimator` AS `Estimator` 
  FROM `RF_avg`