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

SPIDER dev 252-257: ground-truth query provides incorrect results because of errors in the database #58

Open
aosokin opened this issue Jul 2, 2020 · 0 comments

Comments

@aosokin
Copy link

aosokin commented Jul 2, 2020

Hi, we've encountered a mistake in the dataset, which leads to incorrect answers of the correct SQL queries.

The ground-truth queries a like this (database flight_2):

select t1.flightno from flights as t1 join airports as t2 on t1.sourceairport   =  t2.airportcode where t2.city  =  "aberdeen"

In addition to the issue #57, these queries cannot link on "t1.sourceairport = t2.airportcode" because SourceAirport and DestAirport of the table flights have leading whitespaces and airportcode of airports does not. The queries below provide non-empty results:

select * from flights where SourceAirport = " APG"
select * from flights where DestAirport = " APG"
select * from airports where airportcode = "APG"

I do not know how to fix this issue without changing the databases.

Best,
Anton

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