internal test case with complex query now running