If your family has no residential property in Beijing, and there are no housing loan records or outstanding housing loans nationwide, your purchase in Beijing will be counted as the first set.
The provident fund loan is to look at the residential property in Beijing under your name. If there is no room in Beijing, it is the first set. If there are outstanding provident fund loans or discount loans nationwide, they must be settled before they can be used again.