How can I use arrays and a foreach to generate many lists with WP_Query?

How can I use arrays and a foreach to generate many lists with WP_Query?

tech