I know this question is a bit old, but I came across it looking for the same answer. You will need to reference the custom properties using Nodes.CustomProperties.property_name notation. Below is a query that will retrieve the caption and a custom field labeled state.
SELECT Caption, Nodes.CustomProperties.State FROM Orion.Nodes