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 $data2 = list(for $i in range(24) list($i,none,none,none,none,none,none,none,none,none,none,none,none,none,"") ); $data = if count(list({covered @ferc:NameAndLocationOfCompressorStationAxis=*})) > 0 list({covered @ferc:NameAndLocationOfCompressorStationAxis=* {list( if list({@ferc:OrderNumber @unit=* @period=$currentDuration}).length > 0 first(list({@ferc:OrderNumber @unit=* @period=$currentDuration})) else 0, if list({@ferc:NameAndLocationOfCompressorStation @unit @period=$currentDuration}).length > 0 first(list({@ferc:NameAndLocationOfCompressorStation @unit @period=$currentDuration})) else none, if list({@ferc:TypeOfCompressor @unit @period=$currentDuration}).length > 0 first(list({@ferc:TypeOfCompressor @unit @period=$currentDuration})) else none, if list({@ferc:NumberOfUnitsAtCompressorStation @unit @period=$currentDuration}).length > 0 first(list({@ferc:NumberOfUnitsAtCompressorStation @unit @period=$currentDuration})) else none, if list({@ferc:CertificatedHorsepowerForEachCompressorStation @unit @period=$currentDuration}).length > 0 first(list({@ferc:CertificatedHorsepowerForEachCompressorStation @unit @period=$currentDuration})) else none, if list({@ferc:PlantCost @unit @period=$currentDuration}).length > 0 first(list({@ferc:PlantCost @unit @period=$currentDuration})) else none, if list({@ferc:ExpensesExceptDepreciationAndTaxesFuel @unit @period=$currentDuration}).length > 0 first(list({@ferc:ExpensesExceptDepreciationAndTaxesFuel @unit @period=$currentDuration})) else none, if list({@ferc:ExpensesExceptDepreciationAndTaxesPower @unit @period=$currentDuration}).length > 0 first(list({@ferc:ExpensesExceptDepreciationAndTaxesPower @unit @period=$currentDuration})) else none, if list({@ferc:ExpensesExceptDepreciationAndTaxesOther @unit @period=$currentDuration}).length > 0 first(list({@ferc:ExpensesExceptDepreciationAndTaxesOther @unit @period=$currentDuration})) else none, if list({@ferc:GasForCompressorFuel @unit @period=$currentDuration}).length > 0 first(list({@ferc:GasForCompressorFuel @unit @period=$currentDuration})) else none, if list({@ferc:ElectricityForCompressorStation @unit @period=$currentDuration}).length > 0 first(list({@ferc:ElectricityForCompressorStation @unit @period=$currentDuration})) else none, if list({@ferc:CompressorHoursOfOperationDuringYear @unit @period=$currentDuration}).length > 0 first(list({@ferc:CompressorHoursOfOperationDuringYear @unit @period=$currentDuration})) else none, if list({@ferc:NumberOfCompressorsOperatedAtTimeOfStationPeak @unit @period=$currentDuration}).length > 0 first(list({@ferc:NumberOfCompressorsOperatedAtTimeOfStationPeak @unit @period=$currentDuration})) else none, if list({@ferc:DateOfStationPeak @unit @period=$currentDuration}).length > 0 first(list({@ferc:DateOfStationPeak @unit @period=$currentDuration})) else none, "Detail" )}}) else $data2; $cleanedDimData = list(for $x in $data if $x == list(0,none,none,none,none,none,none,none,none,none,none,none,none,none,"Detail") skip else $x ).sort; $dataComTotals = if count(list([covered @ferc:CompressorTypesAxis=*])) > 0 list({covered @ferc:CompressorTypesAxis=* {list( if list({@ferc:OrderNumber @unit=* @period=$currentDuration}).length > 0 first(list({@ferc:OrderNumber @unit=* @period=$currentDuration})) else 0, if list({@ferc:NameAndLocationOfCompressorStation @unit @period=$currentDuration}).length > 0 first(list({@ferc:NameAndLocationOfCompressorStation @unit @period=$currentDuration})) else none, if list({@ferc:TypeOfCompressor @unit @period=$currentDuration}).length > 0 first(list({@ferc:TypeOfCompressor @unit @period=$currentDuration})) else none, if list({@ferc:NumberOfUnitsAtCompressorStation @unit @period=$currentDuration}).length > 0 first(list({@ferc:NumberOfUnitsAtCompressorStation @unit @period=$currentDuration})) else none, if list({@ferc:CertificatedHorsepowerForEachCompressorStation @unit @period=$currentDuration}).length > 0 first(list({@ferc:CertificatedHorsepowerForEachCompressorStation @unit @period=$currentDuration})) else none, if list({@ferc:PlantCost @unit @period=$currentDuration}).length > 0 first(list({@ferc:PlantCost @unit @period=$currentDuration})) else none, if list({@ferc:ExpensesExceptDepreciationAndTaxesFuel @unit @period=$currentDuration}).length > 0 first(list({@ferc:ExpensesExceptDepreciationAndTaxesFuel @unit @period=$currentDuration})) else none, if list({@ferc:ExpensesExceptDepreciationAndTaxesPower @unit @period=$currentDuration}).length > 0 first(list({@ferc:ExpensesExceptDepreciationAndTaxesPower @unit @period=$currentDuration})) else none, if list({@ferc:ExpensesExceptDepreciationAndTaxesOther @unit @period=$currentDuration}).length > 0 first(list({@ferc:ExpensesExceptDepreciationAndTaxesOther @unit @period=$currentDuration})) else none, if list({@ferc:GasForCompressorFuel @unit @period=$currentDuration}).length > 0 first(list({@ferc:GasForCompressorFuel @unit @period=$currentDuration})) else none, if list({@ferc:ElectricityForCompressorStation @unit @period=$currentDuration}).length > 0 first(list({@ferc:ElectricityForCompressorStation @unit @period=$currentDuration})) else none, if list({@ferc:CompressorHoursOfOperationDuringYear @unit @period=$currentDuration}).length > 0 first(list({@ferc:CompressorHoursOfOperationDuringYear @unit @period=$currentDuration})) else none, if list({@ferc:NumberOfCompressorsOperatedAtTimeOfStationPeak @unit @period=$currentDuration}).length > 0 first(list({@ferc:NumberOfCompressorsOperatedAtTimeOfStationPeak @unit @period=$currentDuration})) else none, if list({@ferc:DateOfStationPeak @unit @period=$currentDuration}).length > 0 first(list({@ferc:DateOfStationPeak @unit @period=$currentDuration})) else none, "Subtotal" )}}) else skip; $cleanedDataSubTotal = list(for $z in $dataComTotals if $z == list(0,none,none,none,none,none,none,none,none,none,none,none,none,none,"Subtotal") skip else $z ); $cleanedData = $cleanedDimData + $cleanedDataSubTotal for $row in $cleanedData.sort
taxonomy().concept(ferc:ScheduleCompressorStationsAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F2ScheduleTitle").text Compressor Stations
taxonomy().concept(ferc:ScheduleCompressorStationsAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F2Instructions").text
  1. Report below details concerning compressor stations. Use the following subheadings: field compressor stations, products extraction compressor stations, underground storage compressor stations, transmission compressor stations, distribution compressor stations, and other compressor stations.
  2. For column (a), indicate the production areas where such stations are used. Group relatively small field compressor stations by production areas. Show the grouped. Identify any station held under a title other than full ownership. State in a footnote the name of owner or co-owner, the nature of respondent's title, and percent of ownership if jointly owned.
Line No. $headings = filter (taxonomy().concept(ferc:ScheduleCompressorStationsAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "508 - Schedule - Compressor Stations") $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] Nature of Payment
$row (a)
1 if ($row[15] =="Detail") $row[2] else if ($row[15]=="Subtotal" and $row[2] == none) "Subtotal " + taxonomy().concept($row[4].dimension(ferc:CompressorTypesAxis).name).label("http://www.xbrl.org/2003/role/label").text else $row[2] if ($row[15]=="Subtotal") "total_items" else "" not($row[15]=="Subtotal" and $row[2] == none) Transmission: Plainview, Texas $row[3] Compressor A $row[4] 1 unit $row[5] 9,300 hp $row[6] $6,857,423 $row[7] $1,743,949 $row[8] $28,704 $row[9] $323,117 $row[10] 563,498 Dth $row[11] 375,200 kWh $row[12] 7,529 hours $row[13] 1 unit $row[14] 1/5/2018
25 taxonomy().concept(ferc:NumberOfUnitsAtCompressorStation).label("http://ferc.gov/form/2020-01-01/roles/label/F2Total").text
Total
max(list([@concept=ferc:NumberOfUnitsAtCompressorStation @period=$currentDuration])) 5 Units max(list([@concept=ferc:CertificatedHorsepowerForEachCompressorStation @period=$currentDuration])) 1,053,963 hp max(list([@concept=ferc:PlantCost @period=$currentDuration])) $2,080,500 max(list([@concept=ferc:ExpensesExceptDepreciationAndTaxesFuel @period=$currentDuration])) $2,080,500 max(list([@concept=ferc:ExpensesExceptDepreciationAndTaxesPower @period=$currentDuration])) $2,080,500 max(list([@concept=ferc:ExpensesExceptDepreciationAndTaxesOther @period=$currentDuration])) $2,080,500 max(list([@concept=ferc:GasForCompressorFuel @period=$currentDuration])) 100 Dth max(list([@concept=ferc:ElectricityForCompressorStation @period=$currentDuration])) 100 kWh max(list([@concept=ferc:CompressorHoursOfOperationDuringYear @period=$currentDuration])) 100 Hours max(list([@concept=ferc:NumberOfCompressorsOperatedAtTimeOfStationPeak @period=$currentDuration])) 100 Units