どういうつもりだ

what are you thinking?

→ どういう
phrase Rare #22,155
what are you thinking? An accusatory or confrontational way to ask about someone's intentions or actions. It can also mean “what do you mean by that?” depending on context.
JA: こんなことをして、どういうつもりだ?
EN: What are you thinking, doing something like this?

どういうつもりだお前

What the hell do you think you're doing?

— オープン・ユア・アイズ (1997)

お前らどういうつもりだ

What the hell are you guys thinking?

— エリート・スクワッド ブラジル特殊部隊BOPE (2010)

どういうつもりだ

What are you trying to do?

— 自転車泥棒 (1948)

下さいやつ卵をどういうつもりだ

What are you thinking, giving that guy eggs?

— ファニーゲーム (1997)

どういうつもりだ番号収集家

What are you up to? Are you collecting numbers or something?

— 自転車泥棒 (1948)

あなたどういうつもりだ

What are you trying to do?

— レベッカ (1940)