Site icon The Money Baller

SDQL Parameters & Syntax Glossary

Introduction to SDQL


Sports Data Query Language (SDQL) is the syntax used to search and analyze data within our sports databases. It allows you to build flexible queries to isolate specific situations, trends, and outcomes across games, teams, players, and seasons.

There are virtually unlimited combinations of queries you can create. This guide focuses on foundational concepts and the most commonly used parameters to help you get started quickly and confidently.



Table of Contents



Basic Query Structure

An SDQL query is made up of one or more parameters connected using logical operators such as and or or. For most simple queries, the order of parameters does not matter.

Each parameter represents a statistic, attribute, or game condition. Most parameters are paired with a value that defines exactly what you want to filter for.



Common Mathematical Operators

Example:

To find games where a team scored more than 150 points, use points>150.

Negative values are also important. For example, margin<=-10 refers to a team that lost by 10 or more points.



Team vs. Opponent Context

Queries can be run for a specific team or across all teams in a league.

For example:

Every SDQL query is evaluated from the perspective of a team and its opponent:

To reference opponent statistics, use the o: prefix.

Examples:

You can also directly compare statistics:



Combining Multiple Conditions

You can stack multiple parameters together to build very specific queries.

Example:

points>=30 and passing yards>=300 and o:points<7 and o:turnovers>=2

This returns games where a team:

This flexibility is one of the most powerful features of SDQL.



Using Historical and Future Game Data

SDQL allows you to query beyond the current game by referencing past or future games.

Common Time-Based Prefixes

Examples:

Next-game examples:

Matchup examples:

Each additional prefix looks one game further back or forward.



Shortcuts

Shortcuts are abbreviated parameters that represent common conditions. Like prefixes, shortcuts can be combined without limit.

Additional combinations:



Core Game Parameters

team

site

game number

playoffs

season

month

date

time


Betting Market Parameters

line

total



Team & Matchup Context

division

rest

overtime



Playoff-Specific Parameters

series game

round

seed



Streak Parameters

streak

ats streak

site streak

ou streak

Exit mobile version