Create nth.sql

Creates an nth sample