Bitdefender interview question

How can you optimize sql query