How does one perform a sub query with different post types

How does one perform a sub query with different post types