select curriculum_id as curriculum_ids, name as curriculum_names from cu_curriculums where package_id = :package_id order by sort_key select element_id from cu_elements_enabled where curriculum_id = :curriculum_id and package_id = :package_id select count(*) as curriculum_count from cu_curriculums where package_id = :package_id