with data as ( select distinct userReportGroup from tbl_SYS_SavedReports with (nolock) where ownerId = and ownerType = and userId = and nullif( userReportGroup, '' ) is not null ) #forJSON( 'data', attributes.datastore, 'userReportGroup' )#