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】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    How many pages does the Catalan language have in Wikipedia? Catalan language refers to lang = 'ca'

    【Evidence】
    Catalan language refers to lang = 'ca'

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

SQL: SELECT pages FROM langs WHERE lang = 'ca'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    Which word has the most repetitions in the Catalan language? Give the ID of the word. word with the most repetitions refers to MAX(occurrences); ID of the word refers to wid

    【Evidence】
    word with the most repetitions refers to MAX(occurrences); ID of the word refers to wid

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

SQL: SELECT wid FROM langs_words WHERE occurrences = ( SELECT MAX(occurrences) FROM langs_words )
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    What is the word ID for the second word for the biwords pair with most repetitions? second word refers to w2nd; biwords pair with most repetitions refers to MAX(biwords.occurrences)

    【Evidence】
    second word refers to w2nd; biwords pair with most repetitions refers to MAX(biwords.occurrences)

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

SQL: SELECT w2nd FROM biwords WHERE occurrences = ( SELECT MAX(occurrences) FROM biwords )
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    How many occurrences does the word "panajot" have? panajot refers to word = 'panajot'

    【Evidence】
    panajot refers to word = 'panajot'

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

SQL: SELECT occurrences FROM words WHERE word = 'panajot'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    Which word has the time of occurrences as 340691? occurrences of 340691 refers to occurrences = 340691

    【Evidence】
    occurrences of 340691 refers to occurrences = 340691

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

SQL: SELECT word FROM words WHERE occurrences = 340691
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    State the word ID for "periodograma". word ID refers to wid; periodograma refers to word = 'periodograma'

    【Evidence】
    word ID refers to wid; periodograma refers to word = 'periodograma'

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

SQL: SELECT wid FROM words WHERE word = 'periodograma'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    For the biwords pair that appears "116430" times, what is the second word of the pair? the biwords pair that appears "116430" times refers to occurrences = 116430; second word of the pair refers to w2nd

    【Evidence】
    the biwords pair that appears "116430" times refers to occurrences = 116430; second word of the pair refers to w2nd

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

SQL: SELECT T1.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w2nd WHERE T2.occurrences = 116430
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    How many times does the word "riu" appears in the biwords pair? riu refers to word = 'riu'; SUM(w1st where wid is word = 'riu' AND w2nd where wid is word = 'riu')

    【Evidence】
    riu refers to word = 'riu'; SUM(w1st where wid is word = 'riu' AND w2nd where wid is word = 'riu')

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

SQL: SELECT COUNT(T1.wid) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st INNER JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T1.word = 'riu'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    Which word has the most appearances in the Wikipedia page with the title of "Agricultura"? Give the word ID. Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences)

    【Evidence】
    Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences)

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

SQL: SELECT T2.wid FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.title = 'Agricultura' ORDER BY T2.occurrences DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    How many appearances does the word ID No. 2823 have in the Wikipedia page "Astre"? Astre refers to title = 'Astre'; word ID No. 2823 refers to wid = 2823; appearances refers to pages_words_sampling.occurrences

    【Evidence】
    Astre refers to title = 'Astre'; word ID No. 2823 refers to wid = 2823; appearances refers to pages_words_sampling.occurrences

    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.occurrences) FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.title = 'Astre' AND T2.wid = 2823
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    In which Wikipedia page does the word ID No. 174 have the most appearances? Give the title. word ID No. 174 refers to wid = 174; appearances refers to pages_words_sampling.occurrences

    【Evidence】
    word ID No. 174 refers to wid = 174; appearances refers to pages_words_sampling.occurrences

    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 pages WHERE pid = ( SELECT pid FROM pages_words WHERE wid = 174 ORDER BY occurrences DESC LIMIT 1 )