Westwing Group SE Interview Question

How do you optimize a slow running SQL query?