Allow transitive query to be terminated by the WHERE clause(s)