Explained SQL queries in tutorial