cli option for listing query based on user or query status