Query earliest record functionality, test place