Basically this
Fiddle with the query, and you can extract pretty much whatever you want from the OSM database