Create investigate.sql