{ "db_name": "PostgreSQL", "query": "SELECT COUNT(DISTINCT t.id) AS \"count!\"\n FROM threads t\n JOIN categories c ON c.id = t.category_id\n JOIN communities co ON co.id = c.community_id\n JOIN thread_tags tt ON tt.thread_id = t.id\n JOIN tags tg ON tg.id = tt.tag_id AND tg.slug = $3 AND tg.community_id = co.id\n WHERE co.slug = $1 AND c.slug = $2 AND t.deleted_at IS NULL", "describe": { "columns": [ { "ordinal": 0, "name": "count!", "type_info": "Int8" } ], "parameters": { "Left": [ "Text", "Text", "Text" ] }, "nullable": [ null ] }, "hash": "aa577640ff7b6896e3d1f336f0629c4d5abd8d42f0c4073da12add17bec85939" }