3Bet Pots, actions on flop turn and river thread..:-)

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

3Bet Pots, actions on flop turn and river thread..:-)

Postby stasia42 » Sat Sep 19, 2009 4:36 pm

Hi there,
I'm focusing on 3Bet pots, and general behavior when saw flop.

For starter, I'm trying to make a stat for the situation: "Villain RFI PF, faces 3Bet from SB or BB, calls the 3Bet, aggressor (the 3Bettor PF) checks flop to him, he checks".

I came up with something like this:

sum( if[holdem_hand_player_statistics.flg_p_first_raise AND
holdem_hand_player_statistics.flg_p_open_opp AND
holdem_hand_player_statistics.enum_p_3bet_action = 'C' AND
(val_p_raise_aggressor_pos=9 OR val_p_raise_aggressor_pos=8) AND
lookup_actions_f.action = 'X', 1, 0])...

It seems that this is not a valide SQL statement, and I'm just starting to learn this Sql thing, so I can't find the mistake. Regardless, does this expression gives me the stat I want?

Regards,
Stas.
stasia42
 
Posts: 35
Joined: Tue Aug 25, 2009 12:51 pm

Re: 3Bet Pots, actions on flop turn and river thread..:-)

Postby WhiteRider » Sat Sep 19, 2009 5:08 pm

You're missing "holdem_hand_player_detail." from the start of:
holdem_hand_player_detail.val_p_raise_aggressor_pos

Code: Select all
sum( if[holdem_hand_player_statistics.flg_p_first_raise AND holdem_hand_player_statistics.flg_p_open_opp AND holdem_hand_player_statistics.enum_p_3bet_action = 'C' AND (holdem_hand_player_detail.val_p_raise_aggressor_pos=9 OR holdem_hand_player_detail.val_p_raise_aggressor_pos=8) AND lookup_actions_f.action = 'X', 1, 0])


Other than that it looks good!

(You'll also need to make sure you have a space after each "AND" but this is probably just due to you reformatting for your post?)

Minor point, you could simplify:
(holdem_hand_player_detail.val_p_raise_aggressor_pos=9 OR holdem_hand_player_detail.val_p_raise_aggressor_pos=8)
..to:
holdem_hand_player_detail.val_p_raise_aggressor_pos >= 8

Do you want to check that only two players saw the flop?
holdem_hand_summary.cnt_players_f = 2
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: 3Bet Pots, actions on flop turn and river thread..:-)

Postby stasia42 » Sat Sep 19, 2009 10:54 pm

First of all, let me just say that I super appreciate your help, and that I'm really getting the feeling that I'm starting to understand what's going on with this SQL stuff because of you guys.

Here's the valid SQL expressions that I've made through your comments, just tell me if it works..:-)

I checking the situation where a player RFI, faces 3Bet from either blinds, calls, two players see the flop, and the 3bet aggressor checks to villain on flop.

Check-Check Situation:

sum( if[holdem_hand_player_statistics.flg_p_first_raise AND holdem_hand_player_statistics.flg_p_open_opp AND holdem_hand_player_statistics.enum_p_3bet_action = 'C' AND holdem_hand_player_detail.val_p_raise_aggressor_pos >= 8 AND holdem_hand_summary.cnt_players_f = 2 AND lookup_actions_f.action = 'X', 1, 0])

Check-Bet Situation:

sum( if[holdem_hand_player_statistics.flg_p_first_raise AND holdem_hand_player_statistics.flg_p_open_opp AND holdem_hand_player_statistics.enum_p_3bet_action = 'C' AND holdem_hand_player_detail.val_p_raise_aggressor_pos >= 8 AND (NOT (holdem_hand_player_statistics.flg_f_cbet)) AND holdem_hand_player_statistics.flg_f_bet AND holdem_hand_summary.cnt_players_f = 2 , 1, 0])

And the thing that I'm going to divide (number of times this opportunity had happened)

sum( if[holdem_hand_player_statistics.flg_p_first_raise AND holdem_hand_player_statistics.flg_p_open_opp AND holdem_hand_player_statistics.enum_p_3bet_action = 'C' AND holdem_hand_player_detail.val_p_raise_aggressor_pos >= 8 AND holdem_hand_summary.cnt_players_f = 2 AND NOT (holdem_hand_player_statistics.flg_f_cbet), 1, 0])

Does all this seems logical?
If so, I'm gonna upload to this thread a lot of 3Bet pots related stats, that I think people will find very interesting... Just give me the OK on these stats, and I'll make whole lot of new ones tomorrow...:-)
stasia42
 
Posts: 35
Joined: Tue Aug 25, 2009 12:51 pm

Re: 3Bet Pots, actions on flop turn and river thread..:-)

Postby stasia42 » Sat Sep 19, 2009 11:08 pm

Here's another try:

Hero RFI, faces 3Bet from either blind, calls, and aggressor doesn't make CBet on flop:

3Bet Pot - Aggrresor Checks:
(cnt_p_rfi_face_3b_def_action_call_check) / (cnt_p_rfi_face_3b_def_action_call_2players_flop) * 100

cnt_p_rfi_face_3b_def_action_call_check:

sum( if[holdem_hand_player_statistics.flg_p_first_raise AND holdem_hand_player_statistics.flg_p_open_opp AND holdem_hand_player_statistics.enum_p_3bet_action = 'C' AND holdem_hand_player_detail.val_p_raise_aggressor_pos >= 8 AND holdem_hand_summary.cnt_players_f = 2 AND NOT (holdem_hand_player_statistics.flg_f_cbet), 1, 0])

cnt_p_rfi_face_3b_def_action_call_2players_flop

sum( if[holdem_hand_player_statistics.flg_p_first_raise AND holdem_hand_player_statistics.flg_p_open_opp and holdem_hand_player_statistics.enum_p_3bet_action = 'C' AND holdem_hand_player_detail.val_p_raise_aggressor_pos >= 8 AND holdem_hand_summary.cnt_players_f = 2, 1, 0])

works?
stasia42
 
Posts: 35
Joined: Tue Aug 25, 2009 12:51 pm

Re: 3Bet Pots, actions on flop turn and river thread..:-)

Postby WhiteRider » Sun Sep 20, 2009 4:36 am

These two look good:
I don't think you really need to check that the flop bet isn't a c-bet (given the preflop action it can't be), but they're both fine.

stasia42 wrote:Check-Check Situation:

sum( if[holdem_hand_player_statistics.flg_p_first_raise AND holdem_hand_player_statistics.flg_p_open_opp AND holdem_hand_player_statistics.enum_p_3bet_action = 'C' AND holdem_hand_player_detail.val_p_raise_aggressor_pos >= 8 AND holdem_hand_summary.cnt_players_f = 2 AND lookup_actions_f.action = 'X', 1, 0])

Check-Bet Situation:

sum( if[holdem_hand_player_statistics.flg_p_first_raise AND holdem_hand_player_statistics.flg_p_open_opp AND holdem_hand_player_statistics.enum_p_3bet_action = 'C' AND holdem_hand_player_detail.val_p_raise_aggressor_pos >= 8 AND (NOT (holdem_hand_player_statistics.flg_f_cbet)) AND holdem_hand_player_statistics.flg_f_bet AND holdem_hand_summary.cnt_players_f = 2 , 1, 0])


Your opportunities column isn't quite right, though.

And the thing that I'm going to divide (number of times this opportunity had happened)

sum( if[holdem_hand_player_statistics.flg_p_first_raise AND holdem_hand_player_statistics.flg_p_open_opp AND holdem_hand_player_statistics.enum_p_3bet_action = 'C' AND holdem_hand_player_detail.val_p_raise_aggressor_pos >= 8 AND holdem_hand_summary.cnt_players_f = 2 AND NOT (holdem_hand_player_statistics.flg_f_cbet), 1, 0])


Instead of
NOT holdem_hand_player_statistics.flg_f_cbet
..you need to check for:
holdem_hand_player_statistics.flg_f_open_opp
..which is an opportunity to open on the flop. This means that the opponent in the blinds checked to the player so they have the opportunity to bet or check.

I would suggest checking that your stat finds exactly the hands you want using the method described in this post if you want to verify that they are correct.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests