Remove redundant newlines
Return query results immediately after running query if available