richardr1126/spider-context-instruct huggingface dataset:
### Instruction:

Convert text to sql: Find the first and last name of the author(s) who wrote the paper "Nameless, Painless". | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select authors.fname , authors.lname from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid where papers.title = 'Nameless ,  Painless'

### Instruction:

Convert text to sql: What are the first and last name of the author who published the paper titled "Nameless, Painless"? | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select authors.fname , authors.lname from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid where papers.title = 'Nameless ,  Painless'

### Instruction:

Convert text to sql: What are the papers published under the institution "Indiana University"? | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select distinct papers.title from papers join authorship on papers.paperid = authorship.paperid join inst on authorship.instid = inst.instid where inst.name = 'Indiana University'

### Instruction:

Convert text to sql: List the titles of the papers whose authors are from the institution "Indiana University". | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select distinct papers.title from papers join authorship on papers.paperid = authorship.paperid join inst on authorship.instid = inst.instid where inst.name = 'Indiana University'

### Instruction:

Convert text to sql: Find all the papers published by the institution "Google". | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select distinct papers.title from papers join authorship on papers.paperid = authorship.paperid join inst on authorship.instid = inst.instid where inst.name = 'Google'
### Instruction:

Convert text to sql: Which papers were written by authors from the institution "Google"? | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select distinct papers.title from papers join authorship on papers.paperid = authorship.paperid join inst on authorship.instid = inst.instid where inst.name = 'Google'

### Instruction:

Convert text to sql: How many papers are published by the institution "Tokohu University"? | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select count ( distinct papers.title ) from papers join authorship on papers.paperid = authorship.paperid join inst on authorship.instid = inst.instid where inst.name = 'Tokohu University'

### Instruction:

Convert text to sql: Find the number of papers published by authors from the institution "Tokohu University". | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select count ( distinct papers.title ) from papers join authorship on papers.paperid = authorship.paperid join inst on authorship.instid = inst.instid where inst.name = 'Tokohu University'

### Instruction:

Convert text to sql: Find the number of papers published by the institution "University of Pennsylvania". | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select count ( distinct papers.title ) from papers join authorship on papers.paperid = authorship.paperid join inst on authorship.instid = inst.instid where inst.name = 'University of Pennsylvania'

### Instruction:

Convert text to sql: How many papers are written by authors from the institution "University of Pennsylvania"? | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select count ( distinct papers.title ) from papers join authorship on papers.paperid = authorship.paperid join inst on authorship.instid = inst.instid where inst.name = 'University of Pennsylvania'
### Instruction:

Convert text to sql: Find the papers which have "Olin Shivers" as an author. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select papers.title from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid where authors.fname = 'Olin' and authors.lname = 'Shivers'

### Instruction:

Convert text to sql: Which papers did the author "Olin Shivers" write? Give me the paper titles. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select papers.title from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid where authors.fname = 'Olin' and authors.lname = 'Shivers'

### Instruction:

Convert text to sql: Which papers have "Stephanie Weirich" as an author? | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select papers.title from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid where authors.fname = 'Stephanie' and authors.lname = 'Weirich'

### Instruction:

Convert text to sql: Find the titles of the papers the author "Stephanie Weirich" wrote. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select papers.title from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid where authors.fname = 'Stephanie' and authors.lname = 'Weirich'

### Instruction:

Convert text to sql: Which paper is published in an institution in "USA" and have "Turon" as its second author? | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select papers.title from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid join inst on authorship.instid = inst.instid where inst.country = 'USA' and authorship.authorder = 2 and authors.lname = 'Turon'
### Instruction:

Convert text to sql: Find papers whose second author has last name "Turon" and is affiliated with an institution in the country "USA". | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select papers.title from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid join inst on authorship.instid = inst.instid where inst.country = 'USA' and authorship.authorder = 2 and authors.lname = 'Turon'

### Instruction:

Convert text to sql: Find the titles of papers whose first author is affiliated with an institution in the country "Japan" and has last name "Ohori"? | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select papers.title from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid join inst on authorship.instid = inst.instid where inst.country = 'Japan' and authorship.authorder = 1 and authors.lname = 'Ohori'

### Instruction:

Convert text to sql: 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. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select papers.title from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid join inst on authorship.instid = inst.instid where inst.country = 'Japan' and authorship.authorder = 1 and authors.lname = 'Ohori'

### Instruction:

Convert text to sql: What is the last name of the author that has published the most papers? | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select authors.lname from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid group by authors.fname , authors.lname order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Which author has written the most papers? Find his or her last name. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select authors.lname from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid group by authors.fname , authors.lname order by count ( * ) desc limit 1

### Instruction:

Convert text to sql: Retrieve the country that has published the most papers. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select inst.country from inst join authorship on inst.instid = authorship.instid join papers on authorship.paperid = papers.paperid group by inst.country order by count ( * ) desc limit 1

### Instruction:

Convert text to sql: Find the country that the most papers are affiliated with. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select inst.country from inst join authorship on inst.instid = authorship.instid join papers on authorship.paperid = papers.paperid group by inst.country order by count ( * ) desc limit 1

### Instruction:

Convert text to sql: Find the name of the organization that has published the largest number of papers. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select inst.name from inst join authorship on inst.instid = authorship.instid join papers on authorship.paperid = papers.paperid group by inst.name order by count ( * ) desc limit 1

### Instruction:

Convert text to sql: Which institution has the most papers? Find the name of the institution. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select inst.name from inst join authorship on inst.instid = authorship.instid join papers on authorship.paperid = papers.paperid group by inst.name order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Find the titles of the papers that contain the word "ML". | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select title from papers where title like '%ML%'

### Instruction:

Convert text to sql: Which papers have the substring "ML" in their titles? Return the titles of the papers. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select title from papers where title like '%ML%'

### Instruction:

Convert text to sql: Which paper's title contains the word "Database"? | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select title from papers where title like '%Database%'

### Instruction:

Convert text to sql: Which papers have the substring "Database" in their titles? Show the titles of the papers. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select title from papers where title like '%Database%'

### Instruction:

Convert text to sql: Find the first names of all the authors who have written a paper with title containing the word "Functional". | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select authors.fname from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid where papers.title like '%Functional%'

### Instruction:

Convert text to sql: Who has written a paper that has the word "Functional" in its title? Return the first names of the authors. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select authors.fname from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid where papers.title like '%Functional%'
### Instruction:

Convert text to sql: Find the last names of all the authors that have written a paper with title containing the word "Monadic". | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select authors.lname from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid where papers.title like '%Monadic%'

### Instruction:

Convert text to sql: Which authors have written a paper with title containing the word "Monadic"? Return their last names. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select authors.lname from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid where papers.title like '%Monadic%'

### Instruction:

Convert text to sql: Retrieve the title of the paper that has the largest number of authors. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select papers.title from authorship join papers on authorship.paperid = papers.paperid where authorship.authorder = ( select max ( authorder ) from authorship )

### Instruction:

Convert text to sql: Which paper has the most authors? Give me the paper title. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select papers.title from authorship join papers on authorship.paperid = papers.paperid where authorship.authorder = ( select max ( authorder ) from authorship )

### Instruction:

Convert text to sql: What is the first name of the author with last name "Ueno"? | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select fname from authors where lname = 'Ueno'

### Instruction:

Convert text to sql: Which authors have last name "Ueno"? List their first names. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select fname from authors where lname = 'Ueno'
### Instruction:

Convert text to sql: Find the last name of the author with first name "Amal". | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select lname from authors where fname = 'Amal'

### Instruction:

Convert text to sql: Which authors have first name "Amal"? List their last names. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select lname from authors where fname = 'Amal'

### Instruction:

Convert text to sql: Find the first names of all the authors ordered in alphabetical order. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select fname from authors order by fname asc

### Instruction:

Convert text to sql: Sort the first names of all the authors in alphabetical order. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select fname from authors order by fname asc

### Instruction:

Convert text to sql: Retrieve all the last names of authors in alphabetical order. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select lname from authors order by lname asc

### Instruction:

Convert text to sql: Give me a list of all the last names of authors sorted in alphabetical order | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select lname from authors order by lname asc

### Instruction:

Convert text to sql: Retrieve all the first and last names of authors in the alphabetical order of last names. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select fname , lname from authors order by lname asc
### Instruction:

Convert text to sql: Sort the list of all the first and last names of authors in alphabetical order of the last names. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select fname , lname from authors order by lname asc