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 are the words that were paired with "John", list down 10 of them.
Evidence: pair with "John" refers to w1st.word = "John" or w2nd.word = "John"
SQL: SELECT w2nd FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'john' ) 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: List down the revision page id of titles where "fresc" appears.
Evidence: page id refers to pid; "fresc" refers to word = 'fresc'
SQL: SELECT T3.revision 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 = 'fresc'
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: List down the words with word id from 1 to 10 and write down a paired word for each of them.
Evidence: word id from 1 to 10 refers to wid BETWEEN 1 AND 10
SQL: SELECT T1.word AS W1, T3.word AS W2 FROM words AS T1 LEFT JOIN biwords AS T2 ON T1.wid = T2.w1st LEFT JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T1.wid <= 10 GROUP BY T1.wid
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 corpus title "Atomium", pick 3 words appear in the title and calculate the total occurence of these words.
Evidence: total occurrences refers to sum(occurrences)
SQL: SELECT T1.word, T1.occurrences FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T2.pid = ( SELECT pid FROM pages WHERE title = 'Atomium' ) 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: Indicate which is the word that is repeated the most times.
Evidence: repeated the most times refer to 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: Indicate the page id of Wikipedia about Catalan language of all the pages that have a numeric value in their title.
Evidence: the page id of Wikipedia refers to pid; numeric value contains only numbers, LIKE '%0%' OR '%1%' OR '%2%' OR '%3%' OR '%4%' OR '%5%' OR '%6%' OR '%7%' OR '%8%' OR '%9%';
SQL: SELECT pid, title FROM pages WHERE title LIKE '%0%' OR '%1%' OR '%2%' OR '%3%' OR '%4%' OR '%5%' OR '%6%' OR '%7%' OR '%8%' OR '%9%'
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 that has the fewest words?
Evidence: has the fewest words refers to MIN(COUNT(words));
SQL: SELECT title FROM pages WHERE title = ( SELECT MIN(words) FROM pages )
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 pair of words that is repeated the most times? Identify them by their ID.
Evidence: repeated the most times refer to MAX(occurrences); 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;
SQL: SELECT w1st, 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 total occurrences are there in the three-letter words?
Evidence: three-letter words are words composed of exactly three letters;
SQL: SELECT SUM(occurrences) FROM words WHERE LENGTH(word) = 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: Calculate the average number of different words that appear on all pages whose title begins with A.
Evidence: DIVIDE(SUM(words WHERE title = 'A%'), COUNT(words WHERE title = 'A%')) as percentage; A is a letter;
SQL: SELECT AVG(words) FROM pages WHERE title LIKE 'A%'
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: Calculate the average number of repetitions in the pairs of words in which the first word id is number 34.
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; the first word id number 34 refers to w1st = 34; repetition refers to occurrences or times this pair appears; DIVIDE(SUM(occurrences where w1st = 34), COUNT(occurrences where w1st = 34));
SQL: SELECT CAST(SUM(CASE WHEN w1st = 34 THEN 1 ELSE 0 END) AS REAL) / COUNT(w1st) 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: Calculate the percentage of pages that have 1500 different words.
Evidence: DIVIDE(COUNT(pages WHERE words = 1500), COUNT(pages)) as percentage;
SQL: SELECT CAST(COUNT(CASE WHEN words = 1500 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(page) FROM pages WHERE words > 300 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: Calculate the percentage of times that the same word appears in a pair.
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; the same word appears in a pair refers to w1st = w2nd; times refers to occurrences; DIVIDE(COUNT(occurrences where w1st = w2nd), COUNT(occurrences)) as percentage;
SQL: SELECT CAST(COUNT(CASE WHEN w1st = w2nd THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(w1st) 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: Indicate the title of all the pages in which the word comunitat appears.
Evidence: This is not;
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 = 'comunitat'
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: Indicate on how many different pages the word ripoll appears.
Evidence: This is not;
SQL: SELECT T3.page 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 = 'ripoll'
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 words are repeated on the Llista de conflictes armats page?
Evidence: title = 'Llista de conflictes armats'; How many repeated refers to occurrences;
SQL: SELECT occurrences FROM pages_words WHERE pid = ( SELECT pid FROM pages WHERE title = 'Llista de conflictes armats' )
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: Indicate if there is any pair formed by the words fukunaga and d'egees.
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 = word = 'fukunaga' or w2nd = word = 'fukunaga'; w1st = word = 'd'egees'or w2nd = word = 'd'egees';
SQL: SELECT CASE WHEN COUNT(T1.wid) > 0 THEN 'yes' ELSE 'no' END FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st OR T1.wid = T2.w2nd WHERE T2.w1st = ( SELECT wid FROM words WHERE T1.word = 'fukunaga' ) AND T2.w2nd = ( SELECT wid FROM words WHERE word LIKE 'd%egees' )
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: Calculate the average of repetitions in the pages that have a total of 100 different words.
Evidence: Repetition refers to occurrences; 100 different words refers to words = 100; DIVIDE(SUM(occurrences where words = 100), COUNT(page where words = 100)) as percentage;
SQL: SELECT CAST(SUM(T2.occurrences) AS REAL) / COUNT(T1.page) FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.words = 100
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 Wikipedia page number does the Catalan language's name, Acampada, appear on?
Evidence: Wikipedia page number refers to page; title = 'Acampada';
SQL: SELECT page FROM pages WHERE title = 'Acampada'
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 any three Wikipedia pages with more than 300 words.
Evidence: more than 300 words refers to words > 300;  list any three means limit 3; Wikipedia pages refers to page;
SQL: SELECT page FROM pages WHERE words > 300 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: How many times did the word number 8 appear?
Evidence: word number 8 refers to wid = 8; How many times refer to occurrences;
SQL: SELECT occurrences FROM words WHERE wid = 8
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 top three most frequently occurring words and their ids.
Evidence: most frequently occurring words refer to MAX(occurrences); id refers to wid;
SQL: SELECT word, wid FROM words ORDER BY occurrences 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: How frequently did the words 1 and 25 appear together?
Evidence: How frequently refers to occurrences;  word 1 refers to wid = 1; word 25 refers to wid = 25; appear together means pair, which 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 or w2nd = wid = 1; w1st or w2nd = wid = 25;
SQL: SELECT occurrences FROM biwords WHERE w1st = 1 AND w2nd = 25
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 number of words are there on revision page 27457362?
Evidence: This is not;
SQL: SELECT words FROM pages WHERE revision = 27457362
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 percentage of words in the Catalan language that have a repetition of more than 16,000 times?
Evidence: words in the Catalan language refers lid = 1; repetition of more than 16,000 times refers to occurrences > 16000; DIVIDE(COUNT(words where lid = 1 and occurrences > 16000), COUNT(words where lid = 1)) as percentage;
SQL: SELECT CAST(COUNT(CASE WHEN occurrences > 16000 THEN lid ELSE NULL END) AS REAL) * 100 / COUNT(lid) 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: Which Wikipedia page number has the highest number of words in the Catalan language?
Evidence: Wikipedia page number refers to page;  the highest number of words in the Catalan language refers to MAX(lid = 1);
SQL: SELECT page FROM pages WHERE words = ( SELECT MAX(words) FROM pages )
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 proportion of a pair of words in the Catalan language have been repeated less than 80 times?
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; in the Catalan language refers to lid; repeated less than 80 times refers to occurrences < 80; DIVIDE(COUNT(lid where occurrences < 80), COUNT(lid)) as percentage;
SQL: SELECT CAST(COUNT(CASE WHEN occurrences < 80 THEN lid ELSE NULL END) AS REAL) * 100 / COUNT(lid) 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 Catalan-language Wikipedia pages are there overall?
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: Please list any three Wikipedia pages that are written in Catalan, together with their titles and revision page numbers.
Evidence: in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;
SQL: SELECT title, revision FROM pages WHERE lid = 1 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 language of the pair of words numbered 1 and 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;
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
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 Catalan word "nombre" repeat itself?
Evidence: the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;
SQL: SELECT T1.occurrences FROM langs_words AS T1 INNER JOIN words AS T2 ON T1.wid = T2.wid WHERE T2.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: What is the second word in the pair of words number 1 and 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;
SQL: SELECT word FROM words WHERE wid = 8968
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?
Evidence: the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;
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 )
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 on page number 44 does the word "votives" appear?
Evidence: How many times refers to occurrences; page number 44 refers to pid = 44;
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