bot50
2026-04-13 14:58:25 +00:00
commit 2b995fdaa6
10 changed files with 26 additions and 0 deletions

3
1.sql Normal file
View File

@@ -0,0 +1,3 @@
-- write a SQL query that a translator might take interest in: list, side by side, the Japanese title and the
-- English title for each print. Ensure the Japanese title is the first column, followed by the English title.
SELECT "japanese_title", "english_title" FROM "views";

0
10.sql Normal file
View File

3
2.sql Normal file
View File

@@ -0,0 +1,3 @@
-- write a SQL query to list the average colors of prints by Hokusai that include “river” in the English title.
-- (As an aside, do they have any hint of blue?)
SELECT "average_color" FROM "views" WHERE "artist" = "Hokusai" AND "english_title" LIKE "%river%";

3
3.sql Normal file
View File

@@ -0,0 +1,3 @@
-- write a SQL query to count how many prints by Hokusai include “Fuji” in the English title.
-- Though all of Hokusais prints focused on Mt. Fuji, in how many did “Fuji” make it into the title?
SELECT COUNT(*) FROM "views" WHERE "artist" = "Hokusai" AND "english_title" LIKE "%Fuji%";

3
4.sql Normal file
View File

@@ -0,0 +1,3 @@
-- write a SQL query to count how many prints by Hiroshige have English titles that refer to the “Eastern Capital”.
-- Hiroshiges prints were created in Japans “Edo period,” referencing the eastern capital city of Edo, now Tokyo.
SELECT COUNT(*) FROM "views" WHERE "artist" = "Hiroshige" AND "english_title" LIKE "%Eastern%Capital%";

3
5.sql Normal file
View File

@@ -0,0 +1,3 @@
-- write a SQL query to find the highest contrast value of prints by Hokusai. Name the column “Maximum Contrast”.
-- Does Hokusais prints most contrasting print actually have much contrast?
SELECT MAX("contrast") AS "Maximum Contrast" FROM "views";

3
6.sql Normal file
View File

@@ -0,0 +1,3 @@
-- write a SQL query to find the average entropy of prints by Hiroshige, rounded to two decimal places.
-- Call the resulting column “Hiroshige Average Entropy”.
SELECT ROUND(AVG("entropy"), 2) AS "Hiroshige Average Entropy" FROM "views" WHERE "artist" = "Hiroshige";

3
7.sql Normal file
View File

@@ -0,0 +1,3 @@
-- write a SQL query to list the English titles of the 5 brightest prints by Hiroshige, from most to least bright.
-- Compare them to this list on Wikipedia to see if your results match the prints aesthetics.
SELECT "english_title" FROM "views" WHERE "artist" = "Hiroshige" ORDER BY "brightness" DESC LIMIT 5;

3
8.sql Normal file
View File

@@ -0,0 +1,3 @@
-- write a SQL query to list the English titles of the 5 prints with the least contrast by Hokusai, from least to highest contrast.
-- Compare them to this list on Wikipedia to see if your results match the prints aesthetics.
SELECT "english_title" FROM "views" WHERE "artist" = "Hokusai" ORDER BY "contrast" ASC LIMIT 5;

2
9.sql Normal file
View File

@@ -0,0 +1,2 @@
-- write a SQL query to find the English title and artist of the print with the highest brightness.
SELECT "english_title", "artist" FROM "views" ORDER BY "brightness" DESC LIMIT 1;