integrated AS in query builder