validate reference to select query entity