Fix VALUES clause and Prolog quoting