In OQL query it is impossible to utilize an instance previously identified in the instances browser - the user has no chance to know the instance id that is required in OQL.
It should be possible to display the instance id along size (and retained size) in the list of instances and copy that id easily into the clipboard.
Integrated into 'main-golden', will be available in build *201103020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jaroslav Bachorik <firstname.lastname@example.org>
Log: #196009: Giving access to instance IDs