The same metric, in English and in SQL
Only the form changed. The example is simplified; the scores are measured across all metrics.
Conference-influenced pipeline: for each account with someone who attended, the pipeline of deals that started on or after the event date. Count each account once.
SELECT account_id,
MAX(pipeline) AS pipeline
FROM event_attendees
WHERE event = :event
AND status = 'Attended'
AND deal_start >= :event_date
GROUP BY account_id