select 1 from surveys where survey_id = :survey_id select question_id from survey_questions where section_id = :section_id and active_p = 't' order by sort_order select section_id from survey_sections where survey_id=:survey_id