select sq.section_id, sec.survey_id from survey_questions sq, survey_sections sec where sq.question_id = :question_id and sq.section_id = sec.section_id delete from survey_question_responses where question_id = :question_id delete from survey_choice_scores where choice_id in (select choice_id from survey_question_choices where question_id = :question_id) delete from survey_question_choices where question_id = :question_id delete from survey_questions where question_id = :question_id