Question: How many users in % who are using a web technology want to keep using it by web technology?
SQL:
SELECT WebFrameworks.name, COUNT(WebFrameworks.id) * 100.0 / count2 FROM WebFrameworks JOIN Response_WebFrameHaveWorkedWith ON Response_WebFrameHaveWorkedWith.WebFrameworks_id = WebFrameworks.id JOIN Response_WebFrameWantToWorkWith ON Response_WebFrameWantToWorkWith.Response_id = Response_WebFrameHaveWorkedWith.Response_id AND Response_WebFrameWantToWorkWith.WebFrameworks_id = WebFrameworks.id JOIN (SELECT WebFrameworks.name AS name2, COUNT(WebFrameworks.id) AS count2 FROM WebFrameworks JOIN Response_WebFrameHaveWorkedWith ON Response_WebFrameHaveWorkedWith.WebFrameworks_id = WebFrameworks.id GROUP BY WebFrameworks.id) ON WebFrameworks.name = name2 GROUP BY WebFrameworks.id