Advancment help

I want to create two advancements

1st whcih grants when a palyer walks 10 blokcs on any block 2nd which grants when a player tries to sleep in the nether [ie he right cliks on bed]

Continue to help post