Examples of using "どうやってそれを知ったのですか?" in a sentence and their polish translations:
Skąd wiesz?
Skąd to wiesz?