SELECT		REPLACE( WebStatValue, '|', ' ' )	AS 'SearchString',
        	COUNT(*)                            AS 'Searches'
FROM		WebStat
WHERE		WebStatSite     = 'BagCo'
AND			WebStatType	    = 'Search'
AND     	DATE( WebStatTimestamp ) BETWEEN '{{{FromDate}}}' AND '{{{ToDate}}}'
GROUP BY	SearchString
ORDER BY	Searches DESC