Recent queries partial implementation