SQL query to extract the CI user attributes from SOI