GATE CS 2025, set 1 · Question 39 · Databases · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

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'?

  1. (A) { p.pname | p ∈ players ∧ ∃ t (t ∈ teams ∧ p.tid = t.tid ∧ t.tname = 'MI')}
  2. (B) { p.pname | p ∈ teams ∧ ∃ t (t ∈ players ∧ p.tid = t.tid ∧ t.tname = 'MI')}
  3. (C) { p.pname | p ∈ players ∧ ∃ t (t ∈ teams ∧ t.tname = 'MI')}
  4. (D) { p.pname | p ∈ teams ∧ ∃ t (t ∈ players ∧ t.tname = 'MI')}
Answer

Answer (A)

Answer from the official GATE CS 2025 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes