Wondering if anyone knows a SQL query to pull this information in the screen shot for all clients. Would like to create a grafana dashboard with this information

Wondering if anyone knows a SQL query to pull this information in the screen shot for all clients. Would like to create a grafana dashboard with this information
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.