SQL challenge almost complete.