(
(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 '('"key" '"subkey" '"value"))
(let $11 (lambda '($27 $28 $29) (block '(
  (let $30 (DataType 'Double))
  (return (IfPresent (SafeCast $27 (OptionalType $30)) (lambda '($31) (block '(
    (let $32 '($30 '"" '1))
    (let $33 (CallableType '() '((DataType 'Bool)) $32))
    (let $34 (Udf '"Math.IsFinite" (Void) (VoidType) '"" $33 (VoidType) '"" '('('"strict"))))
    (return (Apply $34 $31))
  ))) (Bool 'false)))
))))
(let $12 (DataType 'String))
(let $13 (StructType '('"key" $12) '('"subkey" $12) '('"value" $12)))
(let $14 '('('"_logical_id" '1276) '('"_id" '"d1f2e590-cf10abb7-5ccbcea6-381c601b") '('"_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" '1368) '('"_id" '"7ff97696-a9f69efe-567d3447-8df57e69") '('"_wide_channels" $17)))
(let $19 (DqPhyStage '($16) (lambda '($35) (block '(
  (let $36 '('Many 'Hashed 'Compact))
  (let $37 (NarrowSqueezeToDict (ToFlow $35) (lambda '($38 $39 $40) $38) (lambda '($41 $42 $43) (AsStruct '('"key" $41) '('"subkey" $42) '('"value" $43))) $36))
  (return (FromFlow (WideSort (FlatMap $37 (lambda '($44) (block '(
    (let $45 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
    (let $46 (YtTable '"Input1" $3 $4 $45 '() (Void) (Void) '"/Root/plato"))
    (let $47 (YtReadTable! world $1 '((YtSection '((YtPath $46 $10 (Void) (Void) (Void))) '()))))
    (let $48 '('0 '0 '1 '1 '2 '2))
    (let $49 '('"key" '3 '"subkey" '4 '"value" '5))
    (return (MapJoinCore (WideFilter (DqReadWideWrap $47 '()) $11) $44 'Inner '('0) '('"key") $48 $49 '('"a.key") '('"b.key")))
  )))) '('('0 (Bool 'true))))))
))) $18))
(let $20 (DqCnMerge (TDqOutput $19 '0) '('('0 '"Asc"))))
(let $21 (DqPhyStage '($20) (lambda '($50) (FromFlow (NarrowMap (ToFlow $50) (lambda '($51 $52 $53 $54 $55 $56) (AsStruct '('"a.key" $51) '('"a.subkey" $52) '('"a.value" $53) '('"b.key" $54) '('"b.subkey" $55) '('"b.value" $56)))))) '('('"_logical_id" '1380) '('"_id" '"fb29b0e6-251a36c7-ffd22b5-c09fb428"))))
(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"))))
)
