Tuple Calculus: GATE CS Previous Year Questions

Tuple Calculus · Databases

8 questions · asked in 8 of 27 years (2000–2026)

MCQ 7 · NAT 11-mark 5 · 2-mark 3

2000Questions per year2026

Questions 1–5 of 8

Q1GATE 2026 (Session 1)2 marksMCQ−0.67 if wrong
Consider a relational database schema with two relations R(P,Q)R(P, Q) and S(X,Y)S(X, Y). Let E={⟨u⟩∣∃v∃w⟨u,v⟩∈R∧⟨v,w⟩∈S}E=\{\langle u\rangle \mid \exists v \exists w\langle u, v\rangle \in R \wedge\langle v, w\rangle \in S\} be a tuple relational calculus expression.
Which one of the following relational algebraic expressions is equivalent to EE ?

Q2GATE 2025 (Session 1)2 marksMCQ−0.67 if wrong
Consider two relations describing teams and players in a sports league:

teams(tid,tname):tid,tnameteams(tid, tname):tid, tname are team-id and team-name, respectively
players(pid,pname,tid):pid,pname,tidplayers(pid, pname, tid):pid,pname,tid denote player-id, player-name and the team-id of the player, respectively

Which ONE of the following tuple relational calculus queries returns the name of the players who play for the team having name as 'MI'?

Q3GATE 2024 (Session 1)1 markNAT
Consider the following two relations, R(A,B)R(A, B) and S(A,C)S(A, C) :
RAB10202030304030505095\boldsymbol{R} \begin{array}{|c|c|} \hline \boldsymbol{A} & \boldsymbol{B} \\ \hline 10 & 20 \\ \hline 20 & 30 \\ \hline 30 & 40 \\ \hline 30 & 50 \\ \hline 50 & 95 \\ \hline \end{array}


SAC109030454080\boldsymbol{S} \begin{array}{|c|c|} \hline \boldsymbol{A} & \boldsymbol{C} \\ \hline 10 & 90 \\ \hline 30 & 45 \\ \hline 40 & 80 \\ \hline \end{array}
The total number of tuples obtained by evaluating the following expression σB<C(R⋈R.A=S.AS)\sigma_{B \lt C}\left(R \bowtie_{R . A=S . A} S\right) is ____

Q4GATE 20092 marksMCQ−0.67 if wrong
Let R and S be relational schemes such that R={a,b,c} and S={c}. Now consider the following queries on the database:
I.πR−S(r)−πR−S(πR−S(r)×S−πR−S,S(r))I.\pi _{R-S}(r)-\pi_{R-S}(\pi_{R-S}(r) \times S -\pi_{R-S,S}(r))
II.{t∣t∈πR−S(r)∧∀u∈s(∃v∈r(u=v[s]∧t=v[R−S]))}II.\{t|t\in \pi _{R-S}(r)\wedge \forall u \in s (\exists v \in r(u=v[s]\wedge t=v[R-S]))\}
III.{t∣t∈πR−S(r)∧∀v∈r(∃u∈s(u=v[s]∧t=v[R−S]))}III.\{t|t\in \pi _{R-S}(r)\wedge \forall v\in r(\exists u\in s(u=v[s]\wedge t=v[R-S]))\}
IV. Select R.a, R.b From R,S Where R.c=S.c

Which of the above queries are equivalent?

Q5GATE 20081 markMCQ−0.33 if wrong
Which of the following tuple relational calculus expression(s) is/are equivalent to ∀t∈r(P(t))\forall t \in r(P(t))?
I. ¬∃t∈r(P(t))\neg \exists t \in r(P(t))
II. ¬t∉r(P(t))\neg t \notin r(P(t))
III. ¬∃t∈r(¬P(t))\neg \exists t \in r(\neg P(t))
IV. ∃t∈r(¬P(t))\exists t \in r(\neg P(t))

Keep practising

Topics in Databases

All CS topics ›