Ver originalSELECT Codigo_arbitro AS 'Cod_arbi', Licencia AS 'Licenc', Nombre AS 'Nom', Apellidos AS 'Ape' FROM EQUIPO_ARBITRAL WHERE Codigo_arbitro IN (SELECT * FROM TEMP) AND Codigo_arbitro NOT IN (SELECT codigo FROM TEMP4 WHERE codigo NOT IN (SELECT codigo FROM TEMP3 WHERE codigo NOT IN (SELECT codigo FROM TEMP5 WHERE codigo NOT IN (SELECT codigo FROM TEMP7 WHERE codigo NOT IN(SELECT codigo FROM TEMP6))))) AND Cod_localidad=(SELECT Codigo_localidad FROM PABELLON WHERE Codigo_pabellon=pabellon) ORDER BY Apellidos;