(
(let $1 (DataType 'String))
(let $2 '('key (ListType $1)))
(let $3 '('('"_logical_id" '1131) '('"_id" '"50b38e9b-d8623b51-9e9a7d39-21ba6a96") '('"_wide_channels" (StructType $2 '('"value" $1)))))
(let $4 (DqPhyStage '() (lambda '() (block '(
  (let $14 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $15 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $14)))
  (let $16 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $17 (YtStat '('Id '"Input1") '('RecordsCount '"9") '('DataSize '"360") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $18 (YtTable '"Input1" $15 $16 $17 '() (Void) (Void) '"/Root/plato"))
  (let $19 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $18 '('key '"value") (Void) (Void))) '()))))
  (let $20 (lambda '($21 $22) (AsList $21) $22))
  (return (FromFlow (WideMap (DqReadWideWrap $19 '()) $20)))
))) $3))
(let $5 (DqCnHashShuffle (TDqOutput $4 '0) '('0) '0 '"HashV2"))
(let $6 (DataType 'Uint32))
(let $7 (StructType $2 '('summ (ListType $6))))
(let $8 '('('"_logical_id" '1193) '('"_id" '"3c42fc77-3923acdf-2da2c226-1c5f532c") '('"_partition_mode" '"aggregate") '('"_wide_channels" $7)))
(let $9 (DqPhyStage '($5) (lambda '($23) (block '(
  (let $24 (NarrowSqueezeToDict (ToFlow $23) (lambda '($27 $28) $27) (lambda '($29 $30) (AsStruct '('key $29) '('"value" $30))) '('Auto 'Many)))
  (let $25 (Chopper (OrderedFlatMap $24 (lambda '($31) (OrderedFlatMap (DictPayloads $31) (lambda '($32) $32)))) (lambda '($33) (Member $33 'key)) (lambda '($34 $35) (block '(
    (let $36 (Member $35 'key))
    (return (Or (AggrNotEquals (Length $34) (Length $36)) (Exists (Head (SkipWhile (Zip $34 $36) (lambda '($37) (AggrEquals (Nth $37 '0) (Nth $37 '1))))))))
  ))) (lambda '($38 $39) (block '(
    (let $40 (Uint32 '0))
    (return (ToFlow (Just (AsStruct '('key $38) '('summ (Collect (Condense $39 $40 (lambda '($41 $42) (Bool '"false")) (lambda '($43 $44) (Add $44 (Coalesce (SafeCast (Member $43 '"value") (OptionalType $6)) $40))))))))))
  )))))
  (let $26 (lambda '($45) (Member $45 'key) (Member $45 'summ)))
  (return (FromFlow (ExpandMap $25 $26)))
))) $8))
(let $10 (DqCnUnionAll (TDqOutput $9 '0)))
(let $11 (DqPhyStage '($10) (lambda '($46) (FromFlow (NarrowMap (WideSort (ToFlow $46) '('('0 (Bool 'true)))) (lambda '($47 $48) (AsStruct '('key $47) '('summ $48)))))) '('('"_logical_id" '1515) '('"_id" '"35419e3a-e8bf05d4-7cd7be47-d4725cd3"))))
(let $12 '($4 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $7) '0 '0)) '('('"type" '"query"))))
)
