separating queries