How to Write Targeted Boolean Queries