You asked:

shanghai population 2012

Sorry, I don't yet have an answer to that question.