gc:visit-elements() function is used to find SELECT SubQuery in a SPIN query