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

Update some spellings in questions.json #226

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions training_data/sample-salaries/questions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"question":"What is the engineer to product manager ratio in Facebook, Amaon, Google ? ",
"question":"What is the engineer to product manager ratio in Facebook, Amazon, Google ? ",
"answer":"SELECT company,\n count(case when title like '%Engineer%' then 1\n else null end) as engineer_count,\n count(case when title like '%Product Manager%' then 1\n else null end) as product_manager_count,\n count(case when title like '%Engineer%' then 1\n else null end) \/ count(case when title like '%Product Manager%' then 1\n else null end) as ratio\nFROM salaries_data\nWHERE company in ('Facebook', 'Amazon', 'Google')\nGROUP BY company;"
},
{
Expand Down Expand Up @@ -84,7 +84,7 @@
"answer":"SELECT company,\n count(case when race = 'Asian' then 1\n else null end) * 100.0 \/ count(*) as asian_percentage\nFROM salaries_data\nWHERE company in (SELECT company\n FROM salaries_data\n GROUP BY company\n ORDER BY count(*) desc limit 20)\nGROUP BY company\nORDER BY asian_percentage desc limit 7;"
},
{
"question":"compare the correlation between yearsofexperience and basesalary and yearsatcompany and basesalary ",
"question":"compare the correlation between years of experience and base salary and years at company and basesalary ",
"answer":"SELECT corr(yearsofexperience, basesalary) as correlation_experience_salary,\n corr(yearsatcompany, basesalary) as correlation_years_salary\nFROM salaries_data;"
},
{
Expand Down Expand Up @@ -251,4 +251,4 @@
"question":"Which 5 company has the highest avg stock value grants among the top 40 employers? Load suitable bar chart",
"answer":"SELECT company,\n avg(stockgrantvalue) as average_stock_value\nFROM salaries_data\nWHERE company in (SELECT company\n FROM salaries_data\n GROUP BY company\n ORDER BY count(*) desc limit 40)\nGROUP BY company\nORDER BY average_stock_value desc limit 5;"
}
]
]