Notes of SQL queries and BCS changes