I have added below query and not able to add syncpolicy and offlinequery to the query declartion as i am getting the error “Rule/Property deprecated from target version 23R1 Onwards”
query CNonMegaAssignments {
   from = "Mobile_Work_Order";
   where = "UPPER(Jt_Task_Api.get_c_call_id(task_seq)) not like UPPER('Mega%')";
   keys = WoNo, TaskSeq, ExecutionInstanceSeq;
   attribute TaskSeq Number;
   attribute ExecutionInstanceSeq Number;
   attribute CCallId Text {
      fetch = "Jt_Task_Api.get_c_call_id(task_seq)";
   }
}
If i try to use above query then i am not getting the data in mobile but getting the data in cloud mobile screen


