Is this what you need:
SELECT TOP 3000
*
FROM
CI_SystemObjects
WHERE
si_kind = 'Connection' AND
si_parent_folder = 41 AND
si_authen_method != 'server-token'
ORDER BY
si_name
Taken from:
http://www.businessobjectstips.com/tips/query-builder/bo-query-builder-active-user-list/