text: -- This SQL code was generated by sklearn2sql (development version).
  -- Copyright 2018
  
  -- Model : CaretRegressor_svmRadial
  -- Dataset : freidman3
  -- Database : teradata
  
  
  -- This SQL code can contain one or more statements, to be executed in the order they appear in this file.
  
  
  
  -- Model deployment code
  
  WITH kernel_input_with_scaling AS 
  (SELECT "ADS"."KEY" AS "KEY", (CAST("ADS"."Feature_0" AS DOUBLE PRECISION) - 43.791281222074) / 26.1998878150635 AS "Feature_0", (CAST("ADS"."Feature_1" AS DOUBLE PRECISION) - 945.96728330844) / 464.3666952541536 AS "Feature_1", (CAST("ADS"."Feature_2" AS DOUBLE PRECISION) - 0.5310009099975209) / 0.2920171749459157 AS "Feature_2", (CAST("ADS"."Feature_3" AS DOUBLE PRECISION) - 6.139967152050498) / 3.0923049253819994 AS "Feature_3" 
  FROM freidman3 AS "ADS"), 
  dummy_cte AS 
  (SELECT CAST(0.0 AS DOUBLE PRECISION) AS "X"), 
  "SV_data" AS 
  (SELECT "Values".sv_idx AS sv_idx, "Values".dual_coeff AS dual_coeff, "Values".sv_0 AS sv_0, "Values".sv_1 AS sv_1, "Values".sv_2 AS sv_2, "Values".sv_3 AS sv_3 
  FROM (SELECT 0 AS sv_idx, CAST(0.047131024267634 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.404469663434484 AS DOUBLE PRECISION) AS sv_0, CAST(1.511079754224398 AS DOUBLE PRECISION) AS sv_1, CAST(0.123867766646049 AS DOUBLE PRECISION) AS sv_2, CAST(-0.983360624236876 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 1 AS sv_idx, CAST(0.142621274139964 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.886585647213686 AS DOUBLE PRECISION) AS sv_0, CAST(1.554716312865846 AS DOUBLE PRECISION) AS sv_1, CAST(-0.141904087474791 AS DOUBLE PRECISION) AS sv_2, CAST(0.398332080774722 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 2 AS sv_idx, CAST(-1.0 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.127823077965849 AS DOUBLE PRECISION) AS sv_0, CAST(-0.85039710263472 AS DOUBLE PRECISION) AS sv_1, CAST(-1.685990423727846 AS DOUBLE PRECISION) AS sv_2, CAST(-0.50508953265743 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 3 AS sv_idx, CAST(0.04958528580901 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.318403710254536 AS DOUBLE PRECISION) AS sv_0, CAST(-0.104959278373397 AS DOUBLE PRECISION) AS sv_1, CAST(0.731554589603341 AS DOUBLE PRECISION) AS sv_2, CAST(1.327827117840593 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 4 AS sv_idx, CAST(0.091086305957478 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.187142118780705 AS DOUBLE PRECISION) AS sv_0, CAST(1.546812039155787 AS DOUBLE PRECISION) AS sv_1, CAST(-0.751848044423788 AS DOUBLE PRECISION) AS sv_2, CAST(-0.487449603720757 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 5 AS sv_idx, CAST(0.01847189527608 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.710738914196782 AS DOUBLE PRECISION) AS sv_0, CAST(0.182672375137726 AS DOUBLE PRECISION) AS sv_1, CAST(0.622604979874454 AS DOUBLE PRECISION) AS sv_2, CAST(1.379215021055077 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 6 AS sv_idx, CAST(0.12590440685067 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.061452150015481 AS DOUBLE PRECISION) AS sv_0, CAST(0.377451789816336 AS DOUBLE PRECISION) AS sv_1, CAST(0.803184017531888 AS DOUBLE PRECISION) AS sv_2, CAST(0.302206240180052 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 7 AS sv_idx, CAST(-0.873028404599004 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.211527295847955 AS DOUBLE PRECISION) AS sv_0, CAST(-1.744443967752591 AS DOUBLE PRECISION) AS sv_1, CAST(0.400439788412483 AS DOUBLE PRECISION) AS sv_2, CAST(-1.280761716963789 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 8 AS sv_idx, CAST(0.163958518811328 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.041766113433662 AS DOUBLE PRECISION) AS sv_0, CAST(1.467405673578364 AS DOUBLE PRECISION) AS sv_1, CAST(1.008778447335575 AS DOUBLE PRECISION) AS sv_2, CAST(1.268788761557724 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 9 AS sv_idx, CAST(0.198510335703468 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.040434821565861 AS DOUBLE PRECISION) AS sv_0, CAST(0.333166471704926 AS DOUBLE PRECISION) AS sv_1, CAST(1.516378433743919 AS DOUBLE PRECISION) AS sv_2, CAST(-1.07797920063908 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 10 AS sv_idx, CAST(-1.0 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.260650551741912 AS DOUBLE PRECISION) AS sv_0, CAST(-1.149185771360461 AS DOUBLE PRECISION) AS sv_1, CAST(-1.460611402459679 AS DOUBLE PRECISION) AS sv_2, CAST(-1.052479326928032 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 11 AS sv_idx, CAST(0.093180898648532 AS DOUBLE PRECISION) AS dual_coeff, CAST(-1.327108398067466 AS DOUBLE PRECISION) AS sv_0, CAST(-0.968155214484887 AS DOUBLE PRECISION) AS sv_1, CAST(-0.369317532892153 AS DOUBLE PRECISION) AS sv_2, CAST(0.776208279382256 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 12 AS sv_idx, CAST(0.550691436763096 AS DOUBLE PRECISION) AS dual_coeff, CAST(1.477576202804345 AS DOUBLE PRECISION) AS sv_0, CAST(-0.92712648675959 AS DOUBLE PRECISION) AS sv_1, CAST(0.009704247466633 AS DOUBLE PRECISION) AS sv_2, CAST(-0.437533507080074 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 13 AS sv_idx, CAST(-0.875739572791361 AS DOUBLE PRECISION) AS dual_coeff, CAST(2.14410621947036 AS DOUBLE PRECISION) AS sv_0, CAST(-1.586020105298899 AS DOUBLE PRECISION) AS sv_1, CAST(0.887640633884356 AS DOUBLE PRECISION) AS sv_2, CAST(-1.40273073405092 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 14 AS sv_idx, CAST(0.382296685375961 AS DOUBLE PRECISION) AS dual_coeff, CAST(-1.431247163318032 AS DOUBLE PRECISION) AS sv_0, CAST(0.54633105906536 AS DOUBLE PRECISION) AS sv_1, CAST(0.934906650923215 AS DOUBLE PRECISION) AS sv_2, CAST(-0.20997937151656 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 15 AS sv_idx, CAST(-1.0 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.729796694085564 AS DOUBLE PRECISION) AS sv_0, CAST(-1.054625713071719 AS DOUBLE PRECISION) AS sv_1, CAST(-1.632421380038048 AS DOUBLE PRECISION) AS sv_2, CAST(1.275849111161276 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 16 AS sv_idx, CAST(-1.0 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.184118784239312 AS DOUBLE PRECISION) AS sv_0, CAST(0.467001797845624 AS DOUBLE PRECISION) AS sv_1, CAST(-1.772097358946462 AS DOUBLE PRECISION) AS sv_2, CAST(0.207226855298809 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 17 AS sv_idx, CAST(0.065733104944708 AS DOUBLE PRECISION) AS dual_coeff, CAST(-1.066080005073543 AS DOUBLE PRECISION) AS sv_0, CAST(-0.011203810899702 AS DOUBLE PRECISION) AS sv_1, CAST(0.157715042581192 AS DOUBLE PRECISION) AS sv_2, CAST(1.357733807365097 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 18 AS sv_idx, CAST(0.004484589254297 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.682675423331494 AS DOUBLE PRECISION) AS sv_0, CAST(-0.27216796886073 AS DOUBLE PRECISION) AS sv_1, CAST(-1.161707552508324 AS DOUBLE PRECISION) AS sv_2, CAST(0.755298589822004 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 19 AS sv_idx, CAST(-1.0 AS DOUBLE PRECISION) AS dual_coeff, CAST(-1.123564214652782 AS DOUBLE PRECISION) AS sv_0, CAST(1.683196219737227 AS DOUBLE PRECISION) AS sv_1, CAST(-1.798502064527232 AS DOUBLE PRECISION) AS sv_2, CAST(-0.847766317208208 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 20 AS sv_idx, CAST(-0.374200797696245 AS DOUBLE PRECISION) AS dual_coeff, CAST(1.666780058145855 AS DOUBLE PRECISION) AS sv_0, CAST(-0.618310166203302 AS DOUBLE PRECISION) AS sv_1, CAST(-0.781014997181637 AS DOUBLE PRECISION) AS sv_2, CAST(-0.767384669273583 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 21 AS sv_idx, CAST(0.490380999083712 AS DOUBLE PRECISION) AS dual_coeff, CAST(-1.459380216158906 AS DOUBLE PRECISION) AS sv_0, CAST(0.701837814951955 AS DOUBLE PRECISION) AS sv_1, CAST(-0.910113184073057 AS DOUBLE PRECISION) AS sv_2, CAST(-1.275421036743904 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 22 AS sv_idx, CAST(0.347562905093154 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.134073630731939 AS DOUBLE PRECISION) AS sv_0, CAST(-1.248476698654769 AS DOUBLE PRECISION) AS sv_1, CAST(1.594715839047914 AS DOUBLE PRECISION) AS sv_2, CAST(-1.449721268940829 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 23 AS sv_idx, CAST(0.43295220421515 AS DOUBLE PRECISION) AS dual_coeff, CAST(-1.666912489785625 AS DOUBLE PRECISION) AS sv_0, CAST(-0.831395841395554 AS DOUBLE PRECISION) AS sv_1, CAST(1.590957452599674 AS DOUBLE PRECISION) AS sv_2, CAST(0.72424156579339 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 24 AS sv_idx, CAST(0.014422636656344 AS DOUBLE PRECISION) AS dual_coeff, CAST(1.093352025970274 AS DOUBLE PRECISION) AS sv_0, CAST(0.378796730971911 AS DOUBLE PRECISION) AS sv_1, CAST(1.429531401783804 AS DOUBLE PRECISION) AS sv_2, CAST(0.092992619314699 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 25 AS sv_idx, CAST(0.226967349039675 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.641122048419644 AS DOUBLE PRECISION) AS sv_0, CAST(1.128151001855874 AS DOUBLE PRECISION) AS sv_1, CAST(0.266937404740246 AS DOUBLE PRECISION) AS sv_2, CAST(-1.229882689514642 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 26 AS sv_idx, CAST(0.319879517277242 AS DOUBLE PRECISION) AS dual_coeff, CAST(-1.295695323221847 AS DOUBLE PRECISION) AS sv_0, CAST(1.498771705006719 AS DOUBLE PRECISION) AS sv_1, CAST(0.60453190692888 AS DOUBLE PRECISION) AS sv_2, CAST(-0.04948077865629 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 27 AS sv_idx, CAST(0.229342226920705 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.3277555483077 AS DOUBLE PRECISION) AS sv_0, CAST(1.64449014899773 AS DOUBLE PRECISION) AS sv_1, CAST(0.025372893232513 AS DOUBLE PRECISION) AS sv_2, CAST(-0.75548568258617 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 28 AS sv_idx, CAST(0.451947500754089 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.706431594106171 AS DOUBLE PRECISION) AS sv_0, CAST(-0.908674846440804 AS DOUBLE PRECISION) AS sv_1, CAST(0.403260314283118 AS DOUBLE PRECISION) AS sv_2, CAST(-0.750605819814969 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 29 AS sv_idx, CAST(-0.820976720264098 AS DOUBLE PRECISION) AS dual_coeff, CAST(2.010032312501274 AS DOUBLE PRECISION) AS sv_0, CAST(0.095308619301291 AS DOUBLE PRECISION) AS sv_1, CAST(-1.191367171057036 AS DOUBLE PRECISION) AS sv_2, CAST(-1.618815287158773 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 30 AS sv_idx, CAST(0.239199012014776 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.994693835221938 AS DOUBLE PRECISION) AS sv_0, CAST(1.492696939628282 AS DOUBLE PRECISION) AS sv_1, CAST(-0.346983890811719 AS DOUBLE PRECISION) AS sv_2, CAST(0.428215727414378 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 31 AS sv_idx, CAST(0.422534905592457 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.17431668183365 AS DOUBLE PRECISION) AS sv_0, CAST(1.150101745058788 AS DOUBLE PRECISION) AS sv_1, CAST(1.536384271186821 AS DOUBLE PRECISION) AS sv_2, CAST(1.551694080146041 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 32 AS sv_idx, CAST(0.00120403086852 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.481776580102251 AS DOUBLE PRECISION) AS sv_0, CAST(-1.271168616237998 AS DOUBLE PRECISION) AS sv_1, CAST(1.063228196770656 AS DOUBLE PRECISION) AS sv_2, CAST(1.196666997079253 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 33 AS sv_idx, CAST(-0.525748104879092 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.214069794395931 AS DOUBLE PRECISION) AS sv_0, CAST(-1.51180550591746 AS DOUBLE PRECISION) AS sv_1, CAST(-0.401528196386498 AS DOUBLE PRECISION) AS sv_2, CAST(-0.039017517211155 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 34 AS sv_idx, CAST(-0.752614954820008 AS DOUBLE PRECISION) AS dual_coeff, CAST(1.815625146237454 AS DOUBLE PRECISION) AS sv_0, CAST(-1.384316192930798 AS DOUBLE PRECISION) AS sv_1, CAST(0.09691754614914 AS DOUBLE PRECISION) AS sv_2, CAST(-0.800289819556029 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 35 AS sv_idx, CAST(0.009053056934631 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.069394405878715 AS DOUBLE PRECISION) AS sv_0, CAST(0.659802153018068 AS DOUBLE PRECISION) AS sv_1, CAST(0.739796668856245 AS DOUBLE PRECISION) AS sv_2, CAST(-1.458045529812235 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 36 AS sv_idx, CAST(0.295875258543449 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.500018505630981 AS DOUBLE PRECISION) AS sv_0, CAST(0.674837376510542 AS DOUBLE PRECISION) AS sv_1, CAST(-0.922097063170456 AS DOUBLE PRECISION) AS sv_2, CAST(-0.088312402843911 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 37 AS sv_idx, CAST(0.101534621651459 AS DOUBLE PRECISION) AS dual_coeff, CAST(1.33254373358188 AS DOUBLE PRECISION) AS sv_0, CAST(-0.132788813731627 AS DOUBLE PRECISION) AS sv_1, CAST(1.109725752721872 AS DOUBLE PRECISION) AS sv_2, CAST(0.862071335532223 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 38 AS sv_idx, CAST(0.190499241384792 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.595269027209822 AS DOUBLE PRECISION) AS sv_0, CAST(1.534871416711849 AS DOUBLE PRECISION) AS sv_1, CAST(0.357182035174857 AS DOUBLE PRECISION) AS sv_2, CAST(0.788325970462901 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 39 AS sv_idx, CAST(-0.385879577270039 AS DOUBLE PRECISION) AS dual_coeff, CAST(1.315055616296454 AS DOUBLE PRECISION) AS sv_0, CAST(-0.505958191947208 AS DOUBLE PRECISION) AS sv_1, CAST(-1.066197242080835 AS DOUBLE PRECISION) AS sv_2, CAST(1.127030500187721 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 40 AS sv_idx, CAST(0.662849473471806 AS DOUBLE PRECISION) AS dual_coeff, CAST(-1.216449797943872 AS DOUBLE PRECISION) AS sv_0, CAST(1.503310417535894 AS DOUBLE PRECISION) AS sv_1, CAST(-1.665981445490253 AS DOUBLE PRECISION) AS sv_2, CAST(-1.345633350957559 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 41 AS sv_idx, CAST(-0.095805046170202 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.959831014549056 AS DOUBLE PRECISION) AS sv_0, CAST(-0.796172996593972 AS DOUBLE PRECISION) AS sv_1, CAST(-0.99668687228894 AS DOUBLE PRECISION) AS sv_2, CAST(0.532583821519783 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 42 AS sv_idx, CAST(0.024163333217453 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.008120044849171 AS DOUBLE PRECISION) AS sv_0, CAST(1.546199519979331 AS DOUBLE PRECISION) AS sv_1, CAST(-0.396869787661067 AS DOUBLE PRECISION) AS sv_2, CAST(-0.987856520123489 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 43 AS sv_idx, CAST(0.025415158069032 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.65853839397246 AS DOUBLE PRECISION) AS sv_0, CAST(0.473471367917654 AS DOUBLE PRECISION) AS sv_1, CAST(0.180313797707367 AS DOUBLE PRECISION) AS sv_2, CAST(-1.168839753970359 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 44 AS sv_idx, CAST(0.380602144129438 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.026534443072215 AS DOUBLE PRECISION) AS sv_0, CAST(-0.028363124813453 AS DOUBLE PRECISION) AS sv_1, CAST(-0.739570601711903 AS DOUBLE PRECISION) AS sv_2, CAST(0.160828091241362 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 45 AS sv_idx, CAST(0.161555831824886 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.989437434838039 AS DOUBLE PRECISION) AS sv_0, CAST(1.162819503016845 AS DOUBLE PRECISION) AS sv_1, CAST(-1.634853010933595 AS DOUBLE PRECISION) AS sv_2, CAST(0.065439409457982 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 46 AS sv_idx, CAST(0.46258948150964 AS DOUBLE PRECISION) AS dual_coeff, CAST(-1.344519300712666 AS DOUBLE PRECISION) AS sv_0, CAST(0.476367891619324 AS DOUBLE PRECISION) AS sv_1, CAST(-1.081417129445332 AS DOUBLE PRECISION) AS sv_2, CAST(1.417474793792274 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 47 AS sv_idx, CAST(0.027459632410987 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.299972238144632 AS DOUBLE PRECISION) AS sv_0, CAST(-0.140707754811676 AS DOUBLE PRECISION) AS sv_1, CAST(0.121919630659266 AS DOUBLE PRECISION) AS sv_2, CAST(1.089813456685774 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 48 AS sv_idx, CAST(-0.619616883667111 AS DOUBLE PRECISION) AS dual_coeff, CAST(1.248222153817392 AS DOUBLE PRECISION) AS sv_0, CAST(-1.563630716242603 AS DOUBLE PRECISION) AS sv_1, CAST(0.801919778196063 AS DOUBLE PRECISION) AS sv_2, CAST(0.184772730301279 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 49 AS sv_idx, CAST(-0.587512877566745 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.084293317125027 AS DOUBLE PRECISION) AS sv_0, CAST(-1.099931975985623 AS DOUBLE PRECISION) AS sv_1, CAST(-1.476101701539049 AS DOUBLE PRECISION) AS sv_2, CAST(-1.182946909589982 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 50 AS sv_idx, CAST(0.355819667870593 AS DOUBLE PRECISION) AS dual_coeff, CAST(-1.665811766042513 AS DOUBLE PRECISION) AS sv_0, CAST(-1.467078414584683 AS DOUBLE PRECISION) AS sv_1, CAST(-0.113981723147617 AS DOUBLE PRECISION) AS sv_2, CAST(0.845022421375583 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 51 AS sv_idx, CAST(0.378281421591789 AS DOUBLE PRECISION) AS dual_coeff, CAST(-1.614096613514804 AS DOUBLE PRECISION) AS sv_0, CAST(-1.764376827812854 AS DOUBLE PRECISION) AS sv_1, CAST(-0.652695169540566 AS DOUBLE PRECISION) AS sv_2, CAST(1.187810398070241 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 52 AS sv_idx, CAST(0.128105546623562 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.984441558534532 AS DOUBLE PRECISION) AS sv_0, CAST(-0.001260824801652 AS DOUBLE PRECISION) AS sv_1, CAST(0.899665883926523 AS DOUBLE PRECISION) AS sv_2, CAST(1.467750830065069 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 53 AS sv_idx, CAST(-0.850155455911799 AS DOUBLE PRECISION) AS dual_coeff, CAST(-1.060302734572621 AS DOUBLE PRECISION) AS sv_0, CAST(-0.747728711919708 AS DOUBLE PRECISION) AS sv_1, CAST(-1.618649329043049 AS DOUBLE PRECISION) AS sv_2, CAST(1.269578499591205 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 54 AS sv_idx, CAST(0.025930561131644 AS DOUBLE PRECISION) AS dual_coeff, CAST(-1.306038787142802 AS DOUBLE PRECISION) AS sv_0, CAST(0.226622368303475 AS DOUBLE PRECISION) AS sv_1, CAST(0.303783926567354 AS DOUBLE PRECISION) AS sv_2, CAST(0.705729027619607 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 55 AS sv_idx, CAST(0.285793152473858 AS DOUBLE PRECISION) AS dual_coeff, CAST(-1.56064164403535 AS DOUBLE PRECISION) AS sv_0, CAST(0.305617549195175 AS DOUBLE PRECISION) AS sv_1, CAST(-0.341654714080915 AS DOUBLE PRECISION) AS sv_2, CAST(1.267260079062927 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 56 AS sv_idx, CAST(0.267103731539551 AS DOUBLE PRECISION) AS dual_coeff, CAST(1.75577554800642 AS DOUBLE PRECISION) AS sv_0, CAST(0.962684681824095 AS DOUBLE PRECISION) AS sv_1, CAST(1.086993007604243 AS DOUBLE PRECISION) AS sv_2, CAST(1.037920008892085 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 57 AS sv_idx, CAST(0.012899238103311 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.977145951082381 AS DOUBLE PRECISION) AS sv_0, CAST(-1.505543173467996 AS DOUBLE PRECISION) AS sv_1, CAST(1.385179447408544 AS DOUBLE PRECISION) AS sv_2, CAST(-0.161427744848218 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 58 AS sv_idx, CAST(0.334465023449835 AS DOUBLE PRECISION) AS dual_coeff, CAST(1.306965932719283 AS DOUBLE PRECISION) AS sv_0, CAST(0.186301069149551 AS DOUBLE PRECISION) AS sv_1, CAST(1.511344217269608 AS DOUBLE PRECISION) AS sv_2, CAST(-1.58765873047892 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 59 AS sv_idx, CAST(0.434498714678846 AS DOUBLE PRECISION) AS dual_coeff, CAST(0.166136213344908 AS DOUBLE PRECISION) AS sv_0, CAST(-0.398192200197178 AS DOUBLE PRECISION) AS sv_1, CAST(-0.765427273123951 AS DOUBLE PRECISION) AS sv_2, CAST(-1.613326333352949 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 60 AS sv_idx, CAST(0.160712167742224 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.421084452141799 AS DOUBLE PRECISION) AS sv_0, CAST(-0.795617987008826 AS DOUBLE PRECISION) AS sv_1, CAST(0.888262071640605 AS DOUBLE PRECISION) AS sv_2, CAST(0.467592996143088 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 61 AS sv_idx, CAST(0.328664210406733 AS DOUBLE PRECISION) AS dual_coeff, CAST(-1.604245340753544 AS DOUBLE PRECISION) AS sv_0, CAST(-0.264876896201253 AS DOUBLE PRECISION) AS sv_1, CAST(1.352898128170102 AS DOUBLE PRECISION) AS sv_2, CAST(1.166988874472538 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 62 AS sv_idx, CAST(0.37272852024167 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.917278251770317 AS DOUBLE PRECISION) AS sv_0, CAST(-1.450903531910756 AS DOUBLE PRECISION) AS sv_1, CAST(-0.278639083353421 AS DOUBLE PRECISION) AS sv_2, CAST(-1.382799389715493 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 63 AS sv_idx, CAST(0.322729507322232 AS DOUBLE PRECISION) AS dual_coeff, CAST(1.347708624953559 AS DOUBLE PRECISION) AS sv_0, CAST(0.795308777919337 AS DOUBLE PRECISION) AS sv_1, CAST(1.5593635512025 AS DOUBLE PRECISION) AS sv_2, CAST(-0.073890696278566 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 64 AS sv_idx, CAST(0.190863444221754 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.335842264568812 AS DOUBLE PRECISION) AS sv_0, CAST(-0.569488514391953 AS DOUBLE PRECISION) AS sv_1, CAST(0.281465429603565 AS DOUBLE PRECISION) AS sv_2, CAST(1.567207446356592 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 65 AS sv_idx, CAST(0.206071656365659 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.379139513858032 AS DOUBLE PRECISION) AS sv_0, CAST(0.212564010166853 AS DOUBLE PRECISION) AS sv_1, CAST(0.751116144040438 AS DOUBLE PRECISION) AS sv_2, CAST(-1.558039368209904 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 66 AS sv_idx, CAST(0.119517778517783 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.377488687915314 AS DOUBLE PRECISION) AS sv_0, CAST(0.091601886424362 AS DOUBLE PRECISION) AS sv_1, CAST(1.484506675434358 AS DOUBLE PRECISION) AS sv_2, CAST(-1.076465022258961 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte UNION ALL SELECT 67 AS sv_idx, CAST(0.385447770889035 AS DOUBLE PRECISION) AS dual_coeff, CAST(-0.983380385417142 AS DOUBLE PRECISION) AS sv_0, CAST(-0.182352205977729 AS DOUBLE PRECISION) AS sv_1, CAST(-1.468545993196044 AS DOUBLE PRECISION) AS sv_2, CAST(0.212950538876786 AS DOUBLE PRECISION) AS sv_3 
  FROM dummy_cte) AS "Values"), 
  kernel_dp AS 
  (SELECT t."KEY" AS "KEY", t.dot_product AS dot_product 
  FROM (SELECT full_join_data_sv."KEY" AS "KEY", sum(CAST(full_join_data_sv.dot_prod1 AS DOUBLE PRECISION)) + CAST(-0.01836029817818 AS DOUBLE PRECISION) AS dot_product 
  FROM (SELECT kernel_input_with_scaling."KEY" AS "KEY", "SV_data".dual_coeff * exp(least(CAST(100.0 AS DOUBLE PRECISION), greatest(-CAST(100.0 AS DOUBLE PRECISION), CAST(-1.0 AS DOUBLE PRECISION) * (power(kernel_input_with_scaling."Feature_0" - "SV_data".sv_0, 2) + power(kernel_input_with_scaling."Feature_1" - "SV_data".sv_1, 2) + power(kernel_input_with_scaling."Feature_2" - "SV_data".sv_2, 2) + power(kernel_input_with_scaling."Feature_3" - "SV_data".sv_3, 2))))) AS dot_prod1 
  FROM kernel_input_with_scaling, "SV_data") AS full_join_data_sv GROUP BY full_join_data_sv."KEY") AS t)
   SELECT kernel_dp."KEY" AS "KEY", CAST(1.361234203025919 AS DOUBLE PRECISION) + CAST(0.274041235889213 AS DOUBLE PRECISION) * kernel_dp.dot_product AS "Estimator" 
  FROM kernel_dp