When calling taskwarrior, just list the projects that you want see.
So, in your case to see only Projects A, B, D, E, and F you'd call taskwarrior like this:
task '(project:A or project:B or project:D or project:E or project:F)' ls
Let's look at an example of this. Say you have 3 projects like the ones below:
task list +stackoverflow
ID Age D Project Tags Description Urg
59 6min Test1 stackoverflow Task 1 1.8
60 5min Test2 stackoverflow Task 1 1.8
61 4min Test3 stackoverflow Task 1 1.8
If we just wanted to see the tasks for projects Test1 and Test2 we'd call taskwarrior like this:
task '(project:Test1 or project:Test2)' list +stackoverflow
Our output would look like this:
ID D Project Tags Description
59 Test1 stackoverflow Task 1
60 Test2 stackoverflow Task 1
I hope that helps!