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】
    Please list any three Wikipedia pages that are written in Catalan, together with their titles and revision page numbers. in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;

    【Evidence】
    in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;

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

SQL: SELECT title, revision FROM pages WHERE lid = 1 LIMIT 3
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 language of the pair of words numbered 1 and 616? Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 616;

    【Evidence】
    Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 616;

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

SQL: SELECT T2.lang FROM biwords AS T1 INNER JOIN langs AS T2 ON T1.lid = T2.lid WHERE T1.w1st = 1 AND T1.w2nd = 616
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 Catalan word "nombre" repeat itself? the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;

    【Evidence】
    the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;

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

SQL: SELECT T1.occurrences FROM langs_words AS T1 INNER JOIN words AS T2 ON T1.wid = T2.wid WHERE T2.word = 'nombre'
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 second word in the pair of words number 1 and 8968? Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 8968;

    【Evidence】
    Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 8968;

    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 wid = 8968
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? the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;

    【Evidence】
    the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;

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

SQL: SELECT T2.word FROM langs_words AS T1 INNER JOIN words AS T2 ON T1.wid = T2.wid WHERE T1.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】
    How many times on page number 44 does the word "votives" appear? How many times refers to occurrences; page number 44 refers to pid = 44;

    【Evidence】
    How many times refers to occurrences; page number 44 refers to pid = 44;

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

SQL: SELECT T2.occurrences FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'votives' AND T2.pid = 44
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 on page number 16 does the second word in the pair of words 1 and 109 appear? How many times appear refer to occurrences; page number 16 refers to pid = 16; Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 109;

    【Evidence】
    How many times appear refer to occurrences; page number 16 refers to pid = 16; Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 109;

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

SQL: SELECT SUM(T1.occurrences) FROM pages_words AS T1 INNER JOIN biwords AS T2 ON T2.w2nd = T1.wid WHERE T2.w2nd = 109 AND T2.w1st = 1 AND T1.pid = 16
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 percentage of the words that have been repeated under 180 times in the Catalan language? repeated under 180 times refers to occurrences < 180; Catalan language refers to lang = 'ca'; DIVIDE(COUNT(words WHERE occurrences < 180 and lang = 'ca'), COUNT(words WHERE lang = 'ca')) as percentage;

    【Evidence】
    repeated under 180 times refers to occurrences < 180; Catalan language refers to lang = 'ca'; DIVIDE(COUNT(words WHERE occurrences < 180 and lang = 'ca'), COUNT(words WHERE lang = 'ca')) 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(COUNT(CASE WHEN T2.occurrences < 180 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.lid) FROM langs AS T1 INNER JOIN langs_words AS T2 ON T1.lid = T2.lid WHERE T1.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】
    What percentage of Catalan-language Wikipedia pages have more than 10,000 words? Catalan-language refers to lang = 'ca'; more than 10,000 words refer to words > 10000; DIVIDE(COUNT(pages WHERE words > 10000 and lang = 'ca'), COUNT(pages WHERE lang = 'ca')) as percentage;

    【Evidence】
    Catalan-language refers to lang = 'ca'; more than 10,000 words refer to words > 10000; DIVIDE(COUNT(pages WHERE words > 10000 and lang = 'ca'), COUNT(pages WHERE lang = 'ca')) 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(COUNT(CASE WHEN T2.words > 10000 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.page) FROM langs AS T1 INNER JOIN pages AS T2 ON T1.lid = T2.lid WHERE T1.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】
    How many times the word "desena" occurs? How many times occurs refers to occurrences;

    【Evidence】
    How many times occurs refers to occurrences;

    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 = 'desena'
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 words has the appearance times greater than 10? appearance times greater than 10 refers to occurrences > 10;

    【Evidence】
    appearance times greater than 10 refers to occurrences > 10;

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

SQL: SELECT COUNT(w1st) AS countwords FROM biwords WHERE occurrences > 10