text: -- This SQL code was generated by sklearn2sql (development version).
  -- Copyright 2018
  
  -- Model : CaretRegressor_rpart
  -- Dataset : freidman3
  -- Database : sqlite
  
  
  -- 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.11577327677501235) THEN 2 ELSE CASE WHEN ("ADS"."Feature_0" >= 61.538044638031) THEN 6 ELSE 7 END END AS node_id_2 
  FROM freidman3 AS "ADS"), 
  "DT_node_data" AS 
  (SELECT "Values".nid AS nid, "Values"."E" AS "E" 
  FROM (SELECT 2 AS nid, 0.8635482228942107 AS "E" UNION ALL SELECT 6 AS nid, 1.3012066633097508 AS "E" UNION ALL SELECT 7 AS nid, 1.4885288588495236 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)
   SELECT "DT_Output"."KEY" AS "KEY", "DT_Output"."E" AS "Estimator" 
  FROM "DT_Output"