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
$dataHead = navigate parent-child descendants from ferc:AccruedDepreciationUndividedJointInterestPropertyLineItems stop when $relationship.preferred-label == "http://ferc.gov/form/2020-01-01/roles/label/F6RollforwardHeader" role "http://ferc.gov/form/2020-01-01/roles/Schedule/F6/AccruedDepreciationUndividedJointInterestProperty" where ($relationship.target-name != ferc:OrderNumber and $relationship.target-name != ferc:PlantName) returns list (target, preferred-label, order); $pipelinesList = set([covered @ferc:NameOfUndividedJointInterestPipelineAxis = *].dimensions-typed().values); $piplinesUnique = if ($pipelinesList).to-list.length > 0 sum($pipelinesList).to-list else list("Enter Pipeline Name:"); $allData = list( $rollforwardSection = list(for $pipeline in $piplinesUnique $pipelineName = if list({covered @ferc:PlantName @ferc:NameOfUndividedJointInterestPipelineAxis=$pipeline}).length > 0 first(list({covered @ferc:PlantName @ferc:NameOfUndividedJointInterestPipelineAxis=$pipeline})) else $pipeline $pipelineData = list(for $x in $dataHead $abstractConcept = $x[1]; $data = navigate parent-child children from $x[1] role "http://ferc.gov/form/2020-01-01/roles/Schedule/F6/AccruedDepreciationUndividedJointInterestProperty" returns list(target, preferred-label, order); $row_num = (filter $abstractConcept.references("http://ferc.gov/form/2020-01-01/roles/reference/formLocation") where ($item.part-by-name(ferc-part:Schedule).part-value == "217 - Schedule - Accrued Depreciation - Undivided Joint Interest Property" and $item.part-by-name(ferc-part:ValueType).part-value.string == "Label")).to-list; $row_number = list(if ($row_num.part-by-name(ferc-part:Row)).length == 0 "" else ($row_num.part-by-name(ferc-part:Row))[1].part-value ); $abstractLabel = list($row_number[1], $abstractConcept.label($x[2].role.uri).text); $dataRow1 = list( for $y in $data $conceptPeriod = $y[1].period-type; if $conceptPeriod == "instant" if $y[2].role.uri == "http://ferc.gov/form/2020-01-01/roles/label/F6BeginningBalance" if exists([covered @concept = $y[1].name @unit = * @period = $priorInstant @ferc:NameOfUndividedJointInterestPipelineAxis = $pipeline]) first(list([covered @concept = $y[1].name @unit = * @period = $priorInstant @ferc:NameOfUndividedJointInterestPipelineAxis = $pipeline])) else none else if exists([covered @concept = $y[1].name @unit = * @period = $currentInstant @ferc:NameOfUndividedJointInterestPipelineAxis = $pipeline]) first(list([covered @concept = $y[1].name @unit = * @period = $currentInstant @ferc:NameOfUndividedJointInterestPipelineAxis = $pipeline])) else none else if exists([covered @concept = $y[1].name @unit = * @period = $currentDuration @ferc:NameOfUndividedJointInterestPipelineAxis = $pipeline]) first(list([covered @concept = $y[1].name @unit = * @period = $currentDuration @ferc:NameOfUndividedJointInterestPipelineAxis = $pipeline])) else none); $abstractLabel + $dataRow1); list(list("PIPE LINE NAME",$pipelineName,none,none,none,none,none,none)) + $pipelineData ); $rollforwardSection ); for $pipelines in $allData for $pipeline in $pipelines for $rowl in $pipeline
taxonomy().concept(ferc:ScheduleAccruedDepreciationUndividedJointInterestPropertyAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F6ScheduleTitle").text Accrued Depreciation - Undivided Joint Interest Property
taxonomy().concept(ferc:ScheduleAccruedDepreciationUndividedJointInterestPropertyAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F6Instructions").text
  1. On schedule 217, give an analysis of changes during the year in Account No. 31, Accrued Depreciation - Carrier Property, by carrier property accounts for property owned as part of an undivided joint interest pipeline. If the respondent owns an interest in multiple undivided joint interest pipelines, prepare and submit a separate schedule 217 for each undivided joint interest pipeline in which it has an interest. If multiple schedules 217 are submitted, number all schedules subsequent to the first with a number and letter page designator (For example ... 217, 217a, 217b, etc...).
  2. In column (c), enter debits by carrier property account to Account No. 540, Depreciation and Amortization, and 541, Depreciation Expense for Asset Retirement Costs, during the year.
  3. In column (d), enter all debits to Account No. 31, Accrued Depreciation - Carrier Property, during the year resulting from the retirement of carrier property.
  4. In column (e), enter the net of any other debits and credits made to Account No. 31, Accrued Depreciation - Carrier Property, during the year.
  5. If composite annual depreciation rates are prescribed, enter those in effect at the end of the year in column (g). If component rates are prescribed, the composite rates entered in column (g) should be computed from the charges developed for December by using the prescribed component rates. Whether component or composite rates are prescribed, the entries on lines 17, 34, 42, and 43 of column (g) should be computed from December depreciation charges.

Give particulars (details) of the credits and debits to Account No. 31, Accrued Depreciation - Carrier Property, during the year.

Line No. $headings = filter (taxonomy().concept(ferc:ScheduleAccruedDepreciationUndividedJointInterestPropertyAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "217 - Schedule - Accrued Depreciation - Undivided Joint Interest Property") $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)
$rowl[1] if $rowl[1] == "PIPE LINE NAME" "gray-out" else "" 1 $rowl[2] if $rowl[1] == "PIPE LINE NAME" "gray-out" else "" $rowl[3] if $rowl[1] == "PIPE LINE NAME" "gray-out" else "" $rowl[4] if $rowl[1] == "PIPE LINE NAME" "gray-out" else "" $rowl[5] if $rowl[1] == "PIPE LINE NAME" "gray-out" else "" if $rowl[5].name in list(ferc:RightOfWayGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:LinePipeGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:LinePipeFittingsGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:PipelineConstructionGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:BuildingsGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:BoilersGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:PumpingEquipmentGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:MachineToolsAndMachineryGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:OtherStationEquipmentGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:OilTanksGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:DeliveryFacilitiesGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:CommunicationSystemsGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:OfficeFurnitureAndEquipmentGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:VehiclesAndOtherWorkEquipmentGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:OtherPropertyGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:AssetRetirementCostsGatheringLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:AccruedDepreciationUndividedJointInterestPropertyGatheringLinesRetirement,ferc:RightOfWayTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:LinePipeTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:LinePipeFittingsTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:PipelineConstructionTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:BuildingsTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:BoilersTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:PumpingEquipmentTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:MachineToolsAndMachineryTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:OtherStationEquipmentTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:OilTanksTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:DeliveryFacilitiesTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:CommunicationSystemsTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:OfficeFurnitureAndEquipmentTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:VehiclesAndOtherWorkEquipmentTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:OtherPropertyTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:AssetRetirementCostsTrunkLinesAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:AccruedDepreciationUndividedJointInterestPropertyTrunkLinesRetirement,ferc:BuildingsGeneralAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:MachineToolsAndMachineryGeneralAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:CommunicationSystemsGeneralAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:OfficeFurnitureAndEquipmentGeneralAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:VehiclesAndOtherWorkEquipmentGeneralAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:OtherPropertyGeneralAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:AssetRetirementCostsGeneralAccruedDepreciationUndividedJointInterestPropertyRetirement,ferc:AccruedDepreciationUndividedJointInterestPropertyGeneralRetirement,ferc:AccruedDepreciationUndividedJointInterestPropertyRetirement) "-" else none $rowl[6] if $rowl[1] == "PIPE LINE NAME" "gray-out" else "" $rowl[7] if $rowl[1] == "PIPE LINE NAME" "gray-out" else "" $rowl[8] if $rowl[1] == "PIPE LINE NAME" "gray-out" else ""