1sf/bird-sql-train-with-schema huggingface dataset:
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: How many cylinders does the cheapest car have?
Evidence: the cheapest car refers to min(price)
SQL: SELECT T1.cylinders FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY price ASC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Which car in the database provides the best crash protection based on its weight? How much is it?
Evidence: the best crash protection refers to max(weight); cost refers to price
SQL: SELECT T1.ID, T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY T1.weight DESC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: State the origin country of the fastest car in the database.
Evidence: origin country refers to country; the fastest refers to max(horsepower)
SQL: SELECT T3.country FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country ORDER BY T1.horsepower DESC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: What is the percentage of Japanese cars in the database?
Evidence: Japanese car refers to country = 'Japan'; percentage = divide(count(ID where country = 'Japan'), count(ID)) * 100%
SQL: SELECT CAST(SUM(CASE WHEN T2.country = 'Japan' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Calculate the swept volume of the $34538.97449 car.
Evidence: sweep volume = divide(displacement, cylinders); the $34538.97449 car refers to price = 34538.97449
SQL: SELECT T1.displacement / T1.cylinders FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T2.price = 34538.97449
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: What is the name of the most expensive car?
Evidence: name of the car refers to car_name; the most expensive refers to max(price)
SQL: SELECT T1.car_name FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY T2.price DESC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: How many cars were released in the USA in 1981?
Evidence: in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981
SQL: SELECT COUNT(*) FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin WHERE T2.country = 'USA' AND T1.model_year = 1981
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: How much is the car with the highest sweep volume?
Evidence: cost refers to price; the highest sweep volume refers to max(divide(displacement, cylinders))
SQL: SELECT T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY T1.displacement / T1.cylinders DESC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: What is the fastest car made by Japan?
Evidence: the fastest refers to max(horsepower); made by Japan refers to country = 'Japan'; name of the car refers to car_name
SQL: SELECT T1.car_name FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T3.country = 'Japan' ORDER BY T1.horsepower DESC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: How many times was Ford Maverick introduced to the market?
Evidence: Ford Maverick refers to car_name = 'ford maverick';
SQL: SELECT COUNT(T2.model_year) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'ford maverick'
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Which country produced the most fuel-efficient car?
Evidence: the most fuel-efficient refers to max(mpg)
SQL: SELECT T3.country FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country ORDER BY T1.mpg DESC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Which Dodge car is the cheapest?
Evidence: Dodge car refers to car_name LIKE 'dodge%'; the cheapest refers to min(price); name of the car refers to car_name
SQL: SELECT T1.car_name FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.car_name LIKE 'dodge%' ORDER BY T2.price ASC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: What is the name of the most expensive car that was produced by the USA?
Evidence: name of the car refers to car_name; the most expensive refers to max(price); produced by the USA refers to country = 'USA'
SQL: SELECT T4.car_name FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T3.country = 'USA' ORDER BY T1.price DESC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Among the cars with an engine displacement of no less than 400 cubic millimeter, how many cars cost at least 30,000?
Evidence: engine displacement of no less than 400 cubic millimeter refers to displacement > 400; cost at least 30,000 refers to price > 30000
SQL: SELECT COUNT(*) FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.displacement > 400 AND T2.price > 30000
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Which year did Europe produce the most cars?
Evidence: year refers to model_year; Europe refers to country = 'Europe'; the most cars refers to max(model_year)
SQL: SELECT T1.model_year FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin WHERE T2.country = 'Europe' GROUP BY T1.model_year ORDER BY COUNT(T1.model_year) DESC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: How much is the Peugeot 505s Turbo Diesel?
Evidence: cost refers to price; Peugeot 505s Turbo Diesel refers to car_name = 'peugeot 505s turbo diesel'
SQL: SELECT T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'peugeot 505s turbo diesel'
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: What is the miles per square hour of the cheapest car produced by the USA?
Evidence: miles per square hour refers to acceleration; the cheapest refers to min(price); produced by the USA refers to country = 'USA'
SQL: SELECT T4.acceleration FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T3.country = 'USA' ORDER BY T1.price ASC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Which country produced the highest number of cars? Calculate the annual average number of cars that the said country produced from the very start to the present.
Evidence: the highest number of cars refers to max(country); annual average number = divide(count(ID), count(model_year))
SQL: SELECT T2.country, CAST(COUNT(T1.ID) AS REAL) / COUNT(DISTINCT T1.model_year) FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin GROUP BY T2.country ORDER BY COUNT(T2.country) DESC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: What is the percentage of cars that was produced by Japan among those that have a sweep volume of no less than 30?
Evidence: produced by Japan refers to country = 'Japan'; a sweep volume of no less than 30 refers to divide(displacement, cylinders) > 30; percentage = divide(count(ID where country = 'Japan'), count(ID)) * 100% where divide(displacement, cylinders) > 30
SQL: SELECT CAST(SUM(CASE WHEN T3.country = 'Japan' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T1.displacement / T1.cylinders > 30
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: List the name of the cars with model year 1975.
Evidence: name of the car refers to car_name; model year 1975 refers to model_year = 1975
SQL: SELECT T1.car_name FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T2.model_year = 1975
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Calculate the average price of cars from Europe.
Evidence: from Europe refers to country = 'Europe'; average price = avg(price) where country = 'Europe'
SQL: SELECT AVG(T1.price) FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T3.country = 'Europe'
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: What is the price of the car ID 15?
SQL: SELECT T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.ID = 15
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: How many of the cars from Japan weighed less than 3000?
Evidence: from Japan refers to country = 'Japan'; weighed less than 3000 refers to weight < 3000
SQL: SELECT COUNT(*) FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T3.country = 'Japan' AND T4.weight < 3000
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Among the cars produced in year 1973, how many of the cars have horsepower less than 100?
Evidence: produced in year 1973 refers to model_year = 1973; have horsepower less than 100 refers to horsepower < 100
SQL: SELECT COUNT(*) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T2.model_year = 1973 AND T1.horsepower < 100
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Provide the ID of cars from Japan worth greater than 35000 and have an acceleration of 14.
Evidence: from Japan refers to country = 'Japan'; worth greater than 35000 refers to price > 35000; have an acceleration of 14 refers to acceleration = 14
SQL: SELECT T4.ID FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T3.country = 'Japan' AND T1.price > 3500 AND T4.acceleration = 14
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Give the model year of the heaviest car.
Evidence: the heaviest refers to max(weight)
SQL: SELECT T2.model_year FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID ORDER BY T1.weight DESC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: What is the horsepower and model year of the car named Subaru Dl?
Evidence: the car named Subaru Dl refers to car_name = 'subaru dl'
SQL: SELECT T1.horsepower, T2.model_year FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'subaru dl'
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Among the cars originated from Japan, what is the name of the car with the highest price?
Evidence: from Japan refers to country = 'Japan'; name of the car refers to car_name; the highest price refers to max(price)
SQL: SELECT T4.car_name FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T3.country = 'Japan' ORDER BY T1.price DESC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: What are the names of the cars worth 20000?
Evidence: name of the car refers to car_name; worth 20000 refers to price = 20000
SQL: SELECT T1.car_name FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T2.price = 20000
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: How many cars worth greater than 40000 were from the USA?
Evidence: worth greater than 40000 refers to price > 40000; from the USA refers to country = 'USA'
SQL: SELECT COUNT(*) FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T3.country = 'USA' AND T1.price > 40000
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Provide the price and country origin of the car named Ford Maverick.
Evidence: country origin refers to country; Ford Maverick refers to car_name = 'ford maverick'
SQL: SELECT DISTINCT T1.price, T3.country FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T4.car_name = 'ford maverick'
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: List the car's name with a price worth greater than 85% of the average price of all cars.
Evidence: car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)
SQL: SELECT T1.car_name FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T2.price * 100 > ( SELECT AVG(price) * 85 FROM price )
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Calculate the difference between the number of cars that has a horsepower of 130 with the model year 1970 and model year 1976
Evidence: a horsepower of 130 refers to horsepower = 130; difference = subtract(count(ID where model_year = 1970), count(ID where model_year = 1976)) where horsepower = 130
SQL: SELECT SUM(CASE WHEN T2.model_year = 1970 THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.model_year = 1976 THEN 1 ELSE 0 END) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T1.horsepower = 130
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Among the cars from Asia, list the IDs of cars that were introduced in 1979.
Evidence: from Asia refers to country = 'Japan'; introduced in 1979 refers to model_year = 1979
SQL: SELECT T1.ID FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin WHERE T2.country = 'Japan' AND T1.model_year = 1979
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Which country produced the car with the lowest mileage per gallon?
Evidence: the lowest mileage per gallon refers to min(mpg)
SQL: SELECT T3.country FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country ORDER BY T1.mpg ASC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Provide the name, model, sweep volume, and introduced year of the car with the best crash protection.
Evidence: car's name refers to car_name; sweep volume = divide(displacement, cylinders); introduced year refers to model_year; the best crash protection refers to max(weight)
SQL: SELECT T1.car_name, T1.model, T1.displacement / T1.cylinders, T2.model_year FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID ORDER BY T1.weight DESC LIMIT 1
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Among the cars introduced in 1977, provide the names and the horse powers of cars from Europe.
Evidence: introduced in 1977 refers to model_year = 1977; car's name refers to car_name; from Europe refers to country = 'Europe'
SQL: SELECT T1.car_name, T1.horsepower FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T2.model_year = 1977 AND T3.country = 'Europe'
Database: cars
Tables: country, price, data, production
Columns (table index, column name): -1, *, 0, origin, 0, country, 1, ID, 1, price, 2, ID, 2, mpg, 2, cylinders, 2, displacement, 2, horsepower, 2, weight, 2, acceleration, 2, model, 2, car_name, 3, ID, 3, model_year, 3, country
Question: Provide the name and model of the car with the highest price.
Evidence: car's name refers to car_name; the highest price refers to max(price)
SQL: SELECT T1.car_name, T1.model FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY T2.price DESC LIMIT 1