Notes and code for Stanford SQL class