SQL Cookbooks for accessing MIMIC-2 database