(
(declare %kqp%tx_result_binding_0_0 (TupleType (ListType (TupleType (TupleType (OptionalType (DataType 'Int32)) (OptionalType (DataType 'Date32)) (OptionalType (DataType 'Int64)) (OptionalType (DataType 'Timestamp64)) (OptionalType (DataType 'Int64)) (DataType 'Int32)) (TupleType (OptionalType (DataType 'Int32)) (OptionalType (DataType 'Date32)) (OptionalType (DataType 'Int64)) (OptionalType (DataType 'Timestamp64)) (OptionalType (DataType 'Int64)) (DataType 'Int32))))))
(let $1 (DataType 'Date32))
(let $2 (OptionalType $1))
(let $3 (Int32 '0))
(let $4 (OptionalType (DataType 'Int64)))
(let $5 (OptionalType (DataType 'Timestamp64)))
(let $6 '('('"_logical_id" '3547) '('"_id" '"c53453fa-f558d75a-bbf564d2-98964e5e") '('"_partition_mode" '"single")))
(let $7 (DqPhyStage '() (lambda '() (block '(
  (let $36 (Uint64 '10000))
  (let $37 (Int32 '1))
  (let $38 '((Just (Int32 '"62")) $37))
  (let $39 '((Nothing $2) $3))
  (let $40 (RangeMultiply $36 (RangeCreate (AsList '($38 $38))) (RangeIntersect (RangeCreate (AsList '('((Just (SafeCast (Date '"15887") $1)) $37) $39))) (RangeCreate (AsList '($39 '((Just (SafeCast (Date '"15917") $1)) $37)))))))
  (let $41 (Nothing $4))
  (let $42 '($41 (Nothing $5) $41 $3))
  (return (ToStream (Just '((RangeFinalize (RangeMultiply $36 (RangeUnion (RangeMultiply $36 $40 (RangeCreate (AsList '($42 $42)))))))))))
))) $6))
(let $8 (DqCnValue (TDqOutput $7 '0)))
(let $9 (KqpPhysicalTx '($7) '($8) '() '('('"type" '"compute"))))
(let $10 '"%kqp%tx_result_binding_0_0")
(let $11 (DataType 'Int32))
(let $12 (TupleType (OptionalType $11) $2 $4 $5 $4 $11))
(let $13 (TupleType (ListType (TupleType $12 $12))))
(let $14 '"WindowClientHeight")
(let $15 '"WindowClientWidth")
(let $16 (DataType 'Int16))
(let $17 '($14 $16))
(let $18 '($15 $16))
(let $19 (DataType 'Uint64))
(let $20 (StructType $17 $18 '('_yql_agg_0 $19)))
(let $21 '('('"_logical_id" '3850) '('"_id" '"190d76fd-4c0570ec-e23ad91-6551aaa9") '('"_wide_channels" $20)))
(let $22 (DqPhyStage '() (lambda '() (block '(
  (let $43 (KqpTable '"/local/test_db/olap_yatests/clickbench/hits" '"72075186224037897:8" '"" '1))
  (let $44 '('"DontCountHits" '"IsRefresh" '"URLHash" $14 $15))
  (let $45 '('('"UsedKeyColumns" '('"CounterID" '"EventDate")) '('"ExpectedMaxRanges" '1) '('"PointPrefixLen" '1)))
  (let $46 (KqpBlockReadOlapTableRanges $43 %kqp%tx_result_binding_0_0 $44 '() $45 (lambda '($47) (block '(
    (let $48 '('eq '"IsRefresh" $3))
    (let $49 '('eq '"DontCountHits" $3))
    (let $50 '('eq '"URLHash" (Int64 '"2868770270353813622")))
    (let $51 (KqpOlapAnd $48 $49 $50))
    (let $52 '($14 $15))
    (return (TKqpOlapAgg (TKqpOlapExtractMembers (KqpOlapFilter $47 $51) $52) '('('_yql_agg_0 '"count" '"*")) $52))
  )))))
  (return (FromFlow $46))
))) $21))
(let $23 '('0 '1))
(let $24 (DqCnHashShuffle (TDqOutput $22 '0) $23 '0 '"HashV1"))
(let $25 (Uint64 '10))
(let $26 (StructType '('Count0 $19) $17 $18))
(let $27 '('('"_logical_id" '4336) '('"_id" '"cede4695-4243b7a5-ab66ea63-8df93ddb") '('"_wide_channels" $26)))
(let $28 (DqPhyStage '($24) (lambda '($53) (block '(
  (let $54 (AggBlockApplyState '"count_all" $19 $19))
  (let $55 (WideTopSort (ToFlow (WideFromBlocks (BlockMergeFinalizeHashed $53 $23 '('($54 '2))))) $25 '('('2 (Bool 'false)))))
  (let $56 (lambda '($57 $58 $59) $59 $57 $58))
  (return (FromFlow (WideMap $55 $56)))
))) $27))
(let $29 (DqCnMerge (TDqOutput $28 '0) '('('0 '"Desc"))))
(let $30 (DqPhyStage '($29) (lambda '($60) (FromFlow (NarrowMap (Take (ToFlow $60) $25) (lambda '($61 $62 $63) (AsStruct '('"PageViews" $61) '($14 $62) '($15 $63)))))) '('('"_logical_id" '4455) '('"_id" '"5e7ee4fb-6c33b358-df9bda0d-3043b4b7"))))
(let $31 '($22 $28 $30))
(let $32 '($15 $14 '"PageViews"))
(let $33 (DqCnResult (TDqOutput $30 '0) $32))
(let $34 (KqpTxResultBinding $13 '0 '0))
(let $35 (KqpPhysicalTx $31 '($33) '('($10 $34)) '('('"type" '"generic"))))
(return (KqpPhysicalQuery '($9 $35) '((KqpTxResultBinding (ListType (StructType '('"PageViews" $19) $17 $18)) '1 '0)) '('('"type" '"query"))))
)
