(
(let $1 (DataSource '"yt" '"/Root/plato"))
(let $2 '@@["StructType";[["key";["OptionalType";["DataType";"Int32"]]];["subkey";["OptionalType";["DataType";"String"]]];["value";["OptionalType";["DataType";"String"]]]]]@@)
(let $3 (Bool 'true))
(let $4 '('"key" '"subkey"))
(let $5 (DataType 'Int32))
(let $6 (OptionalType $5))
(let $7 (OptionalType (DataType 'String)))
(let $8 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $2) '('SortDirections '($3 $3)) '('SortMembers $4) '('SortedBy $4) '('SortedByTypes '($6 $7))))
(let $9 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
(let $10 (YtStat '('Id '"Input") '('RecordsCount '"6") '('DataSize '"204") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $11 (YtTable '"Input" $8 $9 $10 '() (Void) (Void) '"/Root/plato"))
(let $12 '('"key"))
(let $13 '('('"_logical_id" '1354) '('"_id" '"9b402c6d-49630ae4-5ac3d18-87e12715") '('"_wide_channels" (StructType '('"key" $5)))))
(let $14 (DqPhyStage '() (lambda '() (block '(
  (let $21 (YtReadTable! world $1 '((YtSection '((YtPath $11 $12 (Void) (Void))) '('('"unordered"))))))
  (let $22 (Int32 '"4"))
  (return (FromFlow (WideFilter (WideMap (DqReadWideWrap $21 '()) (lambda '($23) (Coalesce $23 $22))) (lambda '($24) (== $24 $22)))))
))) $13))
(let $15 (DqCnBroadcast (TDqOutput $14 '0)))
(let $16 (DqPhyStage '($15) (lambda '($25) (block '(
  (let $26 '('Many 'Hashed 'Compact))
  (let $27 (NarrowSqueezeToDict (ToFlow $25) (lambda '($28) $28) (lambda '($29) (AsStruct '('"key" $29))) $26))
  (return (FromFlow (NarrowMap (FlatMap $27 (lambda '($30) (block '(
    (let $31 '('"key" '"subkey" '"value"))
    (let $32 (YtReadTable! world $1 '((YtSection '((YtPath $11 $31 (Void) (Void))) '()))))
    (let $33 '('0 '0 '1 '1 '2 '2))
    (return (MapJoinCore (WideFilter (DqReadWideWrap $32 '()) (lambda '($34 $35 $36) (Exists $34))) $30 'Inner '('0) $12 $33 '('"key" '3) '('"x1.key") '('"x2.key")))
  )))) (lambda '($37 $38 $39 $40) (AsStruct '('"x1.key" $37) '('"x1.subkey" $38) '('"x1.value" $39) '('"x2.key" $40))))))
))) '('('"_logical_id" '1402) '('"_id" '"990b5375-8b129f4c-66d8f043-ca17fadb"))))
(let $17 (DqCnUnionAll (TDqOutput $16 '0)))
(let $18 (DqPhyStage '($17) (lambda '($41) $41) '('('"_logical_id" '1535) '('"_id" '"73aaccc1-f7e873c8-b885c1c2-e0781921"))))
(let $19 '($14 $16 $18))
(let $20 (DqCnResult (TDqOutput $18 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $19 '($20) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"x1.key" $6) '('"x1.subkey" $7) '('"x1.value" $7) '('"x2.key" $5))) '0 '0)) '('('"type" '"query"))))
)
