changes to orcl query