Your music, beautifully tracked. All yours. (coming soon) teal.fm
teal-fm atproto
at main 1.6 kB view raw
1{ 2 "db_name": "PostgreSQL", 3 "query": "\n SELECT DISTINCT\n ae1.id as synthetic_id,\n ae1.name as synthetic_name,\n ae2.id as target_id,\n ae2.name as target_name,\n ae2.mbid as target_mbid,\n similarity(LOWER(TRIM(ae1.name)), LOWER(TRIM(ae2.name))) as similarity_score\n FROM artists_extended ae1\n CROSS JOIN artists_extended ae2\n WHERE ae1.id != ae2.id\n AND ae1.mbid_type = 'synthetic'\n AND ae2.mbid_type = 'musicbrainz'\n AND similarity(LOWER(TRIM(ae1.name)), LOWER(TRIM(ae2.name))) >= $1\n ORDER BY similarity_score DESC\n ", 4 "describe": { 5 "columns": [ 6 { 7 "ordinal": 0, 8 "name": "synthetic_id", 9 "type_info": "Int4" 10 }, 11 { 12 "ordinal": 1, 13 "name": "synthetic_name", 14 "type_info": "Text" 15 }, 16 { 17 "ordinal": 2, 18 "name": "target_id", 19 "type_info": "Int4" 20 }, 21 { 22 "ordinal": 3, 23 "name": "target_name", 24 "type_info": "Text" 25 }, 26 { 27 "ordinal": 4, 28 "name": "target_mbid", 29 "type_info": "Uuid" 30 }, 31 { 32 "ordinal": 5, 33 "name": "similarity_score", 34 "type_info": "Float4" 35 } 36 ], 37 "parameters": { 38 "Left": [ 39 "Float4" 40 ] 41 }, 42 "nullable": [ 43 false, 44 false, 45 false, 46 false, 47 true, 48 null 49 ] 50 }, 51 "hash": "6fec79345247c090a72f32d06cb53290156d41f49abba3a9280bc2bedc1c9c56" 52}