Attempts to fix more TS2339 errors.
Attempts to fix more TS2339 errors.

```
knex/knex-tests.ts(498,45): error TS2339: Property 'map' does not exist on type 'QueryBuilder'.
knex/knex-tests.ts(506,45): error TS2339: Property 'reduce' does not exist on type 'QueryBuilder'.
```

https://travis-ci.org/DefinitelyTyped/DefinitelyTyped/builds/119590526
amanmahajan7/DefinitelyTyped,DzmitryDulko/DefinitelyTyped,use-strict/DefinitelyTyped,arusakov/DefinitelyTyped,stacktracejs/DefinitelyTyped,magny/DefinitelyTyped,Litee/DefinitelyTyped,Penryn/DefinitelyTyped,jimthedev/DefinitelyTyped,jraymakers/DefinitelyTyped,greglo/DefinitelyTyped,arusakov/DefinitelyTyped,schmuli/DefinitelyTyped,abbasmhd/DefinitelyTyped,aciccarello/DefinitelyTyped,sledorze/DefinitelyTyped,amir-arad/DefinitelyTyped,reppners/DefinitelyTyped,danfma/DefinitelyTyped,mcrawshaw/DefinitelyTyped,georgemarshall/DefinitelyTyped,nobuoka/DefinitelyTyped,slavomirvojacek/DefinitelyTyped,arusakov/DefinitelyTyped,magny/DefinitelyTyped,scriby/DefinitelyTyped,mattblang/DefinitelyTyped,dsebastien/DefinitelyTyped,pocesar/DefinitelyTyped,pwelter34/DefinitelyTyped,one-pieces/DefinitelyTyped,donnut/DefinitelyTyped,donnut/DefinitelyTyped,martinduparc/DefinitelyTyped,reppners/DefinitelyTyped,axelcostaspena/DefinitelyTyped,minodisk/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,zuzusik/DefinitelyTyped,georgemarshall/DefinitelyTyped,shlomiassaf/DefinitelyTyped,daptiv/DefinitelyTyped,subash-a/DefinitelyTyped,scriby/DefinitelyTyped,psnider/DefinitelyTyped,benishouga/DefinitelyTyped,Ptival/DefinitelyTyped,nainslie/DefinitelyTyped,schmuli/DefinitelyTyped,florentpoujol/DefinitelyTyped,chrootsu/DefinitelyTyped,benishouga/DefinitelyTyped,hellopao/DefinitelyTyped,rcchen/DefinitelyTyped,isman-usoh/DefinitelyTyped,johan-gorter/DefinitelyTyped,nobuoka/DefinitelyTyped,mhegazy/DefinitelyTyped,EnableSoftware/DefinitelyTyped,nycdotnet/DefinitelyTyped,abbasmhd/DefinitelyTyped,gandjustas/DefinitelyTyped,arma-gast/DefinitelyTyped,minodisk/DefinitelyTyped,emanuelhp/DefinitelyTyped,subash-a/DefinitelyTyped,QuatroCode/DefinitelyTyped,amanmahajan7/DefinitelyTyped,chbrown/DefinitelyTyped,psnider/DefinitelyTyped,jraymakers/DefinitelyTyped,psnider/DefinitelyTyped,markogresak/DefinitelyTyped,gcastre/DefinitelyTyped,abner/DefinitelyTyped,benishouga/DefinitelyTyped,Penryn/DefinitelyTyped,alvarorahul/DefinitelyTyped,emanuelhp/DefinitelyTyped,AgentME/DefinitelyTyped,frogcjn/DefinitelyTyped,chrismbarr/DefinitelyTyped,raijinsetsu/DefinitelyTyped,YousefED/DefinitelyTyped,slavomirvojacek/adbrain-typescript-definitions,hellopao/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,danfma/DefinitelyTyped,arma-gast/DefinitelyTyped,shlomiassaf/DefinitelyTyped,florentpoujol/DefinitelyTyped,mcliment/DefinitelyTyped,pocesar/DefinitelyTyped,tan9/DefinitelyTyped,gcastre/DefinitelyTyped,zuzusik/DefinitelyTyped,Zzzen/DefinitelyTyped,dsebastien/DefinitelyTyped,Ptival/DefinitelyTyped,alexdresko/DefinitelyTyped,borisyankov/DefinitelyTyped,slavomirvojacek/DefinitelyTyped,musicist288/DefinitelyTyped,mattblang/DefinitelyTyped,abner/DefinitelyTyped,xStrom/DefinitelyTyped,stephenjelfs/DefinitelyTyped,borisyankov/DefinitelyTyped,slavomirvojacek/adbrain-typescript-definitions,georgemarshall/DefinitelyTyped,chrismbarr/DefinitelyTyped,mareek/DefinitelyTyped,ashwinr/DefinitelyTyped,martinduparc/DefinitelyTyped,Softpagehomeware/DefinitelyTyped,mcrawshaw/DefinitelyTyped,AgentME/DefinitelyTyped,QuatroCode/DefinitelyTyped,gandjustas/DefinitelyTyped,progre/DefinitelyTyped,xStrom/DefinitelyTyped,ryan-codingintrigue/DefinitelyTyped,newclear/DefinitelyTyped,aciccarello/DefinitelyTyped,HPFOD/DefinitelyTyped,sledorze/DefinitelyTyped,nainslie/DefinitelyTyped,syuilo/DefinitelyTyped,rolandzwaga/DefinitelyTyped,mareek/DefinitelyTyped,hellopao/DefinitelyTyped,syuilo/DefinitelyTyped,YousefED/DefinitelyTyped,alexdresko/DefinitelyTyped,newclear/DefinitelyTyped,raijinsetsu/DefinitelyTyped,martinduparc/DefinitelyTyped,stacktracejs/DefinitelyTyped,rolandzwaga/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,tan9/DefinitelyTyped,stephenjelfs/DefinitelyTyped,pwelter34/DefinitelyTyped,DzmitryDulko/DefinitelyTyped,Litee/DefinitelyTyped,AgentME/DefinitelyTyped,alvarorahul/DefinitelyTyped,paulmorphy/DefinitelyTyped,paulmorphy/DefinitelyTyped,aciccarello/DefinitelyTyped,isman-usoh/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,EnableSoftware/DefinitelyTyped,Softpagehomeware/DefinitelyTyped,nycdotnet/DefinitelyTyped,progre/DefinitelyTyped,pocesar/DefinitelyTyped,smrq/DefinitelyTyped,greglo/DefinitelyTyped,georgemarshall/DefinitelyTyped,jimthedev/DefinitelyTyped,micurs/DefinitelyTyped,johan-gorter/DefinitelyTyped,Zzzen/DefinitelyTyped,ashwinr/DefinitelyTyped,yuit/DefinitelyTyped,smrq/DefinitelyTyped,jimthedev/DefinitelyTyped,yuit/DefinitelyTyped,rcchen/DefinitelyTyped,schmuli/DefinitelyTyped,frogcjn/DefinitelyTyped,AgentME/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,chrootsu/DefinitelyTyped,HPFOD/DefinitelyTyped,zuzusik/DefinitelyTyped,nfriend/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,damianog/DefinitelyTyped,benliddicott/DefinitelyTyped,mhegazy/DefinitelyTyped,damianog/DefinitelyTyped,use-strict/DefinitelyTyped