Gauge Theories and Macdonald Polynomials