Update advanced queries.sql