Create sql script for test results