ANR Software interview question

Asked about sql queries