Skip to content

Commit

Permalink
Merge pull request #226 from aus1st/patch-1
Browse files Browse the repository at this point in the history
Update some spellings in questions.json
  • Loading branch information
zainhoda authored Feb 2, 2024
2 parents 8c5e05a + 60f8a52 commit 82cb123
Showing 1 changed file with 3 additions and 3 deletions.
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;"
}
]
]

0 comments on commit 82cb123

Please sign in to comment.