I sort of understand, but to p45cal's comment ...

What on earth are you going to do with 6.25 million rows of data?!

it would seem to me that just listing the acceptable combinations would be better