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

Equivalence of SQL queries #1

Closed
namednil opened this issue Oct 4, 2018 · 1 comment
Closed

Equivalence of SQL queries #1

namednil opened this issue Oct 4, 2018 · 1 comment

Comments

@namednil
Copy link

namednil commented Oct 4, 2018

Hi,

this corpus looks great and I hope it will encourage people to do interesting research!
I'm wondering if you considered an evaluation based on proving equivalence of SQL queries, which can be done automatically by Cosette?

Best,
Matthias

@taoyds
Copy link
Owner

taoyds commented Oct 6, 2018

Hi, Matthias,

We write a script to parse SQL queries into different smaller clauses/components and then evaluate each clause (by set, the order doesn't matter) separately. SQL queries are equivalent if their all clauses are the same. You can find more details on this page: https://github.com/taoyds/spider/tree/master/evaluation_examples .

The tool mentioned by you looks pretty cool. Unfortunately, we didn't know it when we were working on this work. We definitely would like to check it out in the future release. Also, it would be great if anyone could contribute. However, our evaluation script works well on the current Spider dataset.

Thanks!

====followup updates======

Hi, Matthias,

Did you use Cosette before? What evaluation accuracy could this tool get? It's possible to replace execution accuracy with its results if it is reliable.

Best,
Tao

@taoyds taoyds closed this as completed Oct 6, 2018
sythello pushed a commit to sythello/spider that referenced this issue Nov 7, 2023
small refacor for new eval script (no functionality change)
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

2 participants