you'll need to build a query string based on the input provided.
for the 3 inputs you want the query string to be
select * from car_inventory where make = 'ford' and model = 'focus' and year = 2002
for just fords
select * from car_inventory where make = 'ford'