Add query and extract job

Convention since I see most other functions are using truthy evaluation for non-boolean values. Of course, that won't work for boolean values though.