Hay un error: ERROR: relation "partidos" does not exist LINE 6: FROM partidos AS p JOIN estadios AS ... ^