(
(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) '('HasRLS '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 '('"key" '"subkey" '"value"))
(let $11 (lambda '($27 $28 $29) (> (AssumeStrict (Unwrap (SafeCast $27 (OptionalType (DataType 'Int32))))) (Int32 '"100"))))
(let $12 (DataType 'String))
(let $13 (StructType '('"key" $12) '('"subkey" $12) '('"value" $12)))
(let $14 '('('"_logical_id" '1229) '('"_id" '"84c67bd2-9b47354d-5adae551-fe201773") '('"_wide_channels" $13)))
(let $15 (DqPhyStage '() (lambda '() (block '(
  (let $24 (YtStat '('Id '"Input2") $5 $6 $7 $8 $9))
  (let $25 (YtTable '"Input2" $3 $4 $24 '() (Void) (Void) '"/Root/plato"))
  (let $26 (YtReadTable! world $1 '((YtSection '((YtPath $25 $10 (Void) (Void) (Void))) '()))))
  (return (FromFlow (WideFilter (DqReadWideWrap $26 '()) $11)))
))) $14))
(let $16 (DqCnBroadcast (TDqOutput $15 '0)))
(let $17 (StructType '('"a.key" $12) '('"a.subkey" $12) '('"a.value" $12) '('"b.key" $12) '('"b.subkey" $12) '('"b.value" $12)))
(let $18 '('('"_logical_id" '1325) '('"_id" '"774567e0-6516e4eb-be6986e1-6bc111b5") '('"_wide_channels" $17)))
(let $19 (DqPhyStage '($16) (lambda '($30) (block '(
  (let $31 '('Many 'Hashed 'Compact))
  (let $32 (NarrowSqueezeToDict (ToFlow $30) (lambda '($33 $34 $35) $33) (lambda '($36 $37 $38) (AsStruct '('"key" $36) '('"subkey" $37) '('"value" $38))) $31))
  (return (FromFlow (WideSort (FlatMap $32 (lambda '($39) (block '(
    (let $40 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
    (let $41 (YtTable '"Input1" $3 $4 $40 '() (Void) (Void) '"/Root/plato"))
    (let $42 (YtReadTable! world $1 '((YtSection '((YtPath $41 $10 (Void) (Void) (Void))) '()))))
    (let $43 '('0 '0 '1 '1 '2 '2))
    (let $44 '('"key" '3 '"subkey" '4 '"value" '5))
    (return (MapJoinCore (WideFilter (DqReadWideWrap $42 '()) $11) $39 'Inner '('0) '('"key") $43 $44 '('"a.key") '('"b.key")))
  )))) '('('0 (Bool 'true))))))
))) $18))
(let $20 (DqCnMerge (TDqOutput $19 '0) '('('0 '"Asc"))))
(let $21 (DqPhyStage '($20) (lambda '($45) (FromFlow (NarrowMap (ToFlow $45) (lambda '($46 $47 $48 $49 $50 $51) (AsStruct '('"a.key" $46) '('"a.subkey" $47) '('"a.value" $48) '('"b.key" $49) '('"b.subkey" $50) '('"b.value" $51)))))) '('('"_logical_id" '1337) '('"_id" '"477bb6c2-132cf6d0-f256db37-cdf9f7db"))))
(let $22 '($15 $19 $21))
(let $23 (DqCnResult (TDqOutput $21 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $22 '($23) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $17) '0 '0)) '('('"type" '"query"))))
)
