PII_type: EMAIL

Exploration_sql:
The following tables and columns have been identified as potential sources for email addresses:
1. Table: quick_promotion_payload
   - Columns: trigger_id, trigger_context

2. Table: wa_address_book
   - Columns: jid, email

3. Table: wa_biz_profiles
   - Columns: jid, email

4. Table: wa_bot_profiles
   - Columns: jid

5. Table: wa_contacts
   - Columns: jid, number, display_name, given_name, family_name, nickname, company, title

6. Table: wa_trusted_contacts
   - Columns: jid

7. Table: wa_trusted_contacts_send
   - Columns: jid

You can use the following SQL query to search for email addresses in these tables:
```sql
SELECT trigger_id AS email FROM quick_promotion_payload WHERE trigger_id REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
UNION ALL
SELECT trigger_context AS email FROM quick_promotion_payload WHERE trigger_context REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
UNION ALL
SELECT email FROM wa_address_book WHERE email REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
UNION ALL
SELECT email FROM wa_biz_profiles WHERE email REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
UNION ALL
SELECT jid AS email FROM wa_biz_profiles WHERE jid REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
UNION ALL
SELECT jid AS email FROM wa_bot_profiles WHERE jid REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
UNION ALL
SELECT jid AS email FROM wa_contacts WHERE jid REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
UNION ALL
SELECT number AS email FROM wa_contacts WHERE number REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
UNION ALL
SELECT display_name AS email FROM wa_contacts WHERE display_name REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
UNION ALL
SELECT given_name AS email FROM wa_contacts WHERE given_name REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
UNION ALL
SELECT family_name AS email FROM wa_contacts WHERE family_name REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
UNION ALL
SELECT nickname AS email FROM wa_contacts WHERE nickname REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
UNION ALL
SELECT company AS email FROM wa_contacts WHERE company REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
UNION ALL
SELECT title AS email FROM wa_contacts WHERE title REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
UNION ALL
SELECT jid AS email FROM wa_trusted_contacts WHERE jid REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
UNION ALL
SELECT jid AS email FROM wa_trusted_contacts_send WHERE jid REGEXP '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
```
This query will search for email addresses in the specified columns of the identified tables.

PII_Prompt: a unique identifier for a destination to which electronic mail (email) can be sent and received over the internet; examples include jane.doe@example.com, john.smith@provider.net, dev-team@startup.io, and user.name+label@domain.org


PII_type: PHONE

Exploration_sql:
The columns in the relevant tables are as follows:
- Table 'wa_address_book':
    - number TEXT

- Table 'wa_contacts':
    - number TEXT

- Table 'wa_newsletter_props':
    - prop_name TEXT
    - prop_value TEXT

- Table 'wa_props':
    - prop_name TEXT
    - prop_value TEXT

- Table 'wa_trusted_contacts':
    - jid TEXT
    - incoming_tc_token BLOB
    - incoming_tc_token_timestamp LONG

- Table 'wa_trusted_contacts_send':
    - jid TEXT
    - sent_tc_token_timestamp LONG
    - real_issue_timestamp LONG

Now, I will search these columns for US phone numbers.
SELECT number FROM wa_address_book WHERE number REGEXP '\+?[0-9]{1,4}[- .]?\(?[0-9]{1,3}?\)?[- .]?[0-9]{1,4}[- .]?[0-9]{1,4}[- .]?[0-9]{1,9}'
UNION ALL
SELECT number FROM wa_contacts WHERE number REGEXP '\+?[0-9]{1,4}[- .]?\(?[0-9]{1,3}?\)?[- .]?[0-9]{1,4}[- .]?[0-9]{1,4}[- .]?[0-9]{1,9}'


PII_type: USERNAME

Exploration_sql:
The following tables and columns may contain usernames:
1. Table: quick_promotion_payload
   - Columns: trigger_id, trigger_context

2. Table: wa_address_book
   - Columns: jid, display_name, family_name, given_name, nickname

3. Table: wa_biz_profiles
   - Columns: jid, email, tag, name, description, creator_name

4. Table: wa_bot_profiles
   - Columns: jid, tag, name, description, category, creator_name

5. Table: wa_contacts
   - Columns: jid, display_name, family_name, given_name, nickname, wa_name

6. Table: wa_trusted_contacts
   - Columns: jid, incoming_tc_token

7. Table: wa_trusted_contacts_send
   - Columns: jid

You can use the following SQL query to search for possible usernames in these columns:
```sql
SELECT trigger_id AS username FROM quick_promotion_payload WHERE trigger_id REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT trigger_context AS username FROM quick_promotion_payload WHERE trigger_context REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT jid AS username FROM wa_address_book WHERE jid REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT display_name AS username FROM wa_address_book WHERE display_name REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT family_name AS username FROM wa_address_book WHERE family_name REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT given_name AS username FROM wa_address_book WHERE given_name REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT nickname AS username FROM wa_address_book WHERE nickname REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT jid AS username FROM wa_biz_profiles WHERE jid REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT email AS username FROM wa_biz_profiles WHERE email REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT tag AS username FROM wa_biz_profiles WHERE tag REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT name AS username FROM wa_biz_profiles WHERE name REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT description AS username FROM wa_biz_profiles WHERE description REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT creator_name AS username FROM wa_biz_profiles WHERE creator_name REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT jid AS username FROM wa_bot_profiles WHERE jid REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT tag AS username FROM wa_bot_profiles WHERE tag REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT name AS username FROM wa_bot_profiles WHERE name REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT description AS username FROM wa_bot_profiles WHERE description REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT category AS username FROM wa_bot_profiles WHERE category REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT creator_name AS username FROM wa_bot_profiles WHERE creator_name REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT jid AS username FROM wa_contacts WHERE jid REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT display_name AS username FROM wa_contacts WHERE display_name REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT family_name AS username FROM wa_contacts WHERE family_name REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT given_name AS username FROM wa_contacts WHERE given_name REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT nickname AS username FROM wa_contacts WHERE nickname REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT wa_name AS username FROM wa_contacts WHERE wa_name REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT jid AS username FROM wa_trusted_contacts WHERE jid REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT incoming_tc_token AS username FROM wa_trusted_contacts WHERE incoming_tc_token REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'
UNION ALL
SELECT jid AS username FROM wa_trusted_contacts_send WHERE jid REGEXP '\\b[a-zA-Z][a-zA-Z0-9._-]{2,51}\\b'

PII_Prompt: a username is a short textual identifier chosen by a user to represent their account or public handle within an application or service it is stored as plain text contains no whitespace does not include a domain component and is intended for human recognition rather than internal system uniqueness


PII: Svetlana Don Karen Hank Brian Goldie Vladamir Joey Mary Abe Russ Otto Toks Bo Chernoff Whalen Wayne Tate Reynolds Kahn Stravinsky Garcia Rudder Philby

Exploration_sql:
Based on the schema of the relevant tables, here is the SQL query to find possible person names in the database:

```sql
SELECT display_name FROM wa_address_book WHERE display_name REGEXP '[A-Za-z][A-Za-z\s\.\-]{1,50}'
UNION ALL
SELECT given_name FROM wa_contacts WHERE given_name REGEXP '[A-Za-z][A-Za-z\s\.\-]{1,50}'
UNION ALL
SELECT family_name FROM wa_contacts WHERE family_name REGEXP '[A-Za-z][A-Za-z\s\.\-]{1,50}'
UNION ALL
SELECT description FROM wa_group_descriptions WHERE description REGEXP '[A-Za-z][A-Za-z\s\.\-]{1,50}'
```

This query will search for loosely structured human name-like strings in the 'display_name' column of 'wa_address_book', 'given_name' and 'family_name' columns of 'wa_contacts', and 'description' column of 'wa_group_descriptions' tables.

PII_Prompt: a loosely structured human name-like strings that typically consist of a first name, a first name and a last name, and may also include middle names, initials, prefixes (e.g., Mr., Dr.), and suffixes (e.g., Jr., Sr.)


Exploration_sql:
Based on the schema of the available tables, the following tables and columns have the potential to contain US postal addresses:

1. Table: `wa_address_book`
   - Column: `address`

2. Table: `wa_biz_profiles`
   - Columns: `address`, `address_postal_code`, `address_city_id`, `address_city_name`

3. Table: `wa_biz_profiles_websites`
   - Column: `websites`

To search for US postal addresses in these tables, you can use the following SQL queries:

```sql
SELECT address FROM wa_address_book WHERE address REGEXP '(?i)\\b(?:p\\.?\\s*o\\.?\\s*box|post\\s+office\\s+box|ave\\.?|avenue|st\\.?|street|rd\\.?|road|blvd\\.?|boulevard|dr\\.?|drive|ln\\.?|lane|ct\\.?|court|pl\\.?|place|way|pkwy\\.?|parkway|cir\\.?|circle|ter\\.?|terrace|hwy\\.?|highway|trl\\.?|trail|sq\\.?|square|pike|loop|run|walk|path|byp\\.?|bypass|(?:n|s|e|w|ne|nw|se|sw)\\b)\\b';

UNION ALL

SELECT address, address_postal_code, address_city_id, address_city_name FROM wa_biz_profiles WHERE address REGEXP '(?i)\\b(?:p\\.?\\s*o\\.?\\s*box|post\\s+office\\s+box|ave\\.?|avenue|st\\.?|street|rd\\.?|road|blvd\\.?|boulevard|dr\\.?|drive|ln\\.?|lane|ct\\.?|court|pl\\.?|place|way|pkwy\\.?|parkway|cir\\.?|circle|terrace|hwy\\.?|highway|trl\\.?|trail|sq\\.?|square|pike|loop|run|walk|path|byp\\.?|bypass|(?:n|s|e|w|ne|nw|se|sw)\\b)\\b';

UNION ALL

SELECT websites FROM wa_biz_profiles_websites WHERE websites REGEXP '(?i)\\b(?:p\\.?\\s*o\\.?\\s*box|post\\s+office\\s+box|ave\\.?|avenue|st\\.?|street|rd\\.?|road|blvd\\.?|boulevard|dr\\.?|drive|ln\\.?|lane|ct\\.?|court|pl\\.?|place|way|pkwy\\.?|parkway|cir\\.?|circle|terrace|hwy\\.?|highway|trl\\.?|trail|sq\\.?|square|pike|loop|run|walk|path|byp\\.?|bypass|(?:n|s|e|w|ne|nw|se|sw)\\b)\\b';
```

These queries will search for US postal addresses in the specified columns of the respective tables.

PII_Prompt: a US postal address is a street-level mailing location in the United States, commonly appearing as a street name and suffix (e.g., 'Market St') optionally with a street number (e.g., '1500 Market St'), unit, city/state, ZIP, or a PO Box (e.g., 'P.O. Box 123')