Answered step by step
Verified Expert Solution
Question
1 Approved Answer
solve with pandas SELECT Users. AccountId, Users. DisplayName, Users. Location, AVG(PostAuth. AnswersCount) as AverageAnswersCount FROM ( SELECT AnsCount. AnswersCount, Posts.Id, Posts. OwnerUserId FROM ( SELECT
solve with pandas
SELECT Users. AccountId, Users. DisplayName, Users. Location, AVG(PostAuth. AnswersCount) as AverageAnswersCount FROM ( SELECT AnsCount. AnswersCount, Posts.Id, Posts. OwnerUserId FROM ( SELECT Posts.ParentId, COUNT(*) AS AnswersCount FROM Posts WHERE Posts.PostTypeId = 2 GROUP BY Posts. ParentId ) AS AnsCount JOIN Posts ON Posts.Id = AnsCount.ParentId ) AS PostAuth JOIN Users ON Users. AccountId=PostAuth. OwnerUserId GROUP BY OwnerUserId ORDER BY AverageAnswersCount DESC LIMIT 10Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started