getting subsections from sections in one sql