updated record query builder example