taxonomy().concept(ferc:RespondentLegalName).label("http://ferc.gov/form/2020-01-01/roles/label/F6Header").textName 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").textThis 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").textDate 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").textYear/Period of Report:
End of: first(list([@ferc:ReportYear @period=$currentDuration]))2018/first(list([@ferc:ReportPeriod @period=$currentDuration]))Q4
taxonomy().concept(ferc:ScheduleControlOverRespondentAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F6ScheduleTitle").text
Control Over Respondent
Report in Column (a) the names and state of incorporation of all corporations, partnerships, business trusts, and similar organizations that indirectly held control (see page iii for definition of control) over the respondent at end of year by means of intermediaries. Report only the names of those companies that held ultimate control over the respondent. If control is in a holding company organization, report in a footnote the chain of organization only if there are two or more intermediary companies in the chain of ownership.
Report in column (b) the names and state of incorporation and in column (c) the percent of the respondent's voting stock owned by all corporations, partnerships, business trusts, and similar organizations that directly held control over the respondent at end of year.
If control is held by trustees, state in a footnote the names of the trustees, the names of beneficiaries for whom the trust is maintained, and the purpose of the trust.
Line No.
$headings = filter (taxonomy().concept(ferc:ScheduleControlOverRespondentAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "102 - Schedule - Control Over Respondent")
$heading = list(for $ref in $headings
list($ref.part-by-name(ferc-part:Column).part-value, $ref.part-by-name(ferc-part:ColumnName).part-value, $ref.part-by-name(ferc-part:ElementName).part-value))
$heading_dict = dict(for $row in $heading
list("("+$row[1]+")",list($row[2],if $row[3] == none "" else taxonomy().concept(to-qname($row[3]))))
);
for $row in $heading_dict.keys.sort
if $heading_dict[$row][2] != "" $heading_dict[$row][2].name.local-name else ""
$heading_dict[$row][1]
Zone of Delivery, Rate Schedule
$row
(a)
// adding a comment
$data2 = list(for $i in range(32)
list($i,none,none,none,none, none,none, none)
);
$data = if count(list({covered @ferc:ControlOverRespondentAxis=*})) > 0
list({covered @ferc:ControlOverRespondentAxis=* {list(
if list({@ferc:OrderNumber @unit=* @period=$currentDuration}).length > 0
first(list({@ferc:OrderNumber @unit=* @period=$currentDuration}))
else
0,
if exists({@ferc:NameOfCompanyControllingRespondent @unit@period=$currentDuration})
first(list({@ferc:NameOfCompanyControllingRespondent @unit @period=$currentDuration}))
else
none,
if exists({@ferc:StateOfIncorporation @unit @period=$currentDuration})
first(list({@ferc:StateOfIncorporation @unit @period=$currentDuration}))
else
none,
if exists({@ferc:IntermediateName @unit @period=$currentDuration})
first(list({@ferc:IntermediateName @unit @period=$currentDuration}))
else
none,
if exists({@ferc:StateOfIncorporationIntermediate @unit @period=$currentDuration})
first(list({@ferc:StateOfIncorporationIntermediate @unit @period=$currentDuration}))
else
none,
if exists({@ferc:DirectParentName @unit @period=$currentDuration})
first(list({@ferc:DirectParentName @unit @period=$currentDuration}))
else
none,
if exists({@ferc:StateOfIncorporationDirectParent @unit @period=$currentDuration})
first(list({@ferc:StateOfIncorporationDirectParent @unit @period=$currentDuration}))
else
none,
if exists({@ferc:VotingStockOfRespondentOwnedByOthersPercentage @unit @period=$currentInstant})
first(list({@ferc:VotingStockOfRespondentOwnedByOthersPercentage @unit @period=$currentInstant}))
else none
)}})
else $data2;
$uniqueData = list(for $x in $data
if $x == list(0,none,none,none, none, none, none, none)
skip
else
$x
);
for $row in $uniqueData.sort