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
$treeElements = navigate parent-child descendants from ferc:OtherPaidInCapitalLineItems role "http://ferc.gov/form/2020-01-01/roles/Schedule/F2/OtherPaidInCapitalTotal" returns list (target, preferred-label, result-order); $data-labels = list(for $row in $treeElements $concept = $row[1]; $conceptPeriod = $concept.period-type; $beginningBalance = if $row[2].role.uri == "http://ferc.gov/form/2020-01-01/roles/label/F2BeginningBalance" true else false $total = if $row[2].role.uri == "http://ferc.gov/form/2020-01-01/roles/label/F2Total" true else false $row_num = if $total 40 else $row[3]; $row_rec = (filter $concept.references("http://ferc.gov/form/2020-01-01/roles/reference/formLocation") where ($item.part-by-name(ferc-part:Schedule).part-value == "253 - Schedule - Other Paid-In Capital (Accounts 208-211)" and $item.part-by-name(ferc-part:ValueType).part-value.string == "Label")).to-list; $current = if $conceptPeriod == "duration" if list([covered @concept = $row[1] @period = $currentDuration]).length > 0 first(list([covered @concept = $row[1] @period = $currentDuration])) else none else if $beginningBalance if list([covered @concept = $row[1] @period = $priorInstant]).length > 0 first(list([covered @concept = $row[1] @period = $priorInstant])) else none else if list([covered @concept = $row[1] @period = $currentInstant]).length > 0 first(list([covered @concept = $row[1] @period = $currentInstant])) else none $sequenceReferences = (filter $concept.references("http://ferc.gov/form/2020-01-01/roles/reference/elementSequence") where ($item.part-by-name(ferc-part:ScheduleRole).part-value == "http://ferc.gov/form/2020-01-01/roles/Schedule/F2/OtherPaidInCapitalTotal") returns $item.part-by-name(ferc-part:SequenceRole).part-value).to-list; $breakdown = list( if $sequenceReferences.to-list.length > 0 $sequenceRole = $sequenceReferences[1]; $sequenceElements = navigate parent-child descendants role $sequenceRole returns list(target, preferred-label, result-order); $axis = first(list(for $a in $sequenceElements if $a.length > 0 $conceptRoll = $a[1]; if $conceptRoll.substitution.local-name == "dimensionItem" $conceptRoll else skip else skip)); $lineItemsList = list(for $l in $sequenceElements if $l.length > 0 $conceptRoll = $l[1]; if $conceptRoll.is-abstract skip else $l else skip ); $data1 = list({covered {list( if exists({@ferc:OrderNumber @unit=* @period = $currentDuration where $fact.dimension($axis) != none}) {@ferc:OrderNumber @unit=* @period = $currentDuration where $fact.dimension($axis) != none} else 0, $row_num, $lineItemsList[3][1], if exists({@concept = $lineItemsList[2][1] @unit @period = $currentDuration where $fact.dimension($axis) != none}) {@concept = $lineItemsList[2][1] @unit @period = $currentDuration where $fact.dimension($axis) != none} else none, if exists({@concept = $lineItemsList[3][1] @unit=* @period = $currentDuration where $fact.dimension($axis) != none}) {@concept = $lineItemsList[3][1] @unit=* @period = $currentDuration where $fact.dimension($axis) != none} else none ) } } ); $data2 = list(for $x in $data1 if $x == list(0,$x[2],$x[3],none,none) skip else $x); $orders = set(for $x in $data2 $x[1]).sort; $orderedData = list(for $order in $orders for $row in $data2 if $row[1] != $order skip else $row ); $data = list(for $z in range($orderedData.length) $updatedNumber = $orderedData[$z][2].string + "." + $z.string; list($orderedData[$z][1],$updatedNumber,$orderedData[$z][3],$orderedData[$z][4],$orderedData[$z][5]) ); for $row in $data $row else skip ); If $breakdown.length ==0 list(list( 0, $row_num, $concept, $concept.label($row[2].role.uri).text, $current ) ) else if $current == none $breakdown else $breakdown + list(list( 0, $row_num, $concept, $concept.label($row[2].role.uri).text, $current ) ) ); for $rows in $data-labels for $rowl in $rows
taxonomy().concept(ferc:ScheduleOtherPaidInCapitalAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F2ScheduleTitle").text Statement of Cash Flows
taxonomy().concept(ferc:ScheduleOtherPaidInCapitalAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F2Instructions").text
    1. Report below the balance at the end of the year and the information specified below for the respective other paid-in capital accounts. Provide a subheading for each account and show a total for the account, as well as a total of all accounts for reconciliation with the balance sheet, page 112. Explain changes made in any account during the year and give the accounting entries effecting such change.
  1. Donations Received from Stockholders (Account 208) - State amount and briefly explain the origin and purpose of each donation.
  2. Reduction in Par or Stated Value of Capital Stock (Account 209) - State amount and briefly explain the capital changes that gave rise to amounts reported under this caption including identification with the class and series of stock to which related.
  3. Gain or Resale or Cancellation of Reacquired Capital Stock (Account 210) - Report balance at beginning of year, credits, debits, and balance at end of year with a designation of the nature of each credit and debit identified by the class and series of stock to which related.
  4. Miscellaneous Paid-In Capital (Account 211) - Classify amounts included in this account according to captions that, together with brief explanations, disclose the general nature of the transactions that gave rise to the reported amounts.
Line No. $headings = filter (taxonomy().concept(ferc:ScheduleOtherPaidInCapitalAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "253 - Schedule - Other Paid-In Capital (Accounts 208-211) - Total") $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] Item
$row (a)
$rowl[2]
$rowl[3].name.local-name
$rowl[4] if $rowl[3].is-abstract "sch-title" else "" if $rowl[4].is-fact "true" else "false" Net Cash Flow from Operating Activities
$rowl[5] if $rowl[3].is-abstract "gray-out" else "" $300