Queries and script for testing.