Appends a line to the result if the node itself does not return a result. Attention: There is no check if the column names from the node match the column names from…