The JOIN table part of the output SQL does not contain ON clauses.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- databases, machine-learning
Research direction
No source file, test, or entry point is named. Start by tracing where the predicted SQL is generated and compare the JOIN output with the provided gold query. Done means generated JOIN statements include the appropriate ON relationship, with a regression test covering this example.
Written by the indexing model from the issue text.
Description
Hello,
I found the output sql does not contain ON clauses.
For example,
"question": "Show the stadium name and the number of concerts in each stadium."
"predicted": "SELECT stadium.Name, Count() FROM stadium JOIN concert GROUP BY stadium.Stadium_ID"
"gold": "SELECT T2.name , count() FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id"
I want to know how to get the on clauses "ON T1.stadium_id = T2.stadium_id".
Thank you.
- Dominant language
- Python
- Stars
- 109
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from awslabs/gap-text2sql
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
awslabs/gap-text2sql#37 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
awslabs/gap-text2sql#35 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
awslabs/gap-text2sql#34 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
awslabs/gap-text2sql#33 ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
awslabs/gap-text2sql#32 ·
All issues in awslabs/gap-text2sql
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100