By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 5
| id | year | category | r |
|---|---|---|---|
| 1 | "2021" | "chemistry" | {"id": "1002", "firstname": "Benjamin", "surname": "List", "motivation": ""for the development of asymmetric organocatalysis"", "share": "2"} |
| 1 | "2021" | "chemistry" | {"id": "1003", "firstname": "David", "surname": "MacMillan", "motivation": ""for the development of asymmetric organocatalysis"", "share": "2"} |
| 2 | "2021" | "literature" | {"id": "1004", "firstname": "Abdulrazak", "surname": "Gurnah", "motivation": ""for his uncompromising and compassionate penetration of the effects of colonialism and the fate of the refugee in the gulf between cultures and continents"", "share": "1"} |
| 10 | "2021" | "singularity" | {"id": "666", "firstname": "Single", "surname": "Guy", "motivation": ""meh"", "share": "1"} |
| 11 | "2021" | "nihilism" | null |
| 12 | "2021" | "void" | null |
SELECT 6
| id | year | category | r |
|---|---|---|---|
| 1 | 2021 | chemistry | {"id": "1002", "share": "2", "surname": "List", "firstname": "Benjamin", "motivation": ""for the development of asymmetric organocatalysis""} |
| 1 | 2021 | chemistry | {"id": "1003", "share": "2", "surname": "MacMillan", "firstname": "David", "motivation": ""for the development of asymmetric organocatalysis""} |
| 2 | 2021 | literature | {"id": "1004", "share": "1", "surname": "Gurnah", "firstname": "Abdulrazak", "motivation": ""for his uncompromising and compassionate penetration of the effects of colonialism and the fate of the refugee in the gulf between cultures and continents""} |
| 10 | 2021 | singularity | {"id": "666", "share": "1", "surname": "Guy", "firstname": "Single", "motivation": ""meh""} |
| 11 | 2021 | nihilism | null |
SELECT 5
| id | year | category | r |
|---|---|---|---|
| 1 | 2021 | chemistry | {"id": "1002", "share": "2", "surname": "List", "firstname": "Benjamin", "motivation": ""for the development of asymmetric organocatalysis""} |
| 1 | 2021 | chemistry | {"id": "1003", "share": "2", "surname": "MacMillan", "firstname": "David", "motivation": ""for the development of asymmetric organocatalysis""} |
| 2 | 2021 | literature | {"id": "1004", "share": "1", "surname": "Gurnah", "firstname": "Abdulrazak", "motivation": ""for his uncompromising and compassionate penetration of the effects of colonialism and the fate of the refugee in the gulf between cultures and continents""} |
| 10 | 2021 | singularity | {"id": "666", "share": "1", "surname": "Guy", "firstname": "Single", "motivation": ""meh""} |
| 11 | 2021 | nihilism | null |
| 12 | 2021 | void | null |
SELECT 6