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

[Bug] T3 referred to before definition #109

Open
michael-2956 opened this issue Sep 17, 2024 · 0 comments
Open

[Bug] T3 referred to before definition #109

michael-2956 opened this issue Sep 17, 2024 · 0 comments

Comments

@michael-2956
Copy link

The following query in train_spider.json seems to be incorrect:

SELECT T2.Lname
FROM DEPARTMENT AS T1
JOIN FACULTY AS T2
ON T1.DNO = T3.DNO
JOIN MEMBER_OF AS T3
ON T2.FacID = T3.FacID
WHERE T1.DName = "Computer Science";

The line ON T1.DNO = T3.DNO references T3 before it is defined.
The correct query probably should have been:

SELECT T2.Lname
FROM DEPARTMENT AS T1
JOIN MEMBER_OF AS T3
ON T1.DNO = T3.DNO
JOIN FACULTY AS T2
ON T2.FacID = T3.FacID
WHERE T1.DName = 'Computer Science';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant