CREATE TABLE participants_in_events (event_id DECIMAL, participant_id DECIMAL)
CREATE TABLE participants (participant_id DECIMAL, participant_type_code TEXT, participant_details TEXT)
CREATE TABLE events (event_id DECIMAL, service_id DECIMAL, event_details TEXT)
CREATE TABLE services (service_id DECIMAL, service_type_code TEXT)

How many events had participants whose details had the substring 'Dr.
SELECT COUNT(*) FROM participants AS T1 JOIN participants_in_events AS T2 ON T1.participant_id = T2.participant_id WHERE T1.participant_details LIKE '%Dr.%'
SELECT COUNT(*) FROM "participants" AS "T1" JOIN "participants_in_events" AS "T2" ON "T1"."participant_id" = "T2"."participant_id" WHERE "T1"."participant_details" LIKE '%Dr.%'