split query to la and phx queries