complex_queries.js updated