I don’t think it’s fair to compare a country to cities. Lisbon GDP/capita is almost $40k.
And to clarify, Beijing and Shanghai are not provinces, they are cities. They are two of the four mainland Chinese cities “promoted” to the province level politically, but they are cities. Basically it would be as if Washington DC was a state. The other two cities like this are Chongqing and Tianjin.
https://en.m.wikipedia.org/wiki/List_of_Chinese_administrati...