postgresql7.1 select (case when creation_user IS NULL then 'Anonymous user' else person__name(creation_user) end) as responder_name, creation_user as user_id, creation_date from acs_objects, survey_responses sr, survey_question_responses qr where qr.response_id = sr.response_id and qr.response_id = object_id and qr.question_id = :question_id and qr.choice_id = :choice_id