SQL and R code demonstrations