avoid id naming collisions on query statements
extract method refactoring