Filtering sentences by relation between instances