YOU SAID:
I wanted to go to sleep but realized school exists
INTO JAPANESE
寝たいと思ったのに学校があることに気づいた
BACK INTO ENGLISH
I wanted to sleep but realized that there was a school
INTO JAPANESE
寝たかったけど学校があることに気付いた
BACK INTO ENGLISH
I wanted to sleep but realized that there was a school
Well done, yes, well done!