Let's first have a look at the structure of the Past Perfect Simple Passive in terms of the various grammatical moods (indicative, interrogative, imperative) and in terms of polarity (positive and negative).
|indicative||You had been invited|
|indicative contracted||They'd been transported|
|interrogative||Had we been called?|
|indicative||They had not been built|
|indicative contracted (1)||You'd not been contacted|
|indicative contracted (2)||I hadn't been promoted|
|interrogative||Had they been produced?|