added support for selectordinal statements