This is an example of parameterized queries. Any time you change the parameters provided to a query , it will auto restart the query
Query q1 = QueryBuilder
.select(SR_NUMBER1)
.from(dataSource)
.where(dateParam.greaterThanOrEqualTo(Expression.date(new Date())))
.orderBy(ordering);
Parameters params1 = new Parameters(q1.getParameters()).setValue("currDate", myDate);
q1.setParameters(params1);
Yes, you can make this a live query by attaching listeners and in your callback you can update the values