SQL query to expose property inside single page

I have a single page property inside pyWorkPage which refers to a text property. I want to expose it. I need SQL query for it.

e.g.: pyWorkPage.Page.Property

Once the column is exposed, it need to be mapped as external column with property in Class definition ‘External Mapping’ tab.

Pushkarraj- You can right click on the property and choose optimize for reporting.