can handle query available tickets and reserve one ticket everytime