Finished the assignments for MySQL queries