NYC taxi trips: readiness report
12 of 12 questions right every time (100%)
Go: the bar your team set is met
12 right every time
Against your bar
- Met: At least 90% of questions right every time (12 of 12 (100%))
- Met: No question never right (none)
- Met: Every expected answer current (all current)
Where it stands, by area
lookup
time
definitional
aggregation
What the states mean
- Right every time. Every ask, in every wording, gave the right number.
- Sometimes right. Right on some asks and wrong on others. Closest to fixed.
- Never right. No ask was right, and at least one gave a number. It looks like an answer, which makes it the dangerous one.
- Declines. No ask was right, and none gave a number. A safe failure.
- Can't tell. The expected answer was out of date when it was asked, so it can't be graded.
What to fix next
Nothing to fix: every gradable question was right every time.
Prep pack: fixes drafted for your model
| Fix | Where | Draft | Why | Status |
|---|---|---|---|---|
| F001 |
taxi_zone_lookup |
Taxi location lookup linking location codes to geographic labels. Borough grouping uses pickup locations by default; explicit drop-off grouping uses drop-off locations. | The correct answer reads taxi_zone_lookup[Borough] in the semantic model. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F002 |
taxi_zone_lookup[Borough] |
Borough label for geographic grouping; none excluded by default. Stored labels: Bronx, Brooklyn, EWR, Manhattan, N/A, Queens, Staten Island, Unknown. | The correct answer reads taxi_zone_lookup[Borough] in the semantic model. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F003 |
taxi_zone_lookup[Borough] |
borough name, boro | The correct answer reads taxi_zone_lookup[Borough] in the semantic model. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F004 |
taxi_zone_lookup[LocationID] |
Location code used to join trip locations to geographic labels; Zone holds the zone name. Join PULocationID by default, or DOLocationID for explicit drop-off geography. | The correct answer reads taxi_zone_lookup[Borough] in the semantic model; the agent's SQL used taxi_zone_lookup[LocationID] in 9 of 9 asks. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F005 |
taxi_zone_lookup[LocationID] |
taxi zone ID, taxi location code | The correct answer reads taxi_zone_lookup[Borough] in the semantic model; the agent's SQL used taxi_zone_lookup[LocationID] in 9 of 9 asks. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F006 |
taxi_zone_lookup[service_zone] |
Service-zone category label, not a location code. Stored values: Airports, Boro Zone, EWR, N/A, Yellow Zone. Uses pickup location by default. | The correct answer reads taxi_zone_lookup[service_zone] in the semantic model. 1 question(s) here (YT4) were not right every time: 0 of 9 asks correct. |
approved |
| F007 |
taxi_zone_lookup[service_zone] |
taxi service area, service area, taxi service zone | The correct answer reads taxi_zone_lookup[service_zone] in the semantic model. 1 question(s) here (YT4) were not right every time: 0 of 9 asks correct. |
approved |
| F008 |
taxi_zone_lookup[Zone] |
Location name paired with the code in LocationID; name searches do not define Airport Trips. Airport eligibility uses pickup or drop-off codes 1, 132 and 138. | The correct answer reads [Airport Trips] in the semantic model; the agent's SQL used taxi_zone_lookup[Zone] in 4 of 18 asks. 2 question(s) here (YT10, YT18) were not right every time: 0 of 18 asks correct. |
approved |
| F009 |
taxi_zone_lookup[Zone] |
taxi zone name, location name | The correct answer reads [Card Share %] in the semantic model; the agent's SQL used taxi_zone_lookup[Zone] in 9 of 36 asks. 4 question(s) here (YT17, YT2, YT3, YT5) were not right every time: 0 of 36 asks correct. |
approved |
| F010 |
yellow_tripdata |
Taxi trip records; Trips counts rows with positive fare and distance, excluding rows where either is zero, negative or null. ## Metrics - Trips: count rows in yellow_tripdata where [fare_amount] > 0 AND [trip_distance] > 0. Apply these conditions in addition to existing filters. - Card Share %: 100.0 times qualifying rows with [payment_type] = 1 divided by all qualifying rows in the same filter context. Apply both positive-fare and positive-distance conditions to numerator and denominator. Intersect the numerator's payment condition with existing payment filters; do not replace them. Return NULL when the denominator is zero. ## Ambiguity - Default geographic grouping uses pickup: join yellow_tripdata[PULocationID] to taxi_zone_lookup[LocationID]. Explicit drop-off geography instead uses yellow_tripdata[DOLocationID] joined to taxi_zone_lookup[LocationID]. - Group borough results by taxi_zone_lookup[Borough]. Do not restrict its categories to a subset unless requested. Preserve missing lookup labels separately from the stored label 'Unknown'; do not replace them with an invented label. ## Terminology - [payment_type] is the payment-method code; code 1 selects card payments for Card Share %. - taxi_zone_lookup[LocationID] holds the location code; [Zone] holds the zone name; [Borough] holds the borough label. - Stored [Borough] labels are 'Bronx', 'Brooklyn', 'EWR', 'Manhattan', 'N/A', 'Queens', 'Staten Island', and 'Unknown'. Filter labels only using stored values. If a label or code filter returns no rows, look up that column's distinct values and retry once before answering. | The correct answer reads taxi_zone_lookup[Borough] in the semantic model. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F011 |
yellow_tripdata[DOLocationID] |
Drop-off location code; join to taxi_zone_lookup[LocationID] for explicit drop-off geography. Pickup is the default geographic path. | The correct answer reads taxi_zone_lookup[Borough] in the semantic model. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F012 |
yellow_tripdata[DOLocationID] |
drop-off location ID, drop-off zone code, destination location ID | The correct answer reads taxi_zone_lookup[Borough] in the semantic model. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F013 |
yellow_tripdata[fare_amount] |
Trip fare amount used to qualify Trips. Exclude rows with zero, negative or null fare from Trips and both parts of Card Share %; positive trip_distance is also required. | The correct answer reads taxi_zone_lookup[Borough] in the semantic model. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F014 |
yellow_tripdata[fare_amount] |
trip fare, taxi fare | The correct answer reads taxi_zone_lookup[Borough] in the semantic model. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F015 |
yellow_tripdata[payment_type] |
Payment-method code; 1 selects card payments for Card Share %. Count only rows with positive fare_amount and trip_distance in both numerator and denominator. | The correct answer reads taxi_zone_lookup[Borough] in the semantic model; the agent's SQL used yellow_tripdata[payment_type] in 9 of 9 asks. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F016 |
yellow_tripdata[payment_type] |
payment method, payment method code, type of payment | The correct answer reads taxi_zone_lookup[Borough] in the semantic model; the agent's SQL used yellow_tripdata[payment_type] in 9 of 9 asks. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F017 |
yellow_tripdata[PULocationID] |
Pickup location code; join to taxi_zone_lookup[LocationID]. Default geographic path for borough grouping and filtering. | The correct answer reads taxi_zone_lookup[Borough] in the semantic model; the agent's SQL used yellow_tripdata[PULocationID] in 9 of 9 asks. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F018 |
yellow_tripdata[PULocationID] |
pickup location ID, pickup zone code, origin location ID | The correct answer reads taxi_zone_lookup[Borough] in the semantic model; the agent's SQL used yellow_tripdata[PULocationID] in 9 of 9 asks. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F019 |
yellow_tripdata[tip_amount] |
Tip amount; numerator for Tip Rate %. Sum only rows with fare_amount > 0, trip_distance > 0 and payment_type = 1. Do not require a positive tip. | The correct answer reads taxi_zone_lookup[service_zone] in the semantic model; the agent's SQL used yellow_tripdata[tip_amount] in 9 of 9 asks. 1 question(s) here (YT4) were not right every time: 0 of 9 asks correct. |
approved |
| F020 |
yellow_tripdata[tip_amount] |
gratuity, tip amount, tips | The correct answer reads taxi_zone_lookup[service_zone] in the semantic model; the agent's SQL used yellow_tripdata[tip_amount] in 9 of 9 asks. 1 question(s) here (YT4) were not right every time: 0 of 9 asks correct. |
approved |
| F021 |
yellow_tripdata[total_amount] |
Total trip amount, distinct from fare. Average Fare uses [fare_amount], not this column. | The correct answer reads [Average Fare] in the semantic model; the agent's SQL used yellow_tripdata[total_amount] in 6 of 27 asks. 3 question(s) here (YT16, YT20, YT6) were not right every time: 0 of 27 asks correct. |
approved |
| F022 |
yellow_tripdata[total_amount] |
revenue, trip revenue, total revenue | The correct answer reads [Revenue] in the semantic model; the agent's SQL used yellow_tripdata[total_amount] in 9 of 9 asks. 1 question(s) here (YT11) were not right every time: 0 of 9 asks correct. |
approved |
| F023 |
yellow_tripdata[tpep_dropoff_datetime] |
drop-off date, drop-off time, trip end time | The correct answer reads [Card Share %] in the semantic model. 4 question(s) here (YT17, YT2, YT3, YT5) were not right every time: 0 of 36 asks correct. |
approved |
| F024 |
yellow_tripdata[tpep_pickup_datetime] |
Pickup date and time; default timestamp for reporting periods. Filter from the inclusive period start to the exclusive next-period start using date/time-compatible boundaries. | The correct answer reads [Card Share %] in the semantic model. 4 question(s) here (YT17, YT2, YT3, YT5) were not right every time: 0 of 36 asks correct. |
approved |
| F025 |
yellow_tripdata[tpep_pickup_datetime] |
pickup date, pickup time, trip start time | The correct answer reads [Card Share %] in the semantic model. 4 question(s) here (YT17, YT2, YT3, YT5) were not right every time: 0 of 36 asks correct. |
approved |
| F026 |
yellow_tripdata[trip_distance] |
Trip distance used to qualify Trips. Exclude rows with zero, negative or null distance from Trips and both parts of Card Share %; positive fare_amount is also required. | The correct answer reads taxi_zone_lookup[Borough] in the semantic model. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F027 |
yellow_tripdata[trip_distance] |
ride distance, distance traveled, journey distance | The correct answer reads taxi_zone_lookup[Borough] in the semantic model. 1 question(s) here (YT9) were not right every time: 6 of 9 asks correct. |
approved |
| F028 |
model |
## Metrics All measures use yellow_tripdata and include only rows where [fare_amount] > 0 AND [trip_distance] > 0. Zero, negative and NULL values in either column are excluded. Intersect these conditions and all measure-specific filters with existing filters; do not replace them. The default date for every measure is [tpep_pickup_datetime]. - **Trips:** Number of qualifying trip rows, in trips. Count rows after the shared filters; do not count passengers or distinct locations. - **Airport Trips:** Number of qualifying trips with an airport at either endpoint, in trips. Add ([PULocationID] IN (1, 132, 138) OR [DOLocationID] IN (1, 132, 138)) to the shared filters. Count each row once, even when both endpoints qualify. - **Revenue:** Total recorded trip amount. Sum [total_amount] after the shared filters, using its stored monetary units and signs. Do not substitute [fare_amount] or reconstruct the total from components. - **Tip Rate %:** Tips as a percentage of fare for card-paid qualifying trips. Apply the shared filters AND [payment_type] = 1 to both sums; compute 100.0 * SUM([tip_amount]) / NULLIF(SUM([fare_amount]), 0). This is a ratio of sums, not an average of individual trip percentages; the denominator is not [total_amount]. - **Average Fare:** Mean fare per qualifying trip, in the stored monetary units of [fare_amount]. Compute AVG([fare_amount]) after the shared filters; do not average [total_amount]. - **Card Share %:** Percentage of qualifying trips paid by card. Compute 100.0 * qualifying row count with [payment_type] = 1 / qualifying row count across payment types, preserving existing filters in both counts. This is a trip-count share, not a share of money or passengers. Use decimal division for percentages. Return NULL for a zero or absent denominator. Preserve blank results as NULL rather than filling them with zero: row-count measures are blank when no rows qualify, including the card-only numerator of Card Share %. Do not add filters on positive tips, positive total amounts or other columns unless requested. ## Dates Filter periods on yellow_tripdata.[tpep_pickup_datetime] by default. Use inclusive period starts and exclusive starts of the next period, with date/time types supported by the SQL platform; do not cast dates to rowversion. Pickup time means [tpep_pickup_datetime]; an explicitly requested drop-off time means [tpep_dropoff_datetime]. Do not add a date predicate when the requested scope has no date restriction. ## Terminology - Rides and trips refer to Trips. Mean fare and average fare refer to Average Fare. Revenue and money brought in refer to Revenue. Tip percentage refers to Tip Rate %. Card payment share refers to Card Share %. - taxi_zone_lookup.[Borough] contains borough labels. Stored values are `Bronx`, `Brooklyn`, `EWR`, `Manhattan`, `N/A`, `Queens`, `Staten Island`, `Unknown`. - taxi_zone_lookup.[service_zone] contains service-zone labels, not borough labels. Stored values are `Airports`, `Boro Zone`, `EWR`, `N/A`, `Yellow Zone`. - taxi_zone_lookup.[LocationID] is the location key used by yellow_tripdata.[PULocationID] for pickup and [DOLocationID] for drop-off. taxi_zone_lookup.[Zone] holds the zone name; [Borough] and [service_zone] hold their respective grouping labels. Match location codes through the ID columns, not through label columns. - yellow_tripdata.[payment_type] = 1 selects card payments for the measures that require them. Airport Trips uses location codes 1, 132 and 138 in either endpoint column. - yellow_tripdata.[store_and_fwd_flag] stores `N` and `Y`. - Filter codes and labels only using stored values, preserving their spelling and case. If a label or code filter returns no rows, look up the target column's distinct values and retry once using the matching stored value before answering. Keep literal labels such as `N/A` and `Unknown` distinct from SQL NULL; do not replace NULL with either label. ## Ambiguity - Geographic filters and groupings default to pickup geography: join yellow_tripdata.[PULocationID] = taxi_zone_lookup.[LocationID]. This applies to [Borough], [Zone] and [service_zone]. For explicitly requested drop-off or destination geography, use yellow_tripdata.[DOLocationID] = taxi_zone_lookup.[LocationID] instead. Use separate lookup aliases when both endpoint roles are requested. - Airport involvement is an either-endpoint condition, but it does not change the geography join. A borough or service-zone filter still restricts pickup geography unless another role is explicitly selected. - The `Airports` service-zone label is a filter on [service_zone], not a synonym for Airport Trips. Ordinary trips filtered to that label still use Trips; Airport Trips additionally requires the endpoint-code condition. - Use [Borough] for borough requests and [service_zone] for service-zone requests. `EWR` defaults to [Borough] unless service-zone context explicitly selects [service_zone]. - For highest-share or highest-rate rankings, compute the defined percentage separately within each requested geographic group, then rank that percentage rather than its numerator or trip volume. Preserve groups tied for the highest value. | 17 question(s) were not right every time (YT1, YT10, YT11, YT13, YT14, YT16, YT17, YT18, YT19, YT2, YT20, YT3, YT4, YT5, YT6, YT7, YT9): 6 of 153 asks correct. |
approved |
Before and after
Before: 4 of 12 right every time (33.3%). Now: 12 of 12 (100%).
Questions now right every time (8)
- TQ1
- TQ10
- TQ2
- TQ3
- TQ4
- TQ5
- TQ6
- TQ7