For example, in PostgreSQL I can write the following lines to increment the sequence and to get the current value:
SELECT nextval('sequence');
SELECT currval('sequence');
In MonetDB I know how to write the first line:
SELECT NEXT VALUE FOR "sequence";
How can I write the second line?