(
(let $1 (DataType 'Utf8))
(let $2 '('"SearchPhrase" $1))
(let $3 (DataType 'Uint64))
(let $4 (StructType $2 '('_yql_agg_0 $3) '('_yql_agg_1 $1)))
(let $5 '('('"_logical_id" '2058) '('"_id" '"c6dce31b-7a2d85ed-91f560c1-4cb964ac") '('"_wide_channels" $4)))
(let $6 (DqPhyStage '() (lambda '() (block '(
  (let $18 (KqpTable '"/local/test_db/olap_yatests/clickbench/hits" '"72075186224037897:8" '"" '1))
  (let $19 (KqpBlockReadOlapTableRanges $18 (Void) '('"SearchPhrase" '"URL") '() '() (lambda '($20) (block '(
    (let $21 '('_yql_agg_0 '"count" '"*"))
    (let $22 '('_yql_agg_1 'min '"URL"))
    (return (TKqpOlapAgg (KqpOlapFilter (KqpOlapFilter $20 (KqpOlapAnd '('neq '"SearchPhrase" (String '"")))) (KqpOlapAnd '('string_contains '"URL" (String '"google")))) '($21 $22) '('"SearchPhrase")))
  )))))
  (return (FromFlow $19))
))) $5))
(let $7 '('0))
(let $8 (DqCnHashShuffle (TDqOutput $6 '0) $7 '0 '"HashV1"))
(let $9 (Uint64 '10))
(let $10 (StructType '('Count0 $3) '('Min0 $1) $2))
(let $11 '('('"_logical_id" '2602) '('"_id" '"aa1f5183-18e11e05-5c14645f-da5a0bde") '('"_wide_channels" $10)))
(let $12 (DqPhyStage '($8) (lambda '($23) (block '(
  (let $24 (AggBlockApplyState '"count_all" $3 $3))
  (let $25 (AggBlockApplyState 'min $1 $1))
  (let $26 (WideTopSort (ToFlow (WideFromBlocks (BlockMergeFinalizeHashed $23 $7 '('($24 '1) '($25 '"2"))))) $9 '('('1 (Bool 'false)))))
  (let $27 (lambda '($28 $29 $30) $29 $30 $28))
  (return (FromFlow (WideMap $26 $27)))
))) $11))
(let $13 (DqCnMerge (TDqOutput $12 '0) '('('0 '"Desc"))))
(let $14 (DqPhyStage '($13) (lambda '($31) (FromFlow (NarrowMap (Take (ToFlow $31) $9) (lambda '($32 $33 $34) (AsStruct '('"SearchPhrase" $34) '('"c" $32) '('"column1" $33)))))) '('('"_logical_id" '2721) '('"_id" '"817cdede-1cb66901-e84dbd5d-cce585a2"))))
(let $15 '($6 $12 $14))
(let $16 '('"SearchPhrase" '"column1" '"c"))
(let $17 (DqCnResult (TDqOutput $14 '0) $16))
(return (KqpPhysicalQuery '((KqpPhysicalTx $15 '($17) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType $2 '('"c" $3) '('"column1" $1))) '0 '0)) '('('"type" '"query"))))
)
