-- This test is courtesy of Michael Drogalis (https://gist.github.com/MichaelDrogalis)
CREATE STREAM all_publications (author VARCHAR KEY, title VARCHAR)
    WITH (kafka_topic = 'publication_events',
          partitions = 1,
          value_format = 'avro');

CREATE STREAM george_martin
    WITH (kafka_topic = 'george_martin_books',
          partitions = 1) AS
    SELECT author, title
    FROM all_publications
    WHERE author = 'George R. R. Martin';