GateAI
Relational Model and SQL

GATE CSE 2026 Set 1 · Q43

MCQ2 marksEasy

Time

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 \land \langle v, w \rangle \in S\} be a tuple relational calculus expression. Which one of the following relational algebraic expressions is equivalent to EE ?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: B) P (S S.X=R.Q R)

Relational Model and SQL

Given the schema R(P,Q)R(P, Q) and S(X,Y)S(X, Y):

  1. In the tuple relational calculus (TRC) expression:

    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 \land \langle v, w \rangle \in S)\}
    • A tuple ⟨u,v⟩∈R\langle u, v \rangle \in R assigns uu to attribute PP and vv to attribute QQ.

    • A tuple ⟨v,w⟩∈S\langle v, w \rangle \in S assigns vv to attribute XX and ww to attribute YY.

  2. The shared variable vv represents the equality condition between the second attribute of RR (QQ) and the first attribute of SS (XX):

    R.Q=S.XR.Q = S.X
  3. The target tuple is ⟨u⟩\langle u \rangle, which corresponds to attribute PP of relation RR.

  4. Translating this into relational algebra gives:

    ΠP(S⋈S.X=R.QR)orΠP(R⋈R.Q=S.XS)\Pi_P (S \bowtie_{S.X = R.Q} R) \quad \text{or} \quad \Pi_P (R \bowtie_{R.Q = S.X} S)

Hence, option (B) is the correct equivalent relational algebraic expression.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Relational Model and SQL previous year question is Q43 of the GATE CSE 2026 Set 1 paper. Find more GATE CSE PYQs on Relational Model and SQL in Databases, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Relational Model and SQL PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Relational Model and SQL in GATE CSE

Relational Model and SQL has 15 GATE CSE PYQs across 12 papers from 2011 to 2026. 8 of them are 2-mark MCQs like this one, and it is the only one in GATE CSE 2026 Set 1.

How GATE tests Relational Model and SQL

More from GATE CSE 2026 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2026 Set 1 · Q43 · MCQ

Consider a relational database schema with two relations R(P, Q) and S(X, Y). Let E = { u ∃ v ∃ w u, v ∈ R ∧ v, w ∈ S} be a tuple relational calculus expression. Which one of the following relational algebraic expressions is equivalent to E ?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.