samples for creating and querying a ticket