You asked:

is beijing a city

Yes. Beijing is a city.
Beijing
Beijing
Beijing