Added sql for test case