QIAN-ME/bird_schema_data huggingface dataset:
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shakespeare
【Schema】
# Table: works
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Twelfth Night]),
(LongTitle:TEXT, Examples: [Twelfth Night, Or What You Will]),
(Date:INTEGER, Examples: [1599, 1602, 1606]),
(GenreType:TEXT, Examples: [Comedy, Tragedy, History])
]
# Table: characters
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(CharName:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Abbrev:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Description:TEXT, Examples: [A senator of Venice])
]
# Table: paragraphs
[
(id:INTEGER, Primary Key, Examples: [630863, 630864, 630865]),
(ParagraphNum:INTEGER, Examples: [3, 4, 19]),
(PlainText:TEXT),
(character_id:INTEGER, Examples: [1261, 840, 297]),
(chapter_id:INTEGER, Examples: [18704, 18705, 18706])
]
# Table: chapters
[
(id:INTEGER, Primary Key, Examples: [18704, 18705, 18706]),
(Act:INTEGER, Examples: [1, 2, 3]),
(Scene:INTEGER, Examples: [1, 2, 3]),
(Description:TEXT, Examples: [DUKE ORSINO’s palace.]),
(work_id:INTEGER, Examples: [1, 2, 3])
]
【Foreign keys】
paragraphs.chapter_id=chapters.id
paragraphs.character_id=characters.id
chapters.work_id=works.id

    【Question】
    Give the description for the Act No.2, Scene No.2 of Midsummer Night's Dream. Act No.2 refers to Act = '2'; Scene No.2  refers to Scene = '2'; Midsummer Night's Dream refers to Title = 'Midsummer Night''s Dream'

    【Evidence】
    Act No.2 refers to Act = '2'; Scene No.2  refers to Scene = '2'; Midsummer Night's Dream refers to Title = 'Midsummer Night''s Dream'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = '2' AND T2.Scene = '2' AND T1.Title = 'Midsummer Night''s Dream'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shakespeare
【Schema】
# Table: works
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Twelfth Night]),
(LongTitle:TEXT, Examples: [Twelfth Night, Or What You Will]),
(Date:INTEGER, Examples: [1599, 1602, 1606]),
(GenreType:TEXT, Examples: [Comedy, Tragedy, History])
]
# Table: characters
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(CharName:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Abbrev:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Description:TEXT, Examples: [A senator of Venice])
]
# Table: paragraphs
[
(id:INTEGER, Primary Key, Examples: [630863, 630864, 630865]),
(ParagraphNum:INTEGER, Examples: [3, 4, 19]),
(PlainText:TEXT),
(character_id:INTEGER, Examples: [1261, 840, 297]),
(chapter_id:INTEGER, Examples: [18704, 18705, 18706])
]
# Table: chapters
[
(id:INTEGER, Primary Key, Examples: [18704, 18705, 18706]),
(Act:INTEGER, Examples: [1, 2, 3]),
(Scene:INTEGER, Examples: [1, 2, 3]),
(Description:TEXT, Examples: [DUKE ORSINO’s palace.]),
(work_id:INTEGER, Examples: [1, 2, 3])
]
【Foreign keys】
paragraphs.chapter_id=chapters.id
paragraphs.character_id=characters.id
chapters.work_id=works.id

    【Question】
    Which Shakespeare tragedy has the most scenes? Give the long title. tragedy refers to GenreType = 'Tragedy'; most scenes refers to max(count(Scene))

    【Evidence】
    tragedy refers to GenreType = 'Tragedy'; most scenes refers to max(count(Scene))

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T.LongTitle FROM ( SELECT T1.LongTitle, COUNT(T2.Scene) AS num FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.GenreType = 'Tragedy' GROUP BY T1.LongTitle, T2.Scene ) AS T ORDER BY T.num DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shakespeare
【Schema】
# Table: works
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Twelfth Night]),
(LongTitle:TEXT, Examples: [Twelfth Night, Or What You Will]),
(Date:INTEGER, Examples: [1599, 1602, 1606]),
(GenreType:TEXT, Examples: [Comedy, Tragedy, History])
]
# Table: characters
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(CharName:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Abbrev:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Description:TEXT, Examples: [A senator of Venice])
]
# Table: paragraphs
[
(id:INTEGER, Primary Key, Examples: [630863, 630864, 630865]),
(ParagraphNum:INTEGER, Examples: [3, 4, 19]),
(PlainText:TEXT),
(character_id:INTEGER, Examples: [1261, 840, 297]),
(chapter_id:INTEGER, Examples: [18704, 18705, 18706])
]
# Table: chapters
[
(id:INTEGER, Primary Key, Examples: [18704, 18705, 18706]),
(Act:INTEGER, Examples: [1, 2, 3]),
(Scene:INTEGER, Examples: [1, 2, 3]),
(Description:TEXT, Examples: [DUKE ORSINO’s palace.]),
(work_id:INTEGER, Examples: [1, 2, 3])
]
【Foreign keys】
paragraphs.chapter_id=chapters.id
paragraphs.character_id=characters.id
chapters.work_id=works.id

    【Question】
    How many paragraphs are there in the scene whose description is "A Sea-port in Cyprus. An open place near the quay."?

    【Evidence】
    

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT SUM(T2.ParagraphNum) FROM chapters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.chapter_id WHERE T1.Description = 'A Sea-port in Cyprus. An open place near the quay.'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shakespeare
【Schema】
# Table: works
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Twelfth Night]),
(LongTitle:TEXT, Examples: [Twelfth Night, Or What You Will]),
(Date:INTEGER, Examples: [1599, 1602, 1606]),
(GenreType:TEXT, Examples: [Comedy, Tragedy, History])
]
# Table: characters
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(CharName:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Abbrev:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Description:TEXT, Examples: [A senator of Venice])
]
# Table: paragraphs
[
(id:INTEGER, Primary Key, Examples: [630863, 630864, 630865]),
(ParagraphNum:INTEGER, Examples: [3, 4, 19]),
(PlainText:TEXT),
(character_id:INTEGER, Examples: [1261, 840, 297]),
(chapter_id:INTEGER, Examples: [18704, 18705, 18706])
]
# Table: chapters
[
(id:INTEGER, Primary Key, Examples: [18704, 18705, 18706]),
(Act:INTEGER, Examples: [1, 2, 3]),
(Scene:INTEGER, Examples: [1, 2, 3]),
(Description:TEXT, Examples: [DUKE ORSINO’s palace.]),
(work_id:INTEGER, Examples: [1, 2, 3])
]
【Foreign keys】
paragraphs.chapter_id=chapters.id
paragraphs.character_id=characters.id
chapters.work_id=works.id

    【Question】
    What percentage of all scenes are tragic scenes in Shakespeare's work in 1594? tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage

    【Evidence】
    tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT CAST(SUM(IIF(T2.GenreType = 'Tragedy', 1, 0)) AS REAL) * 100 / COUNT(T1.Scene) FROM chapters AS T1 INNER JOIN works AS T2 ON T1.work_id = T2.id WHERE T2.Date = '1594'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shakespeare
【Schema】
# Table: works
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Twelfth Night]),
(LongTitle:TEXT, Examples: [Twelfth Night, Or What You Will]),
(Date:INTEGER, Examples: [1599, 1602, 1606]),
(GenreType:TEXT, Examples: [Comedy, Tragedy, History])
]
# Table: characters
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(CharName:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Abbrev:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Description:TEXT, Examples: [A senator of Venice])
]
# Table: paragraphs
[
(id:INTEGER, Primary Key, Examples: [630863, 630864, 630865]),
(ParagraphNum:INTEGER, Examples: [3, 4, 19]),
(PlainText:TEXT),
(character_id:INTEGER, Examples: [1261, 840, 297]),
(chapter_id:INTEGER, Examples: [18704, 18705, 18706])
]
# Table: chapters
[
(id:INTEGER, Primary Key, Examples: [18704, 18705, 18706]),
(Act:INTEGER, Examples: [1, 2, 3]),
(Scene:INTEGER, Examples: [1, 2, 3]),
(Description:TEXT, Examples: [DUKE ORSINO’s palace.]),
(work_id:INTEGER, Examples: [1, 2, 3])
]
【Foreign keys】
paragraphs.chapter_id=chapters.id
paragraphs.character_id=characters.id
chapters.work_id=works.id

    【Question】
    Gives the average number of chapters in Shakespeare's 1599 work. 1599 work refers to Date = '1599'; average number refers to divide(count(chapters.id), count(works.id))

    【Evidence】
    1599 work refers to Date = '1599'; average number refers to divide(count(chapters.id), count(works.id))

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT CAST(COUNT(T1.id) AS REAL) / COUNT(DISTINCT T2.id) FROM chapters AS T1 INNER JOIN works AS T2 ON T1.work_id = T2.id WHERE T2.Date = '1599'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shakespeare
【Schema】
# Table: works
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Twelfth Night]),
(LongTitle:TEXT, Examples: [Twelfth Night, Or What You Will]),
(Date:INTEGER, Examples: [1599, 1602, 1606]),
(GenreType:TEXT, Examples: [Comedy, Tragedy, History])
]
# Table: characters
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(CharName:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Abbrev:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Description:TEXT, Examples: [A senator of Venice])
]
# Table: paragraphs
[
(id:INTEGER, Primary Key, Examples: [630863, 630864, 630865]),
(ParagraphNum:INTEGER, Examples: [3, 4, 19]),
(PlainText:TEXT),
(character_id:INTEGER, Examples: [1261, 840, 297]),
(chapter_id:INTEGER, Examples: [18704, 18705, 18706])
]
# Table: chapters
[
(id:INTEGER, Primary Key, Examples: [18704, 18705, 18706]),
(Act:INTEGER, Examples: [1, 2, 3]),
(Scene:INTEGER, Examples: [1, 2, 3]),
(Description:TEXT, Examples: [DUKE ORSINO’s palace.]),
(work_id:INTEGER, Examples: [1, 2, 3])
]
【Foreign keys】
paragraphs.chapter_id=chapters.id
paragraphs.character_id=characters.id
chapters.work_id=works.id

    【Question】
    How many "servant to Timon" characters are there? servant to Timon refers to characters.Description = 'servant to Timon'

    【Evidence】
    servant to Timon refers to characters.Description = 'servant to Timon'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(id) FROM characters WHERE Description = 'servant to Timon'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shakespeare
【Schema】
# Table: works
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Twelfth Night]),
(LongTitle:TEXT, Examples: [Twelfth Night, Or What You Will]),
(Date:INTEGER, Examples: [1599, 1602, 1606]),
(GenreType:TEXT, Examples: [Comedy, Tragedy, History])
]
# Table: characters
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(CharName:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Abbrev:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Description:TEXT, Examples: [A senator of Venice])
]
# Table: paragraphs
[
(id:INTEGER, Primary Key, Examples: [630863, 630864, 630865]),
(ParagraphNum:INTEGER, Examples: [3, 4, 19]),
(PlainText:TEXT),
(character_id:INTEGER, Examples: [1261, 840, 297]),
(chapter_id:INTEGER, Examples: [18704, 18705, 18706])
]
# Table: chapters
[
(id:INTEGER, Primary Key, Examples: [18704, 18705, 18706]),
(Act:INTEGER, Examples: [1, 2, 3]),
(Scene:INTEGER, Examples: [1, 2, 3]),
(Description:TEXT, Examples: [DUKE ORSINO’s palace.]),
(work_id:INTEGER, Examples: [1, 2, 3])
]
【Foreign keys】
paragraphs.chapter_id=chapters.id
paragraphs.character_id=characters.id
chapters.work_id=works.id

    【Question】
    What is the title of the first ever work of William Shakespeare? first ever work refers to min(Date)

    【Evidence】
    first ever work refers to min(Date)

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT Title FROM works WHERE Date = ( SELECT MIN(Date) FROM works )
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shakespeare
【Schema】
# Table: works
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Twelfth Night]),
(LongTitle:TEXT, Examples: [Twelfth Night, Or What You Will]),
(Date:INTEGER, Examples: [1599, 1602, 1606]),
(GenreType:TEXT, Examples: [Comedy, Tragedy, History])
]
# Table: characters
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(CharName:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Abbrev:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Description:TEXT, Examples: [A senator of Venice])
]
# Table: paragraphs
[
(id:INTEGER, Primary Key, Examples: [630863, 630864, 630865]),
(ParagraphNum:INTEGER, Examples: [3, 4, 19]),
(PlainText:TEXT),
(character_id:INTEGER, Examples: [1261, 840, 297]),
(chapter_id:INTEGER, Examples: [18704, 18705, 18706])
]
# Table: chapters
[
(id:INTEGER, Primary Key, Examples: [18704, 18705, 18706]),
(Act:INTEGER, Examples: [1, 2, 3]),
(Scene:INTEGER, Examples: [1, 2, 3]),
(Description:TEXT, Examples: [DUKE ORSINO’s palace.]),
(work_id:INTEGER, Examples: [1, 2, 3])
]
【Foreign keys】
paragraphs.chapter_id=chapters.id
paragraphs.character_id=characters.id
chapters.work_id=works.id

    【Question】
    How many poems did Shakespeare write? poems refers to GenreType = 'Poem'

    【Evidence】
    poems refers to GenreType = 'Poem'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(id) FROM works WHERE GenreType = 'Poem'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shakespeare
【Schema】
# Table: works
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Twelfth Night]),
(LongTitle:TEXT, Examples: [Twelfth Night, Or What You Will]),
(Date:INTEGER, Examples: [1599, 1602, 1606]),
(GenreType:TEXT, Examples: [Comedy, Tragedy, History])
]
# Table: characters
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(CharName:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Abbrev:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Description:TEXT, Examples: [A senator of Venice])
]
# Table: paragraphs
[
(id:INTEGER, Primary Key, Examples: [630863, 630864, 630865]),
(ParagraphNum:INTEGER, Examples: [3, 4, 19]),
(PlainText:TEXT),
(character_id:INTEGER, Examples: [1261, 840, 297]),
(chapter_id:INTEGER, Examples: [18704, 18705, 18706])
]
# Table: chapters
[
(id:INTEGER, Primary Key, Examples: [18704, 18705, 18706]),
(Act:INTEGER, Examples: [1, 2, 3]),
(Scene:INTEGER, Examples: [1, 2, 3]),
(Description:TEXT, Examples: [DUKE ORSINO’s palace.]),
(work_id:INTEGER, Examples: [1, 2, 3])
]
【Foreign keys】
paragraphs.chapter_id=chapters.id
paragraphs.character_id=characters.id
chapters.work_id=works.id

    【Question】
    How many scenes are there in work id 7, act 1?

    【Evidence】
    

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(id) FROM chapters WHERE work_id = 7 AND Act = 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shakespeare
【Schema】
# Table: works
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Twelfth Night]),
(LongTitle:TEXT, Examples: [Twelfth Night, Or What You Will]),
(Date:INTEGER, Examples: [1599, 1602, 1606]),
(GenreType:TEXT, Examples: [Comedy, Tragedy, History])
]
# Table: characters
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(CharName:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Abbrev:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Description:TEXT, Examples: [A senator of Venice])
]
# Table: paragraphs
[
(id:INTEGER, Primary Key, Examples: [630863, 630864, 630865]),
(ParagraphNum:INTEGER, Examples: [3, 4, 19]),
(PlainText:TEXT),
(character_id:INTEGER, Examples: [1261, 840, 297]),
(chapter_id:INTEGER, Examples: [18704, 18705, 18706])
]
# Table: chapters
[
(id:INTEGER, Primary Key, Examples: [18704, 18705, 18706]),
(Act:INTEGER, Examples: [1, 2, 3]),
(Scene:INTEGER, Examples: [1, 2, 3]),
(Description:TEXT, Examples: [DUKE ORSINO’s palace.]),
(work_id:INTEGER, Examples: [1, 2, 3])
]
【Foreign keys】
paragraphs.chapter_id=chapters.id
paragraphs.character_id=characters.id
chapters.work_id=works.id

    【Question】
    In the year 1500s, how many tragedies did Shakespeare write? year 1500s refers to Date between 1500 and 1599; tragedies refers to GenreType = 'Tragedy'

    【Evidence】
    year 1500s refers to Date between 1500 and 1599; tragedies refers to GenreType = 'Tragedy'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(id) FROM works WHERE GenreType = 'Tragedy' AND Date BETWEEN 1500 AND 1599
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shakespeare
【Schema】
# Table: works
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Twelfth Night]),
(LongTitle:TEXT, Examples: [Twelfth Night, Or What You Will]),
(Date:INTEGER, Examples: [1599, 1602, 1606]),
(GenreType:TEXT, Examples: [Comedy, Tragedy, History])
]
# Table: characters
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(CharName:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Abbrev:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Description:TEXT, Examples: [A senator of Venice])
]
# Table: paragraphs
[
(id:INTEGER, Primary Key, Examples: [630863, 630864, 630865]),
(ParagraphNum:INTEGER, Examples: [3, 4, 19]),
(PlainText:TEXT),
(character_id:INTEGER, Examples: [1261, 840, 297]),
(chapter_id:INTEGER, Examples: [18704, 18705, 18706])
]
# Table: chapters
[
(id:INTEGER, Primary Key, Examples: [18704, 18705, 18706]),
(Act:INTEGER, Examples: [1, 2, 3]),
(Scene:INTEGER, Examples: [1, 2, 3]),
(Description:TEXT, Examples: [DUKE ORSINO’s palace.]),
(work_id:INTEGER, Examples: [1, 2, 3])
]
【Foreign keys】
paragraphs.chapter_id=chapters.id
paragraphs.character_id=characters.id
chapters.work_id=works.id

    【Question】
    Who is the daughter of Capulet? daughter of Capulet refers to characters.Description = 'Daughter to Capulet'

    【Evidence】
    daughter of Capulet refers to characters.Description = 'Daughter to Capulet'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT CharName FROM characters WHERE Description = 'Daughter to Capulet'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shakespeare
【Schema】
# Table: works
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Twelfth Night]),
(LongTitle:TEXT, Examples: [Twelfth Night, Or What You Will]),
(Date:INTEGER, Examples: [1599, 1602, 1606]),
(GenreType:TEXT, Examples: [Comedy, Tragedy, History])
]
# Table: characters
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(CharName:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Abbrev:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Description:TEXT, Examples: [A senator of Venice])
]
# Table: paragraphs
[
(id:INTEGER, Primary Key, Examples: [630863, 630864, 630865]),
(ParagraphNum:INTEGER, Examples: [3, 4, 19]),
(PlainText:TEXT),
(character_id:INTEGER, Examples: [1261, 840, 297]),
(chapter_id:INTEGER, Examples: [18704, 18705, 18706])
]
# Table: chapters
[
(id:INTEGER, Primary Key, Examples: [18704, 18705, 18706]),
(Act:INTEGER, Examples: [1, 2, 3]),
(Scene:INTEGER, Examples: [1, 2, 3]),
(Description:TEXT, Examples: [DUKE ORSINO’s palace.]),
(work_id:INTEGER, Examples: [1, 2, 3])
]
【Foreign keys】
paragraphs.chapter_id=chapters.id
paragraphs.character_id=characters.id
chapters.work_id=works.id

    【Question】
    How many paragraphs are there in "Ay, surely, mere the truth: I know his lady."? "Ay, surely, mere the truth: I know his lady." refers to PlainText = '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.'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT ParagraphNum FROM paragraphs WHERE PlainText = 'Ay, surely, mere the truth: I know his lady.'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shakespeare
【Schema】
# Table: works
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Title:TEXT, Examples: [Twelfth Night]),
(LongTitle:TEXT, Examples: [Twelfth Night, Or What You Will]),
(Date:INTEGER, Examples: [1599, 1602, 1606]),
(GenreType:TEXT, Examples: [Comedy, Tragedy, History])
]
# Table: characters
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(CharName:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Abbrev:TEXT, Examples: [First Apparition, First Citizen, First Conspirator]),
(Description:TEXT, Examples: [A senator of Venice])
]
# Table: paragraphs
[
(id:INTEGER, Primary Key, Examples: [630863, 630864, 630865]),
(ParagraphNum:INTEGER, Examples: [3, 4, 19]),
(PlainText:TEXT),
(character_id:INTEGER, Examples: [1261, 840, 297]),
(chapter_id:INTEGER, Examples: [18704, 18705, 18706])
]
# Table: chapters
[
(id:INTEGER, Primary Key, Examples: [18704, 18705, 18706]),
(Act:INTEGER, Examples: [1, 2, 3]),
(Scene:INTEGER, Examples: [1, 2, 3]),
(Description:TEXT, Examples: [DUKE ORSINO’s palace.]),
(work_id:INTEGER, Examples: [1, 2, 3])
]
【Foreign keys】
paragraphs.chapter_id=chapters.id
paragraphs.character_id=characters.id
chapters.work_id=works.id

    【Question】
    What is the long title of the work with the highest number of scenes in act 1? highest number of scenes refers to max(count(Scene))

    【Evidence】
    highest number of scenes refers to max(count(Scene))

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

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