resolve nodes referenced by way (must be included in query result)