Chinastark/bird_dataset huggingface dataset:
Database: language_corpus
Question: How many Catalan language wikipedia pages have between 1000 to 2000 number of different words?
Evidence: between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000
SQL: SELECT COUNT(pid) FROM pages WHERE words BETWEEN 1000 AND 2000
Database: language_corpus
Question: List the page id of wikipedia about Catalan language which have the appearance of the word 'decimal'?
Evidence: have the appearance of 'decimal' refers to word = 'decimal'
SQL: SELECT T2.pid FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'decimal'
Database: language_corpus
Question: Which word has the most occurrences within the same page of wikipedia about Catalan language?
Evidence: most occurrences refers to max(occurrences)
SQL: SELECT T1.word FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T2.occurrences = ( SELECT MAX(occurrences) FROM pages_words )
Database: language_corpus
Question: List all the first words of the biwords pair where the second word is 'antic'.
Evidence: first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'
SQL: SELECT T1.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st WHERE T2.w2nd = ( SELECT wid FROM words WHERE word = 'antic' )
Database: language_corpus
Question: Show all the title of pages and number of occurences for each page where the word 'quipu' appears.
Evidence: word 'quipu' appears refers to word = 'quipu'
SQL: SELECT T1.title, T2.occurrences FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid INNER JOIN words AS T3 ON T2.wid = T3.wid WHERE T3.word = 'quipu'
Database: language_corpus
Question: Calculate the average number of the word occurrences in which ‘system’ appeared as the first word in the pair.
Evidence: average word occurrences = divide(sum(occurrences), count(occurrences)); ‘system’ appeared as the first word refers to w1st = 'system'
SQL: SELECT AVG(T2.occurrences) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st WHERE T2.w1st = ( SELECT wid FROM words WHERE word = 'sistema' )
Database: language_corpus
Question: What is the total pages of Wikipedia in Catalan language?
Evidence: total pages refers to sum(pages); Catalan language refers to lang = 'ca'
SQL: SELECT pages FROM langs WHERE lang = 'ca'
Database: language_corpus
Question: In the Catalan language, which biwords pair appeared the most in this language/page?
Evidence: biwords pair refers to w1st.word w2nd.word; appeared the most refers to max(occurrences)
SQL: SELECT w1st, w2nd FROM biwords WHERE occurrences = ( SELECT MAX(occurrences) FROM biwords )
Database: language_corpus
Question: What is the word id of the catalan language that was repeated no more than 10 times in the said language?
Evidence: word id refers to wid; repeated no more than 10 times refers to occurrences < = 10
SQL: SELECT wid FROM langs_words WHERE occurrences <= 10
Database: language_corpus
Question: What is the title of the Catalan language Wikipedia page that has the highest number of different words?
Evidence: highest number of different words refers to max(words)
SQL: SELECT title FROM pages WHERE words = ( SELECT MAX(words) FROM pages )
Database: language_corpus
Question: What is the wikipedia page id of Arqueozoologia?
Evidence: page id refers to pid; Arqueozoologia refers to title = 'Arqueozoologia'
SQL: SELECT page FROM pages WHERE title = 'Arqueozoologia'
Database: language_corpus
Question: In Abadia, what is the word id of the of the Catalan language that appeared the highest amount of times? Indicate the how many times did they said word id appeared.
Evidence: Abadia refers to title = 'Abadia'; word id refers to wid; the highest amount of times refers to max(occurrences)
SQL: SELECT T2.wid, T2.occurrences FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.title = 'Abadia' ORDER BY T2.occurrences DESC LIMIT 1
Database: language_corpus
Question: What are the titles of the top 5 Catalan language Wikipedia page with the least number of different words? Indicate each title's word id that has appeared the most in the said pages.
Evidence: least number of different words refers to min(words); word id refers to wid; appeared the most refers to max(occurrences)
SQL: SELECT T1.title FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid ORDER BY T1.words LIMIT 5
Database: language_corpus
Question: How many times did the word pair "i" and "a" appeared in the Cataln language/page?
Evidence: times appeared refers to occurrences; word pair "i" and "a" refers to w1st.word = 'i' w2st.word = 'a'
SQL: SELECT SUM(occurrences) FROM biwords WHERE w1st = 86 AND w2nd = 109
Database: language_corpus
Question: What are the word pairs that occured only twice?
Evidence: word pair refers to w1st.word w2nd.word; occured only twice refers to occurrences = 2
SQL: SELECT T1.word, T3.word 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 T2.occurrences = 2
Database: language_corpus
Question: What is the word pair that occured the highest amount of times in Addicio? Indicate how many times such word pair occured.
Evidence: word pair refers to w1st.word w2nd.word; occurred the highest amount of times refers to max(occurrences); Addicio refers to title = 'Addicio'; times occurred refer to occurrences
SQL: SELECT T3.w1st, T3.w2nd, T3.occurrences FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid INNER JOIN biwords AS T3 ON T2.wid = T3.w1st OR T2.wid = T3.w2nd WHERE T1.title = 'Addicio' ORDER BY T3.occurrences DESC LIMIT 1
Database: language_corpus
Question: What is the total word of title "Adam" and "Acampada"?
Evidence: total word refers to sum(words); title "Adam" and "Acampada" refers to title IN('Adam','Acampada')
SQL: SELECT SUM(words) FROM pages WHERE title IN ('Adam', 'Acampada')
Database: language_corpus
Question: What is the revision page ID of title "Aigua dolÃ§a"?
Evidence: title "Aigua dolÃ§a" refers to title LIKE 'Aigua dolÃ§a%'
SQL: SELECT revision FROM pages WHERE title = 'Aigua dolÃ§a'
Database: language_corpus
Question: What is the title of corpus with most words?
Evidence: most words refers to max(words)
SQL: SELECT title FROM pages WHERE words = ( SELECT MAX(words) FROM pages )
Database: language_corpus
Question: What is the average words of the 10 fewest words title?
Evidence: average words = avg(words); 10 fewest words refers to words > = 10
SQL: SELECT CAST(SUM(CASE WHEN words >= 10 THEN words ELSE 0 END) AS REAL) / SUM(CASE WHEN words >= 10 THEN 1 ELSE 0 END) FROM pages
Database: language_corpus
Question: Among the title with single digit word count, list down 5 revision page ID of these titles.
Evidence: single digit word count refers to words < 10
SQL: SELECT revision FROM pages WHERE words < 10 LIMIT 5
Database: language_corpus
Question: List down the page id of titles start with alphabet "b".
Evidence: start with alphabet "b" refers to title LIKE 'b%'
SQL: SELECT pid FROM pages WHERE title LIKE 'b%'
Database: language_corpus
Question: What is the title of corpus where word "desena" appear?
Evidence: This is not
SQL: SELECT T1.title FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid INNER JOIN words AS T3 ON T2.wid = T3.wid WHERE T3.word = 'desena'
Database: language_corpus
Question: What is the word id for title "Sometent"?
Evidence: word id refers to wid
SQL: SELECT T2.wid FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.title = 'Sometent'
Database: language_corpus
Question: Is word id "88" the word id for title "Animals"?
Evidence: word id "88" refers to wid = 88
SQL: SELECT CASE WHEN COUNT(T1.pid) > 0 THEN 'YES' ELSE 'NO' END AS YORN FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T2.wid = 88 AND T1.title = 'Animals'
Database: language_corpus
Question: What are the occurance of word "del" in title "Any anomalÃ­stic"?
Evidence: This is not
SQL: SELECT 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 = 'del' AND T3.title = 'Any anomalÃ­stic'
Database: language_corpus
Question: State one biword pair with occurence of 4.
Evidence: biword pair refers to w1st.word w2nd.word; occurrence of 4 refers to occurrences = 4
SQL: SELECT T1.word, T3.word 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 T2.occurrences = 4 LIMIT 1
Database: language_corpus
Question: What are the total occurence of words that paired with "nombre"?
Evidence: total occurrence refers to sum(occurrences); paired with "nombre" refers to w1st.word = "nombre" or w2nd.word = "nombre"
SQL: SELECT SUM(T2.occurrences) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st OR T1.wid = T2.w2nd WHERE T2.w1st IN (( SELECT wid FROM words WHERE word = 'nombre' ) OR T2.w2nd IN ( SELECT wid FROM words WHERE word = 'nombre' ))
Database: language_corpus
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Database: language_corpus
Question: How many times on page number 16 does the second word in the pair of words 1 and 109 appear?
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;
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
Database: language_corpus
Question: What is the percentage of the words that have been repeated under 180 times in the Catalan language?
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;
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'
Database: language_corpus
Question: What percentage of Catalan-language Wikipedia pages have more than 10,000 words?
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;
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'
Database: language_corpus
Question: How many times the word "desena" occurs?
Evidence: How many times occurs refers to occurrences;
SQL: SELECT occurrences FROM words WHERE word = 'desena'
Database: language_corpus
Question: How many words has the appearance times greater than 10?
Evidence: appearance times greater than 10 refers to occurrences > 10;
SQL: SELECT COUNT(w1st) AS countwords FROM biwords WHERE occurrences > 10
Database: language_corpus
Question: List out the total pages of Wikipedia in Catalan language.
Evidence: This is not;
SQL: SELECT pages FROM langs
Database: language_corpus
Question: How many words have repetitions greater than 2000 and lower than 5000?
Evidence: repetitions greater than 2000 and lower than 5000 refer to occurrences between 2000 and 5000;
SQL: SELECT COUNT(wid) FROM langs_words WHERE occurrences BETWEEN '2000' AND '5000'
Database: language_corpus
Question: List out the title of Catalan language Wikipedia page that has wikipedia revision page id as 106601.
Evidence: Wikipedia revision page id as 106601 refers to revision = 106601;
SQL: SELECT title FROM pages WHERE revision = 106601
Database: language_corpus
Question: State the Wikipedia page title that has revision page id of 28040864.
Evidence: revision page id of 28040864 refers to revision = 28040864;
SQL: SELECT title FROM pages WHERE revision = 28040864
Database: language_corpus
Question: How many times that the word pair of "barcelona" and "precolombina" occur?
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 or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';
SQL: SELECT SUM(occurrences) FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'barcelona' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'precolombina' )