GateAI
Relational Model and SQL

GATE CSE 2025 Set 1 · Q39

MCQ2 marksEasy

Time

Consider two relations describing teamsteams and playersplayers in a sports league: • teams(tid,tname)teams(tid, tname): tid,tnametid, tname are team-id and team-name, respectively • players(pid,pname,tid)players(pid, pname, tid): pid,pnamepid, pname, and tidtid 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 tnametname as 'MI'?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A) { p.pname p ∈ players ∃ t (t ∈ teams p.tid = t.tid t.tname = 'MI') }

Relational Model and SQL

To retrieve the names of players who play for the team with tname = \text{'MI^{\prime}} using Tuple Relational Calculus (TRC):

  1. The target tuple variable pp must represent a tuple from the relation players, since we are selecting player names (p.pnamep.pname) from players (p∈playersp \in players).

  2. We need to check the condition on the corresponding team, which requires an existential quantifier ∃t\exists t over the teams relation (t∈teamst \in teams).

  3. The join condition between the player and their team is p.tid=t.tidp.tid = t.tid.

  4. The team selection condition is t.tname = \text{'MI^{\prime}}.

Combining these conditions gives:

\{ p.pname \mid p \in players \wedge \exists t\, (t \in teams \wedge p.tid = t.tid \wedge t.tname = \text{'MI^{\prime}}) \}
  • Option (A) correctly defines p∈playersp \in players, joins with t∈teamst \in teams via p.tid=t.tidp.tid = t.tid, and checks t.tname = \text{'MI^{\prime}}.

  • Option (B) incorrectly specifies p∈teamsp \in teams while selecting p.pnamep.pname, but pnamepname is not an attribute of teams.

  • Option (C) lacks the join condition p.tid=t.tidp.tid = t.tid.

  • Option (D) incorrectly specifies p∈teamsp \in teams and lacks the join condition.

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 Q39 of the GATE CSE 2025 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 2025 Set 1.

How GATE tests Relational Model and SQL

More from GATE CSE 2025 Set 1

Share this solution

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

GateAI solution cardGATE CSE 2025 Set 1 · Q39 · MCQ

Consider two relations describing teams and players in a sports league: • teams(tid, tname): tid, tname are team-id and team-name, respectively • players(pid, pname, tid): pid, pname, and 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 tname as 'MI'?

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.