Simple framework for debugging query execution