 This video describes a solution to Lesson 3, Practice Exercise C, where we want to select park and ride facilities that meet a certain threshold of parking spaces and then copy them to their own new feature class. After importing the ArcPy site package on line 4, we set up a variable representing the threshold. In this case, we want at least 500 parking spaces. Building this variable at the top of the script is helpful in case we want to adjust the value and test the script with other values. It's easy to find at the top and not buried down later in our code. In line 6, I'm setting up the ArcPy workspace to be the location of my file geodatabase. I didn't do this in the previous two exercises, but this is a nice way to work with file geodatabases in the sense that from now on, if I want to refer to a feature class, I only have to use its name. I don't have to supply the full path, and you'll see that later on in the script. Line 9 is probably the most critical line of the script. It's setting up the SQL query expression to get the park and ride facilities that have greater than that number of parking spaces. If we were to look at this in Pro, where the park and ride facilities are the black dots, we would do this sort of thing using select by attributes. We'd pick the park and ride layer, new selection, and we would create a SQL where clause where a prox par is greater than 500. I'll run that. That would give us the facilities, the large park and rides that are primarily in the Seattle and Tacoma areas. Trying to do the same thing in a script, here we, again, looking at line 9, we're creating that expression. Notice that you need to convert that integer value of 500 into a string so that you can concatenate it with the rest of the query expression. However, you don't have to enclose the value in quotes because when you build queries based on numeric values, the number is not put in quotes, just as we saw in Pro a moment ago. Once you have that query string all set up, you can run the make feature layer tool as we saw in the previous exercises to get a park and ride feature layer with just those selected facilities that meet the criterion. There's three parameters to pass in here. The first one is the name of the feature class that we're operating on. Again, because we set up the workspace, we can just put in the name of the feature class rather than the full path. The second parameter is the name that we want to give to the feature layer. We can name that anything we want and it's just going to reside temporarily in the computer's memory. And finally, the third parameter is that SQL query expression, which is optional. If we omitted it, we would just get all the facilities, but we just want to have the big ones that meet our criteria so we plug in that parking query. Once we have that feature layer, we can run the copy features tool to make a brand new feature class with just the selected features. So the two parameters here, the first one is the name of the feature layer that is the source of the features that we want to copy. Remember in line 12, we called that park and ride layer, so that's where that's coming from. Then the second parameter, big park and ride facilities, is the name that we want to give to the new feature class that we're creating. And so once we've done that, we have a new feature class and we can run the delete tool to clean up our feature layer. And that's all we need to do in this script.