(
(let $1 '('"SearchPhrase" (DataType 'Utf8)))
(let $2 (DataType 'Uint64))
(let $3 '('('"_logical_id" '1768) '('"_id" '"cd229a61-d1978ccb-cdadbc1b-9cb1a95d") '('"_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" '"d3062d43-69341522-41593083-3fe5d15d") '('"_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" '"2e42e950-163e9ea7-ae5540d6-6555cd0a"))))
(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"))))
)
