Lawrence Livermore National Laboratory Interview Question

What steps do you take to optimize queries?