![]() Winning Picks, Guaranteed |
![]() featuring the Sports Data Query Language |
Home | Trend Mart || | NFL | NBA | MLB | NHL | NCAA FB | NCAA BB | || MLB: Home | Trends | SDQL Query |
Use this page to type in queries to check the records and net profits of any situation.
Profits are calculated based on risking the line to win $100 when playing on
favorites and risking $100 to win the line when playing on dogs.
A query consists of one or more clauses joined by and or or.
Examples:
The query:
p:runs<=1 and 5<=po:runs
p:runs
p:runs<1,2,3,4,5
Game Reference:
Use of the game reference lets you probe any game relative to the
game for which you want to see stats. We saw this above with
Allowed game references are:
t => team's stats
Examples:
The query:
Examples:
The query:
The query:
Short Cuts:
Short cuts come in three flavors:
Single letter short cuts
Single letter short cuts are great because you can easily combine them
and you only need to specify the prefix once.
H, A, W, L, F, D, O, U, C, X are allowed short cuts for home,away,win,loss,favorite,dog,over the total,under the total, a same-conference game, and extra innings. As with the parameter prefixes, these can be strung together without limit.
Examples:
The query:
The query:
The query:
Single letter plus number short cuts
The runs scored in each inning is saved as a list in the database under the header `inning runs`. The short cuts
Examples:
The query:
The query:
Multi-character short cuts
Multi-character short cuts save on typing and can make your SDQL more readable.
tpy:
import KS.client_tools
import urllib, os
import PyQL.py_tools
from MLB.query import query
from KS.ks import API_SERVER, TPY_TOP, DEFAULT_TIMEOUT
error:
exception:
message: invalid syntax (
traceback:
error:
exception:
message:
traceback:
How to use the Baseball query page:
The full format for reference to the MLB SportsDataBase is game reference:parameter.
team and site=home
returns the home records for all teams
returns games after a team scored 1 or fewer runs while their opponent scored 5 or more runs.
returns games grouped by all occurrences of the teams previous runs
gives results grouped by previous runs fewer than 1,2,3,4, and 5.
p:runs<=1
meaning "How do teams do after scoring 1 or fewer runs?"
To reqire this same condition also on the team's run productions 2 games back use:
p:runs<=1 and pp:runs<=1
o => opponent's stats
p => team's previous game
op => opp's previous game
P => previous match up
n => team's next game
on => opp's next game
N => next match up
s => starter's previous start
S => starter's previous match up start
site=home and P:runs=0 and PP:runs=0
returns home games where the team was shut out their two previous matchups. (Remember
that 'P' refers to the previous matchup between the two teams
while 'p' refers to the team's previous game.)
o:walks=0 and team=Cubs
returns games where the Cubs' pitchers gave up no walks.
6<o:strike outs and team=Mets
returns games where the Mets' pitchers struck out more than 6 hitters.
HF and p:HFL and pp:HFL
returns home favorites after they just lost as home favorites their last two games.
P:O and PP:O and PPP:O and PPPP:O and PPPPP:O and PPPPPP:O
returns games where teams have gone over the total their last six matchups.
HF and p:WADX
returns games where the team is a home favorite after winning as an away dog in extra innings.
   R1, R2,...R9 (runs in the specified inning)
   M1, M2,...M9 (the margin after the specified innings)
   S1, S2,...S9 (the score after the specified inning)
facilitate access to this parameter.
p:M8<-4 and p:R9>5 and p:W
returns games after the team was down by +4 after 8, scored more than 5 in the 9th to win.
p:S3>10 and p:L
returns games after the team scored more than 10 runs in the first three innings and lost.
support@KillerSports.com