CREATE ASSEMBLY [agg_median]
FROM 0x4D5A90000300000004000000FFFF0000B800000000000000400000000000000000000000000000000000000000000000000000000000000000000000800000000E1FBA0E00B409CD21B8014CCD21546869732070726F6772616D2063616E6E6F742062652072756E20696E20444F53206D6F64652E0D0D0A2400000000000000504500004C0103004FB20D520000000000000000E00002210B010800000A000000060000000000005E2900000020000000400000000040000020000000020000040000000000000004000000000000000080000000020000000000000300408500001000001000000000100000100000000000001000000000000000000000000C2900004F00000000400000A002000000000000000000000000000000000000006000000C00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000080000000000000000000000082000004800000000000000000000002E746578740000006409000000200000000A000000020000000000000000000000000000200000602E72737263000000A00200000040000000040000000C0000000000000000000000000000400000402E72656C6F6300000C0000000060000000020000001000000000000000000000000000004000004200000000000000000000000000000000402900000000000048000000020005000C220000000700000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000360002730600000A7D010000042A0000133002002200000001000011000F01280700000A0A062D1500027B010000040F01280800000A6F0900000A00002A6A00027B010000040F017B010000046F0A00000A6F0B00000A002A00000013300400990000000200001100027B010000046F0C00000A16FE0116FE010C082D087E0D00000A0B2B79027B010000046F0E00000A00027B010000046F0C00000A185B0A027B010000046F0C00000A185D16FE0116FE010C082D3300027B01000004066F0F00000A027B010000040617596F0F00000A281000000A18731100000A281200000A281300000A0B2B1500027B01000004066F0F00000A281300000A0B2B00072A00000013300300390000000300001100036F1400000A0A0206731500000A7D01000004160B2B1800027B01000004036F1600000A6F0900000A00000717580B0706FE040C082DE02A0000001B30020052000000040000110003027B010000046F0C00000A6F1700000A0000027B010000046F1800000A0B2B121201281900000A0A0003066F1A00000A00001201281B00000A0C082DE3DE0F1201FE160200001B6F1C00000A00DC002A000001100000020020002141000F0000000042534A4201000100000000000C00000076322E302E35303732370000000005006C00000054020000237E0000C0020000DC02000023537472696E6773000000009C0500000800000023555300A4050000100000002347554944000000B40500004C01000023426C6F620000000000000002000001571702080900000000FA013300160000010000001100000002000000010000000600000004000000010000001C000000030000000400000002000000010000000200000000000A0001000000000006002F0028000A006000450006008C0071000600930028000A00B900A4000600E900DF000600FB00DF0006004201220106006801220106008D0128000A00A30145000A00C40145000600EA01CB0106000002CB0106002C0271000F009A0200000600C80228000000000001000000000001000100092110001500000005000100010001009B000A0050200000000086009F00120001006020000000008600C400160001008E20000000008600CF001C000200AC20000000008600D50022000300542100000000E601F600270003009C2100000000E60108012D000400000001000E01000001001801000001001E010000010020010200090041006201330049006201120051006201120059006201380069006201A0000C006201120029000B02AD0029001602B1000C002002B6000C002402C0000C003A02C6000C004302D00029004D02D4000C00520212000C005702D80021006002DE0021006201330021006C02DE0029007802E70031008402D0000C006201330031008E02B1003900080133000C00A502FB001400B3020B013900080110011400BF02AD008900D40212002E000B0022012E0013002B01430023003E00BC00EE00F5001601A60004010480000000000000000000000000000000008601000002000000000000000000000001001F000000000002000000000000000000000001003900000000000000003C4D6F64756C653E006D656469616E2E646C6C004D656469616E416767006D73636F726C69620053797374656D0056616C7565547970650053797374656D2E44617461004D6963726F736F66742E53716C5365727665722E536572766572004942696E61727953657269616C697A650053797374656D2E436F6C6C656374696F6E732E47656E65726963004C697374603100446563696D616C006C737400496E69740053797374656D2E446174612E53716C54797065730053716C446563696D616C00416363756D756C617465004D65726765005465726D696E6174650053797374656D2E494F0042696E61727952656164657200526561640042696E617279577269746572005772697465007265635F76616C75650047726F7570007200770053797374656D2E52756E74696D652E436F6D70696C6572536572766963657300436F6D70696C6174696F6E52656C61786174696F6E73417474726962757465002E63746F720052756E74696D65436F6D7061746962696C697479417474726962757465006D656469616E0053657269616C697A61626C654174747269627574650053716C55736572446566696E656441676772656761746541747472696275746500466F726D61740053797374656D2E52756E74696D652E496E7465726F705365727669636573005374727563744C61796F7574417474726962757465004C61796F75744B696E64006765745F49734E756C6C006765745F56616C75650041646400546F41727261790049456E756D657261626C6560310041646452616E6765006765745F436F756E74004E756C6C00536F7274006765745F4974656D006F705F4164646974696F6E006F705F4469766973696F6E006F705F496D706C696369740052656164496E7433320052656164446563696D616C00456E756D657261746F7200476574456E756D657261746F72006765745F43757272656E74004D6F76654E6578740049446973706F7361626C6500446973706F736500000320000000000037FE92BEB47F1E4DAB091BF28ECD18530008B77A5C561934E089070615120D01111103200001052001011115052001011108042000111505200101121905200101121D04200101080520010111316101000200000004005402174973496E76617269616E74546F4475706C696361746573005402124973496E76617269616E74546F4E756C6C73005402124973496E76617269616E74546F4F726465720054080B4D61784279746553697A65FFFFFFFF0520010111390615120D011111032000020420001111052001011300030701020520001D13000920010115123D011300032000080306111505200113000808000211111111111106000111151111060703081115020507030808020820001511410113000615114101111104200013000520010111110B07031111151141011111020801000800000000001E01000100540216577261704E6F6E457863657074696F6E5468726F77730100003429000000000000000000004E29000000200000000000000000000000000000000000000000000040290000000000000000000000005F436F72446C6C4D61696E006D73636F7265652E646C6C0000000000FF250020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100100000001800008000000000000000000000000000000100010000003000008000000000000000000000000000000100000000004800000058400000440200000000000000000000440234000000560053005F00560045005200530049004F004E005F0049004E0046004F0000000000BD04EFFE00000100000000000000000000000000000000003F000000000000000400000002000000000000000000000000000000440000000100560061007200460069006C00650049006E0066006F00000000002400040000005400720061006E0073006C006100740069006F006E00000000000000B004A4010000010053007400720069006E006700460069006C00650049006E0066006F0000008001000001003000300030003000300034006200300000002C0002000100460069006C0065004400650073006300720069007000740069006F006E000000000020000000300008000100460069006C006500560065007200730069006F006E000000000030002E0030002E0030002E003000000038000B00010049006E007400650072006E0061006C004E0061006D00650000006D0065006400690061006E002E0064006C006C00000000002800020001004C006500670061006C0043006F00700079007200690067006800740000002000000040000B0001004F0072006900670069006E0061006C00460069006C0065006E0061006D00650000006D0065006400690061006E002E0064006C006C0000000000340008000100500072006F006400750063007400560065007200730069006F006E00000030002E0030002E0030002E003000000038000800010041007300730065006D0062006C0079002000560065007200730069006F006E00000030002E0030002E0030002E00300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000C000000603900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
WITH PERMISSION_SET = SAFE

GO

CREATE ASSEMBLY [agg_quantile1]
FROM 0x4D5A90000300000004000000FFFF0000B800000000000000400000000000000000000000000000000000000000000000000000000000000000000000800000000E1FBA0E00B409CD21B8014CCD21546869732070726F6772616D2063616E6E6F742062652072756E20696E20444F53206D6F64652E0D0D0A2400000000000000504500004C010300834847540000000000000000E00002210B010800000A00000006000000000000BE290000002000000040000000004000002000000002000004000000000000000400000000000000008000000002000000000000030040850000100000100000000010000010000000000000100000000000000000000000642900005700000000400000A802000000000000000000000000000000000000006000000C00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000080000000000000000000000082000004800000000000000000000002E74657874000000C409000000200000000A000000020000000000000000000000000000200000602E72737263000000A80200000040000000040000000C0000000000000000000000000000400000402E72656C6F6300000C0000000060000000020000001000000000000000000000000000004000004200000000000000000000000000000000A029000000000000480000000200050054220000100700000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000360002730600000A7D010000042A0000133002002200000001000011000F01280700000A0A062D1500027B010000040F01280800000A6F0900000A00002A6A00027B010000040F017B010000046F0A00000A6F0B00000A002A00000013300800E40000000200001100027B010000046F0C00000A16FE0116FE010C082D0B7E0D00000A0B38C1000000027B010000046F0E00000A00027B010000046F0C00000A185D16FE0116FE010C082D1600027B010000046F0C00000A18581A5B17590A002B1400027B010000046F0C00000A19581A5B17590A00027B010000046F0C00000A185D16FE0116FE010C082D4800027B01000004066F0F00000A1F4B16161618731000000A281100000A027B010000040617586F0F00000A1F1916161618731000000A281100000A281200000A281300000A0B2B1500027B01000004066F0F00000A281300000A0B2B00072A13300300390000000300001100036F1400000A0A0206731500000A7D01000004160B2B1800027B01000004036F1600000A6F0900000A00000717580B0706FE040C082DE02A0000001B30020052000000040000110003027B010000046F0C00000A6F1700000A0000027B010000046F1800000A0B2B121201281900000A0A0003066F1A00000A00001201281B00000A0C082DE3DE0F1201FE160200001B6F1C00000A00DC002A000001100000020020002141000F0000000042534A4201000100000000000C00000076322E302E35303732370000000005006C00000054020000237E0000C0020000E402000023537472696E677300000000A40500000800000023555300AC050000100000002347554944000000BC0500005401000023426C6F620000000000000002000001571702080900000000FA013300160000010000001100000002000000010000000600000004000000010000001C000000030000000400000002000000010000000200000000000A00010000000000060035002E000A0066004B00060092007700060099002E000A00BF00AA000600EF00E50006000101E50006004801280106006E012801060096012E000A00AC014B000A00CD014B000600F301D40106000902D4010600350277000F00A00200000600CE022E00000000000100000000000100010009211000180000000500010001000100A1000A005020000000008600A500120001006020000000008600CA00160001008E20000000008600D5001C000200AC20000000008600DB00220003009C2100000000E601FC0027000300E42100000000E6010E012D000400000001001401000001001E010000010024010000010026010200090041006801330049006801120051006801120059006801380069006801A0000C006801120029001402AD0029001F02B1000C002902B6000C002D02C0000C004302C6000C004C02D00029005602D4000C005B0212000C006002D80021006801DE0021006902E70021007202E70029007E02F00031008A02D0000C006801330031009402B10039000E0133000C00AB0204011400B902140139000E0119011400C502AD008900DA0212002E000B002B012E0013003401430023003E00BC00F700FE001F01A6000D010480000000000000000000000000000000008C010000020000000000000000000000010025000000000002000000000000000000000001003F00000000000000003C4D6F64756C653E007175616E74696C65312E646C6C005175616E74696C6531416767006D73636F726C69620053797374656D0056616C7565547970650053797374656D2E44617461004D6963726F736F66742E53716C5365727665722E536572766572004942696E61727953657269616C697A650053797374656D2E436F6C6C656374696F6E732E47656E65726963004C697374603100446563696D616C006C737400496E69740053797374656D2E446174612E53716C54797065730053716C446563696D616C00416363756D756C617465004D65726765005465726D696E6174650053797374656D2E494F0042696E61727952656164657200526561640042696E617279577269746572005772697465007265635F76616C75650047726F7570007200770053797374656D2E52756E74696D652E436F6D70696C6572536572766963657300436F6D70696C6174696F6E52656C61786174696F6E73417474726962757465002E63746F720052756E74696D65436F6D7061746962696C697479417474726962757465007175616E74696C65310053657269616C697A61626C654174747269627574650053716C55736572446566696E656441676772656761746541747472696275746500466F726D61740053797374656D2E52756E74696D652E496E7465726F705365727669636573005374727563744C61796F7574417474726962757465004C61796F75744B696E64006765745F49734E756C6C006765745F56616C75650041646400546F41727261790049456E756D657261626C6560310041646452616E6765006765745F436F756E74004E756C6C00536F7274006765745F4974656D004D756C7469706C79006F705F4164646974696F6E006F705F496D706C696369740052656164496E7433320052656164446563696D616C00456E756D657261746F7200476574456E756D657261746F72006765745F43757272656E74004D6F76654E6578740049446973706F7361626C6500446973706F73650000000003200000000000AE7EA380A2DC6B46957134022D39387C0008B77A5C561934E089070615120D01111103200001052001011115052001011108042000111505200101121905200101121D04200101080520010111316101000200000004005402174973496E76617269616E74546F4475706C696361746573005402124973496E76617269616E74546F4E756C6C73005402124973496E76617269616E74546F4F726465720054080B4D61784279746553697A65FFFFFFFF0520010111390615120D011111032000020420001111052001011300030701020520001D13000920010115123D011300032000080306111505200113000808200501080808020508000211111111111106000111151111060703081115020507030808020820001511410113000615114101111104200013000520010111110B07031111151141011111020801000800000000001E01000100540216577261704E6F6E457863657074696F6E5468726F777301008C2900000000000000000000AE290000002000000000000000000000000000000000000000000000A02900000000000000000000000000000000000000005F436F72446C6C4D61696E006D73636F7265652E646C6C0000000000FF2500204000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001001000000018000080000000000000000000000000000001000100000030000080000000000000000000000000000001000000000048000000584000004C02000000000000000000004C0234000000560053005F00560045005200530049004F004E005F0049004E0046004F0000000000BD04EFFE00000100000000000000000000000000000000003F000000000000000400000002000000000000000000000000000000440000000100560061007200460069006C00650049006E0066006F00000000002400040000005400720061006E0073006C006100740069006F006E00000000000000B004AC010000010053007400720069006E006700460069006C00650049006E0066006F0000008801000001003000300030003000300034006200300000002C0002000100460069006C0065004400650073006300720069007000740069006F006E000000000020000000300008000100460069006C006500560065007200730069006F006E000000000030002E0030002E0030002E00300000003C000E00010049006E007400650072006E0061006C004E0061006D00650000007100750061006E00740069006C00650031002E0064006C006C0000002800020001004C006500670061006C0043006F00700079007200690067006800740000002000000044000E0001004F0072006900670069006E0061006C00460069006C0065006E0061006D00650000007100750061006E00740069006C00650031002E0064006C006C000000340008000100500072006F006400750063007400560065007200730069006F006E00000030002E0030002E0030002E003000000038000800010041007300730065006D0062006C0079002000560065007200730069006F006E00000030002E0030002E0030002E0030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000C000000C03900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
WITH PERMISSION_SET = SAFE
GO

CREATE ASSEMBLY [agg_quantile3]
FROM 0x4D5A90000300000004000000FFFF0000B800000000000000400000000000000000000000000000000000000000000000000000000000000000000000800000000E1FBA0E00B409CD21B8014CCD21546869732070726F6772616D2063616E6E6F742062652072756E20696E20444F53206D6F64652E0D0D0A2400000000000000504500004C010300334B47540000000000000000E00002210B010800000A00000006000000000000EE290000002000000040000000004000002000000002000004000000000000000400000000000000008000000002000000000000030040850000100000100000000010000010000000000000100000000000000000000000942900005700000000400000A802000000000000000000000000000000000000006000000C00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000080000000000000000000000082000004800000000000000000000002E74657874000000F409000000200000000A000000020000000000000000000000000000200000602E72737263000000A80200000040000000040000000C0000000000000000000000000000400000402E72656C6F6300000C0000000060000000020000001000000000000000000000000000004000004200000000000000000000000000000000D029000000000000480000000200050084220000100700000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000360002730600000A7D010000042A0000133002002200000001000011000F01280700000A0A062D1500027B010000040F01280800000A6F0900000A00002A6A00027B010000040F017B010000046F0A00000A6F0B00000A002A00000013300800120100000200001100027B010000046F0C00000A16FE0116FE010C082D0B7E0D00000A0B38EF000000027B010000046F0E00000A0019027B010000046F0C00000A5A1A5B0A027B010000046F0C00000A185D16FE0116FE010C083AA400000000027B010000046F0C00000A18FE0116FE010C082D4600027B01000004166F0F00000A1F1916161618731000000A281100000A027B01000004176F0F00000A1F4B16161618731000000A281100000A281200000A281300000A0B2B5D00027B010000040617596F0F00000A1F4B16161618731000000A281100000A027B01000004066F0F00000A1F1916161618731000000A281100000A281200000A281300000A0B2B1500027B01000004066F0F00000A281300000A0B2B00072A000013300300390000000300001100036F1400000A0A0206731500000A7D01000004160B2B1800027B01000004036F1600000A6F0900000A00000717580B0706FE040C082DE02A0000001B30020052000000040000110003027B010000046F0C00000A6F1700000A0000027B010000046F1800000A0B2B121201281900000A0A0003066F1A00000A00001201281B00000A0C082DE3DE0F1201FE160200001B6F1C00000A00DC002A000001100000020020002141000F0000000042534A4201000100000000000C00000076322E302E35303732370000000005006C00000054020000237E0000C0020000E402000023537472696E677300000000A40500000800000023555300AC050000100000002347554944000000BC0500005401000023426C6F620000000000000002000001571702080900000000FA013300160000010000001100000002000000010000000600000004000000010000001C000000030000000400000002000000010000000200000000000A00010000000000060035002E000A0066004B00060092007700060099002E000A00BF00AA000600EF00E50006000101E50006004801280106006E012801060096012E000A00AC014B000A00CD014B000600F301D40106000902D4010600350277000F00A00200000600CE022E00000000000100000000000100010009211000180000000500010001000100A1000A005020000000008600A500120001006020000000008600CA00160001008E20000000008600D5001C000200AC20000000008600DB0022000300CC2100000000E601FC0027000300142200000000E6010E012D000400000001001401000001001E010000010024010000010026010200090041006801330049006801120051006801120059006801380069006801A0000C006801120029001402AD0029001F02B1000C002902B6000C002D02C0000C004302C6000C004C02D00029005602D4000C005B0212000C006002D80021006801DE0021006902E70021007202E70029007E02F00031008A02D0000C006801330031009402B10039000E0133000C00AB0204011400B902140139000E0119011400C502AD008900DA0212002E000B002B012E0013003401430023003E00BC00F700FE001F01A6000D010480000000000000000000000000000000008C010000020000000000000000000000010025000000000002000000000000000000000001003F00000000000000003C4D6F64756C653E007175616E74696C65332E646C6C005175616E74696C6533416767006D73636F726C69620053797374656D0056616C7565547970650053797374656D2E44617461004D6963726F736F66742E53716C5365727665722E536572766572004942696E61727953657269616C697A650053797374656D2E436F6C6C656374696F6E732E47656E65726963004C697374603100446563696D616C006C737400496E69740053797374656D2E446174612E53716C54797065730053716C446563696D616C00416363756D756C617465004D65726765005465726D696E6174650053797374656D2E494F0042696E61727952656164657200526561640042696E617279577269746572005772697465007265635F76616C75650047726F7570007200770053797374656D2E52756E74696D652E436F6D70696C6572536572766963657300436F6D70696C6174696F6E52656C61786174696F6E73417474726962757465002E63746F720052756E74696D65436F6D7061746962696C697479417474726962757465007175616E74696C65330053657269616C697A61626C654174747269627574650053716C55736572446566696E656441676772656761746541747472696275746500466F726D61740053797374656D2E52756E74696D652E496E7465726F705365727669636573005374727563744C61796F7574417474726962757465004C61796F75744B696E64006765745F49734E756C6C006765745F56616C75650041646400546F41727261790049456E756D657261626C6560310041646452616E6765006765745F436F756E74004E756C6C00536F7274006765745F4974656D004D756C7469706C79006F705F4164646974696F6E006F705F496D706C696369740052656164496E7433320052656164446563696D616C00456E756D657261746F7200476574456E756D657261746F72006765745F43757272656E74004D6F76654E6578740049446973706F7361626C6500446973706F73650000000003200000000000B5352C62773C7A4DB1B0A1A576DEA9380008B77A5C561934E089070615120D01111103200001052001011115052001011108042000111505200101121905200101121D04200101080520010111316101000200000004005402174973496E76617269616E74546F4475706C696361746573005402124973496E76617269616E74546F4E756C6C73005402124973496E76617269616E74546F4F726465720054080B4D61784279746553697A65FFFFFFFF0520010111390615120D011111032000020420001111052001011300030701020520001D13000920010115123D011300032000080306111505200113000808200501080808020508000211111111111106000111151111060703081115020507030808020820001511410113000615114101111104200013000520010111110B07031111151141011111020801000800000000001E01000100540216577261704E6F6E457863657074696F6E5468726F77730100BC2900000000000000000000DE290000002000000000000000000000000000000000000000000000D02900000000000000000000000000000000000000005F436F72446C6C4D61696E006D73636F7265652E646C6C0000000000FF2500204000000000000000000000000000000000000000000000000000000001001000000018000080000000000000000000000000000001000100000030000080000000000000000000000000000001000000000048000000584000004C02000000000000000000004C0234000000560053005F00560045005200530049004F004E005F0049004E0046004F0000000000BD04EFFE00000100000000000000000000000000000000003F000000000000000400000002000000000000000000000000000000440000000100560061007200460069006C00650049006E0066006F00000000002400040000005400720061006E0073006C006100740069006F006E00000000000000B004AC010000010053007400720069006E006700460069006C00650049006E0066006F0000008801000001003000300030003000300034006200300000002C0002000100460069006C0065004400650073006300720069007000740069006F006E000000000020000000300008000100460069006C006500560065007200730069006F006E000000000030002E0030002E0030002E00300000003C000E00010049006E007400650072006E0061006C004E0061006D00650000007100750061006E00740069006C00650033002E0064006C006C0000002800020001004C006500670061006C0043006F00700079007200690067006800740000002000000044000E0001004F0072006900670069006E0061006C00460069006C0065006E0061006D00650000007100750061006E00740069006C00650033002E0064006C006C000000340008000100500072006F006400750063007400560065007200730069006F006E00000030002E0030002E0030002E003000000038000800010041007300730065006D0062006C0079002000560065007200730069006F006E00000030002E0030002E0030002E0030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000C000000F03900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
WITH PERMISSION_SET = SAFE
GO


CREATE AGGREGATE [dbo].[median]
(@input [decimal](38, 3))
RETURNS[decimal](38, 3)
EXTERNAL NAME [agg_median].[MedianAgg]
GO

CREATE AGGREGATE [dbo].[q1]
(@input [decimal](38, 3))
RETURNS[decimal](38, 3)
EXTERNAL NAME [agg_quantile1].[Quantile1Agg]
GO

CREATE AGGREGATE [dbo].[q3]
(@input [decimal](38, 3))
RETURNS[decimal](38, 3)
EXTERNAL NAME [agg_quantile3].[Quantile3Agg]
GO