 Nested queries are not working for me. Plus ScopedService is obsolete 