attached the sql

basically that Marcus