The covering lemma and q-analogues of extremal set theory problems