User Help > Working With Documents > Branching Documents > Creating Branched Documents using Filtered Query Definition > Example: Adding, Excluding, or Referencing Inserted and Included Documents in Branched Document
  
Example: Adding, Excluding, or Referencing Inserted and Included Documents in Branched Document
When creating branched documents using filtering options, you can:
Add included or inserted documents from the input document as new documents in the branched document.
Reference included or inserted documents from the input document in the branched document.
The use cases mentioned show the output of the branched document that is created when you use filtering options with the recurseinclude and recursereference options.
Case 1: Included and inserted documents referenced in the branched document
Case 2: Included and Inserted documents added in the branched document
Case 3: Included and Inserted documents not a part of the branched document
Case 4: Only Inserted document a part of the branched document