SQL Fiddle will let you build schema objects and run queries against them. It's great for trying things out. It has become quite common for answers here to include a link to a Fiddle to demonstrate a code sample (including quite a few of mine, apparently).
It's free, but welcomes donations.