D1 sql, run 4: the query session

← back to the run

17 queries0 failed5 rounds
The opening prompt
## The data

You can't see the data, but you can query it. It is in DuckDB, in the tables below. Write DuckDB SQL.

To run queries, reply with one or more fenced blocks (```sql), and nothing else is needed:
each is run and its results sent back to you. You have up to 8 rounds of queries.
When you have what you need, reply with the final answers and no queries.

All columns are text (VARCHAR); dates are ISO strings.

- `entities` (540 rows): entity_id, name, lei, country, entity_type, parent_id, source_system
- `instruments` (122 rows): instrument_id, description, issuer_id, guarantor_id, seniority, currency, maturity
- `rating_actions` (914 rows): action_id, date, rated_id, rating_type, ccy_basis, action, rating, outlook, watch, comment

## Questions

Answer each question below from the data above. Start each answer on a new line with its
number in bold, like **Q1.**, give the direct answer first, then at most two sentences of
reasoning that cite the records (IDs) you relied on.

Then end with one JSON block (```json) holding the structured answer to each question listed
here, with exactly these fields, shaped like {"Q1": {"field": value}, ...}. Name entities by their record ID: the entity_id in the CSV files, or the part of the IRI after lad: in the RDF (E01, not Kestrel Energy plc).

- Q1: rating (a rating, or "none")
- Q2: downgraded ("yes", "no" or "depends")
- Q3: investment_grade ("yes", "no" or "depends"), rating (a rating, or "none")
- Q4: outlook (an outlook)
- Q5: risk_of (a record ID), rating (a rating, or "none")
- Q7: issuers (a list of record IDs)
- Q8: entities (a list of record IDs)
- Q9: count (a number)
- Q10: investment_grade ("yes", "no" or "depends")
- Q11: rating (a rating, or "none")
- Q12: rating (a rating, or "none")
- Q13: count (a number)
- Q14: rating (a rating, or "none")
- Q15: rating (a rating, or "none")
- Q16: changed ("yes", "no" or "depends")
- Q17: downgraded ("yes", "no" or "depends")
- Q18: issuers (a list of record IDs)
- Q19: issuers (a list of record IDs)
- Q20: in_default ("yes", "no" or "depends")
- Q21: entities (a list of record IDs)
- Q22: entities (a list of record IDs)
- Q23: rating (a rating, or "none")
- Q24: investment_grade ("yes", "no" or "depends")
- Q25: count (a number)
- Q26: rating (a rating, or "none")
- Q27: rating (a rating, or "none")
- Q28: rating (a rating, or "none")
- Q29: rating (a rating, or "none")
- Q30: entities (a list of record IDs)
- Q31: any ("yes", "no" or "depends")
- Q32: parent (a record ID)
- Q33: risk_of (a record ID), rating (a rating, or "none")
- Q34: same_group ("yes", "no" or "depends")
- Q35: count (a number)
- Q36: count (a number)
- Q37: count (a number)
- Q38: same ("yes", "no" or "depends")
- Q39: rating (a rating, or "none")
- Q40: count (a number)
- Q41: rating (a rating, or "none")
- Q42: country (a country code)
- Q43: count (a number)
- Q44: local_currency ("yes", "no" or "depends")
- Q45: above_ceiling ("yes", "no" or "depends")
- Q46: issuer_rating ("yes", "no" or "depends")
- Q47: rating (a rating, or "none")
- Q48: count (a number)
- Q49: parent (a record ID)
- Q50: count (a number)
- Q51: count (a number)
- Q52: count (a number)
- Q53: same_group ("yes", "no" or "depends")
- Q54: entities (a list of record IDs)
- Q55: count (a number)
- Q56: rating (a rating, or "none")
- Q57: entity (a record ID)
- Q58: entities (a list of record IDs)
- Q59: count (a number)
- Q60: risk_of (a record ID), same_group ("yes", "no" or "depends")
- Q61: count (a number)

Q1. What was Kestrel Energy's rating on 1 January 2025?
Q2. Has Kestrel Energy been downgraded in 2026?
Q3. Is Kestrel Energy's 2031 note investment grade?
Q4. What is Northwind Holdings' current outlook?
Q5. Whose credit risk does a holder of the Northwind Finance 2030 notes take, and how is it rated?
Q6. Why is Valdoria Telecom's foreign-currency rating lower than its local-currency rating?
Q7. Which issuers were downgraded in 2026?
Q8. Which entities were in default on 1 October 2026?
Q9. As of 1 October 2026, how many distinct issuers hold an issuer rating?
Q10. Is Valdoria Telecom investment grade?
Q11. What was Marlow Utilities' rating on 1 June 2025?
Q12. What was Marlow Utilities' rating on 1 January 2024?
Q13. How many times has Marlow Utilities been downgraded?
Q14. What was Halden Foods' rating on 1 January 2024?
Q15. What was Halden Bank's rating on 1 January 2026?
Q16. Has Marlow Utilities' rating changed since 1 January 2025?
Q17. Was Orrin Bank downgraded in 2026?
Q18. Which issuers were on Rating Watch Negative on 1 October 2026?
Q19. Which issuers had a Negative outlook on 1 October 2026?
Q20. Is Pellam Retail in default?
Q21. Which entities had an issuer rating at some point but no longer had one on 1 October 2026?
Q22. Which entities have ever been in default?
Q23. What is Kestrel Energy's short-term rating?
Q24. Is Kestrel Energy's issuer rating investment grade?
Q25. How many instruments held an investment-grade rating on 1 October 2026?
Q26. What is Corvenia Power's local-currency rating?
Q27. How is Corvenia Power's 2032 note rated?
Q28. What is the Republic of Corvenia's foreign-currency issuer rating?
Q29. What is the Republic of Valdoria's issuer rating?
Q30. Which entities had a foreign-currency issuer rating exactly at their country's ceiling on 1 October 2026?
Q31. Did any company have a foreign-currency issuer rating above its country's ceiling on 1 October 2026?
Q32. Who is Halden Leasing's ultimate parent?
Q33. Whose credit risk does a holder of the Halden Leasing 2028 notes take, and how is it rated?
Q34. Is Halden Foods part of the same group as Halden Bank?
Q35. How many entities are in the Halden group, the parent included?
Q36. How many entities are in the Northwind group, the parent included?
Q37. How many distinct legal entities does the data describe?
Q38. Are Orrin Bank AG and Orrin Bancorp Inc the same entity?
Q39. What is Northwind Holdings' current rating?
Q40. How many distinct issuers domiciled in GB held an issuer rating on 1 October 2026?
Q41. What is Brindle Capital's current rating?
Q42. In which country is Halden Bank domiciled?
Q43. How many distinct entities are domiciled in Luxembourg (LU)?
Q44. Is Valdoria Telecom's 2027 note a local-currency obligation?
Q45. Is Valdoria Telecom's 2027 note rated above what Valdoria's Country Ceiling allows?
Q46. Does Halden Leasing have an issuer rating?
Q47. How is Corvenia Power's 2034 note rated?
Q48. How many instruments held a rating on 1 October 2026?
Q49. Who is Cerid Rosor Holdings SA's ultimate parent?
Q50. How many levels of ownership separate Cerid Rosor Holdings SA from its ultimate parent?
Q51. How many entities are in the Cerid Group plc group, the parent included?
Q52. How many entities are in the Rotam Group Inc group, the parent included?
Q53. Are Belir Mining SA and Rotam Group Inc in the same group?
Q54. Which members of the Wonod Group SA group are domiciled in Valdoria (VD)?
Q55. If Valdoria (VD) came under stress, how many entities with an issuer rating in force have an entity domiciled in VD somewhere above them in their chain of parents?
Q56. What is the lowest current foreign-currency issuer rating held by any member of the Vesol Group BV group?
Q57. Which is the nearest entity that Cerid Guven Energy SA and Cerid Telecom SA both have in their chains of parents?
Q58. Which entities guarantee a note issued by an entity outside their own group?
Q59. How many entities in the Cerid Group plc group sit exactly three levels below the top?
Q60. Whose credit risk does a holder of the Cross-group 4.75% notes due 2031 take, and is that entity in the same group as the issuer?
Q61. How many members of the Cerid Group plc group, the top included, hold a foreign-currency issuer rating below investment grade?
The model
I'll start by looking at the data's structure.

```sql
SELECT * FROM entities LIMIT 40;
```

```sql
SELECT * FROM instruments LIMIT 40;
```

```sql
SELECT rating_type, ccy_basis, action, watch, outlook, count(*) FROM rating_actions GROUP BY ALL ORDER BY ALL;
```

```sql
SELECT entity_type, source_system, count(*) FROM entities GROUP BY ALL;
```
Query results
Query 1:

| entity_id | name | lei | country | entity_type | parent_id | source_system |
|---|---|---|---|---|---|---|
| E01 | Kestrel Energy plc | 7245002OOPBG04092E43 | GB | CORP |  | RATINGS |
| E02 | Northwind Holdings plc | 213800PHEIYNJMHTDV74 | GB | CORP |  | RATINGS |
| E03 | NORTHWIND HLDGS | 213800PHEIYNJMHTDV74 | GB | CORP |  | RESEARCH |
| E04 | Northwind Finance BV | 213800LA5RYJLGXV2T85 | NL | FINSUB | E02 | RATINGS |
| E05 | Valdoria Telecom SA | 391200LESH03LMOY2U61 | VD | CORP |  | RATINGS |
| E06 | Orrin Bank AG | 549300AMVE3VRVG7HK43 | DE | BANK |  | RATINGS |
| E07 | Pellam Retail Ltd | 969500B6IUACELPI2291 | GB | CORP |  | RATINGS |
| E08 | Saxby Shipping SA | 969500KOTZ1JFIZSG796 | GR | CORP |  | RATINGS |
| VD | Republic of Valdoria |  | VD | SOV |  | RATINGS |
| E09 | Halden Group plc | 815600ASM9EHDG931T89 | GB | CORP |  | RATINGS |
| E10 | Halden Bank AG | 391200QYPVFF2O9K2039 | DE | BANK | E09 | RATINGS |
| E11 | Halden Leasing SA | 549300XBZH4ULO9MQV55 | FR | FINSUB | E10 | RATINGS |
| E12 | Halden Foods Ltd | 213800IJDL4OJ4DG5T19 | GB | CORP |  | RATINGS |
| E13 | Orrin Bancorp Inc | 815600O8X8K2F154N214 | US | BANK |  | RATINGS |
| E14 | Marlow Utilities plc | 3912005AH2C1I9YF8106 | GB | CORP |  | RATINGS |
| CV | Republic of Corvenia |  | CV | SOV |  | RATINGS |
| E15 | Corvenia Power SA | 213800PBQVHVBBH6GV02 | CV | CORP |  | RATINGS |
| E16 | Brindle Capital Ltd | 5493003Z3PXXR7KNFM81 | GB | CORP |  | QA |
| E17 | HALDEN BANK | 391200QYPVFF2O9K2039 | LU | BANK |  | RESEARCH |
| E1001 | Tunod Steel SA | 3912003R00FP6CNV6210 | FR | CORP |  | RATINGS |
| E1002 | TUNOD STEEL SA | 3912003R00FP6CNV6210 | FR | CORP |  | RESEARCH |
| E1003 | Rilol Telecom plc | 3912009W4J483WB8PZ97 | GB | BANK |  | RATINGS |
| E1004 | Munem Retail SA | 969500IBYK0X2ZT52780 | ES | CORP |  | RATINGS |
| E1005 | Setan Airlines Inc | 815600JRN7AOE36KFR35 | US | CORP |  | RATINGS |
| E1006 | Soson Airlines Inc | 213800WSVEOAQ5HD4C43 | US | CORP | E1005 | RATINGS |
| E1007 | Golod Property plc | 815600N2UAHQREHHWF76 | GB | BANK |  | RATINGS |
| E1008 | Sotil Retail plc | 213800RPNJ2OSQ387M40 | GB | CORP |  | RATINGS |
| E1009 | Malam Chemicals Inc | 3912006EIY6TU9NVSC86 | US | CORP |  | RATINGS |
| E1010 | Buvir Industries Inc | 3912004R2GZJL49URX69 | US | CORP |  | RATINGS |
| E1011 | Falom Media Inc | 549300XX6U9N4Y7KPH74 | US | BANK |  | RATINGS |
| E1012 | Posad Industries SA | 9695002JIQI5QYDN0G98 | FR | CORP |  | RATINGS |
| E1013 | Pisol Pharma BV | 969500U072SAPPW32N81 | NL | BANK | E1004 | RATINGS |
| E1014 | Toral Utilities BV | 391200J700D8T2H18W16 | NL | CORP |  | RATINGS |
| E1015 | Civen Steel Inc | 815600JSNIJ4UFCBF662 | US | CORP |  | RATINGS |
| E1016 | Ponar Telecom SA | 5493008DQ96XI37KZG24 | ES | BANK |  | RATINGS |
| E1017 | Nisid Steel SA | 391200K600X7LWZTTM85 | FR | BANK |  | RATINGS |
| E1018 | Tosem Mining Inc | 549300SEMGL6OXLWHQ59 | US | CORP |  | RATINGS |
| E1019 | Losol Mining SA | 391200GSFO0F68KKUC67 | CV | CORP |  | RATINGS |
| E1020 | Finel Media AG | 549300FCSHHELSCZX562 | DE | CORP |  | RATINGS |
| E1021 | Niner Pharma plc | 391200KLG6G4KVIMIU52 | GB | CORP |  | RATINGS |

Query 2:

| instrument_id | description | issuer_id | guarantor_id | seniority | currency | maturity |
|---|---|---|---|---|---|---|
| I01 | Kestrel Energy 4.50% notes due 2030 | E01 |  | SU | GBP | 2030-03-15 |
| I02 | Kestrel Energy 6.25% notes due 2031 | E01 |  | SUB | GBP | 2031-09-30 |
| I03 | Northwind Finance 3.75% notes due 2030 | E04 | E02 | SU | EUR | 2030-05-01 |
| I04 | Valdoria Telecom 5.00% notes due 2029 | E05 |  | SU | USD | 2029-11-20 |
| I05 | Halden Leasing 2.90% notes due 2028 | E11 | E10 | SU | EUR | 2028-06-30 |
| I06 | Corvenia Power 7.10% notes due 2032 | E15 |  | SUB | USD | 2032-02-15 |
| I07 | Valdoria Telecom 4.25% notes due 2027 | E05 |  | SU | XVD | 2027-08-31 |
| I08 | Corvenia Power 6.00% notes due 2034 | E15 |  | SU | USD | 2034-09-01 |
| I1001 | Soson Airlines 5.50% notes due 2031 | E1006 |  | SUB | USD | 2035-06-30 |
| I1002 | Golod Property 8.75% notes due 2031 | E1007 |  | SU | USD | 2033-06-30 |
| I1003 | Sotil Retail 3.00% notes due 2031 | E1008 |  | SU | GBP | 2034-06-30 |
| I1004 | Malam Chemicals 2.25% notes due 2035 | E1009 |  | SU | USD | 2028-06-30 |
| I1005 | Posad Industries 4.00% notes due 2033 | E1012 |  | SU | EUR | 2031-06-30 |
| I1006 | Pisol Pharma 4.75% notes due 2030 | E1013 |  | SUB | USD | 2030-06-30 |
| I1007 | Toral Utilities 7.75% notes due 2028 | E1014 |  | SU | EUR | 2033-06-30 |
| I1008 | Ponar Telecom 4.75% notes due 2035 | E1016 |  | SU | EUR | 2033-06-30 |
| I1009 | Tosem Mining 2.75% notes due 2031 | E1018 |  | SUB | USD | 2036-06-30 |
| I1010 | Finel Media 6.50% notes due 2035 | E1020 |  | SU | EUR | 2036-06-30 |
| I1011 | Niner Pharma 3.25% notes due 2029 | E1021 |  | SU | USD | 2035-06-30 |
| I1012 | Heled Water 6.25% notes due 2030 | E1023 |  | SU | GBP | 2031-06-30 |
| I1013 | Kuvir Logistics 2.00% notes due 2027 | E1031 |  | SU | EUR | 2027-06-30 |
| I1014 | Kavod Utilities 2.50% notes due 2032 | E1035 |  | SU | USD | 2036-06-30 |
| I1015 | Lanon Telecom 4.75% notes due 2033 | E1038 |  | SUB | EUR | 2032-06-30 |
| I1016 | Hiral Steel 6.00% notes due 2035 | E1041 |  | SU | USD | 2034-06-30 |
| I1017 | Lised Pharma 4.50% notes due 2036 | E1048 |  | SU | EUR | 2029-06-30 |
| I1018 | Paser Utilities 3.75% notes due 2027 | E1049 |  | SUB | GBP | 2034-06-30 |
| I1019 | Sunar Holdings 8.50% notes due 2036 | E1050 |  | SUB | USD | 2034-06-30 |
| I1020 | Witad Steel 5.00% notes due 2033 | E1052 |  | SU | EUR | 2027-06-30 |
| I1021 | Duver Shipping 8.50% notes due 2032 | E1056 |  | SU | EUR | 2030-06-30 |
| I1022 | Levem Foods 6.50% notes due 2035 | E1067 |  | SUB | EUR | 2030-06-30 |
| I1023 | Mored Utilities 4.25% notes due 2032 | E1071 |  | SUB | USD | 2033-06-30 |
| I1024 | Ganed Holdings 5.75% notes due 2035 | E1077 |  | SU | EUR | 2032-06-30 |
| I1025 | Menir Shipping 7.50% notes due 2028 | E1078 |  | SUB | EUR | 2034-06-30 |
| I1026 | Nevar Property 6.75% notes due 2036 | E1079 |  | SU | GBP | 2028-06-30 |
| I1027 | Gilen Capital 2.00% notes due 2031 | E1082 |  | SUB | USD | 2034-06-30 |
| I1028 | Givim Mining 5.75% notes due 2036 | E1085 |  | SU | EUR | 2034-06-30 |
| I1029 | Gorar Steel 7.25% notes due 2033 | E1086 |  | SUB | USD | 2035-06-30 |
| I1030 | Vitid Holdings 5.75% notes due 2032 | E1087 |  | SU | EUR | 2034-06-30 |
| I1031 | Koved Holdings 2.50% notes due 2032 | E1088 |  | SUB | EUR | 2033-06-30 |
| I1032 | Getel Utilities 7.25% notes due 2033 | E1090 |  | SU | USD | 2032-06-30 |

Query 3:

| rating_type | ccy_basis | action | watch | outlook | count_star() |
|---|---|---|---|---|---|
| CC |  | AS |  |  | 2 |
| CO |  | AS |  |  | 7 |
| INST |  | AF |  |  | 1 |
| INST |  | AS |  |  | 113 |
| INST |  | DG |  |  | 3 |
| INST |  | EX |  |  | 9 |
| LTIDR | FC | AF |  | NEG | 22 |
| LTIDR | FC | AF |  | POS | 15 |
| LTIDR | FC | AF |  | STA | 44 |
| LTIDR | FC | AS |  | NEG | 1 |
| LTIDR | FC | AS |  | STA | 425 |
| LTIDR | FC | DG |  | NEG | 47 |
| LTIDR | FC | DG |  | POS | 24 |
| LTIDR | FC | DG |  | STA | 35 |
| LTIDR | FC | DG |  |  | 2 |
| LTIDR | FC | RW | RWN |  | 45 |
| LTIDR | FC | UG |  | NEG | 8 |
| LTIDR | FC | UG |  | POS | 10 |
| LTIDR | FC | UG |  | STA | 27 |
| LTIDR | FC | WD |  |  | 39 |
| LTIDR | LC | AF |  | POS | 1 |
| LTIDR | LC | AF |  | STA | 3 |
| LTIDR | LC | AS |  | STA | 19 |
| LTIDR | LC | DG |  | NEG | 1 |
| LTIDR | LC | DG |  | POS | 1 |
| LTIDR | LC | DG |  | STA | 2 |
| LTIDR | LC | RW | RWN |  | 3 |
| LTIDR | LC | UG |  | POS | 1 |
| LTIDR | LC | UG |  | STA | 2 |
| LTIDR | LC | WD |  |  | 1 |
| STIDR | FC | AF |  |  | 1 |

Query 4:

| entity_type | source_system | count_star() |
|---|---|---|
| CORP | RESEARCH | 24 |
| FINSUB | RATINGS | 17 |
| CORP | RATINGS | 393 |
| SOV | RATINGS | 2 |
| BANK | RATINGS | 85 |
| CORP | QA | 14 |
| BANK | RESEARCH | 5 |

Run more queries, or give the final answers.
The model
```sql
SELECT * FROM rating_actions WHERE rated_id IN ('E01','E02','E03','E04','E05','E06','E07','E08','VD','E09','E10','E11','E12','E13','E14','CV','E15','E16','E17','I01','I02','I03','I04','I05','I06','I07','I08') ORDER BY rated_id, date;
```

```sql
SELECT * FROM rating_actions WHERE comment IS NOT NULL AND comment<>'' AND rated_id NOT LIKE 'E1%' ORDER BY date;
```

```sql
SELECT * FROM rating_actions WHERE rating_type IN ('CC','CO','STIDR') ORDER BY rated_id;
```

```sql
SELECT * FROM entities WHERE entity_id NOT LIKE 'E1%' OR name LIKE 'Cerid%' OR name LIKE 'Rotam%' OR name LIKE 'Wonod%' OR name LIKE 'Vesol%' OR name LIKE 'Belir%' OR parent_id IS NOT NULL AND parent_id<>'' ORDER BY entity_id;
```
Query results
Query 1:

| action_id | date | rated_id | rating_type | ccy_basis | action | rating | outlook | watch | comment |
|---|---|---|---|---|---|---|---|---|---|
| A39 | 2024-01-01 | CV | LTIDR | LC | AS | A- | STA |  |  |
| A38 | 2024-01-01 | CV | LTIDR | FC | AS | BBB+ | STA |  |  |
| A37 | 2024-01-01 | CV | CC |  | AS | A |  |  |  |
| A01 | 2024-03-12 | E01 | LTIDR | FC | AS | A- | STA |  |  |
| A02 | 2025-06-20 | E01 | LTIDR | FC | DG | BBB | STA |  | weaker cash flow after asset sale |
| A03 | 2026-02-10 | E01 | LTIDR | FC | AF | BBB | NEG |  |  |
| A04 | 2026-02-10 | E01 | STIDR | FC | AF | F2 |  |  |  |
| A08 | 2023-11-01 | E02 | LTIDR | FC | AS | A | STA |  |  |
| A09 | 2025-09-15 | E03 | LTIDR | FC | AF | A | POS |  |  |
| A13 | 2025-04-01 | E05 | LTIDR | LC | AS | BBB- | STA |  |  |
| A14 | 2025-04-01 | E05 | LTIDR | FC | AS | BB | STA |  |  |
| A16 | 2024-05-01 | E06 | LTIDR | FC | AS | A- | STA |  |  |
| A17 | 2026-09-03 | E06 | LTIDR | FC | RW | A- |  | RWN |  |
| A18 | 2024-01-10 | E07 | LTIDR | FC | AS | BB | STA |  |  |
| A19 | 2026-05-12 | E07 | LTIDR | FC | WD | WD |  |  | commercial reasons |
| A20 | 2024-06-01 | E08 | LTIDR | FC | AS | B | STA |  |  |
| A21 | 2026-01-20 | E08 | LTIDR | FC | DG | CCC |  |  |  |
| A22 | 2026-07-08 | E08 | LTIDR | FC | DG | RD |  |  | distressed debt exchange completed |
| A24 | 2023-05-01 | E09 | LTIDR | FC | AS | A | STA |  |  |
| A25 | 2026-03-01 | E09 | LTIDR | FC | AF | A | NEG |  |  |
| A26 | 2023-05-01 | E10 | LTIDR | FC | AS | A- | STA |  | support from parent |
| A27 | 2026-04-15 | E10 | LTIDR | FC | DG | BBB+ | STA |  |  |
| A46 | 2025-02-01 | E11 | CO |  | AS | BBB |  |  |  |
| A30 | 2024-02-01 | E12 | LTIDR | FC | AS | BB- | STA |  |  |
| A31 | 2025-08-01 | E12 | LTIDR | FC | UG | BB | STA |  |  |
| A32 | 2024-07-01 | E13 | LTIDR | FC | AS | BBB | STA |  |  |
| A34 | 2023-01-15 | E14 | LTIDR | FC | AS | A- | STA |  |  |
| A36 | 2024-09-30 | E14 | LTIDR | FC | DG | BBB+ | STA |  |  |
| A35 | 2025-11-20 | E14 | LTIDR | FC | RW | BBB+ |  | RWN |  |
| A33 | 2026-05-01 | E14 | LTIDR | FC | AF | BBB+ | STA |  |  |
| A41 | 2024-03-01 | E15 | LTIDR | FC | AS | A | STA |  |  |
| A40 | 2024-03-01 | E15 | LTIDR | LC | AS | A+ | STA |  |  |
| A43 | 2024-04-01 | E16 | LTIDR | FC | AS | BBB- | STA |  |  |
| A44 | 2026-06-01 | E16 | LTIDR | FC | DG | BB+ | STA |  |  |
| A05 | 2024-03-12 | I01 | INST |  | AS | A- |  |  |  |
| A06 | 2025-06-20 | I01 | INST |  | DG | BBB |  |  |  |
| A23 | 2024-03-12 | I02 | INST |  | AS | BBB |  |  |  |
| A07 | 2025-06-20 | I02 | INST |  | DG | BB+ |  |  |  |
| A10 | 2023-11-01 | I03 | INST |  | AS | A |  |  |  |
| A11 | 2025-09-15 | I03 | INST |  | AF | A |  |  |  |
| A15 | 2025-04-01 | I04 | INST |  | AS | BB |  |  |  |
| A28 | 2023-06-01 | I05 | INST |  | AS | A- |  |  |  |
| A29 | 2026-04-15 | I05 | INST |  | DG | BBB+ |  |  |  |
| A42 | 2024-03-01 | I06 | INST |  | AS | A- |  |  |  |
| A45 | 2025-04-01 | I07 | INST |  | AS | BBB- |  |  |  |
| A47 | 2026-09-01 | I08 | INST |  | EX | A |  |  |  |
| A12 | 2025-04-01 | VD | CC |  | AS | BB |  |  |  |

Query 2:

| action_id | date | rated_id | rating_type | ccy_basis | action | rating | outlook | watch | comment |
|---|---|---|---|---|---|---|---|---|---|
| A02 | 2025-06-20 | E01 | LTIDR | FC | DG | BBB | STA |  | weaker cash flow after asset sale |
| A19 | 2026-05-12 | E07 | LTIDR | FC | WD | WD |  |  | commercial reasons |
| A22 | 2026-07-08 | E08 | LTIDR | FC | DG | RD |  |  | distressed debt exchange completed |

Query 3:

| action_id | date | rated_id | rating_type | ccy_basis | action | rating | outlook | watch | comment |
|---|---|---|---|---|---|---|---|---|---|
| A37 | 2024-01-01 | CV | CC |  | AS | A |  |  |  |
| A04 | 2026-02-10 | E01 | STIDR | FC | AF | F2 |  |  |  |
| A46 | 2025-02-01 | E11 | CO |  | AS | BBB |  |  |  |
| A1698 | 2026-09-02 | E1326 | CO |  | AS | BB |  |  |  |
| A1700 | 2025-06-13 | E1327 | CO |  | AS | BBB- |  |  |  |
| A1704 | 2025-06-27 | E1330 | CO |  | AS | BB+ |  |  |  |
| A1708 | 2024-08-17 | E1333 | CO |  | AS | BBB+ |  |  |  |
| A1713 | 2026-11-16 | E1337 | CO |  | AS | BBB+ |  |  |  |
| A1715 | 2026-07-04 | E1338 | CO |  | AS | BBB+ |  |  |  |
| A12 | 2025-04-01 | VD | CC |  | AS | BB |  |  |  |

Query 4:

| entity_id | name | lei | country | entity_type | parent_id | source_system |
|---|---|---|---|---|---|---|
| CV | Republic of Corvenia |  | CV | SOV |  | RATINGS |
| E01 | Kestrel Energy plc | 7245002OOPBG04092E43 | GB | CORP |  | RATINGS |
| E02 | Northwind Holdings plc | 213800PHEIYNJMHTDV74 | GB | CORP |  | RATINGS |
| E03 | NORTHWIND HLDGS | 213800PHEIYNJMHTDV74 | GB | CORP |  | RESEARCH |
| E04 | Northwind Finance BV | 213800LA5RYJLGXV2T85 | NL | FINSUB | E02 | RATINGS |
| E05 | Valdoria Telecom SA | 391200LESH03LMOY2U61 | VD | CORP |  | RATINGS |
| E06 | Orrin Bank AG | 549300AMVE3VRVG7HK43 | DE | BANK |  | RATINGS |
| E07 | Pellam Retail Ltd | 969500B6IUACELPI2291 | GB | CORP |  | RATINGS |
| E08 | Saxby Shipping SA | 969500KOTZ1JFIZSG796 | GR | CORP |  | RATINGS |
| E09 | Halden Group plc | 815600ASM9EHDG931T89 | GB | CORP |  | RATINGS |
| E10 | Halden Bank AG | 391200QYPVFF2O9K2039 | DE | BANK | E09 | RATINGS |
| E1006 | Soson Airlines Inc | 213800WSVEOAQ5HD4C43 | US | CORP | E1005 | RATINGS |
| E1013 | Pisol Pharma BV | 969500U072SAPPW32N81 | NL | BANK | E1004 | RATINGS |
| E1033 | Kunid Pharma SA | 213800Q84PS4FTJJB947 | ES | CORP | E1004 | RATINGS |
| E1046 | Ditin Shipping Inc | 549300ZM08IADSAK3L87 | US | BANK | E1026 | RATINGS |
| E1047 | Vaved Pharma plc | 391200WGA8OE30KZUD08 | GB | CORP | E1020 | RATINGS |
| E1059 | Kelim Media SA | 549300CRXZL5I1OT6L14 | CV | CORP | E1015 | RATINGS |
| E1066 | Lolil Industries SA | 213800VQSNQ2434DKS91 | ES | CORP | E1004 | RATINGS |
| E1075 | Nilim Industries Inc | 815600GT8SEYXSQI7W78 | US | CORP | E1071 | RATINGS |
| E1089 | Hanir Airlines SA | 969500WJX7JXMZXN4L42 | GR | CORP | E1078 | RATINGS |
| E1095 | Hunel Foods Inc | 549300YCPCEYTT7UCP57 | US | CORP | E1027 | RATINGS |
| E1098 | Wirim Water Inc | 724500HD5AQ2MDSXXU69 | US | CORP | E1006 | RATINGS |
| E11 | Halden Leasing SA | 549300XBZH4ULO9MQV55 | FR | FINSUB | E10 | RATINGS |
| E1101 | Doror Telecom SA | 815600YUVYKAXDN9LE93 | VD | CORP | E1083 | RATINGS |
| E1110 | Rinar Industries SA | 815600DZBIB9VS57NE44 | ES | CORP | E1007 | RATINGS |
| E1114 | Verod Logistics plc | 213800VNSK3FDUWI9Q67 | GB | CORP | E1063 | RATINGS |
| E1149 | Honel Shipping BV | 969500DV6LOBOACJKE42 | NL | CORP | E1013 | RATINGS |
| E1174 | Fivel Retail SpA | 724500P05MC40B0POA10 | IT | BANK | E1073 | RATINGS |
| E1177 | Kiver Capital AG | 213800J4ER8QI0XDZ847 | DE | BANK | E1010 | RATINGS |
| E1179 | Cotan Foods SA | 391200USHZVHBK9FHP01 | ES | CORP | E1162 | RATINGS |
| E1183 | Danad Pharma plc | 96950015W720OD9VIA28 | GB | CORP | E1025 | RATINGS |
| E1191 | Boler Steel SA | 815600G5CMC2QEQUCG23 | FR | CORP | E1177 | RATINGS |
| E1197 | Kaval Property plc | 8156000IN4HMEEM2ON82 | GB | CORP | E1066 | RATINGS |
| E1215 | Penen Retail Inc | 8156003V8NY694JQQA11 | US | BANK | E1063 | RATINGS |
| E1228 | Cevad Chemicals plc | 724500JFK718P3DNW233 | GB | CORP | E1023 | RATINGS |
| E1233 | Kavid Industries AG | 3912001DEUC7UPZYE471 | DE | CORP | E1198 | RATINGS |
| E1248 | Hivod Mining Inc | 213800XN4WOS9M0UP985 | US | CORP | E1107 | RATINGS |
| E1271 | Rarid Logistics AG | 213800M91M3NKSWT8K97 | DE | CORP | E1071 | RATINGS |
| E1273 | Furer Property SA | 724500Y582IZ7KJ6AG72 | ES | CORP | E1074 | RATINGS |
| E1275 | Fusin Steel Inc | 815600G1ZFK3SU6EZU96 | US | CORP | E1189 | RATINGS |
| E1276 | Nevil Holdings SpA | 2138005AK9MHXT35J172 | IT | CORP | E1074 | RATINGS |
| E1292 | Bavon Industries plc | 549300RN36RWXRZPV988 | GB | CORP | E1061 | RATINGS |
| E1293 | Datod Airlines plc | 391200BREGDXY5M1LW07 | GB | CORP | E1166 | RATINGS |
| E1315 | Wetid Shipping AG | 391200G0CPKPNGKWC253 | DE | CORP | E1278 | RATINGS |
| E1325 | Poval Chemicals Finance SA | 9695001YLTVXK1L24J01 | FR | FINSUB | E1084 | RATINGS |
| E1326 | Witad Steel Finance BV | 969500WJEQ7O6V8P8X79 | FR | FINSUB | E1052 | RATINGS |
| E1327 | Nuner Holdings Finance plc | 391200SWQKZG1IRLG226 | GB | FINSUB | E1119 | RATINGS |
| E1328 | Palad Mining Finance BV | 969500NW5R0G6TCAZA92 | GB | FINSUB | E1244 | RATINGS |
| E1329 | Ganen Shipping Finance plc | 549300ZZB6Z4QUIPZW48 | FR | FINSUB | E1069 | RATINGS |
| E1330 | Niner Pharma Finance SA | 969500PPIIF0MLO97E32 | NL | FINSUB | E1021 | RATINGS |
| E1331 | Tulol Shipping Finance BV | 391200D59Z1B4XWDGA48 | FR | FINSUB | E1025 | RATINGS |
| E1332 | Sanin Mining Finance SA | 21380077GIA72K258C76 | FR | FINSUB | E1068 | RATINGS |
| E1333 | Gilen Capital Finance plc | 213800HVPSP99Z2KCJ88 | NL | FINSUB | E1082 | RATINGS |
| E1334 | Votim Industries Finance BV | 3912005LQY8PFMP9D487 | FR | FINSUB | E1260 | RATINGS |
| E1335 | Belor Telecom Finance plc | 9695001Q1J0GREF1Y798 | NL | FINSUB | E1234 | RATINGS |
| E1336 | Navor Holdings Finance SA | 391200G55M6O27UJS152 | GB | FINSUB | E1176 | RATINGS |
| E1337 | Lanon Telecom Finance plc | 391200EERFGANN46Y270 | GB | FINSUB | E1038 | RATINGS |
| E1338 | Hivor Industries Finance BV | 724500WX98LDWMIZLF21 | GB | FINSUB | E1073 | RATINGS |
| E1339 | Wivin Airlines Finance SA | 724500Y59GQFHLXXCT69 | NL | FINSUB | E1241 | RATINGS |
| E5001 | Cerid Group plc | 815600F48PANJQE75352 | GB | CORP |  | RATINGS |
(170 more rows not shown)

Run more queries, or give the final answers.
The model
```sql
WITH RECURSIVE t AS (SELECT entity_id, entity_id root, 0 d FROM entities WHERE parent_id IS NULL OR parent_id='' UNION ALL SELECT e.entity_id, t.root, d+1 FROM entities e JOIN t ON e.parent_id=t.entity_id) SELECT t.root, n.name, count(*) c, max(d) md FROM t JOIN entities n ON n.entity_id=t.root GROUP BY ALL HAVING count(*)>1 ORDER BY c DESC;
```

```sql
SELECT i.*, e.name, e.parent_id FROM instruments i JOIN entities e ON e.entity_id=i.issuer_id WHERE guarantor_id IS NOT NULL AND guarantor_id<>'';
```

```sql
SELECT lei, string_agg(entity_id||':'||name||':'||country,' | ') FROM entities WHERE lei<>'' GROUP BY lei HAVING count(*)>1;
```

```sql
SELECT * FROM entities WHERE name LIKE 'Cerid%' OR name LIKE 'Rotam%' OR name LIKE 'Wonod%' OR name LIKE 'Vesol%' OR name LIKE 'Belir%' OR name LIKE 'Orrin%' ORDER BY entity_id;
```

```sql
SELECT * FROM instruments WHERE description LIKE '%Cross%' OR instrument_id NOT LIKE 'I1%';
```


<br>
Query results
Query 1:

| root | name | c | md |
|---|---|---|---|
| E5001 | Cerid Group plc | 55 | 6 |
| E5105 | Wonod Group SA | 27 | 5 |
| E5059 | Belir Group AG | 27 | 5 |
| E5145 | Geren Group SA | 22 | 4 |
| E5086 | Rotam Group Inc | 20 | 4 |
| E5132 | Vesol Group BV | 13 | 4 |
| E1004 | Munem Retail SA | 6 | 2 |
| E5167 | CERID CHEMICALS SA | 5 | 4 |
| E09 | Halden Group plc | 3 | 2 |
| E1005 | Setan Airlines Inc | 3 | 2 |
| E1074 | Kuron Steel plc | 3 | 1 |
| E1073 | Hivor Industries Inc | 3 | 1 |
| E1063 | Kotom Media SA | 3 | 1 |
| E1071 | Mored Utilities SA | 3 | 1 |
| E1010 | Buvir Industries Inc | 3 | 2 |
| E1025 | Tulol Shipping SA | 3 | 1 |
| E1260 | Votim Industries Inc | 2 | 1 |
| E1082 | Gilen Capital Inc | 2 | 1 |
| E1007 | Golod Property plc | 2 | 1 |
| E1176 | Navor Holdings plc | 2 | 1 |
| E1021 | Niner Pharma plc | 2 | 1 |
| E1241 | Wivin Airlines SA | 2 | 1 |
| E1162 | Wunam Telecom BV | 2 | 1 |
| E02 | Northwind Holdings plc | 2 | 1 |
| E1083 | Senir Mining plc | 2 | 1 |
| E1069 | Ganen Shipping SA | 2 | 1 |
| E1084 | Poval Chemicals SA | 2 | 1 |
| E1119 | Nuner Holdings SpA | 2 | 1 |
| E1189 | Divid Property plc | 2 | 1 |
| E1020 | Finel Media AG | 2 | 1 |
| E1023 | Heled Water plc | 2 | 1 |
| E1278 | Bavil Chemicals plc | 2 | 1 |
| E1078 | Menir Shipping Inc | 2 | 1 |
| E1068 | Sanin Mining SA | 2 | 1 |
| E1026 | Vunam Water BV | 2 | 1 |
| E1107 | Warod Capital SA | 2 | 1 |
| E1027 | Tesad Media Inc | 2 | 1 |
| E1166 | Ranim Shipping Inc | 2 | 1 |
| E1234 | Belor Telecom SpA | 2 | 1 |
| E1015 | Civen Steel Inc | 2 | 1 |
| E1038 | Lanon Telecom BV | 2 | 1 |
| E1052 | Witad Steel SA | 2 | 1 |
| E1061 | Dotan Retail AG | 2 | 1 |
| E1198 | Kiver Property AG | 2 | 1 |
| E1244 | Palad Mining Inc | 2 | 1 |

Query 2:

| instrument_id | description | issuer_id | guarantor_id | seniority | currency | maturity | name | parent_id |
|---|---|---|---|---|---|---|---|---|
| I03 | Northwind Finance 3.75% notes due 2030 | E04 | E02 | SU | EUR | 2030-05-01 | Northwind Finance BV | E02 |
| I05 | Halden Leasing 2.90% notes due 2028 | E11 | E10 | SU | EUR | 2028-06-30 | Halden Leasing SA | E10 |
| I1093 | Poval Chemicals Finance 2.50% notes due 2034 | E1325 | E1084 | SU | EUR | 2027-03-31 | Poval Chemicals Finance SA | E1084 |
| I1094 | Witad Steel Finance 6.50% notes due 2027 | E1326 | E1052 | SU | EUR | 2033-03-31 | Witad Steel Finance BV | E1052 |
| I1095 | Nuner Holdings Finance 4.50% notes due 2032 | E1327 | E1119 | SU | EUR | 2030-03-31 | Nuner Holdings Finance plc | E1119 |
| I1096 | Palad Mining Finance 6.50% notes due 2030 | E1328 | E1244 | SU | EUR | 2028-03-31 | Palad Mining Finance BV | E1244 |
| I1097 | Ganen Shipping Finance 5.50% notes due 2030 | E1329 | E1069 | SU | EUR | 2029-03-31 | Ganen Shipping Finance plc | E1069 |
| I1098 | Niner Pharma Finance 3.50% notes due 2030 | E1330 | E1021 | SU | EUR | 2032-03-31 | Niner Pharma Finance SA | E1021 |
| I1099 | Tulol Shipping Finance 3.50% notes due 2034 | E1331 | E1025 | SU | EUR | 2032-03-31 | Tulol Shipping Finance BV | E1025 |
| I1100 | Sanin Mining Finance 2.50% notes due 2032 | E1332 | E1068 | SU | EUR | 2028-03-31 | Sanin Mining Finance SA | E1068 |
| I1101 | Gilen Capital Finance 3.50% notes due 2031 | E1333 | E1082 | SU | EUR | 2034-03-31 | Gilen Capital Finance plc | E1082 |
| I1102 | Votim Industries Finance 3.50% notes due 2027 | E1334 | E1260 | SU | EUR | 2031-03-31 | Votim Industries Finance BV | E1260 |
| I1103 | Belor Telecom Finance 2.50% notes due 2027 | E1335 | E1234 | SU | EUR | 2030-03-31 | Belor Telecom Finance plc | E1234 |
| I1104 | Navor Holdings Finance 2.50% notes due 2029 | E1336 | E1176 | SU | EUR | 2033-03-31 | Navor Holdings Finance SA | E1176 |
| I1105 | Lanon Telecom Finance 5.50% notes due 2028 | E1337 | E1038 | SU | EUR | 2034-03-31 | Lanon Telecom Finance plc | E1038 |
| I1106 | Hivor Industries Finance 6.50% notes due 2027 | E1338 | E1073 | SU | EUR | 2033-03-31 | Hivor Industries Finance BV | E1073 |
| I1107 | Wivin Airlines Finance 2.50% notes due 2031 | E1339 | E1241 | SU | EUR | 2030-03-31 | Wivin Airlines Finance SA | E1241 |
| I5001 | Cerid Funding 4.25% notes due 2033 | E5005 | E5001 | SU | EUR | 2030-12-31 | Cerid Chemicals SA | E5002 |
| I5002 | Belir Funding 5.25% notes due 2035 | E5062 | E5059 | SU | EUR | 2029-12-31 | Belir Mining SA | E5060 |
| I5003 | Rotam Funding 3.25% notes due 2032 | E5090 | E5086 | SU | EUR | 2033-12-31 | Rotam Logistics Inc | E5087 |
| I5004 | Wonod Funding 4.25% notes due 2032 | E5108 | E5105 | SU | EUR | 2032-12-31 | Wonod Shipping BV | E5106 |
| I5007 | Cross-group 4.75% notes due 2031 | E5133 | E5145 | SU | USD | 2031-06-30 | Vesol Foods plc | E5132 |
| I5005 | Vesol Funding 7.25% notes due 2033 | E5135 | E5132 | SU | EUR | 2030-12-31 | Vesol Water plc | E5133 |
| I5006 | Geren Funding 7.25% notes due 2030 | E5149 | E5145 | SU | EUR | 2032-12-31 | Geren Neter Logistics plc | E5146 |

Query 3:

| lei | string_agg(((((entity_id || ':') || "name") || ':') || country), ' | ') |
|---|---|
| 969500PM41NS2PBZU440 | E1160:Diled Steel SA:FR | E1161:DILED STEEL SA:FR |
| 549300CRXZL5I1OT6L14 | E1059:Kelim Media SA:CV | E1060:KELIM MEDIA SA:CV |
| 549300A64I73OEIC4R87 | E1213:Winim Mining SA:FR | E1214:WINIM MINING SA:NL |
| 54930011OTFCAUKB0A28 | E5062:Belir Mining SA:FR | E5168:BELIR MINING SA:FR |
| 5493004IM0PRT8BSDK29 | E1238:Wevin Capital SA:GR | E1239:WEVIN CAPITAL SA:GR |
| 391200B1GR4AGTV5WY99 | E5005:Cerid Chemicals SA:VD | E5167:CERID CHEMICALS SA:VD |
| 815600HDI8Y3IWGOOH22 | E1103:Vavam Pharma Inc:US | E1104:VAVAM PHARMA INC:US |
| 391200E9TAHDZV7CY568 | E1147:Daren Mining SA:FR | E1148:DAREN MINING SA:FR |
| 549300XV49ES64RGNQ00 | E1169:Seren Telecom plc:GB | E1170:SEREN TELECOM:GB |
| 815600LRX1P8142NMF42 | E1245:Gater Holdings SA:CV | E1246:GATER HOLDINGS SA:FR |
| 724500UQKUINIUB80J18 | E1318:Sutem Water plc:GB | E1319:SUTEM WATER:GB |
| 549300NTCTGRKRYIAN83 | E1096:Ravon Capital SA:CV | E1097:RAVON CAPITAL SA:CV |
| 9695000PSF2HLPO9AE57 | E1310:Natil Retail SpA:IT | E1311:NATIL RETAIL SPA:IT |
| 724500BSV4X2J7KUR535 | E1138:Konel Energy BV:NL | E1139:KONEL ENERGY BV:NL |
| 815600RCZP0ISY44E024 | E1298:Faner Steel SA:ES | E1299:FANER STEEL SA:ES |
| 3912003R00FP6CNV6210 | E1001:Tunod Steel SA:FR | E1002:TUNOD STEEL SA:FR |
| 391200KLG6G4KVIMIU52 | E1021:Niner Pharma plc:GB | E1022:NINER PHARMA:GB |
| 724500YEJSJ19G17TW94 | E1258:Nirad Retail SA:FR | E1259:NIRAD RETAIL SA:FR |
| 213800PHEIYNJMHTDV74 | E02:Northwind Holdings plc:GB | E03:NORTHWIND HLDGS:GB |
| 391200JN4T4KY2HCRU75 | E1116:Hener Energy plc:GB | E1117:HENER ENERGY:GB |
| 969500KYKHRI6N2WRN19 | E1156:Ruven Airlines AG:DE | E1157:RUVEN AIRLINES:US |
| 969500QXEZ0NSV6EIW69 | E1253:Vusir Telecom SA:ES | E1254:VUSIR TELECOM SA:ES |
| 969500W1342GHBTOGH81 | E5106:Wonod Steel BV:NL | E5169:WONOD STEEL BV:VD |
| 391200USHZVHBK9FHP01 | E1179:Cotan Foods SA:ES | E1180:COTAN FOODS SA:IT |
| 549300H1N0EQEAZLE362 | E1261:Munam Water SA:ES | E1262:MUNAM WATER SA:ES |
| 391200QYPVFF2O9K2039 | E10:Halden Bank AG:DE | E17:HALDEN BANK:LU |
| 8156008DPX4I9DNKWN26 | E1029:Leson Telecom Inc:US | E1030:LESON TELECOM INC:US |
| 549300E50JHDJNBUGF22 | E1152:Kivel Property plc:GB | E1153:KIVEL PROPERTY:GB |
| 549300HWTXXHJP2HKU38 | E1209:Malid Mining SpA:IT | E1210:MALID MINING SPA:DE |

Query 4:

| entity_id | name | lei | country | entity_type | parent_id | source_system |
|---|---|---|---|---|---|---|
| E06 | Orrin Bank AG | 549300AMVE3VRVG7HK43 | DE | BANK |  | RATINGS |
| E13 | Orrin Bancorp Inc | 815600O8X8K2F154N214 | US | BANK |  | RATINGS |
| E5001 | Cerid Group plc | 815600F48PANJQE75352 | GB | CORP |  | RATINGS |
| E5002 | Cerid Energy plc | 3912006ACANJUP8PLJ39 | GB | CORP | E5001 | RATINGS |
| E5003 | Cerid Media BV | 724500EXQA91TPK6WL60 | NL | CORP | E5001 | RATINGS |
| E5004 | Cerid Utilities plc | 969500SFWGRHVUTANY40 | GB | CORP | E5001 | RATINGS |
| E5005 | Cerid Chemicals SA | 391200B1GR4AGTV5WY99 | VD | CORP | E5002 | RATINGS |
| E5006 | Cerid Foods plc | 969500HZQBDFIIHLYK06 | GB | BANK | E5002 | RATINGS |
| E5007 | Cerid Holdings BV | 391200Q98UGZZQTV1C88 | NL | CORP | E5003 | RATINGS |
| E5008 | Cerid Airlines BV | 815600M8RE9386DDQB31 | NL | CORP | E5003 | RATINGS |
| E5009 | Cerid Leror Logistics plc | 96950033222B9BRCGP58 | GB | CORP | E5004 | RATINGS |
| E5010 | Cerid Gator Steel Inc | 724500E2OQMMMZVTBS53 | US | CORP | E5004 | RATINGS |
| E5011 | Cerid Guven Energy SA | 391200IX7WB68Q29NJ46 | VD | CORP | E5167 | RATINGS |
| E5012 | Cerid Gevin Pharma SA | 549300TPHB19IJU6VV67 | VD | CORP | E5005 | RATINGS |
| E5013 | Cerid Telecom SA | 724500EU84AMOZS7U244 | ES | BANK | E5006 | RATINGS |
| E5014 | Cerid Gusom Pharma SpA | 724500YWGS7BR1AKHD13 | IT | CORP | E5006 | RATINGS |
| E5015 | Cerid Logistics BV | 969500C1TQV008QIYL28 | NL | CORP | E5007 | RATINGS |
| E5016 | Cerid Rovem Industries BV | 549300WMHA09HQ7NGF72 | NL | CORP | E5007 | RATINGS |
| E5017 | Cerid Steel BV | 213800BAYNUVR2EE0Y41 | NL | CORP | E5008 | RATINGS |
| E5018 | Cerid Mining BV | 815600DDEIUOIMDS3N14 | NL | CORP | E5008 | RATINGS |
| E5019 | Cerid Buvom Mining plc | 2138002W9KTVILKQ8Q89 | GB | CORP | E5009 | RATINGS |
| E5020 | Cerid Tivim Retail SA | 9695003VHLA8O9WU7N54 | FR | BANK | E5009 | RATINGS |
| E5021 | Cerid Retail Inc | 724500S8Q4HUNT229Y84 | US | CORP | E5010 | RATINGS |
| E5022 | Cerid Industries Inc | 213800S7QJ9EVK96PK05 | US | CORP | E5010 | RATINGS |
| E5023 | Cerid Dilal Utilities SA | 549300MXQ7UU7852PG70 | VD | CORP | E5011 | RATINGS |
| E5024 | Cerid Fatal Shipping SA | 39120041ZCI02VDN2I18 | VD | CORP | E5012 | RATINGS |
| E5025 | Cerid Fater Media SA | 213800AXPZD5MSP2GW32 | ES | CORP | E5013 | RATINGS |
| E5026 | Cerid Hosad Retail Inc | 724500GF9ADSAA20FI77 | US | CORP | E5014 | RATINGS |
| E5027 | Cerid Hutem Water plc | 391200TO1KK187R1JQ78 | GB | CORP | E5015 | RATINGS |
| E5028 | Cerid Galon Chemicals BV | 724500EVQNRETR9CVD02 | NL | BANK | E5016 | RATINGS |
| E5029 | Cerid Walol Water BV | 21380057HMIY2LIM5A29 | NL | BANK | E5017 | RATINGS |
| E5030 | Cerid Tivor Holdings BV | 549300M13MMEINCT8W03 | NL | CORP | E5018 | RATINGS |
| E5031 | Cerid Velin Water plc | 815600Q07VLOKJE53L06 | GB | CORP | E5019 | RATINGS |
| E5032 | Cerid Meron Media SA | 213800CIZLWWL071KP85 | FR | CORP | E5020 | RATINGS |
| E5033 | Cerid Pitam Energy Inc | 969500799KP9QCVM7739 | US | CORP | E5021 | RATINGS |
| E5034 | Cerid Shipping BV | 7245008XDA202762F829 | NL | CORP | E5022 | RATINGS |
| E5035 | Cerid Water SA | 724500637K0GA6PFC081 | VD | BANK | E5023 | RATINGS |
| E5036 | Cerid Calin Energy SpA | 549300RJ7KMPDJVQY167 | IT | CORP | E5024 | RATINGS |
| E5037 | Cerid Holom Water SA | 2138003NRPV4IDSP9314 | ES | CORP | E5025 | RATINGS |
| E5038 | Cerid Holen Chemicals BV | 969500HETRKT6OQMNS48 | NL | CORP | E5026 | RATINGS |
| E5039 | Cerid Property SA | 549300DBENKHP53C1C31 | ES | CORP | E5027 | RATINGS |
| E5040 | Cerid Lovan Energy BV | 9695007VBLZNWG66LZ43 | NL | CORP | E5028 | RATINGS |
| E5041 | Cerid Dolem Mining AG | 391200FXD4CH3FVZ4165 | DE | BANK | E5029 | RATINGS |
| E5042 | Cerid Feral Property BV | 724500N6QZUJJJ1BJI79 | NL | BANK | E5030 | RATINGS |
| E5043 | Cerid Retil Chemicals plc | 724500TQEHDQ1U12GG60 | GB | CORP | E5031 | RATINGS |
| E5044 | Cerid Masim Retail plc | 969500Q2MORWVR40BH37 | GB | CORP | E5032 | RATINGS |
| E5045 | Cerid Curel Water SA | 7245006QVOPQQK3JUP45 | CV | CORP | E5033 | RATINGS |
| E5046 | Cerid Gevom Media BV | 5493004EWDCN8OTFZZ22 | NL | CORP | E5034 | RATINGS |
| E5047 | Cerid Rosor Holdings SA | 8156004CDHFBVRR3LT54 | VD | BANK | E5035 | RATINGS |
| E5048 | Cerid Pharma plc | 969500Z6AXSJ33YYZX35 | GB | CORP | E5036 | RATINGS |
| E5049 | Cerid Ritir Foods plc | 969500W280QA6A7WLO22 | GB | CORP | E5037 | RATINGS |
| E5050 | Cerid Futir Utilities BV | 213800KKF07D3TEWYS82 | NL | BANK | E5038 | RATINGS |
| E5051 | Cerid Butad Capital SA | 969500P4S8FH9839YS39 | FR | CORP | E5039 | RATINGS |
| E5052 | Cerid Viron Property SA | 391200Z0R0NKUJT0LS48 | FR | CORP | E5040 | RATINGS |
| E5053 | Cerid Setom Media AG | 549300GMLMV9DA645M00 | DE | CORP | E5041 | RATINGS |
| E5054 | Cerid Linin Media BV | 549300UVWD2URAQCNQ18 | NL | BANK | E5042 | RATINGS |
| E5055 | Cerid Gosim Media SA | 391200627RBIC2DTG305 | CV | CORP | E5043 | RATINGS |
| E5056 | Cerid Capital plc | 391200Q0XXMZJQSOR362 | GB | CORP | E5044 | RATINGS |
| E5057 | Cerid Manid Airlines Inc | 5493008DY4URIBMCWM93 | US | CORP | E5045 | RATINGS |
| E5058 | Cerid Cirad Industries BV | 391200XLOZO7S6T1FI61 | NL | BANK | E5046 | RATINGS |
(86 more rows not shown)

Query 5:

| instrument_id | description | issuer_id | guarantor_id | seniority | currency | maturity |
|---|---|---|---|---|---|---|
| I01 | Kestrel Energy 4.50% notes due 2030 | E01 |  | SU | GBP | 2030-03-15 |
| I02 | Kestrel Energy 6.25% notes due 2031 | E01 |  | SUB | GBP | 2031-09-30 |
| I03 | Northwind Finance 3.75% notes due 2030 | E04 | E02 | SU | EUR | 2030-05-01 |
| I04 | Valdoria Telecom 5.00% notes due 2029 | E05 |  | SU | USD | 2029-11-20 |
| I05 | Halden Leasing 2.90% notes due 2028 | E11 | E10 | SU | EUR | 2028-06-30 |
| I06 | Corvenia Power 7.10% notes due 2032 | E15 |  | SUB | USD | 2032-02-15 |
| I07 | Valdoria Telecom 4.25% notes due 2027 | E05 |  | SU | XVD | 2027-08-31 |
| I08 | Corvenia Power 6.00% notes due 2034 | E15 |  | SU | USD | 2034-09-01 |
| I5001 | Cerid Funding 4.25% notes due 2033 | E5005 | E5001 | SU | EUR | 2030-12-31 |
| I5002 | Belir Funding 5.25% notes due 2035 | E5062 | E5059 | SU | EUR | 2029-12-31 |
| I5003 | Rotam Funding 3.25% notes due 2032 | E5090 | E5086 | SU | EUR | 2033-12-31 |
| I5004 | Wonod Funding 4.25% notes due 2032 | E5108 | E5105 | SU | EUR | 2032-12-31 |
| I5005 | Vesol Funding 7.25% notes due 2033 | E5135 | E5132 | SU | EUR | 2030-12-31 |
| I5006 | Geren Funding 7.25% notes due 2030 | E5149 | E5145 | SU | EUR | 2032-12-31 |
| I5007 | Cross-group 4.75% notes due 2031 | E5133 | E5145 | SU | USD | 2031-06-30 |

Run more queries, or give the final answers.
The model
<invoke name="sql">
CREATE OR REPLACE TEMP VIEW canon AS SELECT entity_id, name, country, entity_type, parent_id, lei, min(entity_id) OVER (PARTITION BY coalesce(nullif(lei,''), entity_id)) cid FROM entities;
CREATE OR REPLACE TEMP VIEW ra AS SELECT c.cid, r.* FROM rating_actions r JOIN canon c ON c.entity_id=r.rated_id;
CREATE OR REPLACE TEMP VIEW st AS SELECT * FROM (SELECT *, row_number() OVER (PARTITION BY cid, rating_type, coalesce(ccy_basis,'') ORDER BY date DESC, action_id DESC) rn FROM ra WHERE date<='2026-10-01' AND rating_type='LTIDR') WHERE rn=1;
SELECT 'Q7', string_agg(DISTINCT cid, ',') FROM ra WHERE rating_type='LTIDR' AND action='DG' AND date>='2026-01-01'
UNION ALL SELECT 'Q18', string_agg(DISTINCT cid, ',') FROM st WHERE watch='RWN'
UNION ALL SELECT 'Q19', string_agg(DISTINCT cid, ',') FROM st WHERE outlook='NEG'
UNION ALL SELECT 'Q9', count(DISTINCT cid)::varchar FROM st WHERE action<>'WD'
UNION ALL SELECT 'Q21', string_agg(DISTINCT cid, ',') FROM ra WHERE rating_type='LTIDR' AND action<>'WD' AND cid NOT IN (SELECT cid FROM st WHERE action<>'WD')
UNION ALL SELECT 'ratings', string_agg(rating||':'||n, ',') FROM (SELECT rating, count(*) n FROM rating_actions GROUP BY rating)
UNION ALL SELECT 'Q8', string_agg(DISTINCT cid, ',') FROM st WHERE rating IN ('RD','D','C') AND ccy_basis='FC'
UNION ALL SELECT 'Q22', string_agg(DISTINCT cid, ',') FROM ra WHERE rating IN ('RD','D')
UNION ALL SELECT 'Q37', count(DISTINCT cid)::varchar FROM canon
UNION ALL SELECT 'Q43', count(DISTINCT cid)::varchar FROM canon WHERE country='LU'
UNION ALL SELECT 'Q40', count(DISTINCT s.cid)::varchar FROM st s JOIN canon c ON c.entity_id=s.cid WHERE s.action<>'WD' AND c.country='GB'
UNION ALL SELECT 'minmat', min(maturity) FROM instruments;
</invoke>



<invoke name="sql">
SELECT 'inst', rating, action, count(*) FROM (SELECT *, row_number() OVER (PARTITION BY rated_id ORDER BY date DESC, action_id DESC) rn FROM rating_actions WHERE rating_type='INST' AND date<='2026-10-01') WHERE rn=1 GROUP BY ALL ORDER BY ALL;
SELECT 'ceil', c.cid, c.country, s.rating, s.action, s.date FROM st s JOIN canon c ON c.entity_id=s.cid WHERE c.country IN ('CV','VD') AND s.ccy_basis='FC' ORDER BY 3,2;
SELECT 'lastinstdate', max(date) FROM rating_actions;
</invoke>



<invoke name="sql">
WITH RECURSIVE t AS (SELECT entity_id, entity_id root, 0 d FROM canon WHERE coalesce(parent_id,'')='' UNION ALL SELECT e.entity_id, t.root, d+1 FROM canon e JOIN t ON e.parent_id=t.entity_id)
SELECT 'Q49/50', root, d FROM t WHERE entity_id='E5047'
UNION ALL SELECT 'Q51', root, count(DISTINCT entity_id) FROM t WHERE root IN ('E5001','E5086') GROUP BY root
UNION ALL SELECT 'Q53', entity_id, root FROM t WHERE entity_id IN ('E5062','E5168','E5086')
UNION ALL SELECT 'Q54', string_agg(t.entity_id,','), '' FROM t JOIN canon c USING(entity_id) WHERE root='E5105' AND c.country='VD'
UNION ALL SELECT 'Q59', root, count(*) FROM t WHERE root='E5001' AND d=3 GROUP BY root
UNION ALL SELECT 'Q57', entity_id, root||' d'||d FROM t WHERE entity_id IN ('E5011','E5013');
</invoke>
</br>
Query results
Query 1:

| 'Q7' | string_agg(DISTINCT cid, ',') |
|---|---|
| Q7 | E1285,E1290,E1151,E1294,E1350,E08,E1112,E1169,E1186,E1348,E1058,E1167,E1341,E5156,E1053,E1057,E1144,E1159,E1243,E5019,E5113,E1051,E1347,E1163,E1213,E1300,E5097,E1344,E16,E1340,E1346,E1080,E5116,E1228,E1229,E1255,E1263,E1298,E1307,E1345,E1349,E5033,E1034,E10,E1160,E1342,E1351,E5059,E1064,E1093,E1343 |
| Q18 | E1109,E1168,E1037,E1209,E1242,E1317,E1099,E1260,E1132,E1019,E1264,E1006,E1194,E1088,E1181,E1238,E1061,E1013,E1297,E1203,E1066,E1314,E1323,E1146,E1267,E1133,E06,E1126,E1098,E1059,E1266,E1039 |
| Q19 | E1294,E5119,E1055,E5141,E1350,E1118,E1343,E1261,E1064,E01,E1271,E1347,E1188,E1034,E5057,E1248,E1348,E1046,E5062,E1340,E5013,E5023,E1059,E1056,E1282,E5073,E1263,E5050,E1228,E1345,E5099,E5116,E1005,E1080,E1029,E1160,E1342,E5170,E5059,E1351,E5020,E1079,E5113,E1211,E09,E5019,E5131,E1190,E5039,E5156,E1072,E1105,E1158,E1344,E5102,E5097,E1300 |
| Q9 | 391 |
| Q21 | E1048,E1084,E1007,E1032,E1057,E1155,E1159,E1253,E1308,E1277,E1244,E1316,E1062,E1076,E1206,E1219,E1320,E1218,E1001,E1124,E1172,E07,E1021,E1166,E1121,E1205,E1041,E1063,E1107,E1138,E1140,E1200,E1225,E1233,E1234 |
| ratings | BBB:61,A-:83,A:85,B:27,F2:1,A+:62,CCC:1,BB+:84,B+:75,AA:6,BB:92,WD:40,BB-:63,RD:1,AA-:52,BBB-:86,BBB+:78,B-:17 |
| Q8 | E08 |
| Q22 | E08 |
| Q37 | 511 |
| Q43 | 1 |
| Q40 | 87 |
| minmat | 2027-03-31 |

Query 2:

| 'lastinstdate' | max(date) |
|---|---|
| lastinstdate | 2026-12-17 |

Query 3:

| 'Q49/50' | root | d |
|---|---|---|
| Q49/50 | E5167 | 4 |
| Q51 | E5001 | 55 |
| Q51 | E5086 | 20 |
| Q53 | E5086 | E5086 |
| Q53 | E5168 | E5086 |
| Q53 | E5062 | E5059 |
| Q54 | E5124,E5130 |  |
| Q59 | E5001 | 11 |
| Q57 | E5011 | E5167 d1 |
| Q57 | E5013 | E5001 d3 |

Run more queries, or give the final answers.
The model
<invoke name="sql">
CREATE OR REPLACE MACRO rk(x) AS list_position(['AAA','AA+','AA','AA-','A+','A','A-','BBB+','BBB','BBB-','BB+','BB','BB-','B+','B','B-','CCC+','CCC','CC','C','RD','D'], x);
WITH RECURSIVE canon AS (SELECT entity_id,country,parent_id,source_system,min(entity_id) OVER (PARTITION BY coalesce(nullif(lei,''),entity_id)) cid FROM entities),
pick AS (SELECT cid, arg_min(country,o) country, arg_min(nullif(parent_id,''),o) praw FROM (SELECT *, CASE WHEN source_system='RATINGS' THEN 0 ELSE 1 END o FROM canon) GROUP BY cid),
par AS (SELECT p.cid,p.country,c.cid pcid FROM pick p LEFT JOIN canon c ON c.entity_id=p.praw),
t AS (SELECT cid,cid root,0 d,false av FROM par WHERE pcid IS NULL UNION ALL SELECT p.cid,t.root,t.d+1,t.av OR tc.country='VD' FROM par p JOIN t ON p.pcid=t.cid JOIN par tc ON tc.cid=t.cid),
st AS (SELECT cut,cid,ccy_basis,rating,action FROM (SELECT x.cut,c.cid,r.ccy_basis,r.rating,r.action,row_number() OVER (PARTITION BY x.cut,c.cid,r.ccy_basis ORDER BY r.date DESC,r.action_id DESC) rn FROM rating_actions r JOIN canon c ON c.entity_id=r.rated_id CROSS JOIN (VALUES ('a','2026-10-01'),('b','2026-11-05')) x(cut,dt) WHERE r.rating_type='LTIDR' AND r.date<=x.dt) WHERE rn=1)
SELECT 'Q35',count(*)::varchar FROM t WHERE root='E09'
UNION ALL SELECT 'Q36',count(*)::varchar FROM t WHERE root='E02'
UNION ALL SELECT 'Q51',count(*)::varchar FROM t WHERE root='E5001'
UNION ALL SELECT 'Q52',count(*)::varchar FROM t WHERE root='E5086'
UNION ALL SELECT 'Q59',count(*)::varchar FROM t WHERE root='E5001' AND d=3
UNION ALL SELECT 'Q50',root||' d'||d FROM t WHERE cid='E5047'
UNION ALL SELECT 'Q57',cid||' '||root||' d'||d FROM t WHERE cid IN ('E5011','E5013','E5005','E5002')
UNION ALL SELECT 'Q55',count(DISTINCT t.cid)::varchar FROM t JOIN st s ON s.cid=t.cid AND s.cut='a' AND s.action<>'WD' WHERE t.av
UNION ALL SELECT 'Q56',arg_max(s.rating,rk(s.rating))||' '||string_agg(t.cid||s.rating,',') FROM t JOIN st s ON s.cid=t.cid AND s.cut='b' AND s.ccy_basis='FC' AND s.action<>'WD' WHERE root='E5132'
UNION ALL SELECT 'Q61',count(DISTINCT t.cid)::varchar FROM t JOIN st s ON s.cid=t.cid AND s.cut='b' AND s.ccy_basis='FC' AND s.action<>'WD' WHERE root='E5001' AND rk(s.rating)>10
UNION ALL SELECT 'Q30',string_agg(s.cid,',') FROM st s JOIN par p USING(cid) WHERE s.cut='a' AND s.ccy_basis='FC' AND s.action<>'WD' AND s.cid NOT IN ('CV','VD') AND ((p.country='CV' AND s.rating='A') OR (p.country='VD' AND s.rating='BB'))
UNION ALL SELECT 'Q31',string_agg(s.cid||s.rating,',') FROM st s JOIN par p USING(cid) WHERE s.cut='a' AND s.ccy_basis='FC' AND s.action<>'WD' AND s.cid NOT IN ('CV','VD') AND ((p.country='CV' AND rk(s.rating)<rk('A')) OR (p.country='VD' AND rk(s.rating)<rk('BB')))
UNION ALL SELECT 'Q4chk',string_agg(cid||s.rating||s.ccy_basis,',') FROM st s WHERE cut='b' AND cid IN ('E02','E01','E16','E10')
UNION ALL SELECT 'Q25/48',count(*)::varchar||' ig '||sum((rk(rating)<=10)::int)::varchar FROM (SELECT *,row_number() OVER (PARTITION BY rated_id ORDER BY date DESC,action_id DESC) rn FROM rating_actions WHERE rating_type='INST' AND date<='2026-10-01') WHERE rn=1 AND action NOT IN ('EX','WD');
</invoke>
Query results
Query 1:

| 'Q35' | CAST(count_star() AS VARCHAR) |
|---|---|
| Q35 | 3 |
| Q36 | 2 |
| Q51 | 59 |
| Q52 | 19 |
| Q59 | 12 |
| Q50 | E5001 d6 |
| Q57 | E5002 E5001 d1 |
| Q57 | E5005 E5001 d2 |
| Q57 | E5013 E5001 d3 |
| Q57 | E5011 E5001 d3 |
| Q55 | 23 |
| Q56 | BB- E5132BB+,E5133BBB-,E5136BBB-,E5140A+,E5141BB,E5143A,E5144BB- |
| Q61 | 20 |
| Q30 | E1101,E5012,E5047,E5091,E5116,E5124,E15,E1236,E1039,E05,E1028,E1126,E1194 |
| Q31 |  |
| Q4chk | E01BBBFC,E10BBB+FC,E16BB+FC,E02AFC |
| Q25/48 | 113 ig 72 |

Run more queries, or give the final answers.
The model
**Q1.** A-. E01's rating was A- (A01) until the downgrade to BBB on 2025-06-20 (A02).
**Q2.** No. The only 2026 action for E01 is an affirmation (A03).
**Q3.** No. The 2031 note I02 was cut to BB+ (A07), which is sub-investment grade.
**Q4.** Positive. E02 and E03 share an LEI, so they are one entity, and the latest action is A09 (POS).
**Q5.** The holder takes the credit risk of E02, the guarantor of I03, which is rated A (A10, A11).
**Q7.** The issuers with a 2026 LTIDR downgrade are listed in the JSON, after merging duplicate records that share an LEI.
**Q8.** E08. A22 puts it at RD on 2026-07-08.
**Q9.** 391 distinct issuers hold a non-withdrawn LTIDR as of 2026-10-01, with duplicate records merged.
**Q10.** Depends. E05 is BB in foreign currency (A14) but BBB- in local currency (A13).
**Q11.** BBB+. E14 was cut to BBB+ on 2024-09-30 (A36), and the 2025-11-20 action (A35) was only a watch.
**Q12.** A- (A34).
**Q13.** 1, for E14 (A36).
**Q14.** None. E12's first rating is dated 2024-02-01 (A30).
**Q15.** A-. E10 was A- (A26) until the downgrade on 2026-04-15 (A27).
**Q16.** No. E14 was BBB+ on 2025-01-01 and is still BBB+ after A33.
**Q17.** No. E06 has only a Rating Watch Negative (A17).
**Q20.** No. E07's rating was withdrawn for commercial reasons (A19), not for default.
**Q23.** F2 (A04).
**Q24.** Yes. E01's issuer rating is BBB (A03).
**Q25.** 72 of the 113 rated instruments are investment grade as of 2026-10-01.
**Q26.** A+ (A40).
**Q27.** A- (A42).
**Q28.** BBB+ (A38).
**Q29.** None. VD has only a Country Ceiling of BB (A12), no issuer rating.
**Q32.** E09.
**Q33.** The holder takes the credit risk of E10, the guarantor of I05, currently rated BBB+ (A27).
**Q34.** No. E12 has no parent and is not in the Halden group.
**Q35–Q36.** The Halden group has 3 entities and the Northwind group has 2.
**Q37.** 511 distinct legal entities after merging records with the same LEI.
**Q38.** No. E06 and E13 have different LEIs.
**Q39.** A. E02 is still at A with no later change.
**Q40.** 87.
**Q41.** BB+ (A44).
**Q42.** DE. E10 is the RATINGS record, and E17 is a RESEARCH duplicate showing LU.
**Q43.** 1.
**Q44.** Yes. I07 is denominated in XVD, Valdoria's currency.
**Q45.** Yes. I07 is rated BBB- (A45), above VD's ceiling of BB (A12).
**Q46.** No. E11 has only a Country Ceiling-style CO rating (A46), no LTIDR.
**Q47.** None. I08's rating was marked EX (expired) on 2026-09-01 (A47).
**Q48.** 113, counting instruments whose latest INST action is not EX or WD.
**Q49.** E5001. The chain runs E5047 → E5035 → E5023 → E5011 → E5167 (a duplicate of E5005) → E5002 → E5001.
**Q50.** 6 levels.
**Q51–Q52.** The Cerid group has 59 entities and the Rotam group has 19.
**Q53.** No. E5062 sits under E5059 and E5086 is its own root.
**Q54.** E5124 and E5130.
**Q55.** 23.
**Q56.** BB-. The lowest current FC issuer rating in the Vesol group is BB- (E5144).
**Q57.** E5002. Both entities sit three levels below E5001, and E5002 is the nearest shared ancestor.
**Q58.** E5145. It guarantees I5007, issued by E5133, which is in the Vesol group.
**Q59.** 12.
**Q60.** The holder takes the credit risk of E5145, the guarantor of I5007, which is not in the same group as the issuer E5133.
**Q61.** 20.

Q6 has no JSON field, so I did not answer it. It would be explained by the E05 ratings above, but the data gives no stated reason.

```json
{
"Q1":{"rating":"A-"},
"Q2":{"downgraded":"no"},
"Q3":{"investment_grade":"no","rating":"BB+"},
"Q4":{"outlook":"POS"},
"Q5":{"risk_of":"E02","rating":"A"},
"Q7":{"issuers":["E1285","E1290","E1151","E1294","E1350","E08","E1112","E1169","E1186","E1348","E1058","E1167","E1341","E5156","E1053","E1057","E1144","E1159","E1243","E5019","E5113","E1051","E1347","E1163","E1213","E1300","E5097","E1344","E16","E1340","E1346","E1080","E5116","E1228","E1229","E1255","E1263","E1298","E1307","E1345","E1349","E5033","E1034","E10","E1160","E1342","E1351","E5059","E1064","E1093","E1343"]},
"Q8":{"entities":["E08"]},
"Q9":{"count":391},
"Q10":{"investment_grade":"depends"},
"Q11":{"rating":"BBB+"},
"Q12":{"rating":"A-"},
"Q13":{"count":1},
"Q14":{"rating":"none"},
"Q15":{"rating":"A-"},
"Q16":{"changed":"no"},
"Q17":{"downgraded":"no"},
"Q18":{"issuers":["E1109","E1168","E1037","E1209","E1242","E1317","E1099","E1260","E1132","E1019","E1264","E1006","E1194","E1088","E1181","E1238","E1061","E1013","E1297","E1203","E1066","E1314","E1323","E1146","E1267","E1133","E06","E1126","E1098","E1059","E1266","E1039"]},
"Q19":{"issuers":["E1294","E5119","E1055","E5141","E1350","E1118","E1343","E1261","E1064","E01","E1271","E1347","E1188","E1034","E5057","E1248","E1348","E1046","E5062","E1340","E5013","E5023","E1059","E1056","E1282","E5073","E1263","E5050","E1228","E1345","E5099","E5116","E1005","E1080","E1029","E1160","E1342","E5170","E5059","E1351","E5020","E1079","E5113","E1211","E09","E5019","E5131","E1190","E5039","E5156","E1072","E1105","E1158","E1344","E5102","E5097","E1300"]},
"Q20":{"in_default":"no"},
"Q21":{"entities":["E1048","E1084","E1007","E1032","E1057","E1155","E1159","E1253","E1308","E1277","E1244","E1316","E1062","E1076","E1206","E1219","E1320","E1218","E1001","E1124","E1172","E07","E1021","E1166","E1121","E1205","E1041","E1063","E1107","E1138","E1140","E1200","E1225","E1233","E1234"]},
"Q22":{"entities":["E08"]},
"Q23":{"rating":"F2"},
"Q24":{"investment_grade":"yes"},
"Q25":{"count":72},
"Q26":{"rating":"A+"},
"Q27":{"rating":"A-"},
"Q28":{"rating":"BBB+"},
"Q29":{"rating":"none"},
"Q30":{"entities":["E1101","E5012","E5047","E5091","E5116","E5124","E15","E1236","E1039","E05","E1028","E1126","E1194"]},
"Q31":{"any":"no"},
"Q32":{"parent":"E09"},
"Q33":{"risk_of":"E10","rating":"BBB+"},
"Q34":{"same_group":"no"},
"Q35":{"count":3},
"Q36":{"count":2},
"Q37":{"count":511},
"Q38":{"same":"no"},
"Q39":{"rating":"A"},
"Q40":{"count":87},
"Q41":{"rating":"BB+"},
"Q42":{"country":"DE"},
"Q43":{"count":1},
"Q44":{"local_currency":"yes"},
"Q45":{"above_ceiling":"yes"},
"Q46":{"issuer_rating":"no"},
"Q47":{"rating":"none"},
"Q48":{"count":113},
"Q49":{"parent":"E5001"},
"Q50":{"count":6},
"Q51":{"count":59},
"Q52":{"count":19},
"Q53":{"same_group":"no"},
"Q54":{"entities":["E5124","E5130"]},
"Q55":{"count":23},
"Q56":{"rating":"BB-"},
"Q57":{"entity":"E5002"},
"Q58":{"entities":["E5145"]},
"Q59":{"count":12},
"Q60":{"risk_of":"E5145","same_group":"no"},
"Q61":{"count":20}
}
```