change query by lastweek to minute