db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
shipping
select t1.weight from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id where t2.first_name = 'leszek' and t2.last_name = 'kieltyka' and t1.ship_date = '2017-09-25'
Question: for the shipment received by leszek kieltyka on 2017/9/25, what was its weight? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code...
for the shipment received by leszek kieltyka on 2017/9/25, what was its weight?
shipping
select t2.area from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id where t1.ship_id = '1346'
Question: what is the area of the destination city of shipment no.1346? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> ...
what is the area of the destination city of shipment no.1346?
shipping
select t1.weight from shipment as t1 inner join customer as t2 on t1.cust_id = t2.cust_id where t2.cust_name = 'u-haul center of n syracuse' and t1.ship_date = '2016-09-21'
Question: provide the weight of the shipment to u-haul center of n syracuse on 2016/9/21. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code...
provide the weight of the shipment to u-haul center of n syracuse on 2016/9/21.
shipping
select t3.first_name, t3.last_name from truck as t1 inner join shipment as t2 on t1.truck_id = t2.truck_id inner join driver as t3 on t3.driver_id = t2.driver_id where t1.truck_id = '3' and t2.ship_date = '2016-09-19'
Question: who was the driver of truck no.3 on 2016/9/19? tell the full name. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truc...
who was the driver of truck no.3 on 2016/9/19? tell the full name.
shipping
select t2.area / t2.population from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id where t1.ship_id = '1369'
Question: calculate the population density of the city as the destination of shipment no.1369. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip...
calculate the population density of the city as the destination of shipment no.1369.
shipping
select cast(count(t2.ship_id) as real) / count(distinct t1.truck_id) from truck as t1 inner join shipment as t2 on t1.truck_id = t2.truck_id where t1.make = 'kenworth'
Question: what is the average number of shipments done by the kenworth trucks? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. tr...
what is the average number of shipments done by the kenworth trucks?
shipping
select t1.weight from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id where t2.first_name = 'sue' and t2.last_name = 'newell' order by t1.ship_date asc limit 1
Question: how many pounds did sue newell transport during her first shipment? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. tru...
how many pounds did sue newell transport during her first shipment?
shipping
select t2.cust_name from shipment as t1 inner join customer as t2 on t1.cust_id = t2.cust_id order by t1.weight desc limit 1
Question: to whom did the company transport its heaviest shipment? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck...
to whom did the company transport its heaviest shipment?
shipping
select t2.first_name, t2.last_name from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id order by t1.ship_date asc limit 1
Question: what is the full name of the driver who transported the first shipment of the company? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, z...
what is the full name of the driver who transported the first shipment of the company?
shipping
select count(t2.ship_id) from customer as t1 inner join shipment as t2 on t1.cust_id = t2.cust_id where t1.cust_name = 'olympic camper sales inc'
Question: in total, how many shipments were transported to olympic camper sales inc? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, pho...
in total, how many shipments were transported to olympic camper sales inc?
shipping
select count(*) from customer as t1 inner join shipment as t2 on t1.cust_id = t2.cust_id inner join city as t3 on t3.city_id = t2.city_id where t3.city_name = 'new york' and t1.cust_name = 'harry''s hot rod auto & truck accessories'
Question: how many of the shipments bound for new york city were shipped to harry's hot rod auto and truck accessories? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, ...
how many of the shipments bound for new york city were shipped to harry's hot rod auto and truck accessories?
shipping
select count(t2.ship_id) from truck as t1 inner join shipment as t2 on t1.truck_id = t2.truck_id where t1.make = 'mack' order by t2.weight desc limit 1
Question: among the top 5 heaviest shipments, how many shipments were transported via mack? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_co...
among the top 5 heaviest shipments, how many shipments were transported via mack?
shipping
select t1.first_name, t1.last_name from driver as t1 inner join shipment as t2 on t1.driver_id = t2.driver_id inner join city as t3 on t3.city_id = t2.city_id group by t1.first_name, t1.last_name, t3.population having t3.population = max(t3.population) order by count(*) desc limit 1
Question: what is the full name of the driver who delivered the most shipments to the least populated city? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, cit...
what is the full name of the driver who delivered the most shipments to the least populated city?
shipping
select count(*) from truck as t1 inner join shipment as t2 on t1.truck_id = t2.truck_id where t2.weight < 1000 order by t1.model_year asc limit 1
Question: how many shipments with weight of no more than 1,000 pounds were shipped by the oldest truck? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, s...
how many shipments with weight of no more than 1,000 pounds were shipped by the oldest truck?
shipping
select t2.annual_revenue from shipment as t1 inner join customer as t2 on t1.cust_id = t2.cust_id group by t1.cust_id order by count(t1.cust_id) desc limit 1
Question: how much is the annual revenue of the customer with the most number of shipments? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_co...
how much is the annual revenue of the customer with the most number of shipments?
shipping
select count(*) from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id inner join customer as t3 on t3.cust_id = t1.cust_id where t2.city_name = 'downey' and strftime('%y', t1.ship_date) = '2016' and t3.state = 'ca'
Question: among the shipments for downey, how many shipments were shipped to california in 2016? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, z...
among the shipments for downey, how many shipments were shipped to california in 2016?
shipping
select count(*) from driver as t1 inner join shipment as t2 on t1.driver_id = t2.driver_id inner join city as t3 on t3.city_id = t2.city_id where t1.first_name = 'holger' and t1.last_name = 'nohr' and t3.city_name = 'north las vegas'
Question: how many shipments did holger nohr transport to north las vegas overall? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone...
how many shipments did holger nohr transport to north las vegas overall?
shipping
select count(*) from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id order by t2.area / t2.population desc limit 1
Question: how many shipments were shipped to the most densely populated city? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. tru...
how many shipments were shipped to the most densely populated city?
shipping
select cast(sum(case when cust_type = 'manufacturer' then 1 else 0 end) as real) * 100 / count(*) from customer where state = 'tx'
Question: determine the percentage of manufacturers who are from texas among all of lorenzo's customers. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, ...
determine the percentage of manufacturers who are from texas among all of lorenzo's customers.
shipping
select sum(t1.weight) from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id where t2.city_name = 'san mateo' and strftime('%y', t1.ship_date) = '2016'
Question: identify the total weight of shipments transported to san mateo, california, in 2016. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zi...
identify the total weight of shipments transported to san mateo, california, in 2016.
shipping
select sum(t2.weight) from truck as t1 inner join shipment as t2 on t1.truck_id = t2.truck_id where t1.make = 'peterbilt' and strftime('%y', t2.ship_date) = '2016' order by t1.model_year desc limit 1
Question: identify the total weight of shipments transported in 2016 by the newest peterbilt. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_...
identify the total weight of shipments transported in 2016 by the newest peterbilt.
shipping
select t1.weight, t2.cust_name from shipment as t1 inner join customer as t2 on t1.cust_id = t2.cust_id inner join city as t3 on t3.city_id = t1.city_id where t3.city_name = 'boston' order by t1.weight desc limit 1
Question: what was the maximum weight of the shipment carried to boston? name the customer of that shipment. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, ci...
what was the maximum weight of the shipment carried to boston? name the customer of that shipment.
shipping
select t2.city_name from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id where t1.ship_id = '1002'
Question: where was shipment no. 1002 headed? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_id, make, model_year...
where was shipment no. 1002 headed?
shipping
select avg(t2.weight) from truck as t1 inner join shipment as t2 on t1.truck_id = t2.truck_id where t1.make = 'mack'
Question: what is the average shipment weight carried by the oldest mack? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -...
what is the average shipment weight carried by the oldest mack?
shipping
select t3.first_name, t3.last_name from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id inner join driver as t3 on t3.driver_id = t1.driver_id where t2.city_name = 'new york' and t1.ship_date like '2016-02%'
Question: identify the full name of the driver who delivered a shipment to the city of new york in february 2016. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, addres...
identify the full name of the driver who delivered a shipment to the city of new york in february 2016.
shipping
select t2.cust_name from shipment as t1 inner join customer as t2 on t1.cust_id = t2.cust_id inner join city as t3 on t3.city_id = t1.city_id where t3.city_name = 'oak park'
Question: name the customer who sent the shipment to oak park. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_id,...
name the customer who sent the shipment to oak park.
shipping
select count(*) from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id inner join driver as t3 on t3.driver_id = t1.driver_id where t3.first_name = 'andrea' and t3.last_name = 'simons' and t2.city_name = 'huntsville' and strftime('%y', t1.ship_date) = '2016'
Question: determine the number of shipments delivered by andrea simons to huntsville in 2016. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_...
determine the number of shipments delivered by andrea simons to huntsville in 2016.
shipping
select cast(count(*) as real) / (12 * count(t2.driver_id)) from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id
Question: how many shipments does each driver deliver per month on average? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck...
how many shipments does each driver deliver per month on average?
shipping
select cast(sum(case when t1.weight >= 10000 then 1 else 0 end) as real) * 100 / count(*) from shipment as t1 inner join customer as t2 on t1.cust_id = t2.cust_id where t2.cust_name = 'sunguard window tinting & truck accessories' and strftime('%y', t1.ship_date) = '2017'
Question: among all shipments placed by sunguard window tinting & truck accessories in 2017, identify the percentage of shipments whose weight exceeded 10,000 pounds. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phon...
among all shipments placed by sunguard window tinting & truck accessories in 2017, identify the percentage of shipments whose weight exceeded 10,000 pounds.
shipping
select cast(sum(case when t3.cust_name = 'autoware inc' then 1 else 0 end) as real) * 100 / count(*) as per from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id inner join customer as t3 on t3.cust_id = t1.cust_id where t2.first_name = 'sue' and t2.last_name = 'newell'
Question: among all shipments delivered by sue newel, identify the percentage of shipments that were placed by autoware inc. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_n...
among all shipments delivered by sue newel, identify the percentage of shipments that were placed by autoware inc.
shipping
select count(*) from ( select t2.city_id as cityid from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id where t2.state = 'new jersey' group by t2.city_id having sum(t1.weight) > 20000 )
Question: how many cities which belong to new jersey have transported weight greater than 20000? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, z...
how many cities which belong to new jersey have transported weight greater than 20000?
shipping
select count(*) from city as t1 inner join shipment as t2 on t1.city_id = t2.city_id where t1.population > 50000 and strftime('%y', t2.ship_date) = '2017'
Question: how many cities whose polulation is larger than 50000 pounds have shipment in 2017? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_...
how many cities whose polulation is larger than 50000 pounds have shipment in 2017?
shipping
select t2.weight from truck as t1 inner join shipment as t2 on t1.truck_id = t2.truck_id where make = 'peterbilt'
Question: state the weight of shipments transported by peterbilt. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_...
state the weight of shipments transported by peterbilt.
shipping
select t1.model_year from truck as t1 inner join shipment as t2 on t1.truck_id = t2.truck_id where t2.ship_id = '1003'
Question: what is the model year of the truck used in shipment id 1003? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> ...
what is the model year of the truck used in shipment id 1003?
shipping
select t1.make from truck as t1 inner join shipment as t2 on t1.truck_id = t2.truck_id where t2.ship_id = '1011'
Question: what is the brand of truck used in shipment id 1011? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_id,...
what is the brand of truck used in shipment id 1011?
shipping
select t2.first_name, t2.last_name from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id where t1.ship_id = 1028
Question: what is the first name of the driver who transported shipment id 1028? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. ...
what is the first name of the driver who transported shipment id 1028?
shipping
select t2.state from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id where t1.ship_id = '1055'
Question: list out the state of driver who transported the shipment id 1055. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truc...
list out the state of driver who transported the shipment id 1055.
shipping
select t2.address from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id group by t2.driver_id having sum(t1.weight) > 50000
Question: state the address of drivers who transported the shipment with weight greater than 50000 pounds. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city...
state the address of drivers who transported the shipment with weight greater than 50000 pounds.
shipping
select t2.first_name, t2.last_name from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id where t1.ship_date = '2016-03-02'
Question: give the full name of driver who transported the items on 3/2/2016. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. tru...
give the full name of driver who transported the items on 3/2/2016.
shipping
select avg(t1.annual_revenue) from customer as t1 inner join shipment as t2 on t1.cust_id = t2.cust_id where t2.weight < 65000
Question: what is the average annual revenue of customers who have shipment weight of less than 65000 pounds? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, c...
what is the average annual revenue of customers who have shipment weight of less than 65000 pounds?
shipping
select cast(sum(case when t2.weight < 70000 then 1 else 0 end) as real) * 100 / count(*) from customer as t1 inner join shipment as t2 on t1.cust_id = t2.cust_id where t1.cust_type = 'wholesaler'
Question: what is the percentage of wholesaler customers who have shipment weight of not greater than 70000 pounds? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, addr...
what is the percentage of wholesaler customers who have shipment weight of not greater than 70000 pounds?
shipping
select t2.last_name from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id where t1.ship_id = '1088'
Question: what is the last name of driver who transported shipment id 1088? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck...
what is the last name of driver who transported shipment id 1088?
shipping
select t2.phone from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id group by t2.driver_id having sum(t1.weight) > 20000
Question: give the phone of drivers who transported shipment weight of greater than 20000 pounds. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, ...
give the phone of drivers who transported shipment weight of greater than 20000 pounds.
shipping
select t1.make, t1.model_year from truck as t1 inner join shipment as t2 on t1.truck_id = t2.truck_id where t2.ship_id = '1055'
Question: what is the brand and model of truck used in shipment id 1055? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck ->...
what is the brand and model of truck used in shipment id 1055?
shipping
select count(truck_id) from truck where model_year = 2009
Question: how many trucks were manufactured in year 2009? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_id, make...
how many trucks were manufactured in year 2009?
shipping
select count(*) from customer where cust_type = 'manufacturer'
Question: how many customers are manufacturer? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_id, make, model_yea...
how many customers are manufacturer?
shipping
select count(*) from customer where cust_type = 'retailer' and state = 'ca'
Question: how many customers who live in california that are retailers? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> ...
how many customers who live in california that are retailers?
shipping
select count(*) from city where state = 'connecticut'
Question: how many cities are in connecticut? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_id, make, model_year...
how many cities are in connecticut?
shipping
select city_name from city where state = 'california' and population = ( select max(population) from city where state = 'california' )
Question: what is the most populated city in california? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_id, make,...
what is the most populated city in california?
shipping
select annual_revenue from customer where cust_name = 'klett & sons repair'
Question: what is the annual revenue of klett & sons repair? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_id, m...
what is the annual revenue of klett & sons repair?
shipping
select t2.first_name, t2.last_name from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id order by t1.weight asc limit 1
Question: who is the driver that transported the lightest weight of shipment? provide the full name of the driver. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, addre...
who is the driver that transported the lightest weight of shipment? provide the full name of the driver.
shipping
select count(*) as per from customer as t1 inner join shipment as t2 on t1.cust_id = t2.cust_id where strftime('%y', t2.ship_date) = '2016' and t1.state = 'ca'
Question: how many shipments were shipped to customers living in california in year 2016? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code...
how many shipments were shipped to customers living in california in year 2016?
shipping
select distinct t1.make from truck as t1 inner join shipment as t2 on t1.truck_id = t2.truck_id inner join driver as t3 on t3.driver_id = t2.driver_id where t3.first_name = 'zachery' and t3.last_name = 'hicks'
Question: what is the brand of the truck that is used to ship by zachery hicks? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. t...
what is the brand of the truck that is used to ship by zachery hicks?
shipping
select t1.cust_name from customer as t1 inner join shipment as t2 on t1.cust_id = t2.cust_id where t2.ship_date like '2017-02%'
Question: list all the name of the customers that received a shipment in february 2017. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, ...
list all the name of the customers that received a shipment in february 2017.
shipping
select t3.make, t4.first_name, t4.last_name from customer as t1 inner join shipment as t2 on t1.cust_id = t2.cust_id inner join truck as t3 on t3.truck_id = t2.truck_id inner join driver as t4 on t4.driver_id = t2.driver_id where t1.cust_name = 'klett & sons repair'
Question: provide the brand of the truck and the name of the driver that transported goods in klett & sons repair. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, addre...
provide the brand of the truck and the name of the driver that transported goods in klett & sons repair.
shipping
select t1.ship_id from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id where t2.first_name = 'zachery' and t2.last_name = 'hicks' order by t1.weight desc limit 1
Question: what is the shipment id of the heaviest shipment that zachery hicks transported? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_cod...
what is the shipment id of the heaviest shipment that zachery hicks transported?
shipping
select count(*) from city as t1 inner join shipment as t2 on t1.city_id = t2.city_id inner join driver as t3 on t3.driver_id = t2.driver_id where t3.first_name = 'zachery' and t3.last_name = 'hicks' and t1.city_name = 'new york' and strftime('%y', t2.ship_date) = '2016'
Question: how many shipments did zachery hicks transport goods to new york in the year 2016? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_c...
how many shipments did zachery hicks transport goods to new york in the year 2016?
shipping
select case when t2.make = 'peterbilt' then 'texas (tx)' when t2.make = 'mack' then 'north carolina (nc)' when t2.make = 'kenworth' then 'washington (wa)' end as 'result' from shipment as t1 inner join truck as t2 on t1.truck_id = t2.truck_id where cast(t1.ship_date as date) = 2016 group by t2.make order by count(t1.sh...
Question: which headquarter's truck has the highest shipments in year 2016? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck...
which headquarter's truck has the highest shipments in year 2016?
shipping
select count(t3.city_name) from customer as t1 inner join shipment as t2 on t1.cust_id = t2.cust_id inner join city as t3 on t3.city_id = t2.city_id where t3.state = 'california' order by t3.population asc limit 1
Question: how many shipments were shipped to the least populated city in california? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, pho...
how many shipments were shipped to the least populated city in california?
shipping
select t2.city_name from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id order by t1.weight desc limit 1
Question: in which city did the heaviest shipment transported? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_id,...
in which city did the heaviest shipment transported?
shipping
select distinct t3.city_name from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id inner join city as t3 on t1.city_id = t3.city_id where t2.first_name = 'zachery' and t2.last_name = 'hicks'
Question: list all the cities where zachery hicks transported goods. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> tru...
list all the cities where zachery hicks transported goods.
shipping
select cast(sum(case when t2.first_name = 'zachery' and t2.last_name = 'hicks' then t1.ship_id else 0 end) as real) * 100 / count(*) from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id where strftime('%y', t1.ship_date) = '2017'
Question: calculate the average number of shipments that zachery hicks shipped in year 2017. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_c...
calculate the average number of shipments that zachery hicks shipped in year 2017.
shipping
select cast(sum(case when t2.first_name = 'zachery' and t2.last_name = 'hicks' then t1.weight else 0 end) as real) * 100 / sum(t1.weight) from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id where strftime('%y', t1.ship_date) = '2016'
Question: calculate the percentage of the weight of goods being transported by zachery hicks to california in year 2016. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name,...
calculate the percentage of the weight of goods being transported by zachery hicks to california in year 2016.
shipping
select count(*) from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id where t1.driver_id = 23
Question: how many shipments were shipped by the driver named zachary hicks? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truc...
how many shipments were shipped by the driver named zachary hicks?
shipping
select t1.ship_id from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id order by t2.area desc limit 1
Question: what is the ship id of shipments shipped to the city with the largest area? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, ph...
what is the ship id of shipments shipped to the city with the largest area?
shipping
select t3.first_name, t3.last_name from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id inner join driver as t3 on t3.driver_id = t1.driver_id order by t2.population asc limit 1
Question: list the drivers who shipped the shipments to the least populated city. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone....
list the drivers who shipped the shipments to the least populated city.
shipping
select count(*) from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id where t2.city_name = 'cicero' and t2.state = 'illinois' and t1.weight between 9000 and 15000
Question: among the shipments shipped to cicero, illinois, how many shipments weighed between 9,000 to 15,000? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, ...
among the shipments shipped to cicero, illinois, how many shipments weighed between 9,000 to 15,000?
shipping
select t1.model_year from truck as t1 inner join shipment as t2 on t1.truck_id = t2.truck_id where t2.ship_id = '1233'
Question: what model year of truck delivered the ship id 1233? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_id,...
what model year of truck delivered the ship id 1233?
shipping
select t3.address from shipment as t1 inner join customer as t2 on t1.cust_id = t2.cust_id inner join driver as t3 on t3.driver_id = t1.driver_id where t2.address = '7052 carroll road' and t2.city = 'san diego' and t2.state = 'ca'
Question: what is the address of the driver that delivers the shipment for the customer lives at 7052 carroll road, san diego, california? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, firs...
what is the address of the driver that delivers the shipment for the customer lives at 7052 carroll road, san diego, california?
shipping
select count(*) from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id where t2.first_name = 'maria' and t2.last_name = 'craft' and strftime('%y', t1.ship_date) = '2017'
Question: among the shipments delivered by maria craft, how many shipments were delivered in 2017? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state,...
among the shipments delivered by maria craft, how many shipments were delivered in 2017?
shipping
select t1.model_year from truck as t1 inner join shipment as t2 on t1.truck_id = t2.truck_id where t2.ship_id = '1245'
Question: what is the truck's model year used to ship the ship id 1245? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> ...
what is the truck's model year used to ship the ship id 1245?
shipping
select t2.address from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id where t1.ship_id = '1127'
Question: where does the driver of ship id 1127 live? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_id, make, mo...
where does the driver of ship id 1127 live?
shipping
select t2.annual_revenue from shipment as t1 inner join customer as t2 on t1.cust_id = t2.cust_id where t1.ship_id = '1047'
Question: give the annual revenue of the customer of ship id 1047. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck...
give the annual revenue of the customer of ship id 1047.
shipping
select t1.weight from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id where t2.first_name = 'andrea' and t2.last_name = 'simons' and t1.ship_date = '2016-03-07'
Question: what is the weight of the shipment delivered by andrea simons on march 7, 2016? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code...
what is the weight of the shipment delivered by andrea simons on march 7, 2016?
shipping
select t2.city_name from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id where t1.ship_date = '2017-01-16'
Question: provide the destination city of the shipment shipped by january 16, 2017. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phon...
provide the destination city of the shipment shipped by january 16, 2017.
shipping
select count(*) from shipment as t1 inner join customer as t2 on t1.cust_id = t2.cust_id where t2.state = 'ny'
Question: how many shipments were delivered to a customer from new york? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck ->...
how many shipments were delivered to a customer from new york?
shipping
select t2.cust_name from shipment as t1 inner join customer as t2 on t1.cust_id = t2.cust_id where t1.ship_id = '1147'
Question: what is the name of the customer of ship id 1147? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck -> truck_id, ma...
what is the name of the customer of ship id 1147?
shipping
select t1.ship_id from shipment as t1 inner join city as t2 on t1.city_id = t2.city_id order by t2.population desc limit 1
Question: list the ship id of shipments shipped to the most populated city. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truck...
list the ship id of shipments shipped to the most populated city.
shipping
select t2.first_name, t2.last_name from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id where t1.ship_date = '2016-02-22'
Question: list the driver's name of the shipment shipped on february 22, 2016. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. tr...
list the driver's name of the shipment shipped on february 22, 2016.
shipping
select t1.weight from shipment as t1 inner join customer as t2 on t1.cust_id = t2.cust_id where t2.annual_revenue = 39448581
Question: list the weight of the customer's shipment with annual revenue of 39448581. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, ph...
list the weight of the customer's shipment with annual revenue of 39448581.
shipping
select t2.address from shipment as t1 inner join customer as t2 on t1.cust_id = t2.cust_id where t1.ship_id = '1117'
Question: what is the customer's address for the shipment with ship id 1117? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city, state, zip_code, phone. truc...
what is the customer's address for the shipment with ship id 1117?
shipping
select cast(sum(case when strftime('%y', t1.ship_date) = '2017' then 1 else 0 end) as real ) * 100 / count(*) from shipment as t1 inner join customer as t2 on t1.cust_id = t2.cust_id where t2.state = 'tx'
Question: among the shipments to a customer from texas, what percentage of the shipments shipped in 2017? | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, address, city,...
among the shipments to a customer from texas, what percentage of the shipments shipped in 2017?
shipping
select sum(case when t1.model_year = '2005' then 1 else 0 end) - sum(case when t1.model_year = '2006' then 1 else 0 end) from truck as t1 inner join shipment as t2 on t1.truck_id = t2.truck_id
Question: calculate the difference between the number of shipments shipped by the truck with the model year 2005 and model year 2006. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_nam...
calculate the difference between the number of shipments shipped by the truck with the model year 2005 and model year 2006.
shipping
select t2.first_name, t2.last_name from shipment as t1 inner join driver as t2 on t1.driver_id = t2.driver_id where t1.weight * 100 > ( select 95 * avg(weight) from shipment )
Question: list the driver's name of the shipment with a weight greater than 95% of the average weight of all shipments. | Tables: city -> city_id, city_name, state, population, area. customer -> cust_id, cust_name, annual_revenue, cust_type, address, city, state, zip, phone. driver -> driver_id, first_name, last_name, ...
list the driver's name of the shipment with a weight greater than 95% of the average weight of all shipments.
language_corpus
select title, words from pages where title = ( select max(length(title)) from pages )
Question: name the longest catalan language wikipedia page title and state the number of different words in this page. | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occu...
name the longest catalan language wikipedia page title and state the number of different words in this page.
language_corpus
select title from pages where words < 10
Question: list all the catalan language wikipedia page title with less than 10 number of different words in these pages. | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, oc...
list all the catalan language wikipedia page title with less than 10 number of different words in these pages.
language_corpus
select page from pages where title like 'art%' or title like '%art%' or title like '%art'
Question: list the page number for catalan language wikipedia pages containing the word 'art' in the page title. | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrence...
list the page number for catalan language wikipedia pages containing the word 'art' in the page title.
language_corpus
select title from pages where revision = 16203226
Question: what is the title of catalan language wikipedia page with revision page id '16203226'? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -> li...
what is the title of catalan language wikipedia page with revision page id '16203226'?
language_corpus
select title from pages where revision between 106600 and 106700
Question: list the titles for all catalan language wikipedia page from revision page id 106600 to 106700. | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwo...
list the titles for all catalan language wikipedia page from revision page id 106600 to 106700.
language_corpus
select count(pid) from pages where words between 1000 and 2000
Question: how many catalan language wikipedia pages have between 1000 to 2000 number of different words? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwor...
how many catalan language wikipedia pages have between 1000 to 2000 number of different words?
language_corpus
select t2.pid from words as t1 inner join pages_words as t2 on t1.wid = t2.wid where t1.word = 'decimal'
Question: list the page id of wikipedia about catalan language which have the appearance of the word 'decimal'? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences...
list the page id of wikipedia about catalan language which have the appearance of the word 'decimal'?
language_corpus
select t1.word from words as t1 inner join pages_words as t2 on t1.wid = t2.wid where t2.occurrences = ( select max(occurrences) from pages_words )
Question: which word has the most occurrences within the same page of wikipedia about catalan language? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biword...
which word has the most occurrences within the same page of wikipedia about catalan language?
language_corpus
select t1.word from words as t1 inner join biwords as t2 on t1.wid = t2.w1st where t2.w2nd = ( select wid from words where word = 'antic' )
Question: list all the first words of the biwords pair where the second word is 'antic'. | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -> lid, w1st,...
list all the first words of the biwords pair where the second word is 'antic'.
language_corpus
select t1.title, t2.occurrences from pages as t1 inner join pages_words as t2 on t1.pid = t2.pid inner join words as t3 on t2.wid = t3.wid where t3.word = 'quipu'
Question: show all the title of pages and number of occurences for each page where the word 'quipu' appears. | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. b...
show all the title of pages and number of occurences for each page where the word 'quipu' appears.
language_corpus
select avg(t2.occurrences) from words as t1 inner join biwords as t2 on t1.wid = t2.w1st where t2.w1st = ( select wid from words where word = 'sistema' )
Question: calculate the average number of the word occurrences in which system appeared as the first word in the pair. | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occu...
calculate the average number of the word occurrences in which system appeared as the first word in the pair.
language_corpus
select pages from langs where lang = 'ca'
Question: what is the total pages of wikipedia in catalan language? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -> lid, w1st, w2nd, occurrences. |...
what is the total pages of wikipedia in catalan language?
language_corpus
select w1st, w2nd from biwords where occurrences = ( select max(occurrences) from biwords )
Question: in the catalan language, which biwords pair appeared the most in this language/page? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -> lid,...
in the catalan language, which biwords pair appeared the most in this language/page?
language_corpus
select wid from langs_words where occurrences <= 10
Question: what is the word id of the catalan language that was repeated no more than 10 times in the said language? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurre...
what is the word id of the catalan language that was repeated no more than 10 times in the said language?
language_corpus
select title from pages where words = ( select max(words) from pages )
Question: what is the title of the catalan language wikipedia page that has the highest number of different words? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurren...
what is the title of the catalan language wikipedia page that has the highest number of different words?
language_corpus
select page from pages where title = 'arqueozoologia'
Question: what is the wikipedia page id of arqueozoologia? | Tables: langs -> lid, lang, locale, pages, words. pages -> pid, lid, page, revision, title, words. words -> wid, word, occurrences. langs_words -> lid, wid, occurrences. pages_words -> pid, wid, occurrences. biwords -> lid, w1st, w2nd, occurrences. | Joins: p...
what is the wikipedia page id of arqueozoologia?