Response documents

How to show in embedded view only those responses, which are related with current opened document, in which embededded view is show? I think this is must be implemented in SELECT statement of the view.