how to write wordpress query for multiple metakeys checking?

It’s a little bit hard to guess, what exactly are you trying to achieve, because your code isn’t correct SQL, but…

It looks like you want to select posts based on custom fields… So all you need to do is to use Meta_Query.

$q = new WP_Query( array(
    'post_type' => 'post',  // <- or whatever post type you're searching
    'posts_per_page' => -1, // <- let's get all of such posts
    'meta_query' => array(
        'relation' => 'AND',
        array(
            'key' => 'jersy color',
            'value' => '1',
        ),
        array(
            'key' => 'teamnumbr',
            'value' => '20',
        ), 
    )
) );