Add query alter.