ANR Software Interview Question

Asked about sql queries