Venn Technology interview question

How to prepare a Batch Class Query?