Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect translation for "SELECT dependent_name FROM employee AS E, dependent AS D WHERE E.ssn = D.essn" #18

Open
wholton opened this issue Oct 23, 2014 · 3 comments

Comments

@wholton
Copy link
Collaborator

wholton commented Oct 23, 2014

Query: SELECT dependent_name FROM employee AS E, dependent AS D WHERE E.ssn = D.essn

Translation: Select the name of each dependent where the employee dependents of the dependent.

@wholton wholton added the bug label Oct 23, 2014
@jakecobb
Copy link
Collaborator

This looks like a problem with the ER diagram, it's using the name of the relationship (DEPENDENTS_OF) as the default verb phrase. Although, there is also the issue of the relationship and entity name Dependent being redundant.

@jakecobb jakecobb added the nlp label Oct 24, 2014
@wholton
Copy link
Collaborator Author

wholton commented Oct 28, 2014

So, for these types of errors, I assume the best approach is to apply extra label annotations rather than edit the ER itself?

@jakecobb
Copy link
Collaborator

Short term, yes. The translation will still be awkward, but we need to
think about the strategy for these types of cases. I could see it needing
a new annotation to indicate the entity name ("dependent") already reflects
the relationship.

On Tue, Oct 28, 2014 at 7:21 AM, wholton [email protected] wrote:

So, for these types of errors, I assume the best approach is to apply
extra label annotations rather than edit the ER itself?


Reply to this email directly or view it on GitHub
#18 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants