I want to consult pilots sponsored by team 'A'
I'm doing this:
SELECT piloto.nome AS NomePiloto
FROM equipe
INNER JOIN piloto
ON equipe.idequipe = piloto.idequipe
INNER JOIN patrocinador
ON patrocinador.idpat = equipe.idpat
WHERE patrocinador.nome = 'A'
But, is not returning anything, where am I going wrong?