pspname(speciality * ( pspid(speciality ) - psfspeciality(studyfor))Fist find out the identifiers of the specialities somebody studies for. Then you get the ones that are not studied by subtracting these from the identifiers of all specialities. Pick up the whole descriptions of the specialities with a natural join (column spid) and then take out the names.