15 Qs · since 2011 · 25 marks · 1 marks/paperStandard yield
GATE tests the relational model across three interrelated formalisms: Relational Algebra (RA), Relational Calculus (TRC/DRC), and SQL. Questions evaluate core semantic equivalences… Guide
Person(pid,city), describes the city of residence for every person uniquely identified by pid. The following relational algebra operators are available: selection, projection, cross product, and rename.
To find the list…top_scorer.
Consider the following SQL query:
SELECT ta.player FROM top_scorer AS ta
WHERE ta.goals >ALL (SELECT tb.goals
FROM top_scorer AS tb
WHERE tb.country = 'Spain')
AND ta.goals >ANY (SELECT tc.goals
FROM top_scorer AS tc
WHERE tc.country = 'Germany')…select * from R where a in (select S.a from S)eId of the relation dependent is a foreign key referring to empId of the relation employee. Assume that every employee has at least one associated dependent in the dependent relation.
employee (empId, empName, empAge)…Loan_Records is given below.
What is the output of the following SQL query?
SELECT count(*)
FROM (
(SELECT Borrower, Bank_Manager FROM Loan_Records) AS S
NATURAL JOIN
(SELECT Bank_Manager, Loan_Amount FROM Loan_Records) AS T
);Topic guide
GATE tests the relational model across three interrelated formalisms: Relational Algebra (RA), Relational Calculus (TRC/DRC), and SQL. Questions evaluate core semantic equivalences, translation between declarative calculi and algebraic operators, table instance tracing (such as joins, group-by aggregations, and division), and corner cases like SQL three-valued logic, duplicate preservation, and safe TRC expressions.
Query Equivalence and Cross-Formalism Translation
common · MCQ · 2 marks · 2026, 2025, 2013
Given an English requirement or an expression in TRC/DRC/SQL, identifying the equivalent representation in Relational Algebra or another query language.
Table Instance Execution & Output Size Calculation
common · NAT · 2 marks · 2017, 2011
Given one or more relation tables, tracing the exact output tuples or computing numeric aggregates (e.g., COUNT, AVG, natural join cardinality, relational division output size).
Relational Division and 'Universal / For All' Semantics
common · MSQ · 1.5 marks · 2022, 2017, 2014
Identifying algebraic expressions or set-difference formulations () that correctly capture 'for all' requirements, or calculating division results.
SQL Subquery Semantics and Quantification (>ALL / >ANY / IN)
occasional · MCQ · 2 marks · 2017, 2014
Analyzing behavior of nested SQL queries with set membership (`IN`) or set comparisons (`>ALL`, `>ANY`), specifically testing empty set and duplicate handling.
Query Selectivity & Cardinality Estimation
occasional · NAT · 1 marks · 2021
Calculating the expected number of output tuples given uniform and independent attribute value distributions under compound boolean selection predicates.
Expressive Power and Operator Counting in Pure RA
occasional · MCQ · 2 marks · 2024
Determining the minimum number of primitive RA operators (like Cartesian products or self-joins) required to simulate non-aggregate constraints like 'at least ' occurrences.
Safety and Domain Independence of Calculus Expressions
rare · MCQ · 2 marks · 2017
Determining whether given TRC/DRC queries are safe (i.e., guaranteed to return a finite relation drawn strictly from the database domain).
Relational Terminology Identification
rare · MCQ · 1 marks · 2023
Direct conceptual questions asking for the definition or distinction between structural relational terms such as degree, arity, cardinality, domains, or tuples.
Match Domain Concepts to Solution Technologies
rare · MCQ · 1 marks · 2013
Matching conceptual problem areas (such as information representation, process workflows, computing architecture, or system communication) with standard industry paradigms/technologies (such as XML, BPMN, Publish-find-bind, or Interoperability).
Relational Division Definition via Fundamental Operators
Used when rewriting or validating relational division in terms of projection, Cartesian product, and set difference.
Disjunctive Selection Selectivity (Independent Attributes)
Used to compute estimated result size for queries with OR conditions over independent attribute distributions.
Minimum Cross Products for k-element Comparison
Used to find the minimum number of binary cross products needed to join instances of a relation for counting-based constraints in pure relational algebra.
SQL >ALL on Empty Set Identity
Used when evaluating SQL queries where a subquery referenced in an ALL comparison returns zero rows.
Degree (Arity) of a Relation
Determining the arity or degree of a relation schema .
Cardinality of a Relation
Determining the number of rows/tuples in an instance of relation .
Shift from simple table tracing and SQL syntax evaluation towards deep algebraic identities, minimum operator bounds, and foundational TRC/DRC syntax matching.
2026, 2025, 2024, 2022, 2014, 2013, 2011
Adoption of NAT and MSQ question formats to test numerical tracing (aggregates, table rows, selectivity estimation) and multiple equivalent formulations of relational division.
2022, 2021, 2017
Direct textbook terminology was introduced as a 1-mark standalone MCQ testing precise relational definitions.
2023
Appeared as a 1-mark breadth-oriented matching MCQ bridging database data models (XML) and enterprise architecture concepts.
2013
Easy questions require standard TRC-to-RA translations, basic SQL aggregation on given tables, or straightforward join counts. Medium questions involve relational division equivalence, SQL nested subquery semantics with duplicates/empty sets, or algebraic operator minimization. Hard questions involve subtle calculus safety proofs, domain-independence edge cases, or multi-nested quantified calculus translations.