S p o r t s D a t a B a s e . c o m
a sports data query language (SDQL ©) consultancy

Permission is given to quote trends found on SportsDataBase.com provided that a reference and a link to SportsDataBase.com is provided. E.g.: Trend found on SportsDataBase.com


Winning Picks, Guaranteed

MLB SDQL Access

Enter your SDQL in the text box below and click the query button when finished.

season=2009
# games Record
W-L (marg, % win)

$ On

$ Against
Over/Under
O-U-P (marg, % over)

$ Over

$ Under
team
162 80-82 (-0.20, 49.4%)    -520       -255    85-70-7 (1.01, 54.8%)    920       -2235    Brewers
162 87-75 (0.04, 53.7%)    1000       -1965    80-69-10 (0.72, 53.7%)    800       -1805    Marlins
162 75-87 (0.17, 46.3%)    -1690       885    81-75-5 (0.64, 51.9%)    145       -1465    Blue Jays
171 102-69 (0.68, 59.6%)    2450       -3295    86-78-7 (0.93, 52.4%)    -45       -1680    Angels
162 65-97 (-0.57, 40.1%)    -3270       2470    79-76-7 (0.81, 51.0%)    -355       -1100    Indians
165 95-70 (0.77, 57.6%)    595       -1395    75-78-8 (0.59, 49.0%)    -540       -460    Red Sox
162 64-98 (-0.83, 39.5%)    -2045       1220    78-78-5 (0.43, 50.0%)    -675       -815    Orioles
162 65-97 (-0.96, 40.1%)    -2550       1760    76-76-10 (0.66, 50.0%)    -705       -775    Royals
162 75-87 (-0.01, 46.3%)    180       -1115    79-80-2 (0.63, 49.7%)    -810       -705    Athletics
162 70-92 (-0.38, 43.2%)    -2385       1645    73-76-13 (0.50, 49.0%)    -945       -445    Diamondbacks
177 114-63 (1.07, 64.4%)    1850       -2805    84-86-7 (0.66, 49.4%)    -1035       -720    Yankees
170 99-71 (0.92, 58.2%)    840       -1735    78-81-11 (0.09, 49.1%)    -1115       -440    Dodgers
166 93-73 (0.51, 56.0%)    1305       -2140    75-81-10 (0.28, 48.1%)    -1300       -40    Rockies
177 102-75 (0.73, 57.6%)    485       -1450    79-85-12 (0.38, 48.2%)    -1360       -235    Phillies
161 58-103 (-1.02, 36.0%)    -2770       1935    71-80-6 (0.56, 47.0%)    -1370       350    Nationals
162 75-87 (-0.81, 46.3%)    210       -1105    76-83-3 (0.45, 47.8%)    -1435       -90    Padres
166 87-79 (0.26, 52.4%)    185       -980    74-83-7 (0.70, 47.1%)    -1470       205    Twins
162 88-74 (0.28, 54.3%)    1095       -1875    70-82-9 (-0.20, 46.1%)    -1825       560    Giants
162 70-92 (-0.53, 43.2%)    -1560       750    71-82-9 (0.04, 46.4%)    -1855       395    Mets
162 84-78 (0.30, 51.9%)    -1035       170    71-85-5 (0.52, 45.5%)    -2015       560    Rays
163 86-77 (-0.01, 52.8%)    -350       -415    73-86-4 (0.14, 45.9%)    -2060       485    Tigers
161 62-99 (-0.82, 38.5%)    -2335       1535    70-85-5 (0.08, 45.2%)    -2060       740    Pirates
165 91-74 (0.50, 55.2%)    -250       -650    70-84-10 (-0.02, 45.5%)    -2075       855    Cardinals
161 83-78 (0.22, 51.6%)    -1810       1025    68-83-9 (-0.10, 45.0%)    -2165       850    Cubs
162 86-76 (0.58, 53.1%)    -1200       185    71-86-5 (0.00, 45.2%)    -2345       780    Braves
161 74-87 (-0.78, 46.0%)    -935       100    69-86-6 (-0.05, 44.5%)    -2525       1085    Astros
162 85-77 (-0.32, 52.5%)    1240       -1940    65-89-7 (-0.30, 42.2%)    -3075       1670    Mariners
162 78-84 (-0.31, 48.1%)    390       -1305    63-89-10 (-0.06, 41.4%)    -3355       1960    Reds
162 87-75 (0.27, 53.7%)    1130       -1915    62-94-5 (-0.21, 39.7%)    -4005       2570    Rangers
162 79-83 (-0.05, 48.8%)    -905       5    62-94-6 (-0.05, 39.7%)    -4055       2615    White Sox

How to use the Baseball query page:

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.
The full format for reference to the MLB SportsDataBase is game reference:parameter.

Examples:

The query:
team and site=home
returns the home records for all teams

p:runs<=1 and 5<=po:runs
returns games after a team scored 1 or fewer runs while their opponent scored 5 or more runs.

p:runs
returns games grouped by all occurrences of the teams previous runs p:runs<1,2,3,4,5
gives results grouped by previous runs fewer than 1,2,3,4, and 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
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

Allowed game references are:

t => team's stats
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

Examples:

The query:
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.)

Parameters:

at bats, attendance, balls, biggest lead, conference, date, day, division, double header, earned runs, errors, fly balls, ground balls, hits, hitters faced, home runs, inning runs, innings led, innings tied, left on base, line, losses, margin, matchup losses, matchup wins, month, opponents, ou margin, ou streak, over, pitchers used, pitches, playoffs, points, rbi, rest, run line, run line runs, run line streak, runs, scored first, season, series game, series games, site, site streak, start time, starter, starter balls, starter earned runs, starter fly balls, starter ground balls, starter hits, starter hitters faced, starter home runs, starter innings pitched, starter losses, starter matchup losses, starter matchup wins, starter pitches, starter rest, starter runs, starter strike outs, starter strikes, starter throws, starter walks, starter whip, starter wins, starters previous game, starters previous match up, streak, strike outs, strikes, team, team left on base, temperature, time zone, times tied, total, umpires, under, walks, wins

Note that the parameters pitchers used, hitters faced, balls, strikes, pitches, and starter [parameter] refer to the defensive team while all other parameters refer to the offensive team.

Examples:

The query:
o:walks=0 and team=Cubs
returns games where the Cubs' pitchers gave up no walks.

The query:
6<o:strike outs and team=Mets
returns games where the Mets' pitchers struck out more than 6 hitters.

Short Cuts:

Short cuts come in three flavors:

    Single letter short cuts (e.g.: `H` means `site=home`)
  • Single letter plus number short cuts (e.g.: `R5` means 'runs scored in the fifth inning')
  • Multi-character short cuts (e.g.: `SO` means `strike outs`)

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:
HF and p:HFL and pp:HFL
returns home favorites after they just lost as home favorites their last two games.

The query:
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.

The query:
HF and p:WADX
returns games where the team is a home favorite after winning as an away dog in extra innings.

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
   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.

Examples:

The query:
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.

The query:
p:S3>10 and p:L
returns games after the team scored more than 10 runs in the first three innings and lost.

Multi-character short cuts

Multi-character short cuts save on typing and can make your SDQL more readable.

  • BL - Biggest Lead
  • BPRA - Bull Pen Runs Allowed
  • BS - Bad Start (4 or fewer innings and 5 or more earned runs)
  • DAY - Day (start time<1800)
  • DIV - Divisional game
  • FGS - First Game of a Series
  • HR - Home Runs
  • HPR - Hits Per Run
  • HPU - Home Plate Umpire
  • IL - Innings Led
  • IT - Innings Tied
  • LGS - Last Game of a Series
  • LOB - Left on Base
  • NGT - Night (start time>=1800)
  • PBRS - Percent Base Runners Scored
  • PU - Pitchers Used
  • QS - Quality Start (at least 6 innings and 3 or fewer earned runs)
  • RMAX - The maximum runs the team scored in any one inning
  • SERA - Starters' Earned Run Average in the Referenced Game
  • SF - Scored First
  • SG - Series Game
  • SGS - Series Games
  • SHA - Starter's Hits Allowed
  • SHF - Starter's Hitters Faced
  • SHRA - Starter's Home Runs Allowed
  • SII - Scored In Innings
  • SIP - Starter's Innings Pitched
  • SO - Strikeouts
  • SOPW - Strikeouts Per Walk
  • SPPH - Starter's Pitch Per Hitter
  • SPB - Strike Per Ball
  • SPT - Starter Pitches Thrown
  • SRA - Starter's Runs Allowed
  • SSO - Starter's Strike Outs
  • SSPB - Starter's Strike Per Ball
  • STDHPR - Season To Date Hits Per Run
  • STDSERA - Starter's Season To Date ERA
  • STDSOPW - Season To Date Stike Outs Per Walk
  • STDSSOPW - Starter's Season To Date Stike Outs Per Walk
  • STDSPB - Season To Date Stikes Per Ball
  • STDSSPB - Starter's Season To Date Stikes Per Ball
  • STDSWHIP - Starter's Season To Date WHIP
  • STR - Starter Throws Right
  • STL - Starter Throws Left
  • SWA - Starter's Walks Allowed
  • SWHIP - Starter's Walks Plus Hits Per Inning Pitched
  • TLOB - Team Left On Base
  • TT - Times Tied
  • WOW - Walk Off Win

e-mail links:   Content@SportsDataBase.com    Support@SportsDataBase.com   
Content for this is generated using the Sports Data Query Language (SDQL).
Google Groups
Subscribe to SportsDataBase
Email:
Visit this group