copilott sql aggregate functions - Search