write sql yourself