The first thing that I'd do is to come up with definitions for "Quality", "Relevance", and "Accuracy" that I could program.
In other words, if I can't express what "Quality" means using code I can write along with the data that I have, then the term doesn't mean anything relevant to the problem that I'm trying to solve.
I'm pretty sure that the database schema is at least part of your problem. If it wasn't the problem, you'd be able to pick the results that you want from an existing table or view.
We can help you fix this problem, but right now you're like of like the patient that goes to the doctor, says "I'm sick", then expects the doctor to write a prescription. I can't speak for everyone, but we need to know more about your problem. Once you explain what those three words mean in your context (preferably as code we can examine), then I think we can help you a lot more.
-PatP