Implemented querying for available tickets