Add repeat to QueryInterpreter and change Repeat to SqlFunction to avoid special implementation