query updated to show paragraph in correct sequence