(
(let $1 '('"SearchPhrase" (DataType 'Utf8)))
(let $2 (DataType 'Uint64))
(let $3 '('('"_logical_id" '1768) '('"_id" '"e81c56e-fd891c06-c9344d12-a482949e") '('"_wide_channels" (StructType $1 '('_yql_agg_0 $2)))))
(let $4 (DqPhyStage '() (lambda '() (block '(
  (let $14 (KqpTable '"/local/test_db/olap_yatests/clickbench/hits" '"72075186224037897:8" '"" '1))
  (let $15 '('"SearchPhrase"))
  (let $16 (KqpBlockReadOlapTableRanges $14 (Void) $15 '() '() (lambda '($17) (block '(
    (let $18 '('neq '"SearchPhrase" (String '"")))
    (return (TKqpOlapAgg (KqpOlapFilter $17 $18) '('('_yql_agg_0 '"count" '"*")) $15))
  )))))
  (return (FromFlow $16))
))) $3))
(let $5 '('0))
(let $6 (DqCnHashShuffle (TDqOutput $4 '0) $5 '0 '"HashV1"))
(let $7 (Uint64 '10))
(let $8 '('('"_logical_id" '2221) '('"_id" '"5a593c01-95e5db76-804e0c5c-50218c01") '('"_wide_channels" (StructType '('Count0 $2) $1))))
(let $9 (DqPhyStage '($6) (lambda '($19) (block '(
  (let $20 (AggBlockApplyState '"count_all" $2 $2))
  (let $21 (WideTopSort (ToFlow (WideFromBlocks (BlockMergeFinalizeHashed $19 $5 '('($20 '1))))) $7 '('('1 (Bool 'false)))))
  (let $22 (lambda '($23 $24) $24 $23))
  (return (FromFlow (WideMap $21 $22)))
))) $8))
(let $10 (DqCnMerge (TDqOutput $9 '0) '('('0 '"Desc"))))
(let $11 (DqPhyStage '($10) (lambda '($25) (FromFlow (NarrowMap (Take (ToFlow $25) $7) (lambda '($26 $27) (AsStruct '('"SearchPhrase" $27) '('"c" $26)))))) '('('"_logical_id" '2336) '('"_id" '"971c6d35-ed10758a-c0dff0af-34794ded"))))
(let $12 '($4 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '('"SearchPhrase" '"c")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType $1 '('"c" $2))) '0 '0)) '('('"type" '"query"))))
)
