CS 186 Project 3 - Query Optimization