(
(let $1 (DataType 'Utf8))
(let $2 (StructType '('"key" $1) '('"key1" $1) '('"subkey" $1) '('"subkey1" $1) '('"value" $1)))
(let $3 '('('"_logical_id" '2160) '('"_id" '"85d5c993-b9f59be8-5a8c252a-f70fc7b1") '('"_wide_channels" $2)))
(let $4 (DqPhyStage '() (lambda '() (block '(
  (let $8 (String '1))
  (let $9 (String '"a"))
  (let $10 (AsStruct '('"key" $8) '('"key1" $8) '('"subkey" $9) '('"subkey1" $9)))
  (let $11 (String '4))
  (let $12 (String '"d"))
  (let $13 (AsStruct '('"key" $11) '('"key1" $11) '('"subkey" $12) '('"subkey1" $12)))
  (let $14 (String '"-5"))
  (let $15 (String '"e"))
  (let $16 (AsStruct '('"key" $14) '('"key1" $14) '('"subkey" $15) '('"subkey1" $15)))
  (let $17 (OptionalType (DataType 'Uint64)))
  (let $18 (OptionalType (DataType 'Int64)))
  (let $19 '('0 '1))
  (let $20 '('One 'Hashed 'Compact))
  (let $21 (SqueezeToDict (FlatMap (ToFlow (AsList $10 $13 $16)) (lambda '($22) (block '(
    (let $23 (OptionalType $1))
    (return (FilterNullElements (Just '((SafeCast (Member $22 '"subkey") $23) (FilterNullElements (Just '((SafeCast (Member $22 '"subkey1") $23) (FilterNullElements (Just '((SafeCast (SafeCast (Member $22 '"key") $17) $18) (SafeCast (SafeCast (Member $22 '"key1") $18) $17))) $19))) $19))) $19))
  )))) (lambda '($24) $24) (lambda '($25) (Void)) $20))
  (return (FromFlow (WideSort (FlatMap $21 (lambda '($26) (block '(
    (let $27 '@@["StructType";[["key1";["DataType";"Utf8"]];["subkey1";["DataType";"Utf8"]];["key";["DataType";"Utf8"]];["subkey";["DataType";"Utf8"]];["value";["DataType";"Utf8"]]]]@@)
    (let $28 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $27)))
    (let $29 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
    (let $30 (YtStat '('Id '"Input") '('RecordsCount '4) '('DataSize '"292") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
    (let $31 (YtTable '"Input" $28 $29 $30 '() (Void) (Void) '"/Root/plato"))
    (let $32 '('"key" '"key1" '"subkey" '"subkey1" '"value"))
    (let $33 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $31 $32 (Void) (Void))) '()))))
    (let $34 (lambda '($36 $37 $38 $39 $40) (block '(
      (let $41 '('1))
      (return (FilterNullElements (Just '($38 (FilterNullElements (Just '($39 (FilterNullElements (Just '((SafeCast $36 $18) (SafeCast $37 $17))) $19))) $41))) $41) $36 $37 $38 $39 $40)
    ))))
    (let $35 '('1 '0 '2 '1 '3 '2 '4 '3 '5 '4))
    (return (MapJoinCore (WideMap (DqReadWideWrap $33 '()) $34) $26 'LeftSemi '('0) '('"_equijoin_column_1") $35 '() '('"A._equijoin_column_0") '('"B._equijoin_column_1")))
  )))) '('('0 (Bool 'true))))))
))) $3))
(let $5 (DqCnMerge (TDqOutput $4 '0) '('('0 '"Asc"))))
(let $6 (DqPhyStage '($5) (lambda '($42) (FromFlow (NarrowMap (ToFlow $42) (lambda '($43 $44 $45 $46 $47) (AsStruct '('"key" $43) '('"key1" $44) '('"subkey" $45) '('"subkey1" $46) '('"value" $47)))))) '('('"_logical_id" '2172) '('"_id" '"315814bf-e3c70346-1ca5514a-9b23059e"))))
(let $7 (DqCnResult (TDqOutput $6 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($4 $6) '($7) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $2) '0 '0)) '('('"type" '"query"))))
)
