(
(let $1 (DataSource '"yt" '"/Root/plato"))
(let $2 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
(let $3 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $2)))
(let $4 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
(let $5 '('ChunkCount '1))
(let $6 '('ModifyTime '0))
(let $7 '('Revision '0))
(let $8 '('"key"))
(let $9 '('('"_logical_id" '1056) '('"_id" '"f4a59724-9e54c410-ed5b0cce-c59b8a8c") '('"_wide_channels" (StructType '('"key" (DataType 'String))))))
(let $10 (DqPhyStage '() (lambda '() (block '(
  (let $22 (YtStat '('Id '"Input3") '('RecordsCount '"7") '('DataSize '"287") $5 $6 $7))
  (let $23 (YtTable '"Input3" $3 $4 $22 '() (Void) (Void) '"/Root/plato"))
  (let $24 (YtReadTable! world $1 '((YtSection '((YtPath $23 $8 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $24 '())))
))) $9))
(let $11 (DqCnBroadcast (TDqOutput $10 '0)))
(let $12 (Uint64 '1))
(let $13 (Bool 'false))
(let $14 (lambda '($40) $40))
(let $15 (DataType 'Uint64))
(let $16 '('('"_logical_id" '1182) '('"_id" '"441deaec-45e46e3b-6e1ffae7-8fc9f8ff") '('"_wide_channels" (StructType '('_yql_agg_0 $15)))))
(let $17 (DqPhyStage '($11) (lambda '($25) (block '(
  (let $26 '('Many 'Hashed 'Compact))
  (let $27 (NarrowSqueezeToDict (ToFlow $25) (lambda '($29) $29) (lambda '($30) (AsStruct '('"key" $30))) $26))
  (let $28 (Condense1 (NarrowMap (FlatMap $27 (lambda '($31) (block '(
    (let $32 (YtStat '('Id '"Input2") '('RecordsCount '"4") '('DataSize '"164") $5 $6 $7))
    (let $33 (YtTable '"Input2" $3 $4 $32 '() (Void) (Void) '"/Root/plato"))
    (let $34 (YtReadTable! world $1 '((YtSection '((YtPath $33 $8 (Void) (Void))) '()))))
    (return (MapJoinCore (DqReadWideWrap $34 '()) $31 'Inner '('0) $8 '() '() '('"a.key") '('"b.key")))
  )))) (lambda '() (AsStruct))) (lambda '($35) $12) (lambda '($36 $37) $13) (lambda '($38 $39) (AggrAdd $39 $12))))
  (return (FromFlow (ExpandMap $28 $14)))
))) $16))
(let $18 (DqCnUnionAll (TDqOutput $17 '0)))
(let $19 (DqPhyStage '($18) (lambda '($41) (block '(
  (let $42 (WideCondense1 (ToFlow $41) $14 (lambda '($44 $45) $13) (lambda '($46 $47) (AggrAdd $46 $47))))
  (let $43 (Condense (NarrowMap (Take $42 $12) (lambda '($48) (AsStruct '('Count0 $48)))) (Nothing (OptionalType (StructType '('Count0 $15)))) (lambda '($49 $50) $13) (lambda '($51 $52) (Just $51))))
  (return (FromFlow (Map $43 (lambda '($53) (AsStruct '('"column0" (Coalesce (Member $53 'Count0) (Uint64 '0))))))))
))) '('('"_logical_id" '2019) '('"_id" '"54baf9d9-d670c9ce-5e3a9588-d7e2eac3"))))
(let $20 '($10 $17 $19))
(let $21 (DqCnResult (TDqOutput $19 '0) '('"column0")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $20 '($21) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"column0" $15))) '0 '0)) '('('"type" '"query"))))
)
