Advanced SQL added to