(
(let $1 (lambda '($35 $36) $36 $35))
(let $2 (DataType 'String))
(let $3 '('"key" $2))
(let $4 '('('"_logical_id" '2139) '('"_id" '"f8bec77b-d415b48e-da39594e-a1b9b213") '('"_wide_channels" (StructType '('_yql_agg_0 (ListType (TupleType $2 $2))) $3))))
(let $5 (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 '('"key" '"subkey" '"value"))
  (let $21 (YtPath $19 $20 (Void) (Void)))
  (let $22 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '($21 $21) '()))))
  (return (WideFromBlocks (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $22 '()))) '-1073741824 (lambda '($23 $24 $25) $23) (lambda '($26 $27 $28 $29) (AsList '($28 $29))) (lambda '($30 $31 $32 $33 $34) (Insert $34 '($32 $33))) $1)))
))) $4))
(let $6 (DqCnHashShuffle (TDqOutput $5 '0) '('1) '0 '"HashV2"))
(let $7 (StructType '('"dict" (DictType $2 $2)) $3 '('"multi_dict" (DictType $2 (ListType $2)))))
(let $8 '('('"_logical_id" '2688) '('"_id" '"e5704879-b3912a7b-177f4bfa-15f36dd3") '('"_wide_channels" $7)))
(let $9 (DqPhyStage '($6) (lambda '($37) (block '(
  (let $38 (WideCombiner (ToFlow $37) '"" (lambda '($40 $41) $41) (lambda '($42 $43 $44) $43) (lambda '($45 $46 $47 $48) (Extend $46 $48)) $1))
  (let $39 (lambda '($49 $50) (block '(
    (let $51 (lambda '($55) (Nth $55 '0)))
    (let $52 (lambda '($56) (Nth $56 '1)))
    (let $53 (ToDict $49 $51 $52 '('Auto 'One)))
    (let $54 (ToDict $49 $51 $52 '('Auto 'Many)))
    (return $53 $50 $54)
  ))))
  (return (FromFlow (WideMap (WideSort $38 '('('1 (Bool 'true)))) $39)))
))) $8))
(let $10 (DqCnMerge (TDqOutput $9 '0) '('('1 '"Asc"))))
(let $11 (DqPhyStage '($10) (lambda '($57) (FromFlow (NarrowMap (ToFlow $57) (lambda '($58 $59 $60) (AsStruct '('"dict" $58) '('"key" $59) '('"multi_dict" $60)))))) '('('"_logical_id" '2700) '('"_id" '"bca8d911-da184bb9-1a697dc6-66d10d1a"))))
(let $12 '($5 $9 $11))
(let $13 '('"key" '"dict" '"multi_dict"))
(let $14 (DqCnResult (TDqOutput $11 '0) $13))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($14) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $7) '0 '0)) '('('"type" '"query"))))
)
