Merge pull request #1 from cvogt/tmp/fix-932

Add repeat to QueryInterpreter and change Repeat to SqlFunction to avoid...