Software to sort historical data

First of all excuse me if my question sounds too simple to some of you. I have read through many threads but I could not find a straight answer.

I am looking for some a software that sort through historical data. For example the software could tell how many Thursdays in which the market had moved more than 500 pips and date of these Thursday.

Thanks in advance.