CreateQuery uk_prices_aggs_view (children 3)
 Identifier uk_prices_aggs_view
 SelectWithUnionQuery (children 1)
  ExpressionList (children 1)
   SelectQuery (children 4)
    ExpressionList (children 1)
     Function toStartOfMonth (alias month) (children 1)
      ExpressionList (children 1)
       Identifier date
    ExpressionList (children 5)
     Identifier month
     Function minSimpleState (alias min_price) (children 1)
      ExpressionList (children 1)
       Identifier price
     Function maxSimpleState (alias max_price) (children 1)
      ExpressionList (children 1)
       Identifier price
     Function countState (alias volume) (children 1)
      ExpressionList (children 1)
       Identifier price
     Function avgState (alias avg_price) (children 1)
      ExpressionList (children 1)
       Identifier price
    TablesInSelectQuery (children 1)
     TablesInSelectQueryElement (children 1)
      TableExpression (children 1)
       TableIdentifier uk_price_paid
    ExpressionList (children 1)
     Identifier month
 ViewTargets
