1sf/bird-sql-train-with-schema huggingface dataset:
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: What is the total occurrence of the biwords pairs with "àbac" as its first word?
Evidence: occurrence refers to occurrences; àbac refers to word = 'àbac'; first word refers to w1st
SQL: SELECT COUNT(T2.w1st) 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 = 'àbac'
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: How many Wikipedia pages are there on the language of the biwords pair "àbac-xinès"?
Evidence: àbac refers to word = 'àbac'; xinès refers to word = 'xinès'; Wikipedia pages refer to pages
SQL: SELECT COUNT(T1.pages) FROM langs AS T1 INNER JOIN biwords AS T2 ON T1.lid = T2.lid WHERE T2.w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND T2.w2nd = ( SELECT wid FROM words WHERE word = 'xinès' )
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: How much higher in percentage does the word "grec" occur on the page titled "Àbac" than on the page titled "Astronomia"?
Evidence: grec refers to word = 'grec'; Àbac refers to title = 'Àbac'; Astronomia refers to title = 'Astronomia'; percentage = DIVIDE(SUBTRACT(occurrences where title = 'Àbac' AND word = 'grec', occurrences where title = 'Astronomia' AND word = 'grec'), occurrences where title = 'Astronomia' AND word = 'grec')
SQL: SELECT CAST((SUM(CASE WHEN T3.title = 'Àbac' THEN T2.occurrences END) - SUM(CASE WHEN T3.title = 'Astronomia' THEN T2.occurrences END)) AS REAL) * 100 / SUM(CASE WHEN T3.title = 'Astronomia' THEN T2.occurrences END) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec'
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: How many pages does the Catalan language have in Wikipedia?
Evidence: Catalan language refers to lang = 'ca'
SQL: SELECT pages FROM langs WHERE lang = 'ca'
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: Which word has the most repetitions in the Catalan language? Give the ID of the word.
Evidence: word with the most repetitions refers to MAX(occurrences); ID of the word refers to wid
SQL: SELECT wid FROM langs_words WHERE occurrences = ( SELECT MAX(occurrences) FROM langs_words )
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: What is the word ID for the second word for the biwords pair with most repetitions?
Evidence: second word refers to w2nd; biwords pair with most repetitions refers to MAX(biwords.occurrences)
SQL: SELECT w2nd FROM biwords WHERE occurrences = ( SELECT MAX(occurrences) FROM biwords )
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: How many occurrences does the word "panajot" have?
Evidence: panajot refers to word = 'panajot'
SQL: SELECT occurrences FROM words WHERE word = 'panajot'
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: Which word has the time of occurrences as 340691?
Evidence: occurrences of 340691 refers to occurrences = 340691
SQL: SELECT word FROM words WHERE occurrences = 340691
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: State the word ID for "periodograma".
Evidence: word ID refers to wid; periodograma refers to word = 'periodograma'
SQL: SELECT wid FROM words WHERE word = 'periodograma'
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: For the biwords pair that appears "116430" times, what is the second word of the pair?
Evidence: the biwords pair that appears "116430" times refers to occurrences = 116430; second word of the pair refers to w2nd
SQL: SELECT T1.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w2nd WHERE T2.occurrences = 116430
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: How many times does the word "riu" appears in the biwords pair?
Evidence: riu refers to word = 'riu'; SUM(w1st where wid is word = 'riu' AND w2nd where wid is word = 'riu')
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'
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: Which word has the most appearances in the Wikipedia page with the title of "Agricultura"? Give the word ID.
Evidence: Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences)
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
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: How many appearances does the word ID No. 2823 have in the Wikipedia page "Astre"?
Evidence: Astre refers to title = 'Astre'; word ID No. 2823 refers to wid = 2823; appearances refers to pages_words_sampling.occurrences
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
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: In which Wikipedia page does the word ID No. 174 have the most appearances? Give the title.
Evidence: word ID No. 174 refers to wid = 174; appearances refers to pages_words_sampling.occurrences
SQL: SELECT title FROM pages WHERE pid = ( SELECT pid FROM pages_words WHERE wid = 174 ORDER BY occurrences DESC LIMIT 1 )
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: How many times does the word "heròdot" appear in the Wikipedia page?
Evidence: heròdot refers to word = 'heròdot'; times appear refers to SUM(pid)
SQL: SELECT COUNT(T2.occurrences) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'heròdot'
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: Which word has the most appearances in the Wikipedia page revision ID No. 28278070? Give the word ID.
Evidence: the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid
SQL: SELECT pid FROM pages_words WHERE pid = ( SELECT pid FROM pages WHERE revision = 28278070 ) ORDER BY occurrences DESC LIMIT 1
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: How many times does the biwords "que gregorio" appear in the language?
Evidence: que gregorio refers to w1st = wid where word = 'que' AND w2nd = wid where word = 'gregorio'; appear refers to biwords.occurrences
SQL: SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'que' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'gregorio' )
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: How many biword pairs contain the word "base" as the second word?
Evidence: base refers to word = 'base'; SUM(w2nd) where w2nd = wid for word = 'base'
SQL: SELECT COUNT(w1st) FROM biwords WHERE w2nd = ( SELECT wid FROM words WHERE word = 'base' )
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: How many times of repetition does the word "exemple" show in the Catalan language?
Evidence: exemple refers to word = 'exemple'; repetition refers to langs_words.occurrences; lid = 1 menas it's Catalan language
SQL: SELECT T2.occurrences FROM words AS T1 INNER JOIN langs_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'exemple' AND T2.lid = 1
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: Which word that has 274499 repetitions in the Catalan language?
Evidence: lid = 1 menas it's Catalan language; 274499 repetitions refers to occurrences = 274499
SQL: SELECT T1.word FROM words AS T1 INNER JOIN langs_words AS T2 ON T1.wid = T2.wid WHERE T2.occurrences = 274499 AND T2.lid = 1
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: How many times greater is the appearances of the biword pair "a base" than "a decimal"?
Evidence: a, base AND decimal are words; wid is the ID of word; w1st is the first word of a biword pair; w2nd is the second word of a biword pair; appearances refers to biwords.occurrences; biword pair 'a base' refers to word = 'a' as w1st AND word = 'base' as w2nd; biword pair 'a decimal' refers to word = 'a' as w1st AND word = 'decimal' as w2nd; appearances of 'a base' greater than 'a decimal' refers to DIVIDE(SUBTRACT(biwords.occurrences'a base', biwords.occurrences'a decimal'), biwords.occurrences'a decimal')
SQL: SELECT CAST(occurrences AS REAL) / ( SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'a' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'decimal' ) ) FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'a' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'base' )
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: For the word "grec", what is the percentage of the appearances in the "Art" Wikipedia page have among all the appearances?
Evidence: grec refers to word = 'grec'; Art refers to title = 'Art'; percentage is DIVIDE(occurrences(grec), occurences(Art))*100
SQL: SELECT CAST(SUM(CASE WHEN T3.title = 'Art' THEN T2.occurrences ELSE 0 END) AS REAL) * 100 / SUM(T2.occurrences) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec'
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: How many Wikipedia pages with over 4000 different words are there on the Catalan language?
Evidence: lid = 1 means it's Catalan language; over 4000 different words means words > 4000; Wikipedia pages refers to pid
SQL: SELECT COUNT(lid) FROM pages WHERE lid = 1 AND words > 4000
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: Please list the titles of all the Wikipedia pages on the Catalan language with 10 different words.
Evidence: lid = 1 means it's Catalan language; 10 different words refers to words = 10; titles refers to title
SQL: SELECT title FROM pages WHERE lid = 1 AND words = 10 LIMIT 10
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: What is the word that occurs the most in the Catalan language?
Evidence: MAX(occurrences)
SQL: SELECT word FROM words WHERE occurrences = ( SELECT MAX(occurrences) FROM words )
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: Please list the titles of the top 3 Wikipedia pages with the most different words on the Catalan language.
Evidence: lid = 1 means it's Catalan language; with most different words refers to MAX(words)
SQL: SELECT title FROM pages WHERE lid = 1 ORDER BY words DESC LIMIT 3
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: What is the revision ID for the page on Catalan titled "Arqueologia"?
Evidence: lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision
SQL: SELECT revision FROM pages WHERE lid = 1 AND title = 'Arqueologia'
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: Among the wikipedia pages on Catalan with more than 300 different words, how many of them have a revision ID of over 28330000?
Evidence: lid = 1 means it's Catalan language; more than 300 different words refers to words > 300; revision ID of over 28330000 refers to revision > 28330000
SQL: SELECT COUNT(lid) FROM pages WHERE lid = 1 AND words > 300 AND revision > 28330000
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: Please list the page IDs of all the Wikipedia pages that have the word "nombre" appeared on it.
Evidence: nombre refers to word = 'nombre'; page IDs refers to pid
SQL: SELECT T2.pid FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'nombre'
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: How many Wikipedia pages on Catalan are there with the word "nombre" appearing for more than 5 times?
Evidence: nombre refers to word = 'nombre'; appear for more than 5 times refers to  pages_words.occurrences > 5
SQL: SELECT COUNT(T2.pid) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'nombre' AND T2.occurrences > 5
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: How many biwords pairs are there whose second word is "grec"?
Evidence: grec refers to word = 'grec'; wid where word = 'grec' AS w2nd
SQL: SELECT COUNT(T2.w1st) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w2nd WHERE T1.word = 'grec'
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: What is the title of the page on which the word "grec" has an occurrence of 52 times.
Evidence: occurrence of 52 times refers to pages_words.occurrences = 52; grec refers to word = 'grec'
SQL: SELECT T3.title FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec' AND T2.occurrences = 52
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: Among the biwords pairs with "àbac" as its first word, how many of them have an occurrence of over 10?
Evidence: àbac refers to word = 'àbac'; as first word refers to w1st; occurrence of over 10 refers to occurrences > 10
SQL: SELECT COUNT(T2.w2nd) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st WHERE T1.word = 'àbac' AND T2.occurrences > 10
Database: language_corpus
Tables: langs, pages, words, langs_words, pages_words, biwords
Columns (table index, column name): -1, *, 0, lid, 0, lang, 0, locale, 0, pages, 0, words, 1, pid, 1, lid, 1, page, 1, revision, 1, title, 1, words, 2, wid, 2, word, 2, occurrences, 3, lid, 3, wid, 3, occurrences, 4, pid, 4, wid, 4, occurrences, 5, lid, 5, w1st, 5, w2nd, 5, occurrences
Question: What is the average occurrence of the word "grec" on each Wikipedia page that has this word?
Evidence: grec refers to word = 'grec'; AVG(occurrences where word = 'grec')
SQL: SELECT CAST(SUM(T2.occurrences) AS REAL) / COUNT(T1.wid) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'grec'