taxonomy().concept(ferc:RespondentLegalName).label("http://ferc.gov/form/2020-01-01/roles/label/F2Header").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/F2Header").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/F2Header").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/F2Header").text Year/Period of Report:

End of: [@ferc:ReportYear @period=$currentDuration] 2018 / [@ferc:ReportPeriod @period=$currentDuration] Q4
$dataHead = navigate parent-child descendants from ferc:PlantInServiceAndAccumulatedProvisionForDepreciationByFunctionAbstract stop when $relationship.preferred-label == "http://ferc.gov/form/2020-01-01/roles/label/F2QRollforwardHeader" role "http://ferc.gov/form/2020-01-01/roles/Schedule/F2Q/GasPlantInServiceAndAccumulatedProvisionForDepreciationByFunction" returns list (target-name, preferred-label, order); $rollforwardSection = list(for $x in $dataHead $abstractConcept = taxonomy().concept($x[1]); $is-heading = if ($x[2].role.uri == "http://ferc.gov/form/2020-01-01/roles/label/F2GasPlantinServiceandAccumulatedProvisionforDepreciationbyFunction") true else false; $abstractLabel = list($is-heading, $abstractConcept.label($x[2].role.uri).text); $data = navigate parent-child children from $x[1] role "http://ferc.gov/form/2020-01-01/roles/Schedule/F2Q/GasPlantInServiceAndAccumulatedProvisionForDepreciationByFunction" returns list(target, preferred-label, order); $dataRow1 = list(for $y in $data if list([covered @concept = $y[1].name @period = $currentInstant]).length > 0 first(list([covered @concept = $y[1].name @period = $currentInstant])) else none ); $abstractLabel + $dataRow1 ) for $rowl in $rollforwardSection
taxonomy().concept(ferc:ScheduleGasPlantInServiceAndAccumulatedProvisionForDepreciationByFunctionAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F2QScheduleTitle").text Gas Plant in Service and Accumulated Provision for Depreciation by Function
taxonomy().concept(ferc:ScheduleGasPlantInServiceAndAccumulatedProvisionForDepreciationByFunctionAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F2Instructions").text
  1. Report below the original cost of plant in service by function. In addition to Account 101, include Account 102, and Account 106. Report in column (b) the original cost of plant in service and in column(c) the accumulated provision for depreciation and amortization by function.
Line No. $headings = filter (taxonomy().concept(ferc:ScheduleGasPlantInServiceAndAccumulatedProvisionForDepreciationByFunctionAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "F2Q - 210 - Schedule - Gas Plant in Service and Accumulated Provision for Depreciation by Function") $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] Account
$row (a)
1 1 $rowl[2] $rowl[3] if $rowl[1] "gray-out" else "" $rowl[4] if $rowl[1] "gray-out" else ""