Print Out the Query Statement