Examples of using "専攻は何でしたか?" in a sentence and their german translations:
Was war dein Hauptfach?
Was war Ihr Hauptfach an der Universität?