Result: The Query Designer window appears:

<center>
     <br>
     <img src="/wiki/download/attachments/4686206/How to Create and Run Schema.png"/>
     <br>
</center>

Result: The Repeats element subunits are presented on the Scene:

<center>
     <br>
     <img src="/wiki/download/attachments/4686206/How to Create and Run Schema_1.png"/>
     <br>
</center>

Note, that by default minimum distance between left and right repeats is 0bp, the maximum distance is 5000bp.

Result:

<center>
     <br>
     <img src="/wiki/download/attachments/4686206/How to Create and Run Schema_2.png"/>
     <br>
</center>

Result: The ORF element is presented on the Scene:

<center>
     <br>
     <img src="/wiki/download/attachments/4686206/How to Create and Run Schema_3.png"/>
     <br>
</center>
<center>
     <br>
     <img src="/wiki/download/attachments/4686206/How to Create and Run Schema_4.png"/>
     <br>
</center>

And drag it between the left Repeats element and ORF.

Result: The dialog appears:

<center>
     <br>
     <img src="/wiki/download/attachments/4686206/How to Create and Run Schema_5.png"/>
     <br>
</center>

Result: The constraint has been added to the elements:

<center>
     <br>
     <img src="/wiki/download/attachments/4686206/How to Create and Run Schema_6.png"/>
     <br>
</center>

Result: The schema looks as follows:

<center>
     <br>
     <img src="/wiki/download/attachments/4686206/How to Create and Run Schema_7.png"/>
     <br>
</center>
<center>
     <br>
     <img src="/wiki/download/attachments/4686206/How to Create and Run Schema_8.png"/>
     <br>
</center>

Result: The Run schema dialog appears:

<center>
     <br>
     <img src="/wiki/download/attachments/4686206/How to Create and Run Schema_9.png"/>
     <br>
</center>

Result: Both the sequence and the file with annotations are added to the current project. The sequence appears in the Sequence View window, for example:

<center>
     <br>
     <img src="/wiki/download/attachments/4686206/How to Create and Run Schema_10.png"/>
     <br>
</center>

To learn more about the Sequence View read main UGENE User Manual.

The schema described in this example is also available as sample schema. Select the Samples tab on the Palette and double-click the ORF-Repeats to open the sample schema.