GithubHelp home page GithubHelp logo

Comments (7)

lihaoyang-ruc avatar lihaoyang-ruc commented on August 26, 2024

Hello.

Our approach is trained based on "Database + Question" -> "SQL" pairs, so we can't generate SQL queries without a database schema.

Maybe you can try ChatGPT using some prompts, it does a good job on this. :)

from resdsql.

starkf013 avatar starkf013 commented on August 26, 2024

I can give it also the database schema, but in the dev.json for example, there is also the query, that is a result that I want. It's possible to give question + database schema but without the query?

from resdsql.

lihaoyang-ruc avatar lihaoyang-ruc commented on August 26, 2024

Yes, our code considers this situation. In our inference scripts scripts/inference/infer_text2natsql.sh and scripts/inference/infer_text2natsql.sh, setting all --mode arguments to "test" can meet your requirements.

from resdsql.

nkezhaya avatar nkezhaya commented on August 26, 2024

@lihaoyang-ruc I'm trying to add a dataset to the database/ folder to and create custom questions for this, separate from the spider datasets. Is there a way to easily create tables.json and the other JSON files needed for RESDSQL to run inference, or do these JSON files need to be crafted by hand?

from resdsql.

lihaoyang-ruc avatar lihaoyang-ruc commented on August 26, 2024

I am sorry for this. I don't have such a script to create the tables.json file, because all datasets adopted in RESDSQL (such as Spider-DK, Dr.Spider, etc.) already obey the same structure as Spider. Maybe you can find something useful from Spider's project (https://github.com/taoyds/spider).

from resdsql.

lihaoyang-ruc avatar lihaoyang-ruc commented on August 26, 2024

This question is closed due to inactivity. If you have further questions, please feel free to open it again or create a new question.

from resdsql.

mellahysf avatar mellahysf commented on August 26, 2024

@lihaoyang-ruc Can you please provide a script that takes as inputs "Database + Question" and returns the corresponding SQL query?

from resdsql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.