(
(let $1 (DataType 'String))
(let $2 (lambda '($28) $28))
(let $3 '('('"_logical_id" '1004) '('"_id" '"9feb214d-7ac8351-7f6ffe16-b3a29740") '('"_wide_channels" (StructType '('"subkey" $1)))))
(let $4 (DqPhyStage '() (lambda '() (block '(
  (let $15 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $16 (Bool 'true))
  (let $17 '('"key" '"subkey"))
  (let $18 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $15) '('SortDirections '($16 $16)) '('SortMembers $17) '('SortedBy $17) '('SortedByTypes '($1 $1))))
  (let $19 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $20 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"168") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $21 (YtTable '"Input" $18 $19 $20 '() (Void) (Void) '"/Root/plato"))
  (let $22 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $21 $17 (Void) (Void))) '('('"unordered"))))))
  (let $23 (lambda '($26 $27) $27))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (WideMap (WideFilter (DqReadWideWrap $22 '()) (lambda '($24 $25) (Or (== $24 (String '"075")) (== $24 (String '"150"))))) $23))) '-1073741824 $2 (lambda '($29 $30) $29) (lambda '($31 $32 $33) $33) $23))
))) $3))
(let $5 (DqCnHashShuffle (TDqOutput $4 '0) '('0) '0 '"HashV2"))
(let $6 (Uint64 '1))
(let $7 (Bool 'false))
(let $8 (DataType 'Uint64))
(let $9 '('('"_logical_id" '1712) '('"_id" '"2afbd3a6-c6d039a5-e227f3b3-638513ec") '('"_wide_channels" (StructType '('_yql_agg_0 (OptionalType $8))))))
(let $10 (DqPhyStage '($5) (lambda '($34) (block '(
  (let $35 (lambda '($38 $39)))
  (let $36 (WideCombiner (ToFlow (WideFromBlocks $34)) '"" $2 $35 $35 $2))
  (let $37 (Condense1 (NarrowMap $36 (lambda '($40) (AsStruct '('"subkey" $40)))) (lambda '($41) $6) (lambda '($42 $43) $7) (lambda '($44 $45) (Inc $45))))
  (return (FromFlow (ExpandMap $37 (lambda '($46) (Just $46)))))
))) $9))
(let $11 (DqCnUnionAll (TDqOutput $10 '0)))
(let $12 (DqPhyStage '($11) (lambda '($47) (block '(
  (let $48 (WideCondense1 (ToFlow $47) (lambda '($50) $50) (lambda '($51 $52) $7) (lambda '($53 $54) (IfPresent $53 (lambda '($55) (IfPresent $54 (lambda '($56) (Just (AggrAdd $55 $56))) $53)) $54))))
  (let $49 (Condense (NarrowMap (Take $48 $6) (lambda '($57) (AsStruct '('Count0 (Unwrap $57))))) (Nothing (OptionalType (StructType '('Count0 $8)))) (lambda '($58 $59) $7) (lambda '($60 $61) (Just $60))))
  (return (FromFlow (Map $49 (lambda '($62) (AsStruct '('"subkey" (Coalesce (Member $62 'Count0) (Uint64 '0))))))))
))) '('('"_logical_id" '2447) '('"_id" '"d3dc8aed-240a29fa-1c217c3-3e2a4473"))))
(let $13 '($4 $10 $12))
(let $14 (DqCnResult (TDqOutput $12 '0) '('"subkey")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $13 '($14) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"subkey" $8))) '0 '0)) '('('"type" '"query"))))
)
