(
(declare %kqp%tx_result_binding_0_0 (OptionalType (StructType '('Some0 (StructType '('"key" (DataType 'String)) '('"subkey" (DataType 'String)) '('"value" (DataType 'String)))))))
(let $1 (Bool 'false))
(let $2 (DataType 'String))
(let $3 (StructType '('"key" $2) '('"subkey" $2) '('"value" $2)))
(let $4 '('('"_logical_id" '1377) '('"_id" '"7e8b6f56-54a69ba-d5556557-e06ff860") '('"_wide_channels" (StructType '('_yql_agg_0 $3)))))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $17 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $18 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $17)))
  (let $19 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $20 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $21 (YtTable '"Input" $18 $19 $20 '() (Void) (Void) '"/Root/plato"))
  (let $22 '('"key" '"subkey" '"value"))
  (let $23 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $21 $22 (Void) (Void))) '()))))
  (let $24 (lambda '($27 $28 $29) $27 $28 $29))
  (let $25 (lambda '($36 $37 $38 $39 $40 $41) $39 $40 $41))
  (let $26 (WideCondense1 (DqReadWideWrap $23 '()) $24 (lambda '($30 $31 $32 $33 $34 $35) $1) $25))
  (return (FromFlow (WideMap $26 (lambda '($42 $43 $44) (AsStruct '('"key" $42) '('"subkey" $43) '('"value" $44))))))
))) $4))
(let $6 (DqCnUnionAll (TDqOutput $5 '0)))
(let $7 (OptionalType (StructType '('Some0 $3))))
(let $8 (DqPhyStage '($6) (lambda '($45) (block '(
  (let $46 (lambda '($49) (Member $49 '"key") (Member $49 '"subkey") (Member $49 '"value")))
  (let $47 (lambda '($54 $55 $56 $57) $55 $56 $57))
  (let $48 (WideCondense1 (ToFlow $45) $46 (lambda '($50 $51 $52 $53) $1) $47))
  (return (FromFlow (Condense (NarrowMap (Take $48 (Uint64 '1)) (lambda '($58 $59 $60) (block '(
    (let $61 (AsStruct '('"key" $58) '('"subkey" $59) '('"value" $60)))
    (return (AsStruct '('Some0 $61)))
  )))) (Nothing $7) (lambda '($62 $63) $1) (lambda '($64 $65) (Just $64)))))
))) '('('"_logical_id" '2052) '('"_id" '"7e240d55-f8d9c4e0-b2e07ef4-3334ae9f"))))
(let $9 (DqCnValue (TDqOutput $8 '0)))
(let $10 (KqpPhysicalTx '($5 $8) '($9) '() '('('"type" '"compute"))))
(let $11 '"%kqp%tx_result_binding_0_0")
(let $12 '('('"_logical_id" '2148) '('"_id" '"2dc7cf86-e0c35eee-a19dd2fb-b3aaf012") '('"_partition_mode" '"single")))
(let $13 (DqPhyStage '() (lambda '() (Iterator (AsList (Unwrap (Member %kqp%tx_result_binding_0_0 'Some0))))) $12))
(let $14 (DqCnResult (TDqOutput $13 '0) '()))
(let $15 (KqpTxResultBinding $7 '0 '0))
(let $16 (KqpPhysicalTx '($13) '($14) '('($11 $15)) '('('"type" '"generic"))))
(return (KqpPhysicalQuery '($10 $16) '((KqpTxResultBinding (ListType $3) '1 '0)) '('('"type" '"query"))))
)
