lets user pass in 'by' in the queue find by attribute command