I was executing the following query as a Query as well as a chart but I am greeted with differrent results. I am not sure why like this ?

Query : AND clause

Project = "xyz"
and State in ('Validated', 'closed')
and history.action_timestamp between {ts'2008-04-18-00:00:00'} and {ts'2008-04-24-23:59.59'}

For Query, I am only displaying Defect Id's and I only see 7 records.

For distribution chart, Vertical Axix (y), is defect Id and Function is COUNT. I am getting the count as 38 which is wrong. What could be the wrong here ?

Reason to do this: To find the defects that are closed in this week.

Can someone help me why I am having differrent results for the same query ?