A relational schema for a train reservation database is given below.Passenger (pid, pname, age)Reservation (pid, class, tid)\[\begin{array}{cc}
\textbf{Passenger} & \textbf{Reservation} \\
\begin{array}{|c|l|c|}
\hline
\text{pid} & \text{pname} & \text{age} \\
\hline
0 & \text{Sachin} & 65 \\
1 & \text{Rahul} & 66 \\
2 & \text{Sourav} & 67 \\
3 & \text{Anil} & 69 \\
\hline
\end{array}
&
\begin{array}{|c|c|c|}
\hline
\text{pid} & \text{class} & \text{tid} \\
\hline
0 & \text{AC} & 8200 \\
1 & \text{AC} & 8201 \\
2 & \text{SC} & 8201 \\
5 & \text{AC} & 8203 \\
1 & \text{SC} & 8204 \\
3 & \text{AC} & 8202 \\
\hline
\end{array}
\end{array}\]What pids are returned by the following SQL query for the above instance of the tables?
SELECT pid
FROM Reservation
WHERE class = 'AC' AND
EXISTS (SELECT *
FROM Passenger
WHERE age > 65 AND
Passenger.pid = Reservation.pid)- A1,0
- B1,2
- C1,3
- D1,5