Go to bottom of the query, and filter out what you want. By default you will get all defined privileges set in the system.
You might need to update the filter for Users and Groups - I've tested it only in environments with AD, AAD, and WEBCON users and groups.
Complete SQL Query for article on checking privileges in WEBCON at blog.lumenn.pl
Tested and created on WEBCON 2023.1.2.99.