Merge As discussed earlier, when you merge queries you combine them horizontally; as a result,…