GATE DA 2026 Q59: Tuples returned by a tuple relational calculus query
- Database Management and Warehousing
- 2 marks
- NAT
- No negative marking
Question
Let there be two relations and as shown. has three columns , and . has two columns and .
| P | Q | R |
|---|---|---|
| P1 | Q1 | R1 |
| P2 | Q2 | R2 |
| P3 | Q3 | R2 |
| P | S |
|---|---|
| P1 | 10 |
| P1 | 15 |
| P2 | 20 |
| P3 | 1 |
Consider that the following tuple relational calculus expression is evaluated.
The number of tuples that will be returned is __________. (Answer in integer)
Try it: numerical answer: type the value
Show answer and explanation
Answer: 2 to 3 (official GATE 2026 final answer key)
Concept used: Tuple relational calculus returns each tuple of X that satisfies the condition once.
First step: The middle condition is always true (); keep the X tuples whose P has a Y row with S > 1: P1 (10, 15) and P2 (20), not P3 (1).
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2026 DA question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key
More Database Management and Warehousing PYQs
- 2026 · Q17Candidate keys from functional dependencies
- 2026 · Q18OLAP operation from Country to State
- 2026 · Q26Operations that never violate a foreign key
- 2026 · Q32Order of a B+ tree non-leaf node
- 2026 · Q41B+ tree root after inserting 3
- 2026 · Q42Output of a relational algebra expression with natural joins