D3 sql+executed, run 1: the query session
19 queries1 failed4 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` (331 rows): entity_id, name, lei, country, entity_type, parent_id, ultimate_parent_id, record_ids
- `instruments` (115 rows): instrument_id, description, issuer_id, guarantor_id, credit_risk_of, seniority, currency, local_currency, maturity
- `ratings` (743 rows): rated_id, rating_type, ccy_basis, rating, outlook, watch, action, valid_from, valid_to, action_id
- `ceilings` (2 rows): country, ceiling, valid_from
- `ancestors` (55 rows): entity_id, ancestor_id, levels_up
These tables are the data after its rules have been applied: duplicate records merged into one entity (record_ids lists the records each entity merges), and each rating with the period it held. An empty valid_to means the rating was still in force on 1 October 2026. ancestors lists every entity above each entity in its chain of parents, with how many levels up.
## 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)
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?The model
I'll start by exploring the data.
```sql
SELECT * FROM ceilings;
```
```sql
SELECT entity_id,name,lei,country,entity_type,parent_id,ultimate_parent_id,record_ids FROM entities WHERE name ILIKE ANY ('%Kestrel%','%Northwind%','%Valdoria%','%Marlow%','%Halden%','%Orrin%','%Pellam%','%Corvenia%','%Brindle%');
```
```sql
SELECT * FROM instruments;
```
```sql
SELECT * FROM ancestors;
```Query results
Query 1:
| country | ceiling | valid_from |
|---|---|---|
| CV | A | 2024-01-01 |
| VD | BB | 2025-04-01 |
Query 2 failed: Parser Error: syntax error at or near ","
Query 3:
| instrument_id | description | issuer_id | guarantor_id | credit_risk_of | seniority | currency | local_currency | maturity |
|---|---|---|---|---|---|---|---|---|
| I01 | Kestrel Energy 4.50% notes due 2030 | E01 | | E01 | SU | GBP | no | 2030-03-15 |
| I02 | Kestrel Energy 6.25% notes due 2031 | E01 | | E01 | SUB | GBP | no | 2031-09-30 |
| I03 | Northwind Finance 3.75% notes due 2030 | E04 | E02 | E02 | SU | EUR | no | 2030-05-01 |
| I04 | Valdoria Telecom 5.00% notes due 2029 | E05 | | E05 | SU | USD | no | 2029-11-20 |
| I05 | Halden Leasing 2.90% notes due 2028 | E11 | E10 | E10 | SU | EUR | no | 2028-06-30 |
| I06 | Corvenia Power 7.10% notes due 2032 | E15 | | E15 | SUB | USD | no | 2032-02-15 |
| I07 | Valdoria Telecom 4.25% notes due 2027 | E05 | | E05 | SU | XVD | yes | 2027-08-31 |
| I08 | Corvenia Power 6.00% notes due 2034 | E15 | | E15 | SU | USD | no | 2034-09-01 |
| I1001 | Soson Airlines 5.50% notes due 2031 | E1006 | | E1006 | SUB | USD | no | 2035-06-30 |
| I1002 | Golod Property 8.75% notes due 2031 | E1007 | | E1007 | SU | USD | no | 2033-06-30 |
| I1003 | Sotil Retail 3.00% notes due 2031 | E1008 | | E1008 | SU | GBP | no | 2034-06-30 |
| I1004 | Malam Chemicals 2.25% notes due 2035 | E1009 | | E1009 | SU | USD | no | 2028-06-30 |
| I1005 | Posad Industries 4.00% notes due 2033 | E1012 | | E1012 | SU | EUR | no | 2031-06-30 |
| I1006 | Pisol Pharma 4.75% notes due 2030 | E1013 | | E1013 | SUB | USD | no | 2030-06-30 |
| I1007 | Toral Utilities 7.75% notes due 2028 | E1014 | | E1014 | SU | EUR | no | 2033-06-30 |
| I1008 | Ponar Telecom 4.75% notes due 2035 | E1016 | | E1016 | SU | EUR | no | 2033-06-30 |
| I1009 | Tosem Mining 2.75% notes due 2031 | E1018 | | E1018 | SUB | USD | no | 2036-06-30 |
| I1010 | Finel Media 6.50% notes due 2035 | E1020 | | E1020 | SU | EUR | no | 2036-06-30 |
| I1011 | Niner Pharma 3.25% notes due 2029 | E1021 | | E1021 | SU | USD | no | 2035-06-30 |
| I1012 | Heled Water 6.25% notes due 2030 | E1023 | | E1023 | SU | GBP | no | 2031-06-30 |
| I1013 | Kuvir Logistics 2.00% notes due 2027 | E1031 | | E1031 | SU | EUR | no | 2027-06-30 |
| I1014 | Kavod Utilities 2.50% notes due 2032 | E1035 | | E1035 | SU | USD | no | 2036-06-30 |
| I1015 | Lanon Telecom 4.75% notes due 2033 | E1038 | | E1038 | SUB | EUR | no | 2032-06-30 |
| I1016 | Hiral Steel 6.00% notes due 2035 | E1041 | | E1041 | SU | USD | no | 2034-06-30 |
| I1017 | Lised Pharma 4.50% notes due 2036 | E1048 | | E1048 | SU | EUR | no | 2029-06-30 |
| I1018 | Paser Utilities 3.75% notes due 2027 | E1049 | | E1049 | SUB | GBP | no | 2034-06-30 |
| I1019 | Sunar Holdings 8.50% notes due 2036 | E1050 | | E1050 | SUB | USD | no | 2034-06-30 |
| I1020 | Witad Steel 5.00% notes due 2033 | E1052 | | E1052 | SU | EUR | no | 2027-06-30 |
| I1021 | Duver Shipping 8.50% notes due 2032 | E1056 | | E1056 | SU | EUR | no | 2030-06-30 |
| I1022 | Levem Foods 6.50% notes due 2035 | E1067 | | E1067 | SUB | EUR | no | 2030-06-30 |
| I1023 | Mored Utilities 4.25% notes due 2032 | E1071 | | E1071 | SUB | USD | no | 2033-06-30 |
| I1024 | Ganed Holdings 5.75% notes due 2035 | E1077 | | E1077 | SU | EUR | no | 2032-06-30 |
| I1025 | Menir Shipping 7.50% notes due 2028 | E1078 | | E1078 | SUB | EUR | no | 2034-06-30 |
| I1026 | Nevar Property 6.75% notes due 2036 | E1079 | | E1079 | SU | GBP | no | 2028-06-30 |
| I1027 | Gilen Capital 2.00% notes due 2031 | E1082 | | E1082 | SUB | USD | no | 2034-06-30 |
| I1028 | Givim Mining 5.75% notes due 2036 | E1085 | | E1085 | SU | EUR | no | 2034-06-30 |
| I1029 | Gorar Steel 7.25% notes due 2033 | E1086 | | E1086 | SUB | USD | no | 2035-06-30 |
| I1030 | Vitid Holdings 5.75% notes due 2032 | E1087 | | E1087 | SU | EUR | no | 2034-06-30 |
| I1031 | Koved Holdings 2.50% notes due 2032 | E1088 | | E1088 | SUB | EUR | no | 2033-06-30 |
| I1032 | Getel Utilities 7.25% notes due 2033 | E1090 | | E1090 | SU | USD | no | 2032-06-30 |
| I1033 | Vavam Pharma 8.75% notes due 2032 | E1103 | | E1103 | SUB | USD | no | 2032-06-30 |
| I1034 | Kisil Logistics 8.50% notes due 2031 | E1108 | | E1108 | SU | EUR | no | 2033-06-30 |
| I1035 | Verod Logistics 3.00% notes due 2035 | E1114 | | E1114 | SU | GBP | no | 2029-06-30 |
| I1036 | Piren Foods 2.50% notes due 2030 | E1115 | | E1115 | SU | USD | no | 2033-06-30 |
| I1037 | Reter Shipping 8.00% notes due 2028 | E1118 | | E1118 | SU | EUR | no | 2027-06-30 |
| I1038 | Conan Capital 4.75% notes due 2033 | E1131 | | E1131 | SU | EUR | no | 2031-06-30 |
| I1039 | Larid Steel 8.50% notes due 2028 | E1141 | | E1141 | SU | GBP | no | 2033-06-30 |
| I1040 | Woner Media 5.75% notes due 2027 | E1143 | | E1143 | SUB | EUR | no | 2027-06-30 |
| I1041 | Kanim Pharma 3.25% notes due 2033 | E1145 | | E1145 | SUB | EUR | no | 2036-06-30 |
| I1042 | Daren Mining 5.75% notes due 2030 | E1147 | | E1147 | SU | EUR | no | 2035-06-30 |
| I1043 | Honel Shipping 4.50% notes due 2028 | E1149 | | E1149 | SUB | EUR | no | 2029-06-30 |
| I1044 | Wavad Foods 6.75% notes due 2035 | E1155 | | E1155 | SU | USD | no | 2036-06-30 |
| I1045 | Ruven Airlines 5.75% notes due 2032 | E1156 | | E1156 | SUB | EUR | no | 2036-06-30 |
| I1046 | Diled Steel 8.75% notes due 2027 | E1160 | | E1160 | SU | EUR | no | 2029-06-30 |
| I1047 | Wunam Telecom 5.25% notes due 2032 | E1162 | | E1162 | SU | EUR | no | 2029-06-30 |
| I1048 | Wenar Water 8.25% notes due 2028 | E1163 | | E1163 | SUB | EUR | no | 2028-06-30 |
| I1049 | Ranim Shipping 8.00% notes due 2028 | E1166 | | E1166 | SUB | USD | no | 2036-06-30 |
| I1050 | Fivan Holdings 2.25% notes due 2035 | E1168 | | E1168 | SU | EUR | no | 2027-06-30 |
| I1051 | Molar Shipping 3.25% notes due 2031 | E1188 | | E1188 | SU | EUR | no | 2028-06-30 |
| I1052 | Divid Property 4.25% notes due 2033 | E1189 | | E1189 | SUB | GBP | no | 2032-06-30 |
(55 more rows not shown)
Query 4:
| entity_id | ancestor_id | levels_up |
|---|---|---|
| E04 | E02 | 1 |
| E10 | E09 | 1 |
| E11 | E10 | 1 |
| E11 | E09 | 2 |
| E1006 | E1005 | 1 |
| E1013 | E1004 | 1 |
| E1033 | E1004 | 1 |
| E1046 | E1026 | 1 |
| E1047 | E1020 | 1 |
| E1059 | E1015 | 1 |
| E1066 | E1004 | 1 |
| E1075 | E1071 | 1 |
| E1089 | E1078 | 1 |
| E1095 | E1027 | 1 |
| E1098 | E1006 | 1 |
| E1098 | E1005 | 2 |
| E1101 | E1083 | 1 |
| E1110 | E1007 | 1 |
| E1114 | E1063 | 1 |
| E1149 | E1013 | 1 |
| E1149 | E1004 | 2 |
| E1174 | E1073 | 1 |
| E1177 | E1010 | 1 |
| E1179 | E1162 | 1 |
| E1183 | E1025 | 1 |
| E1191 | E1177 | 1 |
| E1191 | E1010 | 2 |
| E1197 | E1066 | 1 |
| E1197 | E1004 | 2 |
| E1215 | E1063 | 1 |
| E1228 | E1023 | 1 |
| E1233 | E1198 | 1 |
| E1248 | E1107 | 1 |
| E1271 | E1071 | 1 |
| E1273 | E1074 | 1 |
| E1275 | E1189 | 1 |
| E1276 | E1074 | 1 |
| E1292 | E1061 | 1 |
| E1293 | E1166 | 1 |
| E1315 | E1278 | 1 |
| E1325 | E1084 | 1 |
| E1326 | E1052 | 1 |
| E1327 | E1119 | 1 |
| E1328 | E1244 | 1 |
| E1329 | E1069 | 1 |
| E1330 | E1021 | 1 |
| E1331 | E1025 | 1 |
| E1332 | E1068 | 1 |
| E1333 | E1082 | 1 |
| E1334 | E1260 | 1 |
| E1335 | E1234 | 1 |
| E1336 | E1176 | 1 |
| E1337 | E1038 | 1 |
| E1338 | E1073 | 1 |
| E1339 | E1241 | 1 |
Run more queries, or give the final answers.The model
<invoke name="sql">
</invoke>
```sql
SELECT * FROM entities WHERE entity_id IN ('E01','E02','E03','E04','E05','E06','E07','E08','E09','E10','E11','E12','E13','E14','E15','E16','E17','E18','E19','E20') OR name ILIKE '%Kestrel%' OR name ILIKE '%Northwind%' OR name ILIKE '%Valdoria%' OR name ILIKE '%Marlow%' OR name ILIKE '%Halden%' OR name ILIKE '%Orrin%' OR name ILIKE '%Pellam%' OR name ILIKE '%Corvenia%' OR name ILIKE '%Brindle%';
```
```sql
SELECT * FROM ratings WHERE rated_id IN ('E01','E02','E03','E04','E05','E06','E07','E08','E09','E10','E11','E12','E13','E14','E15','E16','E17','E18','E19','E20','I01','I02','I03','I04','I05','I06','I07','I08') ORDER BY rated_id, rating_type, ccy_basis, valid_from;
```
```sql
SELECT rating_type, ccy_basis, count(*) FROM ratings GROUP BY ALL;
```
```sql
SELECT DISTINCT rating, outlook, watch, action FROM ratings ORDER BY 1,2,3,4;
```Query results
Query 1:
| entity_id | name | lei | country | entity_type | parent_id | ultimate_parent_id | record_ids |
|---|---|---|---|---|---|---|---|
| CV | Republic of Corvenia | | CV | SOV | | | CV |
| VD | Republic of Valdoria | | VD | SOV | | | VD |
| E01 | Kestrel Energy plc | 7245002OOPBG04092E43 | GB | CORP | | | E01 |
| E02 | Northwind Holdings plc | 213800PHEIYNJMHTDV74 | GB | CORP | | | E02 E03 |
| E04 | Northwind Finance BV | 213800LA5RYJLGXV2T85 | NL | FINSUB | E02 | E02 | E04 |
| E05 | Valdoria Telecom SA | 391200LESH03LMOY2U61 | VD | CORP | | | E05 |
| E06 | Orrin Bank AG | 549300AMVE3VRVG7HK43 | DE | BANK | | | E06 |
| E07 | Pellam Retail Ltd | 969500B6IUACELPI2291 | GB | CORP | | | E07 |
| E08 | Saxby Shipping SA | 969500KOTZ1JFIZSG796 | GR | CORP | | | E08 |
| E09 | Halden Group plc | 815600ASM9EHDG931T89 | GB | CORP | | | E09 |
| E10 | Halden Bank AG | 391200QYPVFF2O9K2039 | LU | BANK | E09 | E09 | E10 E17 |
| E11 | Halden Leasing SA | 549300XBZH4ULO9MQV55 | FR | FINSUB | E10 | E09 | E11 |
| E12 | Halden Foods Ltd | 213800IJDL4OJ4DG5T19 | GB | CORP | | | E12 |
| E13 | Orrin Bancorp Inc | 815600O8X8K2F154N214 | US | BANK | | | E13 |
| E14 | Marlow Utilities plc | 3912005AH2C1I9YF8106 | GB | CORP | | | E14 |
| E15 | Corvenia Power SA | 213800PBQVHVBBH6GV02 | CV | CORP | | | E15 |
Query 2:
| rated_id | rating_type | ccy_basis | rating | outlook | watch | action | valid_from | valid_to | action_id |
|---|---|---|---|---|---|---|---|---|---|
| E01 | LTIDR | FC | A- | STA | | AS | 2024-03-12 | 2025-06-20 | A01 |
| E01 | LTIDR | FC | BBB | STA | | DG | 2025-06-20 | 2026-02-10 | A02 |
| E01 | LTIDR | FC | BBB | NEG | | AF | 2026-02-10 | | A03 |
| E01 | STIDR | FC | F2 | | | AF | 2026-02-10 | | A04 |
| E02 | LTIDR | FC | A | STA | | AS | 2023-11-01 | 2025-09-15 | A08 |
| E02 | LTIDR | FC | A | POS | | AF | 2025-09-15 | | A09 |
| E05 | LTIDR | FC | BB | STA | | AS | 2025-04-01 | | A14 |
| E05 | LTIDR | LC | BBB- | STA | | AS | 2025-04-01 | | A13 |
| E06 | LTIDR | FC | A- | STA | | AS | 2024-05-01 | 2026-09-03 | A16 |
| E06 | LTIDR | FC | A- | | RWN | RW | 2026-09-03 | | A17 |
| E07 | LTIDR | FC | BB | STA | | AS | 2024-01-10 | 2026-05-12 | A18 |
| E07 | LTIDR | FC | WD | | | WD | 2026-05-12 | | A19 |
| E08 | LTIDR | FC | B | STA | | AS | 2024-06-01 | 2026-01-20 | A20 |
| E08 | LTIDR | FC | CCC | | | DG | 2026-01-20 | 2026-07-08 | A21 |
| E08 | LTIDR | FC | RD | | | DG | 2026-07-08 | | A22 |
| E09 | LTIDR | FC | A | STA | | AS | 2023-05-01 | 2026-03-01 | A24 |
| E09 | LTIDR | FC | A | NEG | | AF | 2026-03-01 | | A25 |
| E10 | LTIDR | FC | A- | STA | | AS | 2023-05-01 | 2026-04-15 | A26 |
| E10 | LTIDR | FC | BBB+ | STA | | DG | 2026-04-15 | | A27 |
| E12 | LTIDR | FC | BB- | STA | | AS | 2024-02-01 | 2025-08-01 | A30 |
| E12 | LTIDR | FC | BB | STA | | UG | 2025-08-01 | | A31 |
| E13 | LTIDR | FC | BBB | STA | | AS | 2024-07-01 | | A32 |
| E14 | LTIDR | FC | A- | STA | | AS | 2023-01-15 | 2024-09-30 | A34 |
| E14 | LTIDR | FC | BBB+ | STA | | DG | 2024-09-30 | 2025-11-20 | A36 |
| E14 | LTIDR | FC | BBB+ | | RWN | RW | 2025-11-20 | 2026-05-01 | A35 |
| E14 | LTIDR | FC | BBB+ | STA | | AF | 2026-05-01 | | A33 |
| E15 | LTIDR | FC | A | STA | | AS | 2024-03-01 | | A41 |
| E15 | LTIDR | LC | A+ | STA | | AS | 2024-03-01 | | A40 |
| I01 | INST | | A- | | | AS | 2024-03-12 | 2025-06-20 | A05 |
| I01 | INST | | BBB | | | DG | 2025-06-20 | | A06 |
| I02 | INST | | BBB | | | AS | 2024-03-12 | 2025-06-20 | A23 |
| I02 | INST | | BB+ | | | DG | 2025-06-20 | | A07 |
| I03 | INST | | A | | | AS | 2023-11-01 | 2025-09-15 | A10 |
| I03 | INST | | A | | | AF | 2025-09-15 | | A11 |
| I04 | INST | | BB | | | AS | 2025-04-01 | | A15 |
| I05 | INST | | A- | | | AS | 2023-06-01 | 2026-04-15 | A28 |
| I05 | INST | | BBB+ | | | DG | 2026-04-15 | | A29 |
| I06 | INST | | A- | | | AS | 2024-03-01 | | A42 |
| I07 | INST | | BBB- | | | AS | 2025-04-01 | | A45 |
Query 3:
| rating_type | ccy_basis | count_star() |
|---|---|---|
| STIDR | FC | 1 |
| INST | | 110 |
| LTIDR | FC | 598 |
| LTIDR | LC | 34 |
Query 4:
| rating | outlook | watch | action |
|---|---|---|---|
| A | NEG | | AF |
| A | POS | | AF |
| A | POS | | DG |
| A | STA | | AF |
| A | STA | | AS |
| A | STA | | DG |
| A | STA | | UG |
| A | | RWN | RW |
| A | | | AF |
| A | | | AS |
| A+ | NEG | | DG |
| A+ | NEG | | UG |
| A+ | POS | | AF |
| A+ | POS | | DG |
| A+ | STA | | AS |
| A+ | STA | | UG |
| A+ | | RWN | RW |
| A+ | | | AS |
| A- | NEG | | AF |
| A- | NEG | | DG |
| A- | NEG | | UG |
| A- | POS | | AF |
| A- | POS | | DG |
| A- | POS | | UG |
| A- | STA | | AF |
| A- | STA | | AS |
| A- | STA | | DG |
| A- | STA | | UG |
| A- | | RWN | RW |
| A- | | | AS |
| AA | POS | | UG |
| AA | STA | | AF |
| AA | STA | | UG |
| AA | | RWN | RW |
| AA- | NEG | | AF |
| AA- | NEG | | UG |
| AA- | POS | | AF |
| AA- | STA | | AF |
| AA- | STA | | AS |
| AA- | STA | | UG |
| AA- | | RWN | RW |
| AA- | | | AS |
| B | NEG | | AF |
| B | NEG | | DG |
| B | POS | | DG |
| B | STA | | AS |
| B | STA | | DG |
| B | | | AS |
| B+ | NEG | | AF |
| B+ | NEG | | UG |
| B+ | POS | | DG |
| B+ | POS | | UG |
| B+ | STA | | AF |
| B+ | STA | | AS |
| B+ | STA | | DG |
| B+ | | RWN | RW |
| B+ | | | AS |
| B- | STA | | DG |
| BB | NEG | | AF |
| BB | NEG | | DG |
(70 more rows not shown)
Run more queries, or give the final answers.The model
```sql
SELECT DISTINCT rating FROM ratings ORDER BY 1;
```
```sql
SELECT rated_id, rating, valid_from, valid_to, action FROM ratings WHERE rating IN ('RD','D','LD','WD','NR') ORDER BY rated_id, valid_from;
```
```sql
SELECT rated_id, rating_type, ccy_basis, rating, outlook, watch, action, valid_from, valid_to FROM ratings WHERE rating_type<>'INST' AND action='DG' AND valid_from>='2026-01-01' ORDER BY rated_id;
```
```sql
SELECT count(DISTINCT rated_id) FROM ratings WHERE rating_type='LTIDR' AND valid_from<='2026-10-01' AND (valid_to IS NULL OR valid_to='') AND rating NOT IN ('WD');
```
```sql
SELECT count(DISTINCT rated_id) c FROM ratings WHERE rating_type='INST' AND valid_from<='2026-10-01' AND (valid_to IS NULL OR valid_to='' ) AND rating<>'WD';
```
```sql
SELECT count(*) FROM entities;
```
```sql
SELECT e.entity_id,e.name,e.country,e.record_ids FROM entities e WHERE e.country IN ('LU') OR e.name ILIKE '%Brindle%' OR e.name ILIKE '%Orrin%';
```
```sql
SELECT r.rated_id, e.country, r.rating, r.outlook, r.watch FROM ratings r JOIN entities e ON e.entity_id=r.rated_id WHERE r.rating_type='LTIDR' AND r.valid_from<='2026-10-01' AND (r.valid_to IS NULL OR r.valid_to='') AND (r.watch='RWN' OR r.outlook='NEG' OR e.country='GB') ORDER BY 1;
```Query results
Query 1:
| rating |
|---|
| A |
| A+ |
| A- |
| AA |
| AA- |
| B |
| B+ |
| B- |
| BB |
| BB+ |
| BB- |
| BBB |
| BBB+ |
| BBB- |
| CCC |
| F2 |
| RD |
| WD |
Query 2:
| rated_id | rating | valid_from | valid_to | action |
|---|---|---|---|---|
| E07 | WD | 2026-05-12 | | WD |
| E08 | RD | 2026-07-08 | | DG |
| E1001 | WD | 2025-07-20 | | WD |
| E1007 | WD | 2026-06-27 | | WD |
| E1021 | WD | 2025-11-08 | | WD |
| E1032 | WD | 2026-09-15 | | WD |
| E1041 | WD | 2024-04-09 | | WD |
| E1048 | WD | 2023-04-15 | | WD |
| E1057 | WD | 2026-09-19 | | WD |
| E1062 | WD | 2025-03-28 | | WD |
| E1063 | WD | 2025-01-12 | | WD |
| E1076 | WD | 2024-04-28 | | WD |
| E1084 | WD | 2025-08-02 | | WD |
| E1106 | WD | 2025-08-10 | | WD |
| E1107 | WD | 2024-10-16 | | WD |
| E1115 | WD | 2025-06-28 | 2025-08-06 | WD |
| E1121 | WD | 2024-10-23 | | WD |
| E1124 | WD | 2024-06-15 | | WD |
| E1138 | WD | 2024-12-26 | | WD |
| E1140 | WD | 2025-09-15 | | WD |
| E1155 | WD | 2026-03-22 | | WD |
| E1158 | WD | 2026-02-27 | 2026-05-22 | WD |
| E1159 | WD | 2026-09-22 | | WD |
| E1166 | WD | 2023-07-26 | | WD |
| E1172 | WD | 2026-03-12 | | WD |
| E1200 | WD | 2023-11-03 | | WD |
| E1205 | WD | 2025-11-16 | | WD |
| E1206 | WD | 2025-11-20 | | WD |
| E1218 | WD | 2026-05-22 | | WD |
| E1219 | WD | 2026-04-11 | | WD |
| E1225 | WD | 2025-06-12 | | WD |
| E1233 | WD | 2025-01-24 | | WD |
| E1234 | WD | 2026-09-22 | | WD |
| E1244 | WD | 2024-04-18 | | WD |
| E1253 | WD | 2025-08-13 | | WD |
| E1277 | WD | 2025-12-14 | | WD |
| E1279 | WD | 2024-11-17 | | WD |
| E1303 | WD | 2026-03-26 | 2026-06-04 | WD |
| E1308 | WD | 2025-06-19 | | WD |
| E1316 | WD | 2024-07-07 | | WD |
| E1320 | WD | 2023-10-15 | | WD |
Query 3:
| rated_id | rating_type | ccy_basis | rating | outlook | watch | action | valid_from | valid_to |
|---|---|---|---|---|---|---|---|---|
| E08 | LTIDR | FC | CCC | | | DG | 2026-01-20 | 2026-07-08 |
| E08 | LTIDR | FC | RD | | | DG | 2026-07-08 | |
| E10 | LTIDR | FC | BBB+ | STA | | DG | 2026-04-15 | |
| E1034 | LTIDR | FC | BBB+ | NEG | | DG | 2026-05-02 | |
| E1051 | LTIDR | FC | A+ | NEG | | DG | 2026-04-05 | 2026-06-01 |
| E1051 | LTIDR | FC | A+ | POS | | DG | 2026-06-01 | 2026-09-20 |
| E1053 | LTIDR | FC | BB | NEG | | DG | 2026-03-20 | 2026-07-09 |
| E1057 | LTIDR | FC | BB | STA | | DG | 2026-06-25 | 2026-09-08 |
| E1058 | LTIDR | FC | BBB- | POS | | DG | 2026-07-14 | |
| E1064 | LTIDR | FC | BBB+ | STA | | DG | 2026-03-04 | 2026-06-03 |
| E1080 | LTIDR | FC | A- | NEG | | DG | 2026-02-14 | |
| E1093 | LTIDR | FC | B | STA | | DG | 2026-07-25 | |
| E1112 | LTIDR | FC | BBB | POS | | DG | 2026-02-20 | |
| E1144 | LTIDR | FC | B+ | POS | | DG | 2026-06-06 | |
| E1151 | LTIDR | FC | BBB | POS | | DG | 2026-01-26 | |
| E1159 | LTIDR | FC | BBB+ | POS | | DG | 2026-06-16 | 2026-09-22 |
| E1160 | LTIDR | FC | B | NEG | | DG | 2026-07-28 | |
| E1163 | LTIDR | FC | BB+ | POS | | DG | 2026-03-19 | |
| E1167 | LTIDR | FC | BB | STA | | DG | 2026-09-07 | |
| E1169 | LTIDR | FC | BB- | STA | | DG | 2026-08-16 | |
| E1186 | LTIDR | FC | BBB+ | STA | | DG | 2026-01-04 | |
| E1213 | LTIDR | FC | A- | STA | | DG | 2026-02-13 | 2026-03-19 |
| E1213 | LTIDR | FC | BBB+ | POS | | DG | 2026-06-16 | |
| E1228 | LTIDR | FC | BB+ | NEG | | DG | 2026-06-28 | |
| E1229 | LTIDR | FC | BB | STA | | DG | 2026-05-06 | 2026-06-02 |
| E1229 | LTIDR | FC | BB+ | STA | | DG | 2026-06-02 | |
| E1243 | LTIDR | FC | BB | STA | | DG | 2026-01-13 | 2026-08-19 |
| E1255 | LTIDR | FC | BBB+ | STA | | DG | 2026-01-19 | |
| E1263 | LTIDR | FC | BBB | STA | | DG | 2026-03-03 | 2026-06-16 |
| E1263 | LTIDR | FC | BBB- | NEG | | DG | 2026-06-16 | |
| E1285 | LTIDR | FC | A | POS | | DG | 2026-02-17 | |
| E1290 | LTIDR | FC | B | POS | | DG | 2026-08-16 | |
| E1294 | LTIDR | FC | A+ | NEG | | DG | 2026-07-11 | |
| E1298 | LTIDR | FC | BBB | POS | | DG | 2026-02-06 | |
| E1300 | LTIDR | FC | BBB+ | STA | | DG | 2026-04-09 | 2026-05-06 |
| E1300 | LTIDR | FC | BBB | NEG | | DG | 2026-05-06 | |
| E1307 | LTIDR | FC | BB- | POS | | DG | 2026-02-08 | 2026-07-05 |
Query 4:
| count(DISTINCT rated_id) |
|---|
| 278 |
Query 5:
| c |
|---|
| 106 |
Query 6:
| count_star() |
|---|
| 331 |
Query 7:
| entity_id | name | country | record_ids |
|---|---|---|---|
| E06 | Orrin Bank AG | DE | E06 |
| E10 | Halden Bank AG | LU | E10 E17 |
| E13 | Orrin Bancorp Inc | US | E13 |
Query 8:
| rated_id | country | rating | outlook | watch |
|---|---|---|---|---|
| E01 | GB | BBB | NEG | |
| E02 | GB | A | POS | |
| E06 | DE | A- | | RWN |
| E07 | GB | WD | | |
| E09 | GB | A | NEG | |
| E1003 | GB | A | STA | |
| E1005 | US | BB | NEG | |
| E1006 | US | AA | | RWN |
| E1007 | GB | WD | | |
| E1008 | GB | BBB- | STA | |
| E1013 | NL | BB- | | RWN |
| E1019 | CV | BBB- | | RWN |
| E1021 | GB | WD | | |
| E1023 | GB | BBB | STA | |
| E1029 | US | A- | NEG | |
| E1034 | IT | BBB+ | NEG | |
| E1037 | FR | A | | RWN |
| E1039 | CV | A | | RWN |
| E1043 | GB | BBB- | STA | |
| E1046 | US | AA- | NEG | |
| E1047 | GB | BBB- | STA | |
| E1049 | GB | BBB- | STA | |
| E1055 | GB | BBB- | NEG | |
| E1056 | IT | A+ | NEG | |
| E1057 | GB | WD | | |
| E1059 | CV | BB- | | RWN |
| E1059 | CV | BB- | NEG | |
| E1061 | DE | A | | RWN |
| E1062 | GB | WD | | |
| E1064 | NL | A- | NEG | |
| E1066 | ES | A- | | RWN |
| E1070 | GB | A+ | STA | |
| E1072 | GB | BB- | NEG | |
| E1074 | GB | A+ | STA | |
| E1079 | GB | BB+ | NEG | |
| E1080 | US | A- | NEG | |
| E1083 | GB | BBB | STA | |
| E1088 | FR | B+ | | RWN |
| E1093 | GB | B | STA | |
| E1094 | GB | BBB+ | STA | |
| E1098 | US | BBB- | | RWN |
| E1099 | FR | BB+ | | RWN |
| E1105 | GR | A+ | NEG | |
| E1109 | NL | A+ | | RWN |
| E1114 | GB | BB | STA | |
| E1115 | GB | AA- | STA | |
| E1116 | GB | A+ | STA | |
| E1118 | DE | BB+ | NEG | |
| E1122 | GB | BB- | STA | |
| E1123 | GB | BB- | STA | |
| E1124 | GB | WD | | |
| E1126 | VD | BB | | RWN |
| E1128 | GB | AA- | STA | |
| E1132 | US | B+ | | RWN |
| E1133 | US | B+ | | RWN |
| E1135 | GB | A | STA | |
| E1141 | GB | AA- | STA | |
| E1146 | US | BB | | RWN |
| E1152 | GB | BB- | STA | |
| E1158 | ES | BBB | NEG | |
(62 more rows not shown)
Run more queries, or give the final answers.The model
```sql
WITH r AS (SELECT *, lag(rating) OVER (PARTITION BY rated_id, rating_type, ccy_basis ORDER BY valid_from) prev FROM ratings WHERE rating_type='LTIDR')
SELECT rated_id, ccy_basis, prev, rating, action, valid_from FROM r WHERE valid_from BETWEEN '2026-01-01' AND '2026-12-31' AND prev IS NOT NULL AND prev<>rating ORDER BY 1;
```
```sql
SELECT 'rwn' k, string_agg(DISTINCT rated_id, ',') v FROM ratings WHERE rating_type='LTIDR' AND watch='RWN' AND valid_from<='2026-10-01' AND (valid_to='' OR valid_to IS NULL OR valid_to>'2026-10-01')
UNION ALL SELECT 'neg', string_agg(DISTINCT rated_id, ',') FROM ratings WHERE rating_type='LTIDR' AND outlook='NEG' AND valid_from<='2026-10-01' AND (valid_to='' OR valid_to IS NULL OR valid_to>'2026-10-01')
UNION ALL SELECT 'lost', string_agg(DISTINCT rated_id, ',') FROM ratings a WHERE rating_type='LTIDR' AND rating<>'WD' AND NOT EXISTS (SELECT 1 FROM ratings b WHERE b.rated_id=a.rated_id AND b.rating_type='LTIDR' AND b.rating<>'WD' AND b.valid_from<='2026-10-01' AND (b.valid_to='' OR b.valid_to IS NULL OR b.valid_to>'2026-10-01'))
UNION ALL SELECT 'issuers_cnt', count(DISTINCT rated_id)::VARCHAR FROM ratings WHERE rating_type='LTIDR' AND rating<>'WD' AND valid_from<='2026-10-01' AND (valid_to='' OR valid_to IS NULL OR valid_to>'2026-10-01')
UNION ALL SELECT 'inst_cnt', count(DISTINCT rated_id)::VARCHAR FROM ratings WHERE rating_type='INST' AND rating<>'WD' AND valid_from<='2026-10-01' AND (valid_to='' OR valid_to IS NULL OR valid_to>'2026-10-01')
UNION ALL SELECT 'inst_ig', count(DISTINCT rated_id)::VARCHAR FROM ratings WHERE rating_type='INST' AND rating IN ('AA','AA-','A+','A','A-','BBB+','BBB','BBB-') AND valid_from<='2026-10-01' AND (valid_to='' OR valid_to IS NULL OR valid_to>'2026-10-01')
UNION ALL SELECT 'gb_cnt', count(DISTINCT r.rated_id)::VARCHAR FROM ratings r JOIN entities e ON e.entity_id=r.rated_id WHERE e.country='GB' AND rating_type='LTIDR' AND rating<>'WD' AND valid_from<='2026-10-01' AND (valid_to='' OR valid_to IS NULL OR valid_to>'2026-10-01')
UNION ALL SELECT 'lu_cnt', count(*)::VARCHAR FROM entities WHERE country='LU'
UNION ALL SELECT 'halden', string_agg(entity_id, ',') FROM entities WHERE entity_id='E09' OR ultimate_parent_id='E09' OR parent_id='E09'
UNION ALL SELECT 'northwind', string_agg(entity_id, ',') FROM entities WHERE entity_id='E02' OR ultimate_parent_id='E02' OR parent_id='E02';
```
```sql
SELECT 'ceil_at' k, string_agg(DISTINCT r.rated_id||':'||r.rating, ',') v FROM ratings r JOIN entities e ON e.entity_id=r.rated_id WHERE r.rating_type='LTIDR' AND r.ccy_basis='FC' AND r.valid_from<='2026-10-01' AND (r.valid_to='' OR r.valid_to IS NULL OR r.valid_to>'2026-10-01') AND ((e.country='CV' AND r.rating='A') OR (e.country='VD' AND r.rating='BB'))
UNION ALL SELECT 'ceil_above', string_agg(DISTINCT r.rated_id||':'||r.rating, ',') FROM ratings r JOIN entities e ON e.entity_id=r.rated_id WHERE r.rating_type='LTIDR' AND r.ccy_basis='FC' AND r.valid_from<='2026-10-01' AND (r.valid_to='' OR r.valid_to IS NULL OR r.valid_to>'2026-10-01') AND ((e.country='CV' AND r.rating IN ('AA','AA-','A+')) OR (e.country='VD' AND r.rating IN ('AA','AA-','A+','A','A-','BBB+','BBB','BBB-','BB+')))
UNION ALL SELECT 'sov', string_agg(rated_id||' '||ccy_basis||' '||rating||' '||valid_from||'-'||coalesce(valid_to,''), '; ') FROM ratings WHERE rated_id IN ('CV','VD','E11','I08','E17','E03')
UNION ALL SELECT 'brindle', string_agg(e.entity_id||' '||e.name||' '||r.rating||' '||r.valid_from||'-'||coalesce(r.valid_to,''), '; ') FROM entities e LEFT JOIN ratings r ON r.rated_id=e.entity_id WHERE e.name ILIKE '%Brindle%'
UNION ALL SELECT 'dups', string_agg(entity_id||'='||record_ids, '; ') FROM entities WHERE record_ids LIKE '% %';
```Query results
Query 1:
| rated_id | ccy_basis | prev | rating | action | valid_from |
|---|---|---|---|---|---|
| E07 | FC | BB | WD | WD | 2026-05-12 |
| E08 | FC | CCC | RD | DG | 2026-07-08 |
| E08 | FC | B | CCC | DG | 2026-01-20 |
| E10 | FC | A- | BBB+ | DG | 2026-04-15 |
| E1006 | FC | AA- | AA | UG | 2026-04-15 |
| E1007 | FC | BB- | WD | WD | 2026-06-27 |
| E1012 | FC | BB | BB+ | UG | 2026-02-06 |
| E1032 | FC | A+ | WD | WD | 2026-09-15 |
| E1034 | FC | A- | BBB+ | DG | 2026-05-02 |
| E1051 | FC | AA- | A+ | DG | 2026-04-05 |
| E1051 | FC | A+ | AA- | UG | 2026-09-20 |
| E1053 | FC | BB | BB+ | UG | 2026-07-09 |
| E1053 | FC | BB+ | BB | DG | 2026-03-20 |
| E1057 | FC | BB+ | BB | DG | 2026-06-25 |
| E1057 | FC | BB | WD | WD | 2026-09-19 |
| E1058 | FC | BBB | BBB- | DG | 2026-07-14 |
| E1064 | FC | BBB+ | A- | UG | 2026-06-03 |
| E1064 | FC | A- | BBB+ | AF | 2026-02-02 |
| E1080 | FC | A | A- | DG | 2026-02-14 |
| E1093 | FC | B+ | B | DG | 2026-07-25 |
| E1112 | FC | BBB+ | BBB | DG | 2026-02-20 |
| E1125 | FC | AA- | AA | UG | 2026-01-18 |
| E1144 | FC | BB- | B+ | DG | 2026-06-06 |
| E1144 | FC | B+ | BB- | UG | 2026-05-20 |
| E1151 | FC | BBB+ | BBB | DG | 2026-01-26 |
| E1155 | FC | BB- | WD | WD | 2026-03-22 |
| E1158 | FC | WD | BBB | RW | 2026-05-22 |
| E1158 | FC | BBB | WD | WD | 2026-02-27 |
| E1159 | FC | BBB+ | WD | WD | 2026-09-22 |
| E1159 | FC | A- | BBB+ | DG | 2026-06-16 |
| E1160 | FC | B+ | B | DG | 2026-07-28 |
| E1163 | FC | BBB- | BB+ | DG | 2026-03-19 |
| E1167 | FC | BB+ | BB | DG | 2026-09-07 |
| E1167 | FC | BB | BB+ | UG | 2026-06-13 |
| E1169 | FC | BB | BB- | DG | 2026-08-16 |
| E1169 | FC | BB- | BB | UG | 2026-05-09 |
| E1172 | FC | BB | WD | WD | 2026-03-12 |
| E1186 | FC | A- | BBB+ | DG | 2026-01-04 |
| E1196 | FC | BBB+ | A- | UG | 2026-09-17 |
| E1196 | FC | BBB | BBB+ | UG | 2026-09-14 |
| E1213 | FC | A | A- | DG | 2026-02-13 |
| E1213 | FC | A- | A | RW | 2026-03-19 |
| E1213 | FC | A | BBB+ | DG | 2026-06-16 |
| E1218 | FC | AA- | WD | WD | 2026-05-22 |
| E1219 | FC | BBB- | WD | WD | 2026-04-11 |
| E1228 | FC | BBB- | BB+ | DG | 2026-06-28 |
| E1229 | FC | BBB- | BB | DG | 2026-05-06 |
| E1229 | FC | BB | BB+ | DG | 2026-06-02 |
| E1230 | FC | BB | BB+ | UG | 2026-08-11 |
| E1234 | FC | BB+ | WD | WD | 2026-09-22 |
| E1243 | FC | BB+ | BB | DG | 2026-01-13 |
| E1255 | FC | A- | BBB+ | DG | 2026-01-19 |
| E1263 | FC | BBB+ | BBB | DG | 2026-03-03 |
| E1263 | FC | BBB | BBB- | DG | 2026-06-16 |
| E1276 | FC | A+ | AA- | RW | 2026-02-07 |
| E1285 | FC | A+ | A | DG | 2026-02-17 |
| E1290 | FC | B+ | B | AF | 2026-01-01 |
| E1290 | FC | B | B+ | AF | 2026-03-21 |
| E1290 | FC | B+ | B | DG | 2026-08-16 |
| E1294 | FC | AA- | A+ | DG | 2026-07-11 |
(10 more rows not shown)
Query 2:
| k | v |
|---|---|
| rwn | E1037,E1209,E1242,E1317,E1099,E1132,E1260,E1013,E1061,E1238,E1297,E1181,E06,E1133,E1066,E1146,E1203,E1314,E1323,E1098,E1126,E1088,E1194,E1109,E1168,E1006,E1019,E1264,E1267,E1039,E1059,E1266 |
| neg | E09,E1211,E01,E1064,E1118,E1261,E1034,E1188,E1248,E1228,E1263,E1005,E1080,E1271,E1079,E1055,E1294,E1046,E1105,E1158,E1056,E1059,E1282,E1300,E1072,E1190,E1029,E1160 |
| lost | E07,E1021,E1166,E1121,E1205,E1200,E1225,E1233,E1234,E1206,E1219,E1320,E1244,E1316,E1062,E1277,E1218,E1007,E1032,E1057,E1155,E1159,E1253,E1308,E1041,E1063,E1107,E1138,E1140,E1001,E1124,E1172,E1048,E1084,E1076 |
| issuers_cnt | 278 |
| inst_cnt | 106 |
| inst_ig | 66 |
| gb_cnt | 66 |
| lu_cnt | 1 |
| halden | E09,E10,E11 |
| northwind | E02,E04 |
Query 3:
| k | v |
|---|---|
| ceil_at | E05:BB,E1039:A,E1236:BB,E1028:BB,E1194:A,E1101:BB,E1126:BB,E15:A |
| ceil_above | |
| sov | CV FC BBB+ 2024-01-01-; CV LC A- 2024-01-01- |
| brindle | |
| dups | E02=E02 E03; E10=E10 E17; E1001=E1001 E1002; E1021=E1021 E1022; E1029=E1029 E1030; E1059=E1059 E1060; E1096=E1096 E1097; E1103=E1103 E1104; E1116=E1116 E1117; E1138=E1138 E1139; E1147=E1147 E1148; E1152=E1152 E1153; E1156=E1156 E1157; E1160=E1160 E1161; E1169=E1169 E1170; E1179=E1179 E1180; E1209=E1209 E1210; E1213=E1213 E1214; E1238=E1238 E1239; E1245=E1245 E1246; E1253=E1253 E1254; E1258=E1258 E1259; E1261=E1261 E1262; E1298=E1298 E1299; E1310=E1310 E1311; E1318=E1318 E1319 |
Run more queries, or give the final answers.The model
**Q1.** A-. E01's LTIDR FC rating was A- from 2024-03-12 to 2025-06-20 (A01), so it covers 1 Jan 2025.
**Q2.** No. E01 moved from BBB to BBB with a Negative outlook on 2026-02-10 (A03, action AF, affirmed), so the rating itself did not change in 2026. Its only downgrade was in 2025 (A02).
**Q3.** No. The 2031 note I02 has been rated BB+ since 2025-06-20 (A07), which is below investment grade.
**Q4.** Positive. E02's current rating is A with a POS outlook (A09).
**Q5.** Credit risk of E02 (Northwind Holdings), via its guarantee of I03, which is rated A (A11).
**Q6.** The data doesn't state a reason. The likely cause is the VD Country Ceiling of BB (from 2025-04-01). E05's foreign-currency rating is BB (A14), while its local-currency rating is BBB- (A13).
**Q7.** The issuers with downgrade (DG) actions on their issuer ratings in 2026 are listed in the JSON. Downgrades to WD are excluded.
**Q8.** E08, which moved to RD on 2026-07-08 (A22) and is still there.
**Q9.** 278 distinct issuers had a non-withdrawn LTIDR in force on 1 October 2026.
**Q10.** Depends. E05 is BB on a foreign-currency basis (non-investment grade) and BBB- on a local-currency basis (investment grade).
**Q11.** BBB+. This is A36, valid from 2024-09-30 to 2025-11-20, and the later watch period A35 keeps BBB+.
**Q12.** A- (A34, valid 2023-01-15 to 2024-09-30).
**Q13.** 1. The only DG action for E14 is A36; the others are a watch action and an affirmation.
**Q14.** None. E12's first rating (A30) only starts on 2024-02-01.
**Q15.** A-. E10 held A- (A26) until 2026-04-15.
**Q16.** No. E14 was BBB+ on 1 Jan 2025 and is BBB+ now, although its watch and outlook status changed (A35, A33).
**Q17.** No. E06 is A- on Rating Watch Negative since 2026-09-03 (A17), with no rating change.
**Q18.** 32 issuers were on RWN on 1 October 2026; they are in the JSON.
**Q19.** 28 issuers had a Negative outlook on 1 October 2026; they are in the JSON.
**Q20.** No. E07's rating was withdrawn (WD, A19) and it has no default rating.
**Q21.** 35 entities had an issuer rating that was later withdrawn (WD), leaving no rating in force on 1 October 2026. They are in the JSON and include E07.
**Q22.** Only E08 has an RD rating (A22).
**Q23.** F2 (A04).
**Q24.** Yes. E01's issuer rating is BBB (A03).
**Q25.** 66 instruments held an investment-grade rating.
**Q26.** A+ (A40).
**Q27.** A- (I06, A42).
**Q28.** BBB+ (CV, FC, valid from 2024-01-01).
**Q29.** None. No ratings exist for VD.
**Q30.** Eight entities had a foreign-currency rating exactly at their country's ceiling (the CV ceiling is A, the VD ceiling is BB). They are listed in the JSON.
**Q31.** No. No foreign-currency issuer rating was above its country's ceiling.
**Q32.** E09.
**Q33.** Credit risk of E10 (Halden Bank), the guarantor of I05, which is rated BBB+ (A29).
**Q34.** Yes. E12 (Halden Foods) has no parent and appears in no ancestors rows, so it does not sit in E09's chain, where E10 sits. I answered "no" below, so I am correcting that: the data does not link them, so the answer is **no**.
**Q35.** 3 (E09, E10, E11).
**Q36.** 2 (E02, E04).
**Q37.** 331. Duplicate records are already merged into the 331 entity rows.
**Q38.** No. E06 and E13 have different LEIs and countries (DE and US), so they are separate entities.
**Q39.** A (A09).
**Q40.** 66 distinct GB-domiciled issuers held an issuer rating on 1 October 2026.
**Q41.** None. No entity named Brindle Capital exists in the data.
**Q42.** LU (E10).
**Q43.** 1 (E10).
**Q44.** Yes. I07 is flagged local_currency = yes (currency XVD).
**Q45.** No. I07 is rated BBB-, and the BB ceiling applies to foreign-currency ratings, not to a local-currency note.
**Q46.** No. The data holds no ratings for E11 itself, only for its notes I05.
**Q47.** None. No rating record exists for I08.
**Q48.** 106 instruments held a rating.
```json
{
"Q1":{"rating":"A-"},
"Q2":{"downgraded":"no"},
"Q3":{"investment_grade":"no","rating":"BB+"},
"Q4":{"outlook":"POS"},
"Q5":{"risk_of":"E02","rating":"A"},
"Q7":{"issuers":["E08","E10","E1034","E1051","E1053","E1057","E1058","E1064","E1080","E1093","E1112","E1144","E1151","E1159","E1160","E1163","E1167","E1169","E1186","E1213","E1228","E1229","E1243","E1255","E1263","E1285","E1290","E1294","E1298","E1300","E1307"]},
"Q8":{"entities":["E08"]},
"Q9":{"count":278},
"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":["E1037","E1209","E1242","E1317","E1099","E1132","E1260","E1013","E1061","E1238","E1297","E1181","E06","E1133","E1066","E1146","E1203","E1314","E1323","E1098","E1126","E1088","E1194","E1109","E1168","E1006","E1019","E1264","E1267","E1039","E1059","E1266"]},
"Q19":{"issuers":["E09","E1211","E01","E1064","E1118","E1261","E1034","E1188","E1248","E1228","E1263","E1005","E1080","E1271","E1079","E1055","E1294","E1046","E1105","E1158","E1056","E1059","E1282","E1300","E1072","E1190","E1029","E1160"]},
"Q20":{"in_default":"no"},
"Q21":{"entities":["E07","E1021","E1166","E1121","E1205","E1200","E1225","E1233","E1234","E1206","E1219","E1320","E1244","E1316","E1062","E1277","E1218","E1007","E1032","E1057","E1155","E1159","E1253","E1308","E1041","E1063","E1107","E1138","E1140","E1001","E1124","E1172","E1048","E1084","E1076"]},
"Q22":{"entities":["E08"]},
"Q23":{"rating":"F2"},
"Q24":{"investment_grade":"yes"},
"Q25":{"count":66},
"Q26":{"rating":"A+"},
"Q27":{"rating":"A-"},
"Q28":{"rating":"BBB+"},
"Q29":{"rating":"none"},
"Q30":{"entities":["E05","E1039","E1236","E1028","E1194","E1101","E1126","E15"]},
"Q31":{"any":"no"},
"Q32":{"parent":"E09"},
"Q33":{"risk_of":"E10","rating":"BBB+"},
"Q34":{"same_group":"no"},
"Q35":{"count":3},
"Q36":{"count":2},
"Q37":{"count":331},
"Q38":{"same":"no"},
"Q39":{"rating":"A"},
"Q40":{"count":66},
"Q41":{"rating":"none"},
"Q42":{"country":"LU"},
"Q43":{"count":1},
"Q44":{"local_currency":"yes"},
"Q45":{"above_ceiling":"no"},
"Q46":{"issuer_rating":"no"},
"Q47":{"rating":"none"},
"Q48":{"count":106}
}
```