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

suggest for a reference sql #13

Open
disunlike opened this issue Sep 3, 2024 · 0 comments
Open

suggest for a reference sql #13

disunlike opened this issue Sep 3, 2024 · 0 comments

Comments

@disunlike
Copy link

  {
        "question_id": 772,
        "db_id": "superhero",
        "question": "List the eyes, hair and skin colour of all female superheroes published by Dark Horse Comics.",
        "evidence": "eyes refers to eye_colour_id; hair refers to hair_colour_id; skin colour refers to skin_colour_id; female superheroes refers to gender = 'Female'; published by Dark Horse Comics refers to publisher_name = 'Dark Horse Comics';",
        "SQL": "SELECT   `T1`.`eye_colour_id`,   `T1`.`hair_colour_id`,   `T1`.`skin_colour_id` FROM `superhero` AS `T1` INNER JOIN `publisher` AS `T2`   ON `T2`.`id` = `T1`.`publisher_id` INNER JOIN `gender` AS `T3`   ON `T3`.`id` = `T1`.`gender_id` WHERE   `T2`.`publisher_name` = 'Dark Horse Comics' AND `T3`.`gender` = 'Female'",
        "difficulty": "challenging",
        "res": 0
    }

the above SQL return
下载

I suggest the result should be like as follow:
image (11)

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