OPINION BY
¶ 1 This is an appeal from an order granting declaratory relief on the pleadings. We affirm.
¶ 2 On May 1, 2003, Consolidation Coal Company (Consol) and MTB Incorporated (MTB), trading as Conrhein Coal Company (Conrhein) 1 initiated an action to quiet title by filing a complaint against Dennis A. White, Ann Louisa White Sullivan, Dennis A. White (as personal representative of the Estate of Richard O. White, Jr., Deceased), PNC Bank Delaware (as Trustee of the Ruth Pierce Smith Revocable Living Trust), Howard T. Pierce, Linda Pierce Frasier, Phillip D. Lung, Barry R. Lung, and Roy L. Lung (collectively the Hager-man heirs). The subject real property is situate in Greene County, Pennsylvania. In 1904, the fee simple title to certain of the ownership rights in the property was conveyed by deed (the Crow deed) from Margaret Crow and Edward H. Crow, et coniunx, to Benson L. Hagerman. The Crow deed was executed on May 21, 1904, and was recorded in Greene County on May 30,1904.
¶ 3 The Crow deed reserved to the Crows all rights to the coal in that portion of the “Pittsburg” seam underlying the property. 2 The mineral estate retained by *322 the Crows has been designated as the “Quiet Title Tract” by the trial court. The Crow deed conveyed the surface rights to Benson L. Hagerman along with mineral rights other than those pertaining to the Quiet Title Tract (including oil and gas rights, drilling rights through the “Pitts-burg” seam, and coal rights to tracts other than the Quiet Title Tract itself).
¶ 4 The Crow deed included the following terms:
The parties of the first part [Crows] reserves [sic] and retains [sic] for their own use and behoof all of that vein of coal that underlies the above tract of land known as the Pittsburg or River Vein. No part of which is included in this purchase of the above described tract of land, also the right to mine and remove the coal from under said land and the right to take on to said land such machinery and material , as is required to operate [a] mine or mines that may be located on said land, and the right to remove same when deemed necessary— [For] All surface land used or taken for mining purposes to which purchaser hereby agrees, those who have the right to mine said Pittsburg Vein of coal shall pay to said purchaser at the rate of two hundred ($200) per acre for same the Purchaser is hereby granted by the parties of the first part, the privelage [sic] and right to drill at anytime, through the Pittsburg vein of coal above reserved, for oil or gas — The said gas and oil is conveyed with the surface and all other veins of coal to purchaser by this indenture — 132 A 69A.
Together with all and singular [sic] the said property improvements, ways, waters, water courses, rights, liberties, privileges, hereditaments and appurtenances whatsoever thereunto belonging, or in anywise appertaining, and the reversions and remainders, rents, issues and profits thereof, and all the estates, rights, title, interest, property, claim and demand whatsoever of the said parties of the first part, in law, equity or otherwise howsoever, of, in and to the same and every part thereof, the said one hundred and thirty two Acres of land.
Crow Deed, recorded 5/30/1904, at 2.
¶ 5 In 1906, Benson L. Hagerman, sub nom. B.L. Hagerman, executed a deed (the Hagerman deed) conveying his interest in the property to G.W. Barney, subject to one reservation which is discussed below. The Hagerman deed was executed April 5, 1906, and was recorded in Greene County on December 29, 1906. The Hag-erman deed contains language which purports to reserve underground transportation rights in and through the Quiet Title Tract (the Hagerman reservation). The Hagerman deed explicitly acknowledges that the conveyance is made subject to the reservation of coal rights recited in the Crow deed and reiterates the recitation itself. The Hagerman deed then states:
The party of the first part [B.L. Hag-erman] further reserves and excepts the exclusive right, appendant and running with the land, for himself, [his] heirs and assigns, to make and maintain tracks, roads and ways in and through the mines, which may be located in said land, or which may be hereafter located on said land in the Pittsburg vein of coal, forever, for the transportation and drainage of said coal, and of coal and supplies to and from other lands, and the party of the second part [G.W. Bar *323 ney] hereby covenants and agrees that the said party of the first part, his heirs and assigns shall have the exclusive right as aforesaid.
All gas and oil is hereby conveyed, and all other veins of coal, to purchaser [G.W. Barney] by this indenture.
Hagerman Deed, recorded 12/29/1906, at 2-3. Title to the Hagerman reservation devolved on the parties designated as “the Hagerman heirs” through various transactions recited in the Second Amended Complaint.
¶ 6 At the time the original complaint was filed, Consol was in control of the Quiet Title Tract through a series of leases and other conveyances which are of record in Greene County. A controversy arose when the Hagerman heirs asserted a right to control the purported Hagerman reservation and to preclude Consol from removing all the coal in the Quiet Title Tract in a manner that would collapse the interior space of the mine. As the trial court explained matters, the Hagerman heirs essentially claim that removal of all the coal from the Pittsburgh vein in the Quiet Title Tract creates a “void” which should revert to them and be available for “haulage-ways.” Trial Court Opinion, 6/24/04, at 6. In its complaint, Consol requested the trial court to grant declaratory relief as follows: to declare that (a) Consol’s title to the Quiet Title Tract is a one hundred percent interest valid and indefeasible against all other rights and claims; (b) the Hagerman hems, their heirs and assigns, and all other persons or entities are barred from calling into question the validity of Consol’s title to the Quiet Title Tract; (c) the Hagerman heirs, their heirs and assigns, and other persons or entities are forever barred from asserting any right or interest in the Quiet Title Tract inconsistent with the interest of Consol; (d) the Hagerman reservation is of no force or effect whatsoever; (e) Con-sol is entitled to a decree declaring that it has full and complete control over the Quiet Title Tract and that the Hagerman heirs have no right or interest of any kind in it; and (f) Consol is entitled to a decree declaring that it has the exclusive right to utilize the Quiet Title Tract for any and all purposes associated with its mining operations free and clear of any servitude, obligation or claim by the Hagerman heirs or any other persons or entities whatsoever. Second Amended Complaint, 12/17/03, at 6-7.
¶ 7 The matter proceeded before the trial court with certain preliminary objections being sustained and others rejected. Consol filed both an amended complaint and a second amended complaint. Default judgment was entered against PNC Bank Delaware (in its capacity as trustee for a living trust pertaining to one of the Hager-man heirs) in July of 2003. Ultimately, Consol moved for entry of judgment on the pleadings pursuant to the Declaratory Judgments Act. The Hagerman heirs opposed the motion. Via an order dated June 23, 2004, but filed the following day, the trial court granted partial judgment on the pleadings in favor of Consol as follows:
1. The Hagerman reservation found in Deed Book Volume 180, Page 46 is of no force or effect.
2. Anyone claiming under the Hager-man reservation is forever barred from asserting any claim or right to any portion of the 132 acre 69 perch tract of the Pittsburgh coal in Richhill Township, known as the Quiet Title Tract.
3. Defendants [the Hagerman heirs] have no right, title and interest in or to the Quiet Title tract.
4. The court grants partial judgment on the pleadings for Consolidation Coal Company and MTB, Inc., trading as Conrhein Coal Company and against Dennis A. White, et al., Defendants [the *324 Hagerman heirs] as described in the attached Opinion.
Order, 6/24/04. The Hagerman heirs (hereafter Appellants) filed a timely notice of appeal on July 9, 2004. The trial court did not require Appellants to file a Rule 1925(b) statement.
¶ 8 Appellants present one issue: what rights did B.L. Hagerman reserve for himself, and for his heirs and assigns via the Hagerman reservation? Contrary to Appellants’ assertion, the question before the trial court was not whether any other person or entity exists with rights superior to those asserted by Consol. The only question is whether Appellants themselves possess a right which entitles them to burden the exploitation of the coal rights in the Quiet Title Tract. Thus, we agree with the trial court that it was not required to inquire whether Consol has recited a chain of title sufficient to defeat a claim to the Quiet Title Tract that might be asserted by some person or entity other than Appellants. The trial court was required only to adjudicate the controversy actually placed before it, namely, what rights (if any) do Appellants possess?
¶ 9 Before addressing the merits of Appellants’ claim, we must first resolve several preliminary matters. First, we must ascertain whether this appeal is properly before us as stemming from a final order. Consol captioned the complaint underlying this appeal as an action to quiet title. However, during the pendency of the proceedings before the trial court, Consol filed a motion for judgment on the pleadings pursuant to the Declaratory Judgments Act (the Act).
3
It is clear that the trial court’s subsequent order was entered in accordance with section 7532 of the Act which provides that all such declarations of rights shall have the force and effect of a final judgment or decree. 42 Pa.C.S.A. § 7532. When an order entered under the Act affirmatively or negatively declares the “rights, status, and other legal relations” amongst the parties, it is a final order which is immediately appealable.
Nationwide Mutual Insurance Company v. Wickett,
¶ 10 In the present case, the trial court’s order indicates that it is a “partial” grant of judgment on the pleadings. However, upon inspection, it is clear that the trial court’s intention was to indicate that it granted judgment in favor of Consol on certain aspects of the relief sought but rejected certain of Consol’s requests. The trial court declined to rule that Consol has the exclusive right to utilize the Quiet Title Tract for “any and all purposes” associated with Consol’s mining operations without limitation against any claim by Appellants “or any other persons or entities whatsoever.” Trial Court Opinion, 6/24/04, at 3, 7.
¶ 11 Specifically, the trial court noted that Consol has no more rights than those possessed and conveyed by its predecessors in title. Id. at 7.
[W]e cannot expand upon the rights purchased by Consol’s predecessor. It purchased the Pittsburgh coal, the right to remove it, and the right to import and remove any required materials and machinery. It did not purchase a waiver of surface support, and it did not purchase haulage, ventilation and drainage rights, *325 at least it so appears based on the pleadings in this case. Merely based on these pleadings, we cannot say that [Consol] acquired sufficient rights to enable it “to mine and remove all of said coal and the right to transport, convey and otherwise move and handle coal, materials, personnel, air, utilities, supplies, effluent, etc. in and through the Quiet Title Tract[.]”
Id. at 7-8. Nevertheless, the trial court’s order is quite clear that it has fully adjudicated the claims as between and among the named parties to this litigation by ruling that there is no conceivable legal theory under which Appellants could prevail in their claim against Consol. Whatever rights may remain to be adjudicated between or among persons or entities not party to the instant litigation, the rights of the parties who actually were before the trial court have been defined in a final manner. We therefore conclude that the trial court’s order was final and immediately appealable.
¶ 12 As a second preliminary matter, we note that the appeal stems from a declaratory judgment. Declaratory relief is not obtainable as a matter of right.
Osram Sylvania Products, Inc. v. Comsup Commodities, Inc.,
When reviewing the decision of the trial court in a declaratory judgment action, our scope of review is narrow. Consequently, we are limited to determining whether the trial court’s findings are supported by substantial evidence, whether an error of law was committed or whether the trial court abused its discretion. The test is not whether we would have reached the same result on the evidence presented, but whether the trial court’s conclusion can reasonably be drawn from the evidence. WTiere the trial court’s factual determinations are adequately supported by the evidence we may not substitute our judgment for that of the trial court.
Pressley v. The Travelers Property Casualty Corporation,
¶ 13 Our scope of review on an appeal from the grant of judgment on the pleadings is plenary.
Meehan v. Archdiocese of Philadelphia,
¶ 14 On appeal, our task is to determine whether the trial court’s ruling was based on a clear error of law or whether there were facts disclosed by the pleadings which should properly be tried before a jury or by a judge sitting without a jury. Citicorp, supra.
*326 Neither party can be deemed to have admitted either conclusions of law or unjustified inferences. Moreover, in conducting its inquiry, the court should confine itself to the pleadings themselves and any documents or exhibits properly attached to them. It may not consider inadmissible evidence in determining a motion for judgment on the pleadings. Only when the moving party’s case is clear and free from doubt such that a trial would prove fruitless will an appellate court affirm a motion for judgment on the pleadings.
Kelly v. Nationwide Insurance Company,
¶ 15 Pennsylvania law recognizes three discrete estates in land: the surface estate, the mineral estate, and the right to subjacent (surface) support.
Hetrick v. Apollo Gas Company,
¶ 16 The crux of Appellants’ claim is their assertion that the right of subjacent support passed to B.L. Hagerman under the Crow deed of 1904 and that he reserved this right when executing the Hag-erman deed in 1906 and conveying title to G.W. Barney. Appellants’ Brief at 28.
G.W. Barney and his successors were subject to the duty and obligation to provide support so that Hagerman, his successors and assigns could successfully make and maintain tracks, roads and ways in and through the mines.
Id. Appellants also assert that Consol has faded to demonstrate that it has the right to subside the surface and that it can evade Appellants’ right, under the Hager-man reservation, “to maintain tracks, roads and ways in and through the mines which carries with it the obligation to provide support above said tracks, roads and ways in and through the mines.” Id.
¶ 17 When construing a deed, a court’s primary object must be to ascertain and effectuate what the parties themselves intended.
Mackall v. Fleegle,
¶ 18 Appellants’ various arguments in support of their position ignore one crucial point: the explicit language of the Hagerman reservation itself does not, in fact, reserve the right of subjacent support to Hagerman and his heirs and assigns. Rather, it reserves only the right “to make and maintain tracks roads and ways in and through the mines, which may be located in said land, or which may be hereafter located on said land in the Pitts-burg vein of coal, forever, for the transportation and drainage of said coal, and of coal and supplies to and from other lands[.]” Hagerman Deed, recorded 12/29/1906, at 2-3 (emphasis added). The Hagerman deed conveyed all surface rights as well as all gas and oil rights, and all rights in coal veins other than the Pittsburgh seam, to G.W. Barney. Id.
¶ 19 It is well established under Pennsylvania law that it is the owner of the surface land who has the proprietary right to support of the surface.
Commonwealth v. Fitzmartin,
¶ 20 With regard to the subject of the purported Hagerman reservation itself, we cannot agree with Appellants that Hagerman ever had any rights in the subterranean cavity created by extracting coal from the Quiet Title Tract utilizing the room and pillar method of mining. It is the owner of the coal who owns the chamber or space enclosing that coal.
Westerman v. Pennsylvania Salt Manufacturing Company,
¶ 21 We have carefully considered the claims of both parties as set forth in their respective briefs. Moreover, we have scrutinized the record certified on appeal in conjunction with our consideration of the parties’ claims. We agree with the trial court that Hagerman had no rights whatsoever to the Pittsburgh seam of coal constituting the Quiet Title Tract and therefore could not reserve to himself any such rights. Moreover, we agree with the trial court’s resolution of the parties’ claims and with its decision to grant the limited relief as specified in the order of
*328
June 24, 2004. Therefore, we affirm on the basis
of
the trial court opinion.
See also Kormuth v. United States Steel Company,
¶ 22 We are not unsympathetic to Appellants’ concerns regarding the impact of longwall mining on the environment or on the rights of those who own the surface estate of affected property.
See People United to Save Homes v. Department of Environmental Protection,
¶ 23 Order affirmed.
Notes
. The trial court refers to the plaintiffs in this action collectively as “Consol.” For clarity and consistency, we adopt the trial court's terminology.
. In 1890, the United States Board on Geographic Names decided that the "h” would be dropped from all place names ending in "-burgh.” The citizens of Pittsburgh, Penn *322 sylvania, and its environs refused to comply. In 1911, the United States Board on Geographic Names reversed its decision and restored the "h” to Pittsburgh, Pennsylvania. Both the Crow deed and the deed subsequently executed by Benson L. Hagerman employ the then current official spelling to designate the coal seam as the “Pittsburg Vein.”
. 42 Pa.C.S.A. §§ 7531-7541.
