select gevtparticipantes.codpar,apepar,nompar,cedpar from gevtparticipantes,gevmdeventosparticipantes where (codeve='@1') and (gevtparticipantes.codpar=gevmdeventosparticipantes.codpar) and (tippre='N') and (stainc='S')

union all

select gevtparticipantes.codpar,apepar,nompar,cedpar from gevtparticipantes,gevmdeventosparticipantes where (codeve='@1') and (gevtparticipantes.codpar=gevmdeventosparticipantes.codpar) and (tippre<>'N') and (stapatinc='S') and (stainc='S')
