def linear_interpolate(x, y, x0, y0, x1, y1):
    """Format a call to linear_interpolate for the given arguments and expected result.
    """
    
    fmt = """
select 
    linear_interpolate({x}, {x0}, {y0}, {x1}, {y1}),
     {y} as answer,
     {y} = linear_interpolate({x}, {x0}, {y0}, {x1}, {y1}) as match ;"""
    
    return fmt.format(x=x, y=y, x0=x0, y0=y0, x1=x1, y1=y1)