(
(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 '('RecordsCount '"4"))
(let $6 '('DataSize '"166"))
(let $7 '('ChunkCount '1))
(let $8 '('ModifyTime '0))
(let $9 '('Revision '0))
(let $10 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
(let $11 (YtTable '"Input1" $3 $4 $10 '() (Void) (Void) '"/Root/plato"))
(let $12 '('"key" '"subkey" '"value"))
(let $13 (String '"700"))
(let $14 (Uint64 '10))
(let $15 (DataType 'String))
(let $16 '('"key" $15))
(let $17 (StructType $16 '('"subkey" $15) '('"value" $15)))
(let $18 '('"_wide_channels" $17))
(let $19 '('('"_logical_id" '1846) '('"_id" '"420be92b-a32968c0-b361b13e-977dc1c9") $18))
(let $20 (DqPhyStage '() (lambda '() (block '(
  (let $44 (YtReadTable! world $1 '((YtSection '((YtPath $11 $12 (Void) (Void))) '()))))
  (return (FromFlow (WideFilter (DqReadWideWrap $44 '()) (lambda '($45 $46 $47) (< $45 $13)) $14)))
))) $19))
(let $21 (DqCnUnionAll (TDqOutput $20 '0)))
(let $22 (lambda '($49 $50 $51) (AsStruct '('"key" $49) '('"subkey" $50) '('"value" $51))))
(let $23 (DqPhyStage '($21) (lambda '($48) (FromFlow (NarrowMap (Take (ToFlow $48) $14) $22))) '('('"_logical_id" '1859) '('"_id" '"a5081fdd-36ba3d16-2225bac5-9e7e21a4"))))
(let $24 (DqCnResult (TDqOutput $23 '0) '()))
(let $25 '('('"type" '"generic")))
(let $26 (KqpPhysicalTx '($20 $23) '($24) '() $25))
(let $27 '('"key"))
(let $28 '('('"_logical_id" '2207) '('"_id" '"7c835aa4-cf09f86b-cbd5c1bc-61602bad") '('"_wide_channels" (StructType $16))))
(let $29 (DqPhyStage '() (lambda '() (block '(
  (let $52 (YtReadTable! world $1 '((YtSection '((YtPath $11 $27 (Void) (Void))) '()))))
  (return (FromFlow (WideFilter (DqReadWideWrap $52 '()) (lambda '($53) (< $53 $13)) $14)))
))) $28))
(let $30 '('('"_logical_id" '2122) '('"_id" '"b0642a92-b16a3919-758418c0-1db4cfeb") $18))
(let $31 (DqPhyStage '() (lambda '() (block '(
  (let $54 (YtStat '('Id '"Input2") $5 $6 $7 $8 $9))
  (let $55 (YtTable '"Input2" $3 $4 $54 '() (Void) (Void) '"/Root/plato"))
  (let $56 (YtReadTable! world $1 '((YtSection '((YtPath $55 $12 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $56 '())))
))) $30))
(let $32 (DqCnUnionAll (TDqOutput $29 '0)))
(let $33 (DqCnBroadcast (TDqOutput $31 '0)))
(let $34 '('('"_logical_id" '2422) '('"_id" '"b3c187e9-1a4fa86a-909be1e0-7bbe835c") $18))
(let $35 (DqPhyStage '($32 $33) (lambda '($57 $58) (block '(
  (let $59 '('Many 'Hashed 'Compact))
  (let $60 (NarrowSqueezeToDict (ToFlow $58) (lambda '($61 $62 $63) $61) $22 $59))
  (return (FromFlow (WideSort (FlatMap $60 (lambda '($64) (block '(
    (let $65 '('"subkey" '1 '"value" '2))
    (return (MapJoinCore (Take (ToFlow $57) $14) $64 'Inner '('0) $27 '('0 '0) $65 '('"a.key") '('"b.key")))
  )))) '('('0 (Bool 'true))))))
))) $34))
(let $36 (DqCnMerge (TDqOutput $35 '0) '('('0 '"Asc"))))
(let $37 (DqPhyStage '($36) (lambda '($66) (FromFlow (NarrowMap (ToFlow $66) $22))) '('('"_logical_id" '2434) '('"_id" '"3a44b334-350a17a0-50246a5a-33dfafe"))))
(let $38 '($29 $31 $35 $37))
(let $39 (DqCnResult (TDqOutput $37 '0) $12))
(let $40 (KqpPhysicalTx $38 '($39) '() $25))
(let $41 (ListType $17))
(let $42 (KqpTxResultBinding $41 '0 '0))
(let $43 (KqpTxResultBinding $41 '1 '0))
(return (KqpPhysicalQuery '($26 $40) '($42 $43) '('('"type" '"query"))))
)
