db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
election | select t1.committee from election as t1 join party as t2 on t1.party = t2.party_id where t2.party = 'democratic' intersect select t1.committee from election as t1 join party as t2 on t1.party = t2.party_id where t2.party = 'liberal' | Question: which committees have delegates from both democratic party and liberal party? | Tables: county -> County_Id, County_name, Population, Zip_code. party -> Party_ID, Year, Party, Governor, Lieutenant_Governor, Comptroller, Attorney_General, US_Senate. election -> Election_ID, Counties_Represented, District, Dele... | which committees have delegates from both democratic party and liberal party? |
election | select t1.committee from election as t1 join party as t2 on t1.party = t2.party_id where t2.party = 'democratic' intersect select t1.committee from election as t1 join party as t2 on t1.party = t2.party_id where t2.party = 'liberal' | Question: find the committees that have delegates both from from the democratic party and the liberal party. | Tables: county -> County_Id, County_name, Population, Zip_code. party -> Party_ID, Year, Party, Governor, Lieutenant_Governor, Comptroller, Attorney_General, US_Senate. election -> Election_ID, Counties_Repres... | find the committees that have delegates both from from the democratic party and the liberal party. |
news_report | select count(*) from journalist | Question: how many journalists are there? | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = event.Event_ID, news_report.journalist_ID = journalist.journa... | how many journalists are there? |
news_report | select name from journalist order by years_working asc | Question: list the names of journalists in ascending order of years working. | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = event.Event_ID, news_repor... | list the names of journalists in ascending order of years working. |
news_report | select nationality , age from journalist | Question: what are the nationalities and ages of journalists? | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = event.Event_ID, news_report.journalist_ID... | what are the nationalities and ages of journalists? |
news_report | select name from journalist where nationality = 'england' or nationality = 'wales' | Question: show the names of journalists from 'england' or 'wales'. | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = event.Event_ID, news_report.journali... | show the names of journalists from 'england' or 'wales'. |
news_report | select avg(years_working) from journalist | Question: what is the average number of years spent working as a journalist? | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = event.Event_ID, news_repor... | what is the average number of years spent working as a journalist? |
news_report | select nationality from journalist order by years_working desc limit 1 | Question: what is the nationality of the journalist with the largest number of years working? | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = event.Eve... | what is the nationality of the journalist with the largest number of years working? |
news_report | select nationality , count(*) from journalist group by nationality | Question: show the different nationalities and the number of journalists of each nationality. | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = event.Eve... | show the different nationalities and the number of journalists of each nationality. |
news_report | select nationality from journalist group by nationality order by count(*) desc limit 1 | Question: show the most common nationality for journalists. | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = event.Event_ID, news_report.journalist_ID =... | show the most common nationality for journalists. |
news_report | select nationality from journalist where years_working > 10 intersect select nationality from journalist where years_working < 3 | Question: show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working. | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_T... | show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working. |
news_report | select date , name , venue from event order by event_attendance desc | Question: show the dates, places, and names of events in descending order of the attendance. | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = event.Even... | show the dates, places, and names of events in descending order of the attendance. |
news_report | select t3.name , t2.date from news_report as t1 join event as t2 on t1.event_id = t2.event_id join journalist as t3 on t1.journalist_id = t3.journalist_id | Question: show the names of journalists and the dates of the events they reported. | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = event.Event_ID, news... | show the names of journalists and the dates of the events they reported. |
news_report | select t3.name , t2.name from news_report as t1 join event as t2 on t1.event_id = t2.event_id join journalist as t3 on t1.journalist_id = t3.journalist_id order by t2.event_attendance asc | Question: show the names of journalists and the names of the events they reported in ascending order | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = ev... | show the names of journalists and the names of the events they reported in ascending order |
news_report | select t3.name , count(*) from news_report as t1 join event as t2 on t1.event_id = t2.event_id join journalist as t3 on t1.journalist_id = t3.journalist_id group by t3.name | Question: show the names of journalists and the number of events they reported. | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = event.Event_ID, news_re... | show the names of journalists and the number of events they reported. |
news_report | select t3.name from news_report as t1 join event as t2 on t1.event_id = t2.event_id join journalist as t3 on t1.journalist_id = t3.journalist_id group by t3.name having count(*) > 1 | Question: show the names of journalists that have reported more than one event. | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = event.Event_ID, news_re... | show the names of journalists that have reported more than one event. |
news_report | select name from journalist where journalist_id not in (select journalist_id from news_report) | Question: list the names of journalists who have not reported any event. | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = event.Event_ID, news_report.jo... | list the names of journalists who have not reported any event. |
news_report | select avg(event_attendance) , max(event_attendance) from event | Question: what are the average and maximum attendances of all events? | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = event.Event_ID, news_report.journ... | what are the average and maximum attendances of all events? |
news_report | select avg(t1.age) , avg(years_working) , t2.work_type from journalist as t1 join news_report as t2 on t1.journalist_id = t2.journalist_id group by t2.work_type | Question: find the average age and experience working length of journalists working on different role type. | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_... | find the average age and experience working length of journalists working on different role type. |
news_report | select venue , name from event order by event_attendance desc limit 2 | Question: list the event venues and names that have the top 2 most number of people attended. | Tables: event -> Event_ID, Date, Venue, Name, Event_Attendance. journalist -> journalist_ID, Name, Nationality, Age, Years_working. news_report -> journalist_ID, Event_ID, Work_Type. | Joins: news_report.Event_ID = event.Eve... | list the event venues and names that have the top 2 most number of people attended. |
restaurant_1 | select resname from restaurant; | Question: show me all the restaurants. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. Visits_Restaurant -> StuID, ResID, Time, Spent. | Jo... | show me all the restaurants. |
restaurant_1 | select address from restaurant where resname = 'subway'; | Question: what is the address of the restaurant subway? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. Visits_Restaurant -> StuID, ResID, ... | what is the address of the restaurant subway? |
restaurant_1 | select rating from restaurant where resname = 'subway'; | Question: what is the rating of the restaurant subway? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. Visits_Restaurant -> StuID, ResID, T... | what is the rating of the restaurant subway? |
restaurant_1 | select restypename from restaurant_type; | Question: list all restaurant types. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. Visits_Restaurant -> StuID, ResID, Time, Spent. | Join... | list all restaurant types. |
restaurant_1 | select restypedescription from restaurant_type where restypename = 'sandwich'; | Question: what is the description of the restaurant type sandwich? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. Visits_Restaurant -> Stu... | what is the description of the restaurant type sandwich? |
restaurant_1 | select resname , rating from restaurant order by rating desc limit 1; | Question: which restaurants have highest rating? list the restaurant name and its rating. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. V... | which restaurants have highest rating? list the restaurant name and its rating. |
restaurant_1 | select age from student where fname = 'linda' and lname = 'smith'; | Question: what is the age of student linda smith? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. Visits_Restaurant -> StuID, ResID, Time, ... | what is the age of student linda smith? |
restaurant_1 | select sex from student where fname = 'linda' and lname = 'smith'; | Question: what is the gender of the student linda smith? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. Visits_Restaurant -> StuID, ResID,... | what is the gender of the student linda smith? |
restaurant_1 | select fname , lname from student where major = 600; | Question: list all students' first names and last names who majored in 600. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. Visits_Restaura... | list all students' first names and last names who majored in 600. |
restaurant_1 | select city_code from student where fname = 'linda' and lname = 'smith'; | Question: which city does student linda smith live in? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. Visits_Restaurant -> StuID, ResID, T... | which city does student linda smith live in? |
restaurant_1 | select count(*) from student where advisor = 1121; | Question: advisor 1121 has how many students? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. Visits_Restaurant -> StuID, ResID, Time, Spen... | advisor 1121 has how many students? |
restaurant_1 | select advisor , count(*) from student group by advisor order by count(advisor) desc limit 1; | Question: which advisor has most of students? list advisor and the number of students. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. Visi... | which advisor has most of students? list advisor and the number of students. |
restaurant_1 | select major , count(*) from student group by major order by count(major) asc limit 1; | Question: which major has least number of students? list the major and the number of students. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescripti... | which major has least number of students? list the major and the number of students. |
restaurant_1 | select major , count(*) from student group by major having count(major) between 2 and 30; | Question: which major has between 2 and 30 number of students? list major and the number of students. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDe... | which major has between 2 and 30 number of students? list major and the number of students. |
restaurant_1 | select fname , lname from student where age > 18 and major = 600; | Question: which student's age is older than 18 and is majoring in 600? list each student's first and last name. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName,... | which student's age is older than 18 and is majoring in 600? list each student's first and last name. |
restaurant_1 | select fname , lname from student where age > 18 and major != 600 and sex = 'f'; | Question: list all female students age is older than 18 who is not majoring in 600. list students' first name and last name. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID,... | list all female students age is older than 18 who is not majoring in 600. list students' first name and last name. |
restaurant_1 | select count(*) from restaurant join type_of_restaurant on restaurant.resid = type_of_restaurant.resid join restaurant_type on type_of_restaurant.restypeid = restaurant_type.restypeid group by type_of_restaurant.restypeid having restaurant_type.restypename = 'sandwich' | Question: how many restaurant is the sandwich type restaurant? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. Visits_Restaurant -> StuID, ... | how many restaurant is the sandwich type restaurant? |
restaurant_1 | select sum(spent) from student join visits_restaurant on student.stuid = visits_restaurant.stuid where student.fname = 'linda' and student.lname = 'smith'; | Question: how long does student linda smith spend on the restaurant in total? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. Visits_Restau... | how long does student linda smith spend on the restaurant in total? |
restaurant_1 | select count(*) from student join visits_restaurant on student.stuid = visits_restaurant.stuid join restaurant on visits_restaurant.resid = restaurant.resid where student.fname = 'linda' and student.lname = 'smith' and restaurant.resname = 'subway'; | Question: how many times has the student linda smith visited subway? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. Visits_Restaurant -> S... | how many times has the student linda smith visited subway? |
restaurant_1 | select time from student join visits_restaurant on student.stuid = visits_restaurant.stuid join restaurant on visits_restaurant.resid = restaurant.resid where student.fname = 'linda' and student.lname = 'smith' and restaurant.resname = 'subway'; | Question: when did linda smith visit subway? | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescription. Visits_Restaurant -> StuID, ResID, Time, Spent... | when did linda smith visit subway? |
restaurant_1 | select restaurant.resname , sum(visits_restaurant.spent) from visits_restaurant join restaurant on visits_restaurant.resid = restaurant.resid group by restaurant.resid order by sum(visits_restaurant.spent) asc limit 1; | Question: at which restaurant did the students spend the least amount of time? list restaurant and the time students spent on in total. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type ->... | at which restaurant did the students spend the least amount of time? list restaurant and the time students spent on in total. |
restaurant_1 | select student.fname , student.lname from student join visits_restaurant on student.stuid = visits_restaurant.stuid group by student.stuid order by count(*) desc limit 1; | Question: which student visited restaurant most often? list student's first name and last name. | Tables: Student -> StuID, LName, Fname, Age, Sex, Major, Advisor, city_code. Restaurant -> ResID, ResName, Address, Rating. Type_Of_Restaurant -> ResID, ResTypeID. Restaurant_Type -> ResTypeID, ResTypeName, ResTypeDescript... | which student visited restaurant most often? list student's first name and last name. |
customer_deliveries | select actual_order_id from actual_orders where order_status_code = 'success' | Question: find the ids of orders whose status is 'success'. | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, payment_method, customer_name, customer_phone, customer_... | find the ids of orders whose status is 'success'. |
customer_deliveries | select t1.product_name , t1.product_price from products as t1 join regular_order_products as t2 on t1.product_id = t2.product_id group by t2.product_id order by count(*) desc limit 1 | Question: find the name and price of the product that has been ordered the greatest number of times. | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, payment_method,... | find the name and price of the product that has been ordered the greatest number of times. |
customer_deliveries | select count(*) from customers | Question: find the number of customers in total. | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, payment_method, customer_name, customer_phone, customer_email, date... | find the number of customers in total. |
customer_deliveries | select count(distinct payment_method) from customers | Question: how many different payment methods are there? | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, payment_method, customer_name, customer_phone, customer_emai... | how many different payment methods are there? |
customer_deliveries | select truck_details from trucks order by truck_licence_number | Question: show the details of all trucks in the order of their license number. | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, payment_method, customer_name, custom... | show the details of all trucks in the order of their license number. |
customer_deliveries | select product_name from products order by product_price desc limit 1 | Question: find the name of the most expensive product. | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, payment_method, customer_name, customer_phone, customer_email... | find the name of the most expensive product. |
customer_deliveries | select customer_name from customers except select t1.customer_name from customers as t1 join customer_addresses as t2 on t1.customer_id = t2.customer_id join addresses as t3 on t2.address_id = t3.address_id where t3.state_province_county = 'california' | Question: find the names of customers who are not living in the state of california. | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, payment_method, customer_name, ... | find the names of customers who are not living in the state of california. |
customer_deliveries | select customer_email , customer_name from customers where payment_method = 'visa' | Question: list the names and emails of customers who payed by visa card. | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, payment_method, customer_name, customer_pho... | list the names and emails of customers who payed by visa card. |
customer_deliveries | select t1.customer_name , t1.customer_phone from customers as t1 join customer_addresses as t2 on t1.customer_id = t2.customer_id join addresses as t3 on t2.address_id = t3.address_id where t3.state_province_county = 'california' | Question: find the names and phone numbers of customers living in california state. | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, payment_method, customer_name, c... | find the names and phone numbers of customers living in california state. |
customer_deliveries | select state_province_county from addresses where address_id not in (select employee_address_id from employees) | Question: find the states which do not have any employee in their record. | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, payment_method, customer_name, customer_ph... | find the states which do not have any employee in their record. |
customer_deliveries | select customer_name , customer_phone , customer_email from customers order by date_became_customer | Question: list the names, phone numbers, and emails of all customers sorted by their dates of becoming customers. | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, pa... | list the names, phone numbers, and emails of all customers sorted by their dates of becoming customers. |
customer_deliveries | select customer_name from customers order by date_became_customer limit 5 | Question: find the name of the first 5 customers. | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, payment_method, customer_name, customer_phone, customer_email, dat... | find the name of the first 5 customers. |
customer_deliveries | select payment_method from customers group by payment_method order by count(*) desc limit 1 | Question: find the payment method that is used most frequently. | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, payment_method, customer_name, customer_phone, custo... | find the payment method that is used most frequently. |
customer_deliveries | select route_name from delivery_routes order by route_name | Question: list the names of all routes in alphabetic order. | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, payment_method, customer_name, customer_phone, customer_... | list the names of all routes in alphabetic order. |
customer_deliveries | select t1.route_name from delivery_routes as t1 join delivery_route_locations as t2 on t1.route_id = t2.route_id group by t1.route_id order by count(*) desc limit 1 | Question: find the name of route that has the highest number of deliveries. | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, payment_method, customer_name, customer_... | find the name of route that has the highest number of deliveries. |
customer_deliveries | select t2.state_province_county , count(*) from customer_addresses as t1 join addresses as t2 on t1.address_id = t2.address_id group by t2.state_province_county | Question: list the state names and the number of customers living in each state. | Tables: Products -> product_id, product_name, product_price, product_description. Addresses -> address_id, address_details, city, zip_postcode, state_province_county, country. Customers -> customer_id, payment_method, customer_name, cust... | list the state names and the number of customers living in each state. |
icfp_1 | select count(*) from authors | Question: how many authors are there? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID = Authors.authID, | how many authors are there? |
icfp_1 | select count(*) from authors | Question: count the number of authors. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID = Authors.authID, | count the number of authors. |
icfp_1 | select count(*) from inst | Question: how many institutions are there? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID = Authors.authID, | how many institutions are there? |
icfp_1 | select count(*) from inst | Question: count the number of institutions. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID = Authors.authID, | count the number of institutions. |
icfp_1 | select count(*) from papers | Question: how many papers are published in total? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID = Authors.authID, | how many papers are published in total? |
icfp_1 | select count(*) from papers | Question: count the number of total papers. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID = Authors.authID, | count the number of total papers. |
icfp_1 | select t3.title from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t1.fname = 'jeremy' and t1.lname = 'gibbons' | Question: what are the titles of papers published by 'jeremy gibbons'? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID = ... | what are the titles of papers published by 'jeremy gibbons'? |
icfp_1 | select t3.title from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t1.fname = 'jeremy' and t1.lname = 'gibbons' | Question: find the titles of all the papers written by 'jeremy gibbons' | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID =... | find the titles of all the papers written by 'jeremy gibbons' |
icfp_1 | select t3.title from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t1.fname = 'aaron' and t1.lname = 'turon' | Question: find all the papers published by 'aaron turon'. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID = Authors.authI... | find all the papers published by 'aaron turon'. |
icfp_1 | select t3.title from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t1.fname = 'aaron' and t1.lname = 'turon' | Question: find the titles of all the papers written by 'aaron turon'. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID = A... | find the titles of all the papers written by 'aaron turon'. |
icfp_1 | select count(*) from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t1.fname = 'atsushi' and t1.lname = 'ohori' | Question: how many papers have 'atsushi ohori' published? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID = Authors.authI... | how many papers have 'atsushi ohori' published? |
icfp_1 | select count(*) from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t1.fname = 'atsushi' and t1.lname = 'ohori' | Question: how many papers are 'atsushi ohori' the author of? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID = Authors.au... | how many papers are 'atsushi ohori' the author of? |
icfp_1 | select distinct t3.name from authors as t1 join authorship as t2 on t1.authid = t2.authid join inst as t3 on t2.instid = t3.instid where t1.fname = 'matthias' and t1.lname = 'blume' | Question: what is the name of the institution that 'matthias blume' belongs to? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.... | what is the name of the institution that 'matthias blume' belongs to? |
icfp_1 | select distinct t3.name from authors as t1 join authorship as t2 on t1.authid = t2.authid join inst as t3 on t2.instid = t3.instid where t1.fname = 'matthias' and t1.lname = 'blume' | Question: which institution is the author 'matthias blume' belong to? give me the name of the institution. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID... | which institution is the author 'matthias blume' belong to? give me the name of the institution. |
icfp_1 | select distinct t3.name from authors as t1 join authorship as t2 on t1.authid = t2.authid join inst as t3 on t2.instid = t3.instid where t1.fname = 'katsuhiro' and t1.lname = 'ueno' | Question: which institution does 'katsuhiro ueno' belong to? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID = Authors.au... | which institution does 'katsuhiro ueno' belong to? |
icfp_1 | select distinct t3.name from authors as t1 join authorship as t2 on t1.authid = t2.authid join inst as t3 on t2.instid = t3.instid where t1.fname = 'katsuhiro' and t1.lname = 'ueno' | Question: what is the name of the institution the author 'katsuhiro ueno' belongs to? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Autho... | what is the name of the institution the author 'katsuhiro ueno' belongs to? |
icfp_1 | select distinct t1.fname , t1.lname from authors as t1 join authorship as t2 on t1.authid = t2.authid join inst as t3 on t2.instid = t3.instid where t3.name = 'university of oxford' | Question: who belong to the institution 'university of oxford'? show the first names and last names. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Ins... | who belong to the institution 'university of oxford'? show the first names and last names. |
icfp_1 | select distinct t1.fname , t1.lname from authors as t1 join authorship as t2 on t1.authid = t2.authid join inst as t3 on t2.instid = t3.instid where t3.name = 'university of oxford' | Question: find the first names and last names of the authors whose institution affiliation is 'university of oxford'. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Author... | find the first names and last names of the authors whose institution affiliation is 'university of oxford'. |
icfp_1 | select distinct t1.fname , t1.lname from authors as t1 join authorship as t2 on t1.authid = t2.authid join inst as t3 on t2.instid = t3.instid where t3.name = 'google' | Question: which authors belong to the institution 'google'? show the first names and last names. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.in... | which authors belong to the institution 'google'? show the first names and last names. |
icfp_1 | select distinct t1.fname , t1.lname from authors as t1 join authorship as t2 on t1.authid = t2.authid join inst as t3 on t2.instid = t3.instid where t3.name = 'google' | Question: find the first names and last names of the authors whose institution affiliation is 'google'. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = ... | find the first names and last names of the authors whose institution affiliation is 'google'. |
icfp_1 | select t1.lname from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t3.title = 'binders unbound' | Question: what are the last names of the author of the paper titled 'binders unbound'? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Auth... | what are the last names of the author of the paper titled 'binders unbound'? |
icfp_1 | select t1.lname from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t3.title = 'binders unbound' | Question: who is the author of the paper titled 'binders unbound'? give me the last name. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, A... | who is the author of the paper titled 'binders unbound'? give me the last name. |
icfp_1 | select t1.fname , t1.lname from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t3.title = 'nameless , painless' | Question: find the first and last name of the author(s) who wrote the paper 'nameless, painless'. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.i... | find the first and last name of the author(s) who wrote the paper 'nameless, painless'. |
icfp_1 | select t1.fname , t1.lname from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t3.title = 'nameless , painless' | Question: what are the first and last name of the author who published the paper titled 'nameless, painless'? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.ins... | what are the first and last name of the author who published the paper titled 'nameless, painless'? |
icfp_1 | select distinct t1.title from papers as t1 join authorship as t2 on t1.paperid = t2.paperid join inst as t3 on t2.instid = t3.instid where t3.name = 'indiana university' | Question: what are the papers published under the institution 'indiana university'? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authors... | what are the papers published under the institution 'indiana university'? |
icfp_1 | select distinct t1.title from papers as t1 join authorship as t2 on t1.paperid = t2.paperid join inst as t3 on t2.instid = t3.instid where t3.name = 'indiana university' | Question: list the titles of the papers whose authors are from the institution 'indiana university'. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Ins... | list the titles of the papers whose authors are from the institution 'indiana university'. |
icfp_1 | select distinct t1.title from papers as t1 join authorship as t2 on t1.paperid = t2.paperid join inst as t3 on t2.instid = t3.instid where t3.name = 'google' | Question: find all the papers published by the institution 'google'. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID = Au... | find all the papers published by the institution 'google'. |
icfp_1 | select distinct t1.title from papers as t1 join authorship as t2 on t1.paperid = t2.paperid join inst as t3 on t2.instid = t3.instid where t3.name = 'google' | Question: which papers were written by authors from the institution 'google'? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.au... | which papers were written by authors from the institution 'google'? |
icfp_1 | select count(distinct t1.title) from papers as t1 join authorship as t2 on t1.paperid = t2.paperid join inst as t3 on t2.instid = t3.instid where t3.name = 'tokohu university' | Question: how many papers are published by the institution 'tokohu university'? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.... | how many papers are published by the institution 'tokohu university'? |
icfp_1 | select count(distinct t1.title) from papers as t1 join authorship as t2 on t1.paperid = t2.paperid join inst as t3 on t2.instid = t3.instid where t3.name = 'tokohu university' | Question: find the number of papers published by authors from the institution 'tokohu university'. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.... | find the number of papers published by authors from the institution 'tokohu university'. |
icfp_1 | select count(distinct t1.title) from papers as t1 join authorship as t2 on t1.paperid = t2.paperid join inst as t3 on t2.instid = t3.instid where t3.name = 'university of pennsylvania' | Question: find the number of papers published by the institution 'university of pennsylvania'. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.inst... | find the number of papers published by the institution 'university of pennsylvania'. |
icfp_1 | select count(distinct t1.title) from papers as t1 join authorship as t2 on t1.paperid = t2.paperid join inst as t3 on t2.instid = t3.instid where t3.name = 'university of pennsylvania' | Question: how many papers are written by authors from the institution 'university of pennsylvania'? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst... | how many papers are written by authors from the institution 'university of pennsylvania'? |
icfp_1 | select t3.title from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t1.fname = 'olin' and t1.lname = 'shivers' | Question: find the papers which have 'olin shivers' as an author. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID = Autho... | find the papers which have 'olin shivers' as an author. |
icfp_1 | select t3.title from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t1.fname = 'olin' and t1.lname = 'shivers' | Question: which papers did the author 'olin shivers' write? give me the paper titles. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Autho... | which papers did the author 'olin shivers' write? give me the paper titles. |
icfp_1 | select t3.title from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t1.fname = 'stephanie' and t1.lname = 'weirich' | Question: which papers have 'stephanie weirich' as an author? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.authID = Authors.a... | which papers have 'stephanie weirich' as an author? |
icfp_1 | select t3.title from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid where t1.fname = 'stephanie' and t1.lname = 'weirich' | Question: find the titles of the papers the author 'stephanie weirich' wrote. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.au... | find the titles of the papers the author 'stephanie weirich' wrote. |
icfp_1 | select t3.title from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid join inst as t4 on t2.instid = t4.instid where t4.country = 'usa' and t2.authorder = 2 and t1.lname = 'turon' | Question: which paper is published in an institution in 'usa' and have 'turon' as its second author? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Ins... | which paper is published in an institution in 'usa' and have 'turon' as its second author? |
icfp_1 | select t3.title from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid join inst as t4 on t2.instid = t4.instid where t4.country = 'usa' and t2.authorder = 2 and t1.lname = 'turon' | Question: find papers whose second author has last name 'turon' and is affiliated with an institution in the country 'usa'. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, ... | find papers whose second author has last name 'turon' and is affiliated with an institution in the country 'usa'. |
icfp_1 | select t3.title from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid join inst as t4 on t2.instid = t4.instid where t4.country = 'japan' and t2.authorder = 1 and t1.lname = 'ohori' | Question: find the titles of papers whose first author is affiliated with an institution in the country 'japan' and has last name 'ohori'? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = P... | find the titles of papers whose first author is affiliated with an institution in the country 'japan' and has last name 'ohori'? |
icfp_1 | select t3.title from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid join inst as t4 on t2.instid = t4.instid where t4.country = 'japan' and t2.authorder = 1 and t1.lname = 'ohori' | Question: which papers' first author is affiliated with an institution in the country 'japan' and has last name 'ohori'? give me the titles of the papers. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Author... | which papers' first author is affiliated with an institution in the country 'japan' and has last name 'ohori'? give me the titles of the papers. |
icfp_1 | select t1.lname from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid group by t1.fname , t1.lname order by count(*) desc limit 1 | Question: what is the last name of the author that has published the most papers? | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorshi... | what is the last name of the author that has published the most papers? |
icfp_1 | select t1.lname from authors as t1 join authorship as t2 on t1.authid = t2.authid join papers as t3 on t2.paperid = t3.paperid group by t1.fname , t1.lname order by count(*) desc limit 1 | Question: which author has written the most papers? find his or her last name. | Tables: Inst -> instID, name, country. Authors -> authID, lname, fname. Papers -> paperID, title. Authorship -> authID, instID, paperID, authOrder. | Joins: Authorship.paperID = Papers.paperID, Authorship.instID = Inst.instID, Authorship.a... | which author has written the most papers? find his or her last name. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.