Skip to content

Wrong reading comprehension on Q180 #30

@gkorland

Description

@gkorland

Question 180:

"Please provide a list of clients who were born between 1983 and 1987 and whose account branch is in East Bohemia, along with their IDs."

Grammatically, the sentence reads: "Please provide a list of clients... along with their IDs."

  • The word "their" refers back to the subject, which is "clients."

Therefore, the user is asking for the unique identifier for the person (the Client ID).

While the expected SQL is:

SELECT T1.client_id, T3.account_id FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN disp AS T4 ON T1.client_id = T4.client_id INNER JOIN account AS T3 ON T2.district_id = T3.district_id and T4.account_id = T3.account_id WHERE T2.A3 = 'east Bohemia' AND STRFTIME('%Y', T1.birth_date) BETWEEN '1983' AND '1987'

The response projection should only be T1.client_id

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions