get recent races query.