How the public sector uses data to cut A&E waiting times and predict crime