(
(declare %kqp%tx_result_binding_0_0 (OptionalType (StructType '('"sk" (DataType 'String)))))
(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 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $6 (YtTable '"Input" $3 $4 $5 '() (Void) (Void) '"/Root/plato"))
(let $7 (Uint64 '1))
(let $8 (DataType 'String))
(let $9 (StructType '('"sk" $8)))
(let $10 '('('"_logical_id" '1624) '('"_id" '"9ed71161-9b45d402-83851685-7779bf95") '('"_wide_channels" $9)))
(let $11 (DqPhyStage '() (lambda '() (block '(
  (let $25 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"subkey") (Void) (Void))) '()))))
  (let $26 (WideFilter (DqReadWideWrap $25 '()) (lambda '($27 $28) (== $27 (String '"075"))) $7))
  (return (FromFlow (WideMap $26 (lambda '($29 $30) $30))))
))) $10))
(let $12 (DqCnUnionAll (TDqOutput $11 '0)))
(let $13 (OptionalType $9))
(let $14 (Bool 'false))
(let $15 (DqPhyStage '($12) (lambda '($31) (FromFlow (Condense (NarrowMap (Take (ToFlow $31) $7) (lambda '($32) (AsStruct '('"sk" $32)))) (Nothing $13) (lambda '($33 $34) $14) (lambda '($35 $36) (Just $35))))) '('('"_logical_id" '1712) '('"_id" '"350947f8-627a349a-2c094d43-242a40c8"))))
(let $16 (DqCnValue (TDqOutput $15 '0)))
(let $17 (KqpPhysicalTx '($11 $15) '($16) '() '('('"type" '"compute"))))
(let $18 '"%kqp%tx_result_binding_0_0")
(let $19 (DqPhyStage '() (lambda '() (block '(
  (let $37 '('"key" '"subkey" '"value"))
  (let $38 (YtReadTable! world $1 '((YtSection '((YtPath $6 $37 (Void) (Void))) '()))))
  (return (FromFlow (NarrowMap (WideFilter (DqReadWideWrap $38 '()) (lambda '($39 $40 $41) (Coalesce (== $39 (Member %kqp%tx_result_binding_0_0 '"sk")) $14))) (lambda '($42 $43 $44) (AsStruct '('"key" $42) '('"subkey" $43) '('"value" $44))))))
))) '('('"_logical_id" '1886) '('"_id" '"ed095bcb-79deeceb-5f5a7977-1e9fa69d"))))
(let $20 (DqCnUnionAll (TDqOutput $19 '0)))
(let $21 (DqPhyStage '($20) (lambda '($45) $45) '('('"_logical_id" '2350) '('"_id" '"6526a090-279255b3-2b773bef-51a0549b"))))
(let $22 (DqCnResult (TDqOutput $21 '0) '()))
(let $23 (KqpTxResultBinding $13 '0 '0))
(let $24 (KqpPhysicalTx '($19 $21) '($22) '('($18 $23)) '('('"type" '"generic"))))
(return (KqpPhysicalQuery '($17 $24) '((KqpTxResultBinding (ListType (StructType '('"key" $8) '('"subkey" $8) '('"value" $8))) '1 '0)) '('('"type" '"query"))))
)
