Well, that depends...
All Earthquake data is at USGS.gov
You can zoom into the world map and investigate individual events.
Like the Rabaul shock
But then you have the philosophical or geological question:- What is "land" and what is "ocean"?
The exact location of the quake is certainly offshore, at a plate boundary. But there's a lot of intermediate crust and crustal fragments out there. The western Pacific is a mess (a collage, if you prefer) of tiny frgments torn from here and there, on there way to being collected there and here. It isn't black and white...
