SQL Queries for Database Modelling