Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

in category, not in generation

$tax_query = array(
	'relation' => 'AND',
	array(
		'taxonomy'         => 'cat',
		'terms'            => 'catterm',
		'operator'         => 'IN',
	),
	array(
		'taxonomy'         => 'generation',
		'terms'            => 'genterm',
		'operator'         => 'NOT IN',
	),
);