Can anyone explain me what exactly ad-hoc query is or where I can find the information?

Any help would be really appriciated.