taxonomy().concept(ferc:RespondentLegalName).label("http://ferc.gov/form/2020-01-01/roles/label/F6Header").text Name of Respondent:

first(list([@ferc:RespondentLegalName @period=$currentDuration])) Duke Energy Kentucky, Inc.
taxonomy().concept(ferc:SubmissionType).label("http://ferc.gov/form/2020-01-01/roles/label/F6Header").text This report is:

(1) if missing({covered @concept=ferc:SubmissionType}) ☐ An Original']]> else if [@concept=ferc:SubmissionType @period=$currentDuration] == "O" ☑ An Original']]> else ☐ An Original']]> An Original

(2) if missing([covered @concept=ferc:SubmissionType @period=$currentDuration]) ☐ A Resubmission']]> else if [@concept=ferc:SubmissionType @period=$currentDuration] == "R" ☑ A Resubmission']]> else ☐ A Resubmission']]> A Resubmission
taxonomy().concept(ferc:ReportDate).label("http://ferc.gov/form/2020-01-01/roles/label/F6Header").text Date of Report:

first(list([@ferc:ReportDate @period=$currentDuration])) 04/26/2019
taxonomy().concept(ferc:ReportYearPeriod).label("http://ferc.gov/form/2020-01-01/roles/label/F6Header").text Year/Period of Report:

End of: first(list([@ferc:ReportYear @period=$currentDuration])) 2018 / first(list([@ferc:ReportPeriod @period=$currentDuration])) Q4
// adding a comment $data2 = list(for $i in range(49) list($i,none,none,none,none) ); $data = if count(list({covered @ferc:IncomeFromNoncarrierPropertyAxis=*})) > 0 list({covered @ferc:IncomeFromNoncarrierPropertyAxis=* {list( if list({@ferc:OrderNumber @unit=* @period=$currentDuration}).length > 0 first(list({@ferc:OrderNumber @unit=* @period=$currentDuration})) else 0, if exists({@ferc:NoncarrierPropertyDescription @unit@period=$currentDuration}) {@ferc:NoncarrierPropertyDescription @unit @period=$currentDuration} else none, if exists({@ferc:NoncarrierPropertyRevenue @unit @period=$currentDuration}) {@ferc:NoncarrierPropertyRevenue @unit @period=$currentDuration} else none, if exists({@ferc:NoncarrierPropertyExpense @unit @period=$currentDuration}) {@ferc:NoncarrierPropertyExpense @unit @period=$currentDuration} else none, none )}}) else $data2; $uniqueData = list(for $x in $data if $x == list(0,none,none,none,none) skip else $x ); for $row in $uniqueData.sort
taxonomy().concept(ferc:ScheduleIncomeFromNoncarrierPropertyAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F6ScheduleTitle").text Income from Noncarrier Property
taxonomy().concept(ferc:ScheduleIncomeFromNoncarrierPropertyAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F6Instructions").text
  1. State the revenues, expenses, and net income of the respondent during the year from each class of noncarrier property provided for in Account No. 620, Income from Noncarrier Property, in the USofA.
  2. If the income relates to only a part of the year, give particulars (details) in a footnote.
Line No. $headings = filter (taxonomy().concept(ferc:ScheduleIncomeFromNoncarrierPropertyAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "335 - Schedule - Income From Noncarrier Property") $heading = list(for $ref in $headings list($ref.part-by-name(ferc-part:Column).part-value, $ref.part-by-name(ferc-part:ColumnName).part-value, $ref.part-by-name(ferc-part:ElementName).part-value)) $heading_dict = dict(for $row in $heading list("("+$row[1]+")",list($row[2],taxonomy().concept(to-qname($row[3])))) ); for $row in $heading_dict.keys.sort
$heading_dict[$row][2].name.local-name
$heading_dict[$row][1] Nature of Payment
$row (a)
1 $row[2] Noncarrier Facilities $row[3] $3,983,643 $row[4] $1,231,456 $row[5] "gray-out"
50 taxonomy().concept(ferc:NoncarrierPropertyRevenue).label("http://ferc.gov/form/2020-01-01/roles/label/F6Total").text
Total
first(list([covered @concept=ferc:NoncarrierPropertyRevenue @period = $currentDuration])) $85,531,884 first(list([covered @concept=ferc:NoncarrierPropertyExpense @period = $currentDuration])) $21,938,231 first(list([covered @concept=ferc:NetIncomeLossFromNoncarrierProperty @period = $currentDuration])) $63,593,653‬