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
$data = navigate parent-child descendants from ferc:ComparativeBalanceSheetLineItems role "http://ferc.gov/form/2020-01-01/roles/Schedule/F6/ComparativeBalanceSheet" returns list (target-name, preferred-label, navigation-depth); $data-labels = list(for $row in $data $concept = taxonomy().concept($row[1]); $depth = $row[3]; $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 == "110 - Schedule - Comparative Balance Sheet" and $item.part-by-name(ferc-part:ValueType).part-value.string == "Label")).to-list; $page = $concept.label("http://ferc.gov/form/2020-01-01/roles/label/F6PageRange").text; $current = if list([covered @concept = $row[1] @period = $currentInstant]).length > 0 first(list([covered @concept = $row[1] @period = $currentInstant])) else none $prior = if list([covered @concept = $row[1] @period = $priorInstant]).length > 0 first(list([covered @concept = $row[1] @period = $priorInstant])) else none list($concept, $concept.label($row[2].role.uri).text, //Title of Account if exists($page) $page else "", //Page Ref if ($row_num.part-by-name(ferc-part:Row)).length == 0 "" else ($row_num.part-by-name(ferc-part:Row))[1].part-value, $current, $prior, $depth )); for $rowl in $data-labels
taxonomy().concept(ferc:ScheduleComparativeBalanceSheetAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F6ScheduleTitle").text Identification
taxonomy().concept(ferc:ScheduleComparativeBalanceSheetAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F6Instructions").text
  1. For instructions covering this schedule, see the text and instructions pertaining to Balance Sheet Accounts in the U.S. of A. The entries in this balance sheet should be consistent with those in the supporting schedules on the pages indicated.
  2. On line 30, include depreciation applicable to investment in system property.
Line No. $headings = filter (taxonomy().concept(ferc:ScheduleComparativeBalanceSheetAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "110 - Schedule - Comparative Balance Sheet") $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] Title of Account
$row (a)
if $rowl[1].is-abstract "" else $rowl[4] 1
$rowl[1].name.local-name
$rowl[2] if $rowl[1].is-abstract "sch-title" else "" "padding-" + $rowl[7].string UTILITY PLANT
$rowl[3] $rowl[5] if $rowl[1].is-abstract "gray-out" else "" $rowl[6] if $rowl[1].is-abstract "gray-out" else ""