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
// adding a comment $members = navigate parent-child descendants from ferc:UtilityTypeAxis role "http://ferc.gov/form/2020-01-01/roles/Schedule/F2/AccumulatedDeferredIncomeTaxesOtherByBusinessActivities" returns list (target-name, preferred-label, order); $output = list(for $row in $members $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 == "276 - Schedule - Accumulated Deferred Income Taxes - Other (Account 283) - Classified by Business Activities" and $item.part-by-name(ferc-part:ValueType).part-value.string == "Label")).to-list; $rowID = if ($row_num.part-by-name(ferc-part:Row)).length > 0 ($row_num.part-by-name(ferc-part:Row))[1].part-value else ""; $abstractLabel = list($rowID.number, $concept.label($row[2].role.uri).text); $data = navigate parent-child descendants from ferc:AccumulatedDeferredIncomeTaxLiabilitiesOtherByTypeLineItems role "http://ferc.gov/form/2020-01-01/roles/Schedule/F2/AccumulatedDeferredIncomeTaxesOtherByBusinessActivities" returns list (target, preferred-label, order); $dataRow2 = list(none, none, none, none, none, none, none, none, none, none); $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/F2BeginningBalance" if exists([covered @concept = $y[1].name @ferc:UtilityTypeAxis = $row[1] @period = $priorInstant]) first(list([covered @concept = $y[1].name @ferc:UtilityTypeAxis = $row[1] @period = $priorInstant])) else none else if exists([covered @concept = $y[1].name @ferc:UtilityTypeAxis = $row[1] @period = $currentInstant]) first(list([covered @concept = $y[1].name @ferc:UtilityTypeAxis = $row[1] @period = $currentInstant])) else none else if exists([covered @concept = $y[1].name @ferc:UtilityTypeAxis = $row[1] @period = $currentDuration]) first(list([covered @concept = $y[1].name @ferc:UtilityTypeAxis = $row[1] @period = $currentDuration])) else none); $abstractLabel + $dataRow1 ); for $rowl in $output.sort $dataHead = navigate parent-child descendants from ferc:AccumulatedDeferredIncomeTaxesClassifiedByTaxTypeAbstract stop when $relationship.preferred-label == "http://ferc.gov/form/2020-01-01/roles/label/F2RollforwardHeader" role "http://ferc.gov/form/2020-01-01/roles/Schedule/F2/AccumulatedDeferredIncomeTaxesOtherByTaxTypes" 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/F2ADIncomeTaxes") 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/F2/AccumulatedDeferredIncomeTaxesOtherByTaxTypes" returns list(target, preferred-label, order); $dataRow2 = list(none, none, none, none, none, none, none, none, none, none); $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/F2BeginningBalance" if exists([covered @concept = $y[1].name @period = $priorInstant]) first(list([covered @concept = $y[1].name @period = $priorInstant])) else none else if exists([covered @concept = $y[1].name @period = $currentInstant]) first(list([covered @concept = $y[1].name @period = $currentInstant])) else none else if exists([covered @concept = $y[1].name @period = $currentDuration]) first(list([covered @concept = $y[1].name @period = $currentDuration])) else none); if $x[2].role.uri == "http://ferc.gov/form/2020-01-01/roles/label/F2ADIncomeTaxes" $abstractLabel + $dataRow2 else $abstractLabel + $dataRow1 ) for $rowl in $rollforwardSection
taxonomy().concept(ferc:ScheduleAccumulatedDeferredIncomeTaxesOtherAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F2ScheduleTitle").text Accumulated Deferred Income Taxes-Other (Account 283)
taxonomy().concept(ferc:ScheduleAccumulatedDeferredIncomeTaxesOtherAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F2Instructions").text
  1. Report the information called for below concerning the respondent's accounting for deferred income taxes relating to property not subject to accelerated amortization.
  2. At Other (Specify), include deferrals relating to other income and deductions.
Line No. $headings = filter (taxonomy().concept(ferc:ScheduleAccumulatedDeferredIncomeTaxesOtherAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "276 - Schedule - Accumulated Deferred Income Taxes - Other (Account 283) - Classified by Business Activities") $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] Functional Classification
$row (a)
1 taxonomy().concept(ferc:AccumulatedDeferredIncomeTaxLiabilitiesOtherByTypeLineItems).label("http://ferc.gov/form/2020-01-01/roles/label/F2ADIncomeTaxes2").text
Account 283
$rowl[1] 21 $rowl[2] GAS $rowl[4] $300,000 $rowl[5] $300,000 $rowl[6] $300,000 $rowl[7] $300,000 $rowl[8] $300,000 $rowl[10] $300,000 $rowl[12] $300,000 $rowl[13] $300,000
8 taxonomy().concept(ferc:AccumulatedDeferredIncomeTaxesClassifiedByTaxTypeAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F2ADIncomeTaxes").text
Classification fo TOTAL
9 9 $rowl[2] $rowl[3] if $rowl[1] "gray-out" else "" $rowl[4] if $rowl[1] "gray-out" else "" $rowl[5] if $rowl[1] "gray-out" else "" $rowl[6] if $rowl[1] "gray-out" else "" $rowl[7] if $rowl[1] "gray-out" else "" $rowl[9] if $rowl[1] "gray-out" else "" $rowl[11] if $rowl[1] "gray-out" else "" $rowl[12] if $rowl[1] "gray-out" else ""