Hi
Please try the following
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="new_courseprize">
<attribute name="new_courseprizeid" />
<attribute name="new_name" />
<attribute name="createdon" />
<attribute name="ke_to" />
<attribute name="ke_prize" />
<attribute name="ke_from" />
<attribute name="ke_course" />
<order attribute="new_name" descending="false" />
<filter type="and">
<condition attribute="ke_course" operator="eq" uiname="Test Course" uitype="new_primarycourse" value="{29DB08D7-744E-E911-A972-002248019881 - Your Primary Course ID}" />
<condition attribute="ke_from" operator="on-or-after" value="2019-03-20 - Primary Course Award Date" />
<condition attribute="ke_to" operator="on-or-before" value="2019-03-20 - Primary Course Award Date" />
</filter>
</entity>
</fetch>
Query Expression Version
// Define Condition Values
var QEnew_courseprize_ke_course = "29db08d7-744e-e911-a972-002248019881";
var QEnew_courseprize_ke_from = "2019-03-20T00:00:00-00:00";
var QEnew_courseprize_ke_to = "2019-03-14T00:00:00-00:00";
// Instantiate QueryExpression QEnew_courseprize
var QEnew_courseprize = new QueryExpression("new_courseprize");
// Add columns to QEnew_courseprize.ColumnSet
QEnew_courseprize.ColumnSet.AddColumns("new_courseprizeid", "new_name", "createdon", "ke_to", "ke_prize", "ke_from", "ke_course");
QEnew_courseprize.AddOrder("new_name", OrderType.Ascending);
// Define filter QEnew_courseprize.Criteria
QEnew_courseprize.Criteria.AddCondition("ke_course", ConditionOperator.Equal, QEnew_courseprize_ke_course);
QEnew_courseprize.Criteria.AddCondition("ke_from", ConditionOperator.OnOrAfter, QEnew_courseprize_ke_from);
QEnew_courseprize.Criteria.AddCondition("ke_to", ConditionOperator.OnOrBefore, QEnew_courseprize_ke_to);