Why is Ref DocType field is mandatory while creating custom query reports?

I want to union two Doc Types Purchase Invoice and Sales Invoice to generate a custom query report. Which Doc Type should I select in this case?

for permission check.