if set('1-F').contains([covered @concept.local-name ='FormType']) if first(list([covered @ferc:UtilityPlantDataMajorNonmajor])) == "Major" true else false else true
taxonomy().concept(ferc:RespondentLegalName).label("http://ferc.gov/form/2020-01-01/roles/label/F1Header").text Name of Respondent:
[@ferc:RespondentLegalName @period=$currentDuration] Duke Energy Kentucky, Inc.
taxonomy().concept(ferc:SubmissionType).label("http://ferc.gov/form/2020-01-01/roles/label/F1Header").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/F1Header").text Date of Report:
[@ferc:ReportDate @period=$currentDuration] 04/26/2019
taxonomy().concept(ferc:ReportYearPeriod).label("http://ferc.gov/form/2020-01-01/roles/label/F1Header").text Year/Period of Report:
End of: [@ferc:ReportYear @period=$currentDuration] 2018 / [@ferc:ReportPeriod @period=$currentDuration] Q4
$data = navigate parent-child descendants from ferc:AccumulatedProvisionsForDepreciationAmortizationAndDepletionLineItems role "http://ferc.gov/form/2020-01-01/roles/Schedule/F1/ScheduleUtilityPlantAndAccumulatedProvisionsForDepreciation" returns list (target-name, preferred-label); $data-labels = list(for $row in $data $concept = taxonomy().concept($row[1]); $row_num = (filter $concept.references("http://ferc.gov/form/2020-01-01/roles/reference/formLocation") where ($item.part-by-name(ferc-part:Schedule).part-value == "200 - Schedule - Summary of Utility Plant and Accumulated Provisions for Depreciation, Amortization and Depletion" and $item.part-by-name(ferc-part:ValueType).part-value.string == "Label" and "http://ferc.gov/form/2020-01-01/roles/label/" + $item.part-by-name(ferc-part:ColumnName).part-value.string == $row[2].role.uri)).to-list; $current = if exists(first(list([covered @concept = $row[1] @period = $currentInstant]))) first(list([covered @concept = $row[1] @period = $currentInstant])) else none $current_electric = if exists(first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:ElectricUtilityMember @period = $currentInstant]))) first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:ElectricUtilityMember @period = $currentInstant])) else none $current_gas = if exists(first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:GasUtilityMember @period = $currentInstant]))) first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:GasUtilityMember @period = $currentInstant])) else none $current_other = if exists(first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:OtherUtilityMember @period = $currentInstant]))) first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:OtherUtilityMember @period = $currentInstant])) else none $current_other2 = if exists(first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:OtherUtility2Member @period = $currentInstant]))) first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:OtherUtility2Member @period = $currentInstant])) else none $current_other3 = if exists(first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:OtherUtility3Member @period = $currentInstant]))) first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:OtherUtility3Member @period = $currentInstant])) else none $current_common = if exists(first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:CommonUtilityMember @period = $currentInstant]))) first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:CommonUtilityMember @period = $currentInstant])) else none list($concept, $concept.label($row[2].role.uri).text, if ($row_num.part-by-name(ferc-part:Row)).length == 0 "" else ($row_num.part-by-name(ferc-part:Row))[1].part-value, $current, $current_electric, $current_gas, $current_other, $current_other2, $current_other3, $current_common )); for $rowl in $data-labels
taxonomy().concept(ferc:ScheduleSummaryOfUtilityPlantAndAccumulatedProvisionsForDepreciationAmortizationAndDepletionAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F1ScheduleTitle").text Gas Property And Capacity Leased From Others
taxonomy().concept(ferc:ScheduleSummaryOfUtilityPlantAndAccumulatedProvisionsForDepreciationAmortizationAndDepletionAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F1Instructions").text

Report in Column (c) the amount for electric function, in column (d) the amount for gas function, in column (e), (f), and (g) report other (specify) and in column (h) common function.

Line No. $headings = filter (taxonomy().concept(ferc:ScheduleSummaryOfUtilityPlantAndAccumulatedProvisionsForDepreciationAmortizationAndDepletionAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "200 - Schedule - Summary of Utility Plant and Accumulated Provisions for Depreciation, Amortization and Depletion") $headings = list(for $ref in $headings list($ref.part-by-name(ferc-part:Column).part-value, $ref.part-by-name(ferc-part:ColumnName).part-value)) $heading_dict = dict(for $row in $headings list("("+$row[1]+")",$row[2]) ); for $row in $heading_dict.keys.sort
$heading_dict[$row] Classification
$row (a)
$rowl[3] 1
$rowl[1].name.local-name
$rowl[2] if $rowl[1].is-abstract "title" else "" UTILITY PLANT
$rowl[4] if $rowl[1].is-abstract "gray-out" else "" $rowl[5] if $rowl[1].is-abstract "gray-out" else "" $rowl[6] if $rowl[1].is-abstract "gray-out" else "" $rowl[7] if $rowl[1].is-abstract "gray-out" else "" $rowl[8] if $rowl[1].is-abstract "gray-out" else "" $rowl[9] if $rowl[1].is-abstract "gray-out" else "" $rowl[10] if $rowl[1].is-abstract "gray-out" else ""