Ocarina of Time
From the Super Mario Wiki
Ocarina of Time is a microgame found in WarioWare: Smooth Moves in 9-Volt and 18-Volt's stage, and in WarioWare Gold in 5-Volt's stage. It is set in the Nintendo 64 game The Legend of Zelda: Ocarina of Time.
The object is to make Young Link pull the Master Sword out of its pedestal in the Temple of Time. In WarioWare: Smooth Moves, the player must thrust the Wii Remote upward. The WarioWare Gold version does not have the motion control component and instead, the button must be tapped.