(
(let $1 (DataType 'Uint32))
(let $2 (OptionalType $1))
(let $3 (lambda '($31 $32) $32 $31))
(let $4 '('key $2))
(let $5 '('('"_logical_id" '2220) '('"_id" '"2915d5bd-a2cb01b7-afe46627-cc9d6b1a") '('"_wide_channels" (StructType '('_yql_agg_0 (ListType $1)) $4))))
(let $6 (DqPhyStage '() (lambda '() (block '(
  (let $15 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $16 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $15)))
  (let $17 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $18 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $19 (YtTable '"Input" $16 $17 $18 '() (Void) (Void) '"/Root/plato"))
  (let $20 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $19 '('key '"subkey") (Void) (Void))) '()))))
  (return (WideFromBlocks (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $20 '()))) '-1073741824 (lambda '($21 $22) (SafeCast $21 $2)) (lambda '($23 $24 $25) (ToList (SafeCast $25 $2))) (lambda '($26 $27 $28 $29) (IfPresent (SafeCast $28 $2) (lambda '($30) (Insert $29 $30)) $29)) $3)))
))) $5))
(let $7 (DqCnHashShuffle (TDqOutput $6 '0) '('1) '0 '"HashV2"))
(let $8 (StructType '('"column1" $2) $4))
(let $9 '('('"_logical_id" '2810) '('"_id" '"66025850-d0a48d2-419dc5f1-5599b12e") '('"_wide_channels" $8)))
(let $10 (DqPhyStage '($7) (lambda '($33) (block '(
  (let $34 (WideCombiner (ToFlow $33) '"" (lambda '($36 $37) $37) (lambda '($38 $39 $40) $39) (lambda '($41 $42 $43 $44) (Extend $42 $44)) $3))
  (let $35 (lambda '($45 $46) (Head $45) $46))
  (return (FromFlow (WideMap (WideSort $34 '('('1 (Bool 'true)))) $35)))
))) $9))
(let $11 (DqCnMerge (TDqOutput $10 '0) '('('1 '"Asc"))))
(let $12 (DqPhyStage '($11) (lambda '($47) (FromFlow (NarrowMap (ToFlow $47) (lambda '($48 $49) (AsStruct '('"column1" $48) '('key $49)))))) '('('"_logical_id" '2822) '('"_id" '"1cba0552-8586fb63-c6cb6f0a-610586d0"))))
(let $13 '($6 $10 $12))
(let $14 (DqCnResult (TDqOutput $12 '0) '('key '"column1")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $13 '($14) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $8) '0 '0)) '('('"type" '"query"))))
)
