what he was doing
O Tom pensou que ninguém sabia o que ele estava fazendo.
Tom thought that nobody knew what he was doing.
O Tom não percebeu que ele não deveria estar fazendo o que ele estava fazendo.
Tom didn't realize that he shouldn't have been doing what he was doing.
What was he doing there?
O Tom queria terminar o que ele estava fazendo.
Tom wanted to finish what he was doing.
O Tom achou que ninguém sabia o que ele estava fazendo.
Tom thought that nobody knew what he was doing.