diff --git a/hnq-research/HNQ-average-time-by-site.sql b/hnq-research/HNQ-average-time-by-site.sql new file mode 100644 index 0000000..bfef375 --- /dev/null +++ b/hnq-research/HNQ-average-time-by-site.sql @@ -0,0 +1,8 @@ +SELECT site, ROUND(AVG(time), 2) AS "average time", COUNT(*) AS "# of Q" + FROM ( + SELECT site, question, COUNT(*) / 6.0 AS time + FROM snapshots + GROUP BY site, question + ORDER BY COUNT(*) DESC + ) AS subquery GROUP BY site +ORDER BY AVG(time) DESC \ No newline at end of file diff --git a/hnq-research/HNQ-snapshots-by-site.sql b/hnq-research/HNQ-snapshots-by-site.sql new file mode 100644 index 0000000..3eb85c5 --- /dev/null +++ b/hnq-research/HNQ-snapshots-by-site.sql @@ -0,0 +1,5 @@ +SELECT site, ROUND(100.0 * COUNT(*) / (SELECT COUNT(*) FROM snapshots), 2) AS "percentage", + COUNT(DISTINCT(question)) AS "# of Q" + FROM snapshots + GROUP BY site + ORDER BY COUNT(*) DESC \ No newline at end of file diff --git a/hnq-research/HNQ.backup b/hnq-research/HNQ.backup new file mode 100644 index 0000000..b46b509 Binary files /dev/null and b/hnq-research/HNQ.backup differ