index
int32 0
1.03k
| db_id
stringclasses 20
values | question
stringlengths 18
174
| db_info
stringlengths 1
1.79k
| ground_truth
stringlengths 20
474
|
---|---|---|---|---|
100 |
car_1
|
What is the name of the different car makers who produced a car in 1970?
|
| car_makers: maker, id, country | model_list: maker, modelid | car_names: model, makeid | cars_data: id, year | countries: countryid, continent | continents: contid, continent | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | countries.continent = continents.contid |
|
select distinct car_makers.maker from car_makers join model_list on car_makers.id = model_list.maker join car_names on model_list.model = car_names.model join cars_data on car_names.makeid = cars_data.id where cars_data.year = '1970'
|
101 |
car_1
|
Find the make and production time of the cars that were produced in the earliest year?
|
| `car_makers`: `id`, `maker`, `fullname`, `country` | `model_list`: `modelid`, `maker`, `model` | `car_names`: `makeid`, `model`, `make` | `cars_data`: `id`, `mpg`, `cylinders`, `edispl`, `horsepower`, `weight`, `accelerate`, `year` | `continents`: `contid`, `continent` | `countries`: `countryid`, `countryname`, `continent` | `countries.continent` = `continents.contid` | `car_makers.country` = `countries.countryid` | `model_list.maker` = `car_makers.id` | `car_names.model` = `model_list.model` | `cars_data.id` = `car_names.makeid` |
|
select car_names.make , cars_data.year from cars_data join car_names on cars_data.id = car_names.makeid where cars_data.year = ( select min ( year ) from cars_data )
|
102 |
car_1
|
What is the maker of the carr produced in the earliest year and what year was it?
|
| `car_makers`: `id`, `maker`, `fullname`, `country` | `cars_data`: `id`, `mpg`, `cylinders`, `edispl`, `horsepower`, `weight`, `accelerate`, `year` | `model_list`: `modelid`, `maker`, `model` | `car_names`: `makeid`, `model`, `make` | `countries`: `countryid`, `countryname`, `continent` | `continents`: `contid`, `continent` | `car_makers.country = countries.countryid` | `model_list.maker = car_makers.id` | `car_names.model = model_list.model` | `cars_data.id = car_names.makeid` |
|
select car_names.make , cars_data.year from cars_data join car_names on cars_data.id = car_names.makeid where cars_data.year = ( select min ( year ) from cars_data )
|
103 |
car_1
|
Which distinct car models are the produced after 1980?
|
| model_list: model, maker | cars_data: year, id | car_names: model, makeid | car_makers: id | countries: countryid, countryname, continent | continents: contid, continent | model_list.maker = car_makers.id | cars_data.id = car_names.makeid | countries.continent = continents.contid | car_makers.country = countries.countryid |
|
select distinct model_list.model from model_list join car_names on model_list.model = car_names.model join cars_data on car_names.makeid = cars_data.id where cars_data.year > 1980
|
104 |
car_1
|
What are the different models for the cards produced after 1980?
|
| continents: continent, contid | countries: continent, countryname, countryid | car_makers: id, maker, fullname, country | model_list: model, maker, modelid | car_names: model, makeid, make | cars_data: year, id, mpg, edispl, horsepower, weight, accelerate | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select distinct model_list.model from model_list join car_names on model_list.model = car_names.model join cars_data on car_names.makeid = cars_data.id where cars_data.year > 1980
|
105 |
car_1
|
How many car makers are there in each continents? List the continent name and the count.
|
| continents: continent, contid | countries: continent, countryid | car_makers: country, id | model_list: modelid, maker, model | car_names: makeid, model, make | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select continents.continent , count ( * ) from continents join countries on continents.contid = countries.continent join car_makers on countries.countryid = car_makers.country group by continents.continent
|
106 |
car_1
|
What is the name of each continent and how many car makers are there in each one?
|
| continents: contid, continent | countries: countryid, countryname, continent | car_makers: maker, country, id, fullname | model_list: modelid, maker, model | car_names: makeid, model, make | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select continents.continent , count ( * ) from continents join countries on continents.contid = countries.continent join car_makers on countries.countryid = car_makers.country group by continents.continent
|
107 |
car_1
|
Which of the countries has the most car makers? List the country name.
|
| countries: countryname, countryid, continent | car_makers: maker, country, id, fullname | continents: contid, continent | model_list: maker, modelid, model | car_names: makeid, model, make | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select countries.countryname from car_makers join countries on car_makers.country = countries.countryid group by car_makers.country order by count ( * ) desc limit 1
|
108 |
car_1
|
What is the name of the country with the most car makers?
|
| car_makers: maker, country | countries: countryid, countryname | continents: contid | model_list: maker | car_names: model | cars_data: id | car_makers.country = countries.countryid | countries.continent = continents.contid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select countries.countryname from car_makers join countries on car_makers.country = countries.countryid group by car_makers.country order by count ( * ) desc limit 1
|
109 |
car_1
|
How many car models are produced by each maker ? Only list the count and the maker full name .
|
| car_makers: maker, fullname, id, country | model_list: maker, modelid, model | countries: countryid | continents: contid | car_names: makeid | cars_data: id |
|
select count ( * ) , car_makers.fullname from model_list join car_makers on model_list.maker = car_makers.id group by car_makers.id
|
110 |
car_1
|
What is the number of car models that are produced by each maker and what is the id and full name of each maker?
|
| car_makers: maker, id, fullname, country | model_list: maker, model | car_names: model, makeid, make | countries: countryid, countryname, continent | continents: contid, continent | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select count ( * ) , car_makers.fullname , car_makers.id from model_list join car_makers on model_list.maker = car_makers.id group by car_makers.id
|
111 |
car_1
|
What is the accelerate of the car make amc hornet sportabout (sw)?
|
| car_names: make, makeid, model | cars_data: id, accelerate, mpg, cylinders, edispl, horsepower, weight, year | model_list: model, maker, modelid | car_makers: id, maker, fullname, country | countries: countryid, countryname, continent | continents: contid, continent | car_names.makeid = cars_data.id | car_makers.id = model_list.maker | model_list.model = car_names.model | car_makers.country = countries.countryid | countries.continent = continents.contid |
|
select cars_data.accelerate from cars_data join car_names on cars_data.id = car_names.makeid where car_names.make = 'amc hornet sportabout (sw)'
|
112 |
car_1
|
How much does the car accelerate that makes amc hornet sportabout (sw)?
|
| car_names: make, makeid | cars_data: accelerate, id | model_list: model, modelid, maker | car_makers: id, maker | countries: countryid | continents: contid, continent |
|
select cars_data.accelerate from cars_data join car_names on cars_data.id = car_names.makeid where car_names.make = 'amc hornet sportabout (sw)'
|
113 |
car_1
|
How many car makers are there in france?
|
| car_makers: country, maker, id, fullname | countries: countryname, countryid | continents: contid, continent | model_list: maker, modelid, model | car_names: model, makeid | cars_data: id | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select count ( * ) from car_makers join countries on car_makers.country = countries.countryid where countries.countryname = 'france'
|
114 |
car_1
|
What is the number of makers of care in France?
|
| car_makers: maker, country, id | countries: countryname, countryid | model_list: maker, modelid | continents: contid, continent | car_names: makeid, model, make | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select count ( * ) from car_makers join countries on car_makers.country = countries.countryid where countries.countryname = 'france'
|
115 |
car_1
|
How many car models are produced in the usa?
|
| countries: countryname, countryid | car_makers: maker, country, id | model_list: model, maker | car_names: model, makeid, make | continents: contid, continent | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select count ( * ) from model_list join car_makers on model_list.maker = car_makers.id join countries on car_makers.country = countries.countryid where countries.countryname = 'usa'
|
116 |
car_1
|
What is the count of the car models produced in the United States?
|
| countries: countryname, countryid | model_list: maker, modelid |
|
select count ( * ) from model_list join car_makers on model_list.maker = car_makers.id join countries on car_makers.country = countries.countryid where countries.countryname = 'usa'
|
117 |
car_1
|
What is the average miles per gallon(mpg) of the cars with 4 cylinders?
|
| cars_data: mpg, cylinders, id | car_names: makeid, model, make | model_list: modelid, maker, model | car_makers: id, maker, fullname, country | countries: countryid, countryname, continent | continents: contid, continent | cars_data.id=car_names.makeid | model_list.maker=car_makers.id | car_makers.country=countries.countryid | countries.continent=continents.contid |
|
select avg ( mpg ) from cars_data where cylinders = 4
|
118 |
car_1
|
What is the average miles per gallon of all the cards with 4 cylinders?
|
| cars_data: mpg, cylinders, id | car_names: makeid, model | model_list: maker, model | car_makers: id | continents: contid | countries: countryid, continent | car_makers: maker, fullname, country | cars_data: edispl, horsepower, weight, accelerate, year | countries.country = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select avg ( mpg ) from cars_data where cylinders = 4
|
119 |
car_1
|
What is the smallest weight of the car produced with 8 cylinders on 1974 ?
|
| cars_data: cylinders, weight, year, id, mpg, edispl, horsepower, accelerate | car_names: make, makeid, model | model_list: maker, modelid | car_makers: id, maker, fullname, country | countries: countryid, countryname, continent | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select min ( weight ) from cars_data where cylinders = 8 and year = 1974
|
120 |
car_1
|
What is the minimum weight of the car with 8 cylinders produced in 1974 ?
|
| cars_data: cylinders, year, weight, id, mpg, edispl, horsepower, accelerate | - | car_names: makeid, model, make | - | model_list: modelid, maker | - | car_makers: id, country, maker, fullname | - | countries: countryid, continent, countryname | - | continents: contid, continent | - And all keys: countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select min ( weight ) from cars_data where cylinders = 8 and year = 1974
|
121 |
car_1
|
What are all the makers and models?
|
| car_makers: maker, id, country, fullname | model_list: model, maker | car_names: makeid, model, make | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | continents: contid, continent | countries: countryid, countryname, continent | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | countries.continent = continents.contid |
|
select maker , model from model_list
|
122 |
car_1
|
What are the makers and models?
|
| car_makers: maker, id, fullname, country | model_list: model, maker, modelid | car_names: model, make, makeid | countries: countryid, countryname, continent | continents: contid, continent | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select maker , model from model_list
|
123 |
car_1
|
What are the countries having at least one car maker? List name and id.
|
| `car_makers`: `country`, `id`, `maker`, `fullname` | `countries`: `countryid`, `countryname` | `continents`: `continent` | `model_list`: `maker` | `car_names`: `model` | `cars_data`: `id` | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select countries.countryname , countries.countryid from countries join car_makers on countries.countryid = car_makers.country group by countries.countryid having count ( * ) >= 1
|
124 |
car_1
|
What are the names and ids of all countries with at least one car maker?
|
| car_makers: id, country | countries: countryid, countryname | continents: contid | model_list: maker | car_names: makeid, model | cars_data: id | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select countries.countryname , countries.countryid from countries join car_makers on countries.countryid = car_makers.country group by countries.countryid having count ( * ) >= 1
|
125 |
car_1
|
What is the number of the cars with horsepower more than 150?
|
| cars_data: horsepower, id, mpg, cylinders, edispl, weight, accelerate, year | car_names: makeid, model, make | model_list: model, modelid, maker | car_makers: id, maker, fullname, country | countries: countryid, countryname, continent | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select count ( * ) from cars_data where horsepower > 150
|
126 |
car_1
|
What is the number of cars with a horsepower greater than 150?
|
| cars_data: horsepower, id | car_names: makeid | model_list: model, maker | car_makers: id | countries: countryid | continents: contid | car_makers: maker, fullname, country | model_list: modelid | car_names: model, make | cars_data: mpg, cylinders, edispl, weight, accelerate, year | countries: countryname, continent | continents: continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select count ( * ) from cars_data where horsepower > 150
|
127 |
car_1
|
What is the average weight of cars each year?
|
| cars_data: year, weight, id, mpg, cylinders, edispl, horsepower, accelerate | car_names: makeid, model, make | car_makers: id, maker, fullname, country | countries: countryid, countryname, continent | continents: contid, continent | model_list: modelid, maker, model | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select avg ( weight ) , year from cars_data group by year
|
128 |
car_1
|
What is the average weight and year for each year?
|
| cars_data: year, weight, id | car_names: makeid | model_list: model, maker | car_makers: id, country | countries: countryid, continent | continents: contid |
|
select avg ( weight ) , year from cars_data group by year
|
129 |
car_1
|
Which countries in europe have at least 3 car manufacturers?
|
| countries: continent, countryname, countryid | continents: continent, contid | car_makers: country, maker, id, fullname | model_list: maker, modelid, model | car_names: makeid, model, make | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select countries.countryname from countries join continents on countries.continent = continents.contid join car_makers on countries.countryid = car_makers.country where continents.continent = 'europe' group by countries.countryname having count ( * ) >= 3
|
130 |
car_1
|
What are the names of all European countries with at least 3 manufacturers?
|
| continents: contid, continent | countries: countryname, continent | car_makers: country, id | model_list: modelid, maker | car_names: makeid, model, make | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select countries.countryname from countries join continents on countries.continent = continents.contid join car_makers on countries.countryid = car_makers.country where continents.continent = 'europe' group by countries.countryname having count ( * ) >= 3
|
131 |
car_1
|
What is the maximum horsepower and the make of the car models with 3 cylinders?
|
| cars_data: cylinders, horsepower, id, mpg, edispl, weight, accelerate, year | car_names: make, model, makeid | model_list: model, maker, modelid | car_makers: maker, id, fullname, country | countries: countryid, countryname, continent | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select cars_data.horsepower , car_names.make from car_names join cars_data on car_names.makeid = cars_data.id where cars_data.cylinders = 3 order by cars_data.horsepower desc limit 1
|
132 |
car_1
|
What is the largest amount of horsepower for the models with 3 cylinders and what make is it?
|
| model_list: model, maker | cars_data: cylinders, horsepower, id | car_names: make, model, makeid | car_makers: id | continents: contid | countries: countryid, continent | car_makers: maker, fullname, country |
|
select cars_data.horsepower , car_names.make from car_names join cars_data on car_names.makeid = cars_data.id where cars_data.cylinders = 3 order by cars_data.horsepower desc limit 1
|
133 |
car_1
|
Which model saves the most gasoline? That is to say, have the maximum miles per gallon.
|
| cars_data: mpg, id | car_names: model, makeid | model_list: model, maker | car_makers: id | continents: contid | countries: countryid | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select car_names.model from car_names join cars_data on car_names.makeid = cars_data.id order by cars_data.mpg desc limit 1
|
134 |
car_1
|
What is the car model with the highest mpg ?
|
| cars_data: mpg, id, cylinders, edispl, horsepower, weight, accelerate, year | car_names: model, makeid | model_list: model, modelid, maker | car_makers: id, maker, fullname, country | countries: countryid, countryname, continent | continents: contid, continent | cars_data.id = car_names.makeid | car_names.model = model_list.model | model_list.maker = car_makers.id | car_makers.country = countries.countryid | countries.continent = continents.contid |
|
select car_names.model from car_names join cars_data on car_names.makeid = cars_data.id order by cars_data.mpg desc limit 1
|
135 |
car_1
|
What is the average horsepower of the cars before 1980?
|
| cars_data: year, horsepower, id | car_names: makeid, model | model_list: modelid, maker | car_makers: id | countries: countryid | continents: contid | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select avg ( horsepower ) from cars_data where year < 1980
|
136 |
car_1
|
What is the average horsepower for all cars produced before 1980 ?
|
| cars_data: id, year, horsepower | car_names: makeid | model_list: model, maker | car_makers: id | countries: | continents: | cars_data.id = car_names.makeid | car_names.model = model_list.model | model_list.maker = car_makers.id | car_makers.country = countries.countryid | countries.continent = continents.contid |
|
select avg ( horsepower ) from cars_data where year < 1980
|
137 |
car_1
|
What is the average edispl of the cars of model volvo?
|
| model_list: model, maker, modelid | cars_data: edispl, id | car_names: model, makeid | car_makers: id | continents: contid, continent | countries: countryid, countryname, continent | car_makers: maker, fullname, country | car_names: make | cars_data: mpg, cylinders, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select avg ( cars_data.edispl ) from car_names join cars_data on car_names.makeid = cars_data.id where car_names.model = 'volvo'
|
138 |
car_1
|
What is the average edispl for all volvos?
|
| car_makers: maker, id | model_list: maker, model | car_names: model, makeid | cars_data: edispl, id | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select avg ( cars_data.edispl ) from car_names join cars_data on car_names.makeid = cars_data.id where car_names.model = 'volvo'
|
139 |
car_1
|
What is the maximum accelerate for different number of cylinders?
|
| cars_data: accelerate, cylinders, id, mpg, edispl, horsepower, weight, year | car_names: makeid, model, make | model_list: model, maker, modelid | car_makers: id, maker, fullname, country | countries: countryid, countryname, continent | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select max ( accelerate ) , cylinders from cars_data group by cylinders
|
140 |
car_1
|
What is the maximum accelerate for all the different cylinders?
|
| cars_data: cylinders, accelerate, id, mpg, edispl, horsepower, weight, year | car_names: makeid, model, make | car_makers: id, maker, fullname, country | model_list: modelid, maker, model | countries: countryid, countryname, continent | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select max ( accelerate ) , cylinders from cars_data group by cylinders
|
141 |
car_1
|
Which model has the most version(make) of cars?
|
| model_list: modelid, maker, model | car_names: makeid, model, make | car_makers: id, maker, fullname, country | countries: countryid, countryname, continent | continents: contid, continent | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select model from car_names group by model order by count ( * ) desc limit 1
|
142 |
car_1
|
What model has the most different versions?
|
| model_list: model, maker | car_names: model, makeid | car_makers: id, maker, country | countries: countryid, countryname, continent | continents: contid, continent | cars_data: id, year, mpg, cylinders, edispl, horsepower, weight, accelerate | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select model from car_names group by model order by count ( * ) desc limit 1
|
143 |
car_1
|
How many cars have more than 4 cylinders?
|
| cars_data: cylinders, id | car_names: makeid, model | model_list: modelid, maker | car_makers: id | countries: countryid, continent | continents: contid | cars_data.id = car_names.makeid | car_names.model = model_list.model | model_list.maker = car_makers.id | car_makers.country = countries.countryid | countries.continent = continents.contid |
|
select count ( * ) from cars_data where cylinders > 4
|
144 |
car_1
|
What is the number of cars with more than 4 cylinders?
|
| cars_data: cylinders, id | car_names: make, makeid, model | model_list: model, modelid, maker | car_makers: id, country | countries: countryid, countryname, continent | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select count ( * ) from cars_data where cylinders > 4
|
145 |
car_1
|
how many cars were produced in 1980?
|
| cars_data: year, id, mpg, cylinders, edispl, horsepower, weight, accelerate | car_names: makeid, model, make | model_list: maker, modelid, model | car_makers: id, maker, fullname, country | countries: countryid, countryname, continent | continents: contid, continent | cars_data.id = car_names.makeid | car_names.model = model_list.model | model_list.maker = car_makers.id | car_makers.country = countries.countryid | countries.continent = continents.contid |
|
select count ( * ) from cars_data where year = 1980
|
146 |
car_1
|
In 1980, how many cars were made?
|
| cars_data: year, id | car_names: makeid, model | model_list: maker, modelid | car_makers: id | countries: countryid | continents: contid | cars_data.id = car_names.makeid | car_names.model = model_list.model | model_list.maker = car_makers.id | car_makers.country = countries.countryid | countries.continent = continents.contid |
|
select count ( * ) from cars_data where year = 1980
|
147 |
car_1
|
How many car models were produced by the maker with full name American Motor Company?
|
| car_makers: fullname, id | model_list: maker, model | countries: countryid | continents: contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id |
|
select count ( * ) from car_makers join model_list on car_makers.id = model_list.maker where car_makers.fullname = 'American Motor Company'
|
148 |
car_1
|
What is the number of car models created by the car maker American Motor Company?
|
| car_makers: maker, id, fullname, country | model_list: maker, model, modelid | continents: contid, continent | countries: countryid, countryname, continent | car_names: makeid, model, make | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select count ( * ) from car_makers join model_list on car_makers.id = model_list.maker where car_makers.fullname = 'American Motor Company'
|
149 |
car_1
|
Which makers designed more than 3 car models? List full name and the id.
|
| car_makers: id, fullname, maker, country | model_list: maker, modelid, model |
|
select car_makers.fullname , car_makers.id from car_makers join model_list on car_makers.id = model_list.maker group by car_makers.id having count ( * ) > 3
|
150 |
car_1
|
What are the names and ids of all makers with more than 3 models?
|
| car_makers: id, maker | model_list: maker, model | car_names: model | continents: contid, continent | countries: countryid, countryname, continent | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select car_makers.fullname , car_makers.id from car_makers join model_list on car_makers.id = model_list.maker group by car_makers.id having count ( * ) > 3
|
151 |
car_1
|
Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?
|
| car_makers: fullname, maker, id, country | model_list: model, maker | cars_data: weight, id | car_names: model, makeid | countries: countryid, countryname, continent | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select distinct model_list.model from car_names join model_list on car_names.model = model_list.model join car_makers on model_list.maker = car_makers.id join cars_data on car_names.makeid = cars_data.id where car_makers.fullname = 'General Motors' or cars_data.weight > 3500
|
152 |
car_1
|
What are the different models created by either the car maker General Motors or weighed more than 3500?
|
| car_makers: maker, id, fullname, country | model_list: model, maker | car_names: model, make, makeid | cars_data: weight, id, mpg, cylinders, edispl, horsepower, accelerate, year | continents: contid, continent | countries: countryid, countryname, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select distinct model_list.model from car_names join model_list on car_names.model = model_list.model join car_makers on model_list.maker = car_makers.id join cars_data on car_names.makeid = cars_data.id where car_makers.fullname = 'General Motors' or cars_data.weight > 3500
|
153 |
car_1
|
In which years cars were produced weighing no less than 3000 and no more than 4000 ?
|
| cars_data: weight, year, id, mpg, cylinders, edispl, horsepower, accelerate | car_names: makeid, model, make | model_list: maker, modelid, model | car_makers: id, maker, fullname, country | countries: countryid, continent, countryname | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select distinct year from cars_data where weight between 3000 and 4000
|
154 |
car_1
|
What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?
|
| cars_data: weight, year, id, mpg, cylinders, edispl, horsepower, accelerate | car_names: makeid, model, make | model_list: modelid, maker, model | car_makers: id, maker, fullname, country | countries: countryid, countryname, continent | continents: contid, continent | cars_data.id = car_names.makeid | car_names.model = model_list.model | model_list.maker = car_makers.id | car_makers.country = countries.countryid | countries.continent = continents.contid |
|
select distinct year from cars_data where weight between 3000 and 4000
|
155 |
car_1
|
What is the horsepower of the car with the largest accelerate?
|
| cars_data: accelerate, horsepower, id, mpg, cylinders, edispl, weight, year | car_names: makeid, model, make | model_list: modelid, maker, model | car_makers: id, maker, fullname, country | countries: continent, countryid, countryname | continents: contid, continent | cars_data.id = car_names.makeid | car_names.model = model_list.model | model_list.maker = car_makers.id | car_makers.country = countries.countryid | countries.continent = continents.contid |
|
select cars_data.horsepower from cars_data order by cars_data.accelerate desc limit 1
|
156 |
car_1
|
What is the horsepower of the car with the greatest accelerate?
|
| cars_data: horsepower, accelerate, id | car_names: model, makeid | model_list: maker, modelid | car_makers: id, country | countries: countryid | continents: contid | countries.continent = continents.contid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | car_makers.country = countries.countryid |
|
select cars_data.horsepower from cars_data order by cars_data.accelerate desc limit 1
|
157 |
car_1
|
For model volvo, how many cylinders does the car with the least accelerate have?
|
| model_list: model, maker | cars_data: cylinders, accelerate, id | car_names: makeid, model | car_makers: id, maker | countries: countryid | continents: contid | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select cars_data.cylinders from cars_data join car_names on cars_data.id = car_names.makeid where car_names.model = 'volvo' order by cars_data.accelerate asc limit 1
|
158 |
car_1
|
For a volvo model, how many cylinders does the version with least accelerate have?
|
| car_makers: maker, id, fullname, country | model_list: model, maker, modelid | car_names: model, makeid, make | cars_data: cylinders, accelerate, id, mpg, edispl, horsepower, weight, year | countries: countryname, countryid, continent | continents: continent, contid | countries.continent=continents.contid | car_makers.country=countries.countryid | model_list.maker=car_makers.id | car_names.model=model_list.model | cars_data.id=car_names.makeid |
|
select cars_data.cylinders from cars_data join car_names on cars_data.id = car_names.makeid where car_names.model = 'volvo' order by cars_data.accelerate asc limit 1
|
159 |
car_1
|
How many cars have a larger accelerate than the car with the largest horsepower?
|
| cars_data: accelerate, horsepower, id | car_names: makeid, model, make | model_list: model, modelid, maker | car_makers: id, maker, fullname, country | countries: countryid, countryname, continent | continents: contid, continent |
|
select count ( * ) from cars_data where accelerate > ( select accelerate from cars_data order by horsepower desc limit 1 )
|
160 |
car_1
|
What is the number of cars with a greater accelerate than the one with the most horsepower?
|
| cars_data: accelerate, horsepower, id | car_names: makeid, model | model_list: model, modelid, maker | car_makers: id, maker, fullname, country | countries: countryid, countryname, continent | continents: contid, continent | cars_data.id = car_names.makeid | car_names.model = model_list.model | model_list.maker = car_makers.id | car_makers.country = countries.countryid | countries.continent = continents.contid |
|
select count ( * ) from cars_data where accelerate > ( select accelerate from cars_data order by horsepower desc limit 1 )
|
161 |
car_1
|
How many countries has more than 2 car makers ?
|
| car_makers: country, id, maker, fullname | countries: countryid, countryname, continent | model_list: modelid, maker, model | car_names: makeid, model, make | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select count ( * ) from countries join car_makers on countries.countryid = car_makers.country group by countries.countryid having count ( * ) > 2
|
162 |
car_1
|
What is the number of countries with more than 2 car makers ?
|
| countries: countryid, countryname | car_makers: country, id | continents: contid, continent | model_list: maker, modelid | car_names: makeid, model, make | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select count ( * ) from countries join car_makers on countries.countryid = car_makers.country group by countries.countryid having count ( * ) > 2
|
163 |
car_1
|
How many cars has over 6 cylinders?
|
| cars_data: cylinders, id | car_names: makeid, model | model_list: model, modelid, maker | car_makers: id, maker, fullname, country | countries: countryid, countryname, continent | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select count ( * ) from cars_data where cylinders > 6
|
164 |
car_1
|
What is the number of carsw ith over 6 cylinders?
|
| cars_data: cylinders, id | car_names: makeid | model_list: modelid, maker, model | car_makers: id, maker, fullname, country | countries: countryid, countryname, continent | continents: contid, continent | cars_data.id = car_names.makeid | model_list.maker = car_makers.id | car_makers.country = countries.countryid |
|
select count ( * ) from cars_data where cylinders > 6
|
165 |
car_1
|
For the cars with 4 cylinders, which model has the largest horsepower?
|
| cars_data: cylinders, horsepower, id | car_names: model, makeid | model_list: model | car_makers: id, maker, fullname, country | countries: countryid, countryname, continent | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select car_names.model from car_names join cars_data on car_names.makeid = cars_data.id where cars_data.cylinders = 4 order by cars_data.horsepower desc limit 1
|
166 |
car_1
|
For all of the 4 cylinder cars, which model has the most horsepower?
|
| cars_data: horsepower, cylinders, id | car_names: model, makeid | model_list: model, maker | car_makers: id | countries: | continents: | cars_data.id = car_names.makeid | car_names.model = model_list.model | model_list.maker = car_makers.id |
|
select car_names.model from car_names join cars_data on car_names.makeid = cars_data.id where cars_data.cylinders = 4 order by cars_data.horsepower desc limit 1
|
167 |
car_1
|
Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.
|
| cars_data: horsepower, cylinders | car_names: makeid, model | model_list: modelid, maker | car_makers: id, fullname |
|
select car_names.makeid , car_names.make from cars_data join car_names on cars_data.id = car_names.makeid where cars_data.horsepower > ( select min ( horsepower ) from cars_data ) and cars_data.cylinders <= 3
|
168 |
car_1
|
Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?
|
| car_makers: id, maker, fullname, country | cars_data: cylinders, horsepower, id, mpg, edispl, weight, accelerate, year | model_list: maker, modelid, model | car_names: makeid, model, make | countries: countryid, countryname, continent | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select car_names.makeid , car_names.make from cars_data join car_names on cars_data.id = car_names.makeid where cars_data.horsepower > ( select min ( horsepower ) from cars_data ) and cars_data.cylinders < 4
|
169 |
car_1
|
What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?
|
| cars_data: mpg, cylinders, year, id, edispl, horsepower, weight, accelerate | car_names: makeid, model | model_list: model, maker | car_makers: id | countries: countryid | continents: contid | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select max ( mpg ) from cars_data where cylinders = 8 or year < 1980
|
170 |
car_1
|
What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?
|
| cars_data: mpg, cylinders, year, id | car_names: makeid, model | model_list: model, maker | car_makers: id, country | countries: countryid, continent | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select max ( mpg ) from cars_data where cylinders = 8 or year < 1980
|
171 |
car_1
|
Which models are lighter than 3500 but not built by the 'Ford Motor Company'?
|
| cars_data: weight, id | car_names: makeid, model, make | model_list: maker, model, modelid | car_makers: id, maker | countries: countryid | continents: contid |
|
select distinct model_list.model from model_list join car_names on model_list.model = car_names.model join cars_data on car_names.makeid = cars_data.id join car_makers on model_list.maker = car_makers.id where cars_data.weight < 3500 and car_makers.fullname != 'Ford Motor Company'
|
172 |
car_1
|
What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?
|
| model_list: model, maker, modelid | car_makers: id, maker, fullname, country | cars_data: weight, id, mpg, cylinders, edispl, horsepower, accelerate, year | car_names: makeid, model, make | countries: countryid, countryname, continent | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select distinct model_list.model from model_list join car_names on model_list.model = car_names.model join cars_data on car_names.makeid = cars_data.id join car_makers on model_list.maker = car_makers.id where cars_data.weight < 3500 and car_makers.fullname != 'Ford Motor Company'
|
173 |
car_1
|
What are the name of the countries where there is not a single car maker?
|
| countries: countryname, countryid, continent | car_makers: country, id, maker, fullname | continents: contid, continent | model_list: modelid, maker, model | car_names: makeid, model, make | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select countryname from countries except select countries.countryname from countries join car_makers on countries.countryid = car_makers.country
|
174 |
car_1
|
What are the names of the countries with no car makers?
|
| car_makers: country, id, maker, fullname | countries: countryid, countryname, continent | continents: contid, continent | model_list: maker, modelid, model | car_names: makeid, model, make | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select countryname from countries except select countries.countryname from countries join car_makers on countries.countryid = car_makers.country
|
175 |
car_1
|
Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .
|
| car_makers: maker, id, fullname, country | model_list: modelid, maker, model | countries: countryid, countryname, continent | continents: contid, continent | car_names: makeid, model, make | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year |
|
select car_makers.id , car_makers.maker from car_makers join model_list on car_makers.id = model_list.maker group by car_makers.id having count ( * ) >= 2 intersect select car_makers.id , car_makers.maker from car_makers join model_list on car_makers.id = model_list.maker join car_names on model_list.model = car_names.model group by car_makers.id having count ( * ) > 3
|
176 |
car_1
|
What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?
|
| car_makers: id, maker, fullname, country | model_list: maker, modelid | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | car_names: makeid, model, make | countries: countryid, countryname, continent | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select car_makers.id , car_makers.maker from car_makers join model_list on car_makers.id = model_list.maker group by car_makers.id having count ( * ) >= 2 intersect select car_makers.id , car_makers.maker from car_makers join model_list on car_makers.id = model_list.maker join car_names on model_list.model = car_names.model group by car_makers.id having count ( * ) > 3
|
177 |
car_1
|
What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?
|
| countries: countryid, countryname, continent | car_makers: maker, fullname, id, country | model_list: maker, model | car_names: model, makeid | cars_data: id | continents: contid, continent | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select countries.countryid , countries.countryname from countries join car_makers on countries.countryid = car_makers.country group by countries.countryid having count ( * ) > 3 union select countries.countryid , countries.countryname from countries join car_makers on countries.countryid = car_makers.country join model_list on car_makers.id = model_list.maker where model_list.model = 'fiat'
|
178 |
car_1
|
What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?
|
| countries: countryid, countryname, continent | car_makers: id, maker, fullname, country | model_list: maker, model | car_names: model, makeid | continents: continent, contid | cars_data: id, mpg, cylinders, edispl, horsepower, weight, accelerate, year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid |
|
select countries.countryid , countries.countryname from countries join car_makers on countries.countryid = car_makers.country group by countries.countryid having count ( * ) > 3 union select countries.countryid , countries.countryname from countries join car_makers on countries.countryid = car_makers.country join model_list on car_makers.id = model_list.maker where model_list.model = 'fiat'
|
179 |
flight_2
|
Which country does Airline "JetBlue Airways" belong to?
|
| airlines: airline, country, uid, abbreviation | airports: country, city, airportcode, airportname, countryabbrev | flights: airline, flightno, sourceairport, destairport |
|
select country from airlines where airline = 'JetBlue Airways'
|
180 |
flight_2
|
What country is Jetblue Airways affiliated with?
|
| airlines: airline, country, uid, abbreviation | flights: airline, flightno, sourceairport, destairport |
|
select country from airlines where airline = 'JetBlue Airways'
|
181 |
flight_2
|
What is the abbreviation of Airline "JetBlue Airways"?
|
| airlines: airline, abbreviation, uid, country | flights: airline, flightno, sourceairport, destairport | airports: airportcode, airportname, city, country, countryabbrev |
|
select abbreviation from airlines where airline = 'JetBlue Airways'
|
182 |
flight_2
|
Which abbreviation corresponds to Jetblue Airways?
|
| airlines: abbreviation, airline, uid, country | airports: city, airportcode, airportname, country, countryabbrev | flights: airline, flightno, sourceairport, destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode |
|
select abbreviation from airlines where airline = 'JetBlue Airways'
|
183 |
flight_2
|
List all airline names and their abbreviations in "USA".
|
| airlines: country, airline, abbreviation, uid | airports: city, airportcode, airportname, country, countryabbrev | flights: airline, flightno, sourceairport, destairport |
|
select airline , abbreviation from airlines where country = 'USA'
|
184 |
flight_2
|
What are the airline names and abbreviations for airlines in the USA?
|
| airlines: country, airline, abbreviation, uid | airports: city, airportcode, airportname, country, countryabbrev | flights: airline, flightno, sourceairport, destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode |
|
select airline , abbreviation from airlines where country = 'USA'
|
185 |
flight_2
|
List the airport code and name in the city of Anthony.
|
| airports: city, airportcode, airportname, country, countryabbrev | airlines: uid, airline, abbreviation, country | flights: airline, flightno, sourceairport, destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode |
|
select airportcode , airportname from airports where city = 'Anthony'
|
186 |
flight_2
|
Give the airport code and airport name corresonding to the city Anthony.
|
| airports: city, airportcode, airportname, country, countryabbrev | airlines: uid, airline, abbreviation, country | flights: airline, flightno, sourceairport, destairport |
|
select airportcode , airportname from airports where city = 'Anthony'
|
187 |
flight_2
|
How many airlines do we have?
|
| airlines: airline, uid, abbreviation, country | airports: city, airportcode, airportname, country, countryabbrev | flights: airline, flightno, sourceairport, destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode |
|
select count ( * ) from airlines
|
188 |
flight_2
|
What is the total number of airlines?
|
| airlines: uid, airline, abbreviation, country | airports: city, airportcode, airportname, country, countryabbrev | flights: airline, flightno, sourceairport, destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode |
|
select count ( * ) from airlines
|
189 |
flight_2
|
How many airports do we have?
|
| airports: airportcode | flights: destairport, sourceairport | airlines: uid, airline, abbreviation, country | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode |
|
select count ( * ) from airports
|
190 |
flight_2
|
Return the number of airports.
|
| airports: airportcode, city, airportname, country, countryabbrev | airlines: uid, airline, abbreviation, country | flights: airline, flightno, sourceairport, destairport |
|
select count ( * ) from airports
|
191 |
flight_2
|
How many flights do we have?
|
| flights: flightno, airline, sourceairport, destairport | airlines: uid, airline, abbreviation, country | airports: city, airportcode, airportname, country, countryabbrev | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode |
|
select count ( * ) from flights
|
192 |
flight_2
|
Return the number of flights.
|
| flights: flightno | airlines: uid, airline, abbreviation, country | airports: city, airportcode, airportname, country, countryabbrev |
|
select count ( * ) from flights
|
193 |
flight_2
|
Which airline has abbreviation 'UAL'?
|
| airlines: abbreviation, airline | airports: | flights: |
|
select airline from airlines where abbreviation = 'UAL'
|
194 |
flight_2
|
Give the airline with abbreviation 'UAL'.
|
| airlines: abbreviation, airline, uid, country | airports: city, airportcode, airportname, country, countryabbrev | flights: airline, flightno, sourceairport, destairport |
|
select airline from airlines where abbreviation = 'UAL'
|
195 |
flight_2
|
How many airlines are from USA?
|
| airlines: country, airline, uid, abbreviation | airports: city, airportcode, airportname, country, countryabbrev | flights: airline, flightno, sourceairport, destairport |
|
select count ( * ) from airlines where country = 'USA'
|
196 |
flight_2
|
Return the number of airlines in the USA.
|
| airlines: country, uid | airports: | flights: |
|
select count ( * ) from airlines where country = 'USA'
|
197 |
flight_2
|
Which city and country is the Alton airport at?
|
| airports: airportname, city, country, airportcode, countryabbrev | airlines: uid, airline, abbreviation, country | flights: airline, flightno, sourceairport, destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode |
|
select city , country from airports where airportname = 'Alton'
|
198 |
flight_2
|
Give the city and country for the Alton airport.
|
| airports: airportname, city, country, airportcode, countryabbrev | airlines: country, uid, airline, abbreviation | flights: destairport, sourceairport, airline, flightno |
|
select city , country from airports where airportname = 'Alton'
|
199 |
flight_2
|
What is the airport name for airport 'AKO'?
|
| airports : airportcode, airportname, city, country, countryabbrev | airlines : uid, airline, abbreviation, country | flights : sourceairport, destairport, airline, flightno | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode |
|
select airportname from airports where airportcode = 'AKO'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.