-
Notifications
You must be signed in to change notification settings - Fork 80
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
Values in the filter field is discarded in the final result. #22
Comments
hello @tinyHui, exactly where in sem2SQL.py the values are replaced by 1? so that we could change that in code. |
Is there any solution for this ? I am also facing the same issue. |
@tinyHui Do you mean predicting the filter value during decoding? Or just fill in the correct value when transferring SemQL to SQL? |
@JasperGuo how can we add T1.Country = France instead of T1.Country = 1. SELECT avg(T1.Age), min(T1.Age), max(T1.Age) FROM singer AS T1 WHERE T1.Country = 1 and how can we add the "ON" clause after join clause so that it can be executable querries? I already add DISTINCT in querries. |
|
Hi everyone, as I aim to use the IRNet code in a real world project, I'm right now implementing exactly this. I will put it online as soon as I have a working version (which should be by the end of the month). I will keep you updated. |
Hi @brunnurs, I am also trying to do the same hope there is a way we can communicate and discuss this. |
@brunnurs is your model handle values also? |
Yes, the goal is to predict queries including values, so you can execute them. I will let you know when I made it work. |
Is there any other model to predict the values? |
@JasperGuo Thanks for confirming this with us 👍 @brunnurs @shubhamk16 I'm also doing the model to predict the value right now, hope we can exchange some ideas. |
yes sure @tinyHui.we can discuss this. My Mail Id- [email protected] |
@tinyHui Good idea! I already have a working model predicting values and was just about to finishing up, unfortunately I got a bit distracted by the COVID19 pandemic and had to work on another project for the last 2 weeks :-/ But lets have a chat, [email protected] |
I finally managed to publish a model based on IRNet incorporating values. Have a look at the code (https://github.com/brunnurs/valuenet) if you need a system predicting values and synthesizing fully fledged queries. To synthesize queries which can get executed I also had to solve some further issues like e.g. proper JOINs and the DISTINCT-Keyword. |
Hi, I tried to test the pre-train model with the original data from Spider. However, I notice that the final result generated by the
sem2SQL.py
replaces all the filter value by 1. For example when the question is: What is the average, minimum, and maximum age of all singers from France? The result isSELECT avg(T1.Age), min(T1.Age), max(T1.Age) FROM singer AS T1 WHERE T1.Country = 1
Instead of the correct SQLSELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'
.I notice in the
transfer
function, we put value to None when callingto_str
. Just wondering, is there a way to keep the values in the filtering query?Many thanks.
The text was updated successfully, but these errors were encountered: