final r queries