text: -- This SQL code was generated by sklearn2sql (development version).
  -- Copyright 2018
  
  -- Model : CaretRegressor_rpart
  -- Dataset : RandomReg_10
  -- Database : oracle
  
  
  -- This SQL code can contain one or more statements, to be executed in the order they appear in this file.
  
  
  
  -- Model deployment code
  
  WITH "DT_node_lookup" AS 
  (SELECT "ADS"."KEY" AS "KEY", CASE WHEN ("ADS"."Feature_2" < 0.4864888935752457) THEN CASE WHEN ("ADS"."Feature_5" < -0.6670668576344908) THEN 4 ELSE 5 END ELSE 3 END AS node_id_2 
  FROM "RANDOMREG_10" "ADS"), 
  "DT_node_data" AS 
  (SELECT "Values".nid AS nid, "Values"."E" AS "E" 
  FROM (SELECT 3 AS nid, 158.64050214470126 AS "E" FROM DUAL UNION ALL SELECT 4 AS nid, -239.51291581710444 AS "E" FROM DUAL UNION ALL SELECT 5 AS nid, 5.984424839905532 AS "E" FROM DUAL) "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)
   SELECT "DT_Output"."KEY" AS "KEY", "DT_Output"."E" AS "Estimator" 
  FROM "DT_Output"