Chinastark/bird_dataset huggingface dataset:
Database: shakespeare
Question: In the year 1500s, how many tragedies did Shakespeare write?
Evidence: year 1500s refers to Date between 1500 and 1599; tragedies refers to GenreType = 'Tragedy'
SQL: SELECT COUNT(id) FROM works WHERE GenreType = 'Tragedy' AND Date BETWEEN 1500 AND 1599
Database: shakespeare
Question: Who is the daughter of Capulet?
Evidence: daughter of Capulet refers to characters.Description = 'Daughter to Capulet'
SQL: SELECT CharName FROM characters WHERE Description = 'Daughter to Capulet'
Database: shakespeare
Question: How many paragraphs are there in "Ay, surely, mere the truth: I know his lady."?
Evidence: "Ay, surely, mere the truth: I know his lady." refers to PlainText = 'Ay, surely, mere the truth: I know his lady.'
SQL: SELECT ParagraphNum FROM paragraphs WHERE PlainText = 'Ay, surely, mere the truth: I know his lady.'
Database: shakespeare
Question: What is the long title of the work with the highest number of scenes in act 1?
Evidence: highest number of scenes refers to max(count(Scene))
SQL: SELECT T2.LongTitle FROM chapters AS T1 INNER JOIN works AS T2 ON T1.work_id = T2.id WHERE T1.Act = 1 ORDER BY T1.Scene DESC LIMIT 1
Database: shakespeare
Question: What is the description of the chapter with the longest number of paragraphs?
Evidence: chapter with the longest number of paragraphs refers to max(ParagraphNum)
SQL: SELECT T2.Description FROM paragraphs AS T1 INNER JOIN chapters AS T2 ON T1.chapter_id = T2.id ORDER BY T1.ParagraphNum DESC LIMIT 1
Database: shakespeare
Question: In "Twelfth Night, Or What You Will", what is the description of the chapter in 2nd scene, Act 2?
Evidence: "Twelfth Night, Or What You Will"  refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2
SQL: SELECT T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.LongTitle = 'Twelfth Night, Or What You Will' AND T2.Scene = 2 AND T2.Act = 2
Database: shakespeare
Question: What are the descriptions of the short chapters?
Evidence: short chapters refers to ParagraphNum < 150
SQL: SELECT DISTINCT T2.Description FROM paragraphs AS T1 INNER JOIN chapters AS T2 ON T1.chapter_id = T2.id WHERE T1.ParagraphNum < 150
Database: shakespeare
Question: Which of Shakespeare's work has chapter description of "A field near Windsor"?
SQL: SELECT T2.Title FROM chapters AS T1 INNER JOIN works AS T2 ON T1.work_id = T2.id WHERE T1.Description = 'A field near Windsor.'
Database: shakespeare
Question: How many paragraphs are there in the chapter with the highest amount of scenes in act 1?
Evidence: How many paragraphs refers to ParagraphNum; highest amount of scenes refers to max(count(Scene))
SQL: SELECT T1.ParagraphNum FROM paragraphs AS T1 INNER JOIN chapters AS T2 ON T1.chapter_id = T2.id WHERE T2.Act = 1 ORDER BY T2.Scene DESC LIMIT 1
Database: shakespeare
Question: Other than "stage directions", what is the name of the character that appeared 5 times in "the sea-coast"?
Evidence: Other than "stage directions" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in "the sea-coast" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5
SQL: SELECT T.CharName FROM ( SELECT T3.CharName, COUNT(T3.id) AS num FROM paragraphs AS T1 INNER JOIN chapters AS T2 ON T1.chapter_id = T2.id INNER JOIN characters AS T3 ON T1.character_id = T3.id WHERE T2.Description = 'The sea-coast.' AND T3.CharName != '(stage directions)' AND T1.chapter_id = 18709 GROUP BY T3.id, T3.CharName ) AS T WHERE T.num = 5
Database: shakespeare
Question: Among the chapters in "As You Like It", how many chapters have a paragraph number of no more than 50?
Evidence: "As You Like It" refers to Title = 'As You Like It' ;paragraph number of no more than 50 refers to ParagraphNum < 50
SQL: SELECT COUNT(T3.chapter_id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id WHERE T1.Title = 'As You Like It' AND T3.ParagraphNum < 50
Database: shakespeare
Question: In "Florence. Without the walls. A tucket afar off", what is the id of the character that was mentioned in "His name, I pray you."?
Evidence: "Florence. Without the walls. A tucket afar off" refers to chapters.Description = 'Florence. Without the walls. A tucket afar off.'; "His name, I pray you." refers to PlainText = 'His name, I pray you.'
SQL: SELECT T1.character_id FROM paragraphs AS T1 INNER JOIN chapters AS T2 ON T1.chapter_id = T2.id WHERE T1.PlainText = 'His name, I pray you.' AND T2.Description = 'Florence. Without the walls. A tucket afar off.'
Database: shakespeare
Question: How many characters are there in Hamlet?
Evidence: Hamlet refers to Title = 'Hamlet'
SQL: SELECT COUNT(DISTINCT T3.character_id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id WHERE T1.Title = 'Hamlet'
Database: shakespeare
Question: How many scenes are there in the 5th act of "History of Henry VIII"?
Evidence: 5th act refers to Act = 5; "History of Henry VIII" refers to LongTitle = 'History of Henry VIII'
SQL: SELECT SUM(T2.Scene) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = 5 AND T1.LongTitle = 'History of Henry VIII'
Database: shakespeare
Question: Among the history works written by Shakespeare, how many works whose 1st acts have no more than 2 scenes?
Evidence: history refers to GenreType = 'History' ; 1st acts  refers to Act = 1; no more than 2 scenes refers to count(Scene) < 2
SQL: SELECT COUNT(DISTINCT T2.work_id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = 1 AND T2.Scene < 2 AND T1.GenreType = 'History'
Database: shakespeare
Question: How many acts are there in Sonnets?
Evidence: Sonnets refers to Title = 'Sonnets'
SQL: SELECT SUM(DISTINCT T2.Act) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.Title = 'Sonnets'
Database: shakespeare
Question: What is the description of the chapter where the character whose abrreviated name is 1Play appeared first?
Evidence: abbreviated name is 1Play; appeared first refers to Abbrev = '1Play' and min(chapter_id)
SQL: SELECT T2.Description FROM paragraphs AS T1 INNER JOIN chapters AS T2 ON T1.chapter_id = T2.id INNER JOIN characters AS T3 ON T1.character_id = T3.id WHERE T3.Abbrev = '1Play' ORDER BY T1.chapter_id LIMIT 1
Database: shakespeare
Question: What are the titles and genres of the one-act works of Shakespeare?
Evidence: one-act works refers to count(Act) = 1; genre refers to GenreType

SQL: SELECT DISTINCT T1.Title, T1.GenreType FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = 1
Database: shakespeare
Question: How many paragraphs are there in the longest chapter where Sir Richard Ratcliff appeared?
Evidence: longest chapter refers to max(ParagraphNum); Sir Richard Ratcliff  refers to CharName = 'Sir Richard Ratcliff'
SQL: SELECT MAX(T2.ParagraphNum) FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.CharName = 'Sir Richard Ratcliff'
Database: shakespeare
Question: In "A Lover's Complaint", what is the description of Act 1, Scene 1?
Evidence: "A Lover's Complaint" refers to Title = 'A Lover''s Complaint'
SQL: SELECT T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = 1 AND T2.Scene = 1 AND T1.Title = 'A Lover''s Complaint'
Database: shakespeare
Question: When did Shakespeare create his work that has 154 scenes?
Evidence: When refers to Date; has 154 scenes refers to count(Scene) = 154
SQL: SELECT T1.Date, T1.id FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Scene = 154
Database: shakespeare
Question: On average, how many scenes are there in each of the comedy works written by Shakespeare?
Evidence: comedy refers to GenreType = 'Comedy'; average = divide(sum(count(Scene)), count(work.id))
SQL: SELECT CAST(SUM(T2.Scene) AS REAL) / COUNT(T1.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.GenreType = 'Comedy'
Database: shakespeare
Question: Between Rome and Juliet, which character was mentioned the most in the The Tragedy of Romeo and Juliet? Calculate for Romeo and Juliet's individual amount of appearance in percentage against the overall number of characters that appeared in the said work.
Evidence: Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage
SQL: SELECT SUM(IIF(T4.CharName = 'Romeo', 1, 0)), SUM(IIF(T4.CharName = 'Juliet', 1, 0)), CAST(SUM(IIF(T4.CharName = 'Romeo', 1, 0)) + SUM(IIF(T4.CharName = 'Juliet', 1, 0)) AS REAL) * 100 / COUNT(T1.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id
Database: shakespeare
Question: What is the paragraph number with plain text "This is Illyria, lady"?
Evidence: paragraph number refers to ParagraphNum
SQL: SELECT ParagraphNum FROM paragraphs WHERE PlainText = 'This is Illyria, lady.'
Database: shakespeare
Question: How many number of paragraphs are there in chapter ID 18881?
Evidence: number of paragraphs refers to ParagraphNum
SQL: SELECT COUNT(ParagraphNum) FROM paragraphs WHERE chapter_id = 18881
Database: shakespeare
Question: List down any 5 titles in the history genre.
Evidence: in the history genre refers to GenreType = 'History'
SQL: SELECT Title FROM works WHERE GenreType = 'History' LIMIT 5
Database: shakespeare
Question: How many scenes are there in Act 5 of work ID 9?
SQL: SELECT COUNT(Scene) FROM chapters WHERE work_id = 9 AND Act = 5
Database: shakespeare
Question: List the character names and descriptions of chapter ID 18710.
Evidence: character names refers to CharName
SQL: SELECT DISTINCT T1.CharName, T1.Description FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.Chapter_id = 18710
Database: shakespeare
Question: How many chapters are there in "Midsummer Night's Dream"?
Evidence: in "Midsummer Night's Dream" refers to Title = 'Midsummer Night's Dream'
SQL: SELECT COUNT(T2.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.Title = 'Midsummer Night''s Dream'
Database: shakespeare
Question: How many paragraphs are there in Act 5 Scene 1 of "Comedy of Errors"?
Evidence: "Comedy of Errors" refers to Title = 'Comedy of Errors'
SQL: SELECT COUNT(T3.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id WHERE T2.Act = 5 AND T2.Scene = 1 AND T1.Title = 'Comedy of Errors'
Database: shakespeare
Question: What are the character names and descriptions of characters in "Venus and Adonis"?
Evidence: character names refers to CharName; "Venus and Adonis" refers to Title = 'Venus and Adonis'
SQL: SELECT DISTINCT T4.CharName, T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T1.Title = 'Venus and Adonis'
Database: shakespeare
Question: What is the title which has character named "Froth"?
Evidence: character named "Froth" refers to CharName = 'Froth'
SQL: SELECT DISTINCT T1.title FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T4.CharName = 'Froth'
Database: shakespeare
Question: How many chapters include the character name "First Witch"?
Evidence: character name "First Witch" refers to CharName = 'First Witch'
SQL: SELECT COUNT(T2.chapter_id) FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.CharName = 'First Witch'
Database: shakespeare
Question: List the scenes and descriptions in Act 1 of " Pericles, Prince of Tyre".
Evidence: " Pericles, Prince of Tyre" refers to LongTitle = 'Pericles, Prince of Tyre'
SQL: SELECT T2.Scene, T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.LongTitle = 'Pericles, Prince of Tyre' AND T2.Act = 1
Database: shakespeare
Question: Describe the full title which had the character named Servant to Montague.
Evidence: full title refers to LongTitle; character named Servant to Montague refers to characters.Description = 'Servant to Montague'
SQL: SELECT DISTINCT T1.LongTitle FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T4.Description = 'Servant to Montague'
Database: shakespeare
Question: Describe the scene number, act, and title of work which had the description of "The house of ANTIPHOLUS of Ephesus" in chapter.
SQL: SELECT T2.Act, T2.Scene, T1.Title FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Description = 'The house of ANTIPHOLUS of Ephesus.'
Database: shakespeare
Question: Provide the character name, paragraph number, and plain text of "cousin to the king" description.
Evidence: character name refers to CharName; paragraph number refers to ParagraphNum
SQL: SELECT T1.CharName, T2.ParagraphNum, T2.PlainText FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.Description = 'cousin to the king'
Database: shakespeare
Question: Calculate average scene per act in Antony and Cleopatra.
Evidence: Antony and Cleopatra refers to Title = 'Antony and Cleopatra'; average scene per act = divide(sum(Scene), count(act))

SQL: SELECT CAST(SUM(T2.Scene) AS REAL) / COUNT(T2.act) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.Title = 'Antony and Cleopatra'
Database: shakespeare
Question: Calculate the percentage of paragraphs in all chapters of "All's Well That Ends Well".
Evidence: "All's Well That Ends Well" refers to Title = 'All's Well That Ends Well'; percentage = divide(sum(paragraphs.id) when Title = 'All's Well That Ends Well', count(paragraphs.id)) as percentage
SQL: SELECT CAST(SUM(IIF(T1.Title = 'All''s Well That Ends Well', 1, 0)) AS REAL) * 100 / COUNT(T3.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id
Database: shakespeare
Question: How many "all" character names have the "all" abbreviation?
Evidence: character names refers to CharName；"all" abbreviation refers to Abbrev = 'all'
SQL: SELECT COUNT(id) FROM characters WHERE Abbrev = 'All'
Database: shakespeare
Question: Please name any three comedic works.
Evidence: comedic works refers to GenreType = 'comedy'
SQL: SELECT Title FROM works WHERE GenreType = 'comedy' LIMIT 3
Database: shakespeare
Question: From 1593 onwards, what is the difference between the number of comedy works and history works?
Evidence: From 1593 onwards refers to Date > 1593; comedy works and history works refers to GenreType = 'comedy' and GenreType = 'History'
SQL: SELECT SUM(IIF(GenreType = 'Comedy', 1, 0)) - SUM(IIF(GenreType = 'History', 1, 0)) FROM works WHERE Date > 1593
Database: shakespeare
Question: Please name the latest historical work.
Evidence: name refers to LongTitle; latest historical work refers to GenreType = 'History' and max(Date)
SQL: SELECT LongTitle FROM works WHERE GenreType = 'History' ORDER BY Date DESC LIMIT 1
Database: shakespeare
Question: What are the work numbers that are related to King Henry?
Evidence: work numbers refers to works.id; related to King Henry refers to Title = '%Henry%'
SQL: SELECT id FROM works WHERE Title LIKE '%Henry%'
Database: shakespeare
Question: What are the character names for a senator of Venice?
Evidence: character names refers to CharName; a senator of Venice refers to characters.Description = 'a senator of Venice'
SQL: SELECT CharName FROM characters WHERE Description = 'a senator of Venice'
Database: shakespeare
Question: What is the name of the character that can be found in paragraph 8 of chapter 18820?
Evidence: name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820
SQL: SELECT T1.CharName FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.ParagraphNum = 8 AND T2.chapter_id = 18820
Database: shakespeare
Question: What is the description of chapter 18704, where there is a character called Orsino?
Evidence: chapter 18704 refers to chapters.id = 18704; character called Orsino refers to CharName = 'Orsino'
SQL: SELECT DISTINCT T3.Description FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id INNER JOIN chapters AS T3 ON T2.chapter_id = T3.id WHERE T1.CharName = 'Orsino' AND T3.ID = 18704
Database: shakespeare
Question: How many scenes can be found in "Twelfth Night, Or What You Will"?
Evidence: "Twelfth Night, Or What You Will" refers to LongTitle
SQL: SELECT COUNT(T2.Scene) AS cnt FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.LongTitle = 'Cymbeline, King of Britain'
Database: shakespeare
Question: Please list all of the character descriptions in paragraph 20.
Evidence: paragraph 20 refers to ParagraphNum = 20
SQL: SELECT T1.Description FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.ParagraphNum = 20
Database: shakespeare
Question: How many chapters have the name Gratiano as a character for "friend to Antonio and Bassiano"?
Evidence: name Gratiano as a character refers to CharName = 'Gratiano'; "friend to Antonio and Bassiano" refers to characters.Description = 'friend to Antonio and Bassiano'
SQL: SELECT COUNT(DISTINCT T2.chapter_id) FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.CharName = 'Gratiano' AND T1.Description = 'friend to Antonio and Bassiano'
Database: shakespeare
Question: What is the description of chapter 18706 in "All's Well That Ends Well"?
Evidence: chapter 18706 refers to chapters.id; "All's Well That Ends Well" refers to Title = 'All's Well That Ends Well'
SQL: SELECT T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.id = 18706 AND T1.Title = 'All''s Well That Ends Well'
Database: shakespeare
Question: What are the character names in paragraph 3?
Evidence: character names refers to CharName; paragraph 3 refers to ParagraphNum = 3
SQL: SELECT DISTINCT T1.CharName FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.ParagraphNum = 3
Database: shakespeare
Question: Please list all of the paragraphs that have the character name Aedile.
Evidence: paragraphs  refers to ParagraphNum; character name Aedile refers to CharName = 'Aedile'
SQL: SELECT T2.ParagraphNum FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.CharName = 'Aedile'
Database: shakespeare
Question: Please list any two character names in chapter 18708.
Evidence: character names refers to CharName; chapter 18708 refers to chapter_id = 18708
SQL: SELECT T1.CharName FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.chapter_id = 18708 LIMIT 2
Database: shakespeare
Question: How many acts can be found in the comedy "Two Gentlemen of Verona"?
Evidence: comedy refers to GenreType = 'comedy'; "Two Gentlemen of Verona" refers to Title = 'Two Gentlemen of Verona'
SQL: SELECT COUNT(T1.ACT) FROM chapters AS T1 LEFT JOIN works AS T2 ON T1.work_id = T2.id WHERE T2.GenreType = 'Comedy' AND T2.Title = 'Two Gentlemen of Verona'
Database: shakespeare
Question: What is the percentage of historical works that have not fewer than five scenes in the 1500s?
Evidence: historical works refers to GenreType = 'history'; have not fewer than five scenes in the 1500s refers to count(Scene) > = 5 and DATE > = 1500 AND DATE < = 1599; percentage = divide(count(works.id) where GenreType = 'history' and count(Scene) > = 5, count(works.id) ) as percentage
SQL: SELECT CAST(( SELECT COUNT(T1.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.GenreType = 'History' AND T1.DATE BETWEEN 1500 AND 1599 GROUP BY T1.id HAVING COUNT(T2.Scene) >= 5 ) AS REAL) * 100 / COUNT(id) FROM works WHERE GenreType = 'History' AND DATE BETWEEN 1500 AND 1599
Database: shakespeare
Question: What is the percentage of act number 5 in Titus Andronicus?
Evidence: act number 5 refers to Act = 5; Titus Andronicus refers to Title = 'Titus Andronicus'; percentage = divide(sum(Act = 5), count(Act)) as percentage
SQL: SELECT CAST(SUM(IIF(T2.act = 5, 1, 0)) AS REAL) * 100 / COUNT(T2.act) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.Title = 'Titus Andronicus'
Database: shakespeare
Question: How many of the works of Shakespeare are Tragedy?
Evidence: Tragedy refers to GenreType = 'Tragedy'
SQL: SELECT COUNT(id) FROM works WHERE GenreType = 'Tragedy'
Database: shakespeare
Question: Among the works of Shakespeare, how many of them have the word "Henry" on its title?
Evidence: works refers to Title; have the word "Henry" on its title refers to Title = '%Henry%'
SQL: SELECT COUNT(id) FROM works WHERE Title LIKE '%Henry%'
Database: shakespeare
Question: Give the character's ID of the character that said the paragraph "O my poor brother! and so perchance may he be."
Evidence: "O my poor brother! and so perchance may he be." refers to  PlainText = 'O my poor brother! and so perchance may he be.'
SQL: SELECT character_id FROM paragraphs WHERE PlainText = 'O my poor brother! and so perchance may he be.'
Database: shakespeare
Question: List the paragraph number and paragraphs said by the character named "Sir Andrew Aguecheek".
Evidence: paragraph number refers to ParagraphNum; character named "Sir Andrew Aguecheek" refers to CharName = 'Sir Andrew Aguecheek'
SQL: SELECT T2.ParagraphNum, T2.id FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.CharName = 'Sir Andrew Aguecheek'
Database: shakespeare
Question: Give the title and the characters name of the most recent work of Shakespeare.
Evidence: characters name refers to CharName; most recent work refers to max(Date)
SQL: SELECT T1.Title, T4.CharName FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id ORDER BY T1.Date DESC LIMIT 1
Database: shakespeare
Question: Among paragraphs with paragraph number between 1900 to 1950, list the texts said by a character described as a sea captain, friend to Sebatian.
Evidence: paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'
SQL: SELECT T1.description FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.PlainText = 'a sea captain, friend to Sebastian' AND T2.ParagraphNum BETWEEN 1500 AND 1950
Database: shakespeare
Question: What is the long title of the Shakespeare's work with Act 4 Scene 5 described as "Mytilene. A street before the brothel."?
Evidence: described as "Mytilene. A street before the brothel." refers to chapters.Description = 'Mytilene. A street before the brothel.'
SQL: SELECT T1.LongTitle FROM works AS T1 RIGHT JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Description = 'Mytilene. A street before the brothel.'
Database: shakespeare
Question: Who is the character that said "This is Illyria, lady."?
Evidence: character refers to CharName; "This is Illyria, lady." refers to PlainText = 'This is Illyria, lady.'
SQL: SELECT T1.CharName FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.PlainText = 'This is Illyria, lady.'