Pergunta de entrevista da empresa Google

How would you optimize a database query? How would you evaluate the performance of a machine learning algorithm?