Bitdefender Interview Question

How can you optimize sql query