[verb (plain)] + ということ [i-adj] + ということ [na-adj] + (だ) + ということ [noun] + (だ) + ということ
ということ turns a whole statement into a noun: "the fact that", "that". It follows a plain-form sentence, and the result takes particles like any noun – を, が, は, に. A noun or な-adjective usually takes だ before it, never な: ×静かなということ.
These go beyond "the fact that".
A fact followed by ということは, then a conclusion followed by ということだ, says what one fact amounts to: "A means B". As a question, ということですか checks that you have understood. This use has its own point, ということだ.