What is the difference between using select query and using query framework classes while retrieving records??