ITR Laboratories Interview Question

Question: write one query for sql and linq