Update abstract query generator so it prefixes attributes and tables with nested names