Failed attempt to make the queries work