Fix 271. Fix Output Format of queries editor

Move Output Format and Query Source selection of query ediotr into
main content.