There is a function is_dubious_question on the statistics table passed all the stats for that question and other question data and that returns a bool.