write + (and…) + while
kaite iruaidani
while; during — at some point within an interval
meaning: while writing
私が寝てるあいだに、誰かケーキ食べたでしょ。
watashi ga neteru aida ni, dareka keeki tabeta desho.
Somebody ate the cake while I was asleep, didn't they? casual
バスを待っているあいだに、いいアイデアを思いついた。
basu o matte iruaidani, ii aidea o omoitsuita.
I came up with a good idea while waiting for the bus. neutral