select PAC from PACIENTES where PAC in (select PAC from PALS_CLAVES where OPC = 1) and PAC in (select PAC from PALS_CLAVES where OPC = 5) and