(
(let $1 (DataType 'String))
(let $2 '('"key"))
(let $3 (DqPhyStage '() (lambda '() (block '(
  (let $7 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $8 (Bool 'true))
  (let $9 '($8 $8 $8))
  (let $10 '('"key" '"subkey" '"value"))
  (let $11 '($1 $1 $1))
  (let $12 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $7) '('SortDirections $9) '('SortMembers $10) '('SortedBy $10) '('SortedByTypes $11)))
  (let $13 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $14 (YtStat '('Id '"Input") '('RecordsCount '"6") '('DataSize '"252") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $15 (YtTable '"Input" $12 $13 $14 '() (Void) (Void) '"/Root/plato"))
  (let $16 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $15 $2 (Void) (Void))) '('('"unordered"))))))
  (return (FromFlow (NarrowMap (WideFilter (DqReadWideWrap $16 '()) (lambda '($17) (block '(
    (let $18 (String '"323"))
    (let $19 (Substring $18 (Uint32 '1) (Nothing (OptionalType (DataType 'Uint32)))))
    (return (And (>= $17 (Concat (String '0) $19)) (<= $17 $18)))
  )))) (lambda '($20) (AsStruct '('"key" $20))))))
))) '('('"_logical_id" '851) '('"_id" '"4aa9122c-46421c34-907a4efb-20257050"))))
(let $4 (DqCnUnionAll (TDqOutput $3 '0)))
(let $5 (DqPhyStage '($4) (lambda '($21) $21) '('('"_logical_id" '894) '('"_id" '"a6bc2eec-cf0dba20-3f7f848b-2e602327"))))
(let $6 (DqCnResult (TDqOutput $5 '0) $2))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($3 $5) '($6) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"key" $1))) '0 '0)) '('('"type" '"query"))))
)
