Your options are:
John asked if he knew that they had lived for three years in Paris and
have been living in Brussels for two years now.
have been living/had been living
"If the proposition in the indirect speech is valid at the time of utterance, the backshift is optional." -- Quirk et. al
Student or Learner