add ticket query