id int64 0 9.43k | db_id stringclasses 69
values | schema stringclasses 69
values | question stringlengths 24 325 | output stringlengths 23 804 | evidence stringlengths 0 673 | filtered_schema listlengths 0 16 |
|---|---|---|---|---|---|---|
5,700 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | 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. | 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 | Abadia refers to title = 'Abadia'; word id refers to wid; the highest amount of times refers to max(occurrences) | [
"pages.pid",
"pages.title",
"pages_words.occurrences",
"pages_words.pid",
"pages_words.wid"
] |
5,701 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | 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. | SELECT T1.title FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid ORDER BY T1.words LIMIT 5 | least number of different words refers to min(words); word id refers to wid; appeared the most refers to max(occurrences) | [
"pages.pid",
"pages.title",
"pages.words",
"pages_words.pid"
] |
5,702 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many times did the word pair "i" and "a" appeared in the Cataln language/page? | SELECT SUM(occurrences) FROM biwords WHERE w1st = 86 AND w2nd = 109 | times appeared refers to occurrences; word pair "i" and "a" refers to w1st.word = 'i' w2st.word = 'a' | [
"biwords.occurrences",
"biwords.w1st",
"biwords.w2nd"
] |
5,703 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What are the word pairs that occured only twice? | 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 | word pair refers to w1st.word w2nd.word; occured only twice refers to occurrences = 2 | [
"biwords.occurrences",
"biwords.w1st",
"biwords.w2nd",
"words.wid",
"words.word"
] |
5,704 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the word pair that occured the highest amount of times in Addicio? Indicate how many times such word pair occured. | 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 | 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 | [
"biwords.occurrences",
"biwords.w1st",
"biwords.w2nd",
"pages.pid",
"pages.title",
"pages_words.pid",
"pages_words.wid"
] |
5,705 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the total word of title "Adam" and "Acampada"? | SELECT SUM(words) FROM pages WHERE title IN ('Adam', 'Acampada') | total word refers to sum(words); title "Adam" and "Acampada" refers to title IN('Adam','Acampada') | [
"pages.title",
"pages.words"
] |
5,706 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the revision page ID of title "Aigua dolça"? | SELECT revision FROM pages WHERE title = 'Aigua dolça' | title "Aigua dolça" refers to title LIKE 'Aigua dolça%' | [
"pages.revision",
"pages.title"
] |
5,707 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the title of corpus with most words? | SELECT title FROM pages WHERE words = ( SELECT MAX(words) FROM pages ) | most words refers to max(words) | [
"pages.title",
"pages.words"
] |
5,708 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the average words of the 10 fewest words title? | 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 | average words = avg(words); 10 fewest words refers to words > = 10 | [
"pages.words"
] |
5,709 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Among the title with single digit word count, list down 5 revision page ID of these titles. | SELECT revision FROM pages WHERE words < 10 LIMIT 5 | single digit word count refers to words < 10 | [
"pages.revision",
"pages.words"
] |
5,710 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | List down the page id of titles start with alphabet "b". | SELECT pid FROM pages WHERE title LIKE 'b%' | start with alphabet "b" refers to title LIKE 'b%' | [
"pages.pid",
"pages.title"
] |
5,711 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the title of corpus where word "desena" appear? | 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' | This is not | [
"pages.pid",
"pages.title",
"pages_words.pid",
"pages_words.wid",
"words.wid",
"words.word"
] |
5,712 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the word id for title "Sometent"? | SELECT T2.wid FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.title = 'Sometent' | word id refers to wid | [
"pages.pid",
"pages.title",
"pages_words.pid",
"pages_words.wid"
] |
5,713 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Is word id "88" the word id for title "Animals"? | 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' | word id "88" refers to wid = 88 | [
"pages.pid",
"pages.title",
"pages_words.pid",
"pages_words.wid"
] |
5,714 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What are the occurance of word "del" in title "Any anomalÃstic"? | 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' | This is not | [
"pages.pid",
"pages.title",
"pages_words.occurrences",
"pages_words.pid",
"pages_words.wid",
"words.wid",
"words.word"
] |
5,715 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | State one biword pair with occurence of 4. | 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 | biword pair refers to w1st.word w2nd.word; occurrence of 4 refers to occurrences = 4 | [
"biwords.occurrences",
"biwords.w1st",
"biwords.w2nd",
"words.wid",
"words.word"
] |
5,716 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What are the total occurence of words that paired with "nombre"? | 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' )) | total occurrence refers to sum(occurrences); paired with "nombre" refers to w1st.word = "nombre" or w2nd.word = "nombre" | [
"biwords.occurrences",
"biwords.w1st",
"biwords.w2nd",
"words.wid",
"words.word"
] |
5,717 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What are the words that were paired with "John", list down 10 of them. | SELECT w2nd FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'john' ) LIMIT 10 | pair with "John" refers to w1st.word = "John" or w2nd.word = "John" | [
"words.wid",
"words.word"
] |
5,718 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | List down the revision page id of titles where "fresc" appears. | 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' | page id refers to pid; "fresc" refers to word = 'fresc' | [
"pages.pid",
"pages.revision",
"pages_words.pid",
"pages_words.wid",
"words.wid",
"words.word"
] |
5,719 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | List down the words with word id from 1 to 10 and write down a paired word for each of them. | 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 | word id from 1 to 10 refers to wid BETWEEN 1 AND 10 | [
"biwords.w1st",
"biwords.w2nd",
"words.wid",
"words.word"
] |
5,720 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | For corpus title "Atomium", pick 3 words appear in the title and calculate the total occurence of these words. | 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 | total occurrences refers to sum(occurrences) | [
"pages.pid",
"pages.title",
"pages_words.pid",
"pages_words.wid",
"words.occurrences",
"words.wid",
"words.word"
] |
5,721 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Indicate which is the word that is repeated the most times. | SELECT word FROM words WHERE occurrences = ( SELECT MAX(occurrences) FROM words ) | repeated the most times refer to MAX(occurrences); | [
"words.occurrences",
"words.word"
] |
5,722 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Indicate the page id of Wikipedia about Catalan language of all the pages that have a numeric value in their title. | 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%' | 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%'; | [
"pages.pid",
"pages.title"
] |
5,723 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the title of the page that has the fewest words? | SELECT title FROM pages WHERE title = ( SELECT MIN(words) FROM pages ) | has the fewest words refers to MIN(COUNT(words)); | [
"pages.title",
"pages.words"
] |
5,724 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the pair of words that is repeated the most times? Identify them by their ID. | SELECT w1st, w2nd FROM biwords WHERE occurrences = ( SELECT MAX(occurrences) FROM biwords ) | 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; | [
"biwords.occurrences",
"biwords.w1st",
"biwords.w2nd"
] |
5,725 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many total occurrences are there in the three-letter words? | SELECT SUM(occurrences) FROM words WHERE LENGTH(word) = 3 | three-letter words are words composed of exactly three letters; | [
"words.occurrences",
"words.word"
] |
5,726 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Calculate the average number of different words that appear on all pages whose title begins with A. | SELECT AVG(words) FROM pages WHERE title LIKE 'A%' | DIVIDE(SUM(words WHERE title = 'A%'), COUNT(words WHERE title = 'A%')) as percentage; A is a letter; | [
"pages.title",
"pages.words"
] |
5,727 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Calculate the average number of repetitions in the pairs of words in which the first word id is number 34. | SELECT CAST(SUM(CASE WHEN w1st = 34 THEN 1 ELSE 0 END) AS REAL) / COUNT(w1st) FROM biwords | 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))... | [
"biwords.w1st"
] |
5,728 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Calculate the percentage of pages that have 1500 different words. | SELECT CAST(COUNT(CASE WHEN words = 1500 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(page) FROM pages WHERE words > 300 LIMIT 3 | DIVIDE(COUNT(pages WHERE words = 1500), COUNT(pages)) as percentage; | [
"pages.page",
"pages.words"
] |
5,729 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Calculate the percentage of times that the same word appears in a pair. | SELECT CAST(COUNT(CASE WHEN w1st = w2nd THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(w1st) FROM biwords | 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; | [
"biwords.w1st",
"biwords.w2nd"
] |
5,730 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Indicate the title of all the pages in which the word comunitat appears. | 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' | This is not; | [
"pages.pid",
"pages.title",
"pages_words.pid",
"pages_words.wid",
"words.wid",
"words.word"
] |
5,731 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Indicate on how many different pages the word ripoll appears. | 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' | This is not; | [
"pages.page",
"pages.pid",
"pages_words.pid",
"pages_words.wid",
"words.wid",
"words.word"
] |
5,732 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many words are repeated on the Llista de conflictes armats page? | SELECT occurrences FROM pages_words WHERE pid = ( SELECT pid FROM pages WHERE title = 'Llista de conflictes armats' ) | title = 'Llista de conflictes armats'; How many repeated refers to occurrences; | [
"pages.pid",
"pages.title"
] |
5,733 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Indicate if there is any pair formed by the words fukunaga and d'egees. | 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' ) | 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'; | [
"biwords.w1st",
"biwords.w2nd",
"words.wid",
"words.word"
] |
5,734 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Calculate the average of repetitions in the pages that have a total of 100 different words. | 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 | Repetition refers to occurrences; 100 different words refers to words = 100; DIVIDE(SUM(occurrences where words = 100), COUNT(page where words = 100)) as percentage; | [
"pages.page",
"pages.pid",
"pages.words",
"pages_words.occurrences",
"pages_words.pid"
] |
5,735 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Which Wikipedia page number does the Catalan language's name, Acampada, appear on? | SELECT page FROM pages WHERE title = 'Acampada' | Wikipedia page number refers to page; title = 'Acampada'; | [
"pages.page",
"pages.title"
] |
5,736 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Please list any three Wikipedia pages with more than 300 words. | SELECT page FROM pages WHERE words > 300 LIMIT 3 | more than 300 words refers to words > 300; list any three means limit 3; Wikipedia pages refers to page; | [
"pages.page",
"pages.words"
] |
5,737 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many times did the word number 8 appear? | SELECT occurrences FROM words WHERE wid = 8 | word number 8 refers to wid = 8; How many times refer to occurrences; | [
"words.occurrences",
"words.wid"
] |
5,738 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Please list the top three most frequently occurring words and their ids. | SELECT word, wid FROM words ORDER BY occurrences DESC LIMIT 3 | most frequently occurring words refer to MAX(occurrences); id refers to wid; | [
"words.occurrences",
"words.wid",
"words.word"
] |
5,739 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How frequently did the words 1 and 25 appear together? | SELECT occurrences FROM biwords WHERE w1st = 1 AND w2nd = 25 | 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; | [
"biwords.occurrences",
"biwords.w1st",
"biwords.w2nd"
] |
5,740 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What number of words are there on revision page 27457362? | SELECT words FROM pages WHERE revision = 27457362 | This is not; | [
"pages.revision",
"pages.words"
] |
5,741 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the percentage of words in the Catalan language that have a repetition of more than 16,000 times? | SELECT CAST(COUNT(CASE WHEN occurrences > 16000 THEN lid ELSE NULL END) AS REAL) * 100 / COUNT(lid) FROM langs_words | 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; | [
"langs_words.lid",
"langs_words.occurrences"
] |
5,742 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Which Wikipedia page number has the highest number of words in the Catalan language? | SELECT page FROM pages WHERE words = ( SELECT MAX(words) FROM pages ) | Wikipedia page number refers to page; the highest number of words in the Catalan language refers to MAX(lid = 1); | [
"pages.page",
"pages.words"
] |
5,743 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What proportion of a pair of words in the Catalan language have been repeated less than 80 times? | SELECT CAST(COUNT(CASE WHEN occurrences < 80 THEN lid ELSE NULL END) AS REAL) * 100 / COUNT(lid) FROM biwords | 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; | [
"biwords.lid",
"biwords.occurrences"
] |
5,744 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many Catalan-language Wikipedia pages are there overall? | SELECT pages FROM langs WHERE lang = 'ca' | Catalan-language refers to lang = 'ca'; | [
"langs.lang",
"langs.pages"
] |
5,745 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Please list any three Wikipedia pages that are written in Catalan, together with their titles and revision page numbers. | SELECT title, revision FROM pages WHERE lid = 1 LIMIT 3 | in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision; | [
"pages.lid",
"pages.revision",
"pages.title"
] |
5,746 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the language of the pair of words numbered 1 and 616? | 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 | 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; | [
"biwords.lid",
"biwords.w1st",
"biwords.w2nd",
"langs.lang",
"langs.lid"
] |
5,747 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many times does the Catalan word "nombre" repeat itself? | SELECT T1.occurrences FROM langs_words AS T1 INNER JOIN words AS T2 ON T1.wid = T2.wid WHERE T2.word = 'nombre' | the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences; | [
"langs_words.occurrences",
"langs_words.wid",
"words.wid",
"words.word"
] |
5,748 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the second word in the pair of words number 1 and 8968? | SELECT word FROM words WHERE wid = 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; | [
"words.wid",
"words.word"
] |
5,749 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Which word has the most repetitions in the Catalan language? | 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 ) | the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1; | [
"langs_words.occurrences",
"langs_words.wid",
"words.wid",
"words.word"
] |
5,750 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many times on page number 44 does the word "votives" appear? | 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 | How many times refers to occurrences; page number 44 refers to pid = 44; | [
"pages_words.occurrences",
"pages_words.pid",
"pages_words.wid",
"words.wid",
"words.word"
] |
5,751 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many times on page number 16 does the second word in the pair of words 1 and 109 appear? | 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 | 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; | [
"biwords.w1st",
"biwords.w2nd",
"pages_words.occurrences",
"pages_words.pid",
"pages_words.wid"
] |
5,752 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the percentage of the words that have been repeated under 180 times in the Catalan language? | 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' | 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; | [
"langs.lang",
"langs.lid",
"langs_words.lid",
"langs_words.occurrences"
] |
5,753 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What percentage of Catalan-language Wikipedia pages have more than 10,000 words? | 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' | 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; | [
"langs.lang",
"langs.lid",
"pages.lid",
"pages.page",
"pages.words"
] |
5,754 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many times the word "desena" occurs? | SELECT occurrences FROM words WHERE word = 'desena' | How many times occurs refers to occurrences; | [
"words.occurrences",
"words.word"
] |
5,755 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many words has the appearance times greater than 10? | SELECT COUNT(w1st) AS countwords FROM biwords WHERE occurrences > 10 | appearance times greater than 10 refers to occurrences > 10; | [
"biwords.occurrences",
"biwords.w1st"
] |
5,756 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | List out the total pages of Wikipedia in Catalan language. | SELECT pages FROM langs | This is not; | [
"langs.pages"
] |
5,757 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many words have repetitions greater than 2000 and lower than 5000? | SELECT COUNT(wid) FROM langs_words WHERE occurrences BETWEEN '2000' AND '5000' | repetitions greater than 2000 and lower than 5000 refer to occurrences between 2000 and 5000; | [
"langs_words.occurrences",
"langs_words.wid"
] |
5,758 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | List out the title of Catalan language Wikipedia page that has wikipedia revision page id as 106601. | SELECT title FROM pages WHERE revision = 106601 | Wikipedia revision page id as 106601 refers to revision = 106601; | [
"pages.revision",
"pages.title"
] |
5,759 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | State the Wikipedia page title that has revision page id of 28040864. | SELECT title FROM pages WHERE revision = 28040864 | revision page id of 28040864 refers to revision = 28040864; | [
"pages.revision",
"pages.title"
] |
5,760 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many times that the word pair of "barcelona" and "precolombina" occur? | SELECT SUM(occurrences) FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'barcelona' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'precolombina' ) | 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'; | [
"words.wid",
"words.word"
] |
5,761 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the locale of the language of the page titled "Anys 90"? | SELECT T1.locale FROM langs AS T1 INNER JOIN pages AS T2 ON T1.lid = T2.lid WHERE T2.title = 'Anys 90' | page titled "Anys 90" refers to title = 'Anys 90'; | [
"langs.lid",
"langs.locale",
"pages.lid",
"pages.title"
] |
5,762 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Which word that has 71303 appearance in the Catalan language? | SELECT T1.word FROM words AS T1 INNER JOIN langs_words AS T2 ON T1.wid = T2.wid WHERE T2.occurrences = 71303 | has 71303 appearance refers to occurrences = 71303; | [
"langs_words.occurrences",
"langs_words.wid",
"words.wid",
"words.word"
] |
5,763 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the locale of the language of the page titled "Abril"? | SELECT T1.locale FROM langs AS T1 INNER JOIN pages AS T2 ON T1.lid = T2.lid WHERE T2.title = 'Abril' | the page titled "Abril" refers to title = 'Abril'; | [
"langs.lid",
"langs.locale",
"pages.lid",
"pages.title"
] |
5,764 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the total number of words in page containing pair of word id "100" and "317"? | SELECT words FROM langs WHERE lid = ( SELECT lid FROM biwords WHERE w1st = 100 AND w2nd = 317 ) | 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 = 100; w2nd = 317; | [
"biwords.lid",
"biwords.w1st",
"biwords.w2nd"
] |
5,765 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | State the total pages of the words that has repeated times of 2593. | SELECT COUNT(T1.pages) FROM langs AS T1 INNER JOIN langs_words AS T2 ON T1.lid = T2.lid WHERE T2.occurrences = 2593 | repeated times of 2593 refers to occurrences = 2593; | [
"langs.lid",
"langs.pages",
"langs_words.lid",
"langs_words.occurrences"
] |
5,766 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | List out the title of the word have id less than 20. | SELECT DISTINCT T1.title FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T2.wid < 20 | word have id less than 20 refers to wid < 20; | [
"pages.pid",
"pages.title",
"pages_words.pid",
"pages_words.wid"
] |
5,767 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many word that has number of different words equal to 3? | SELECT COUNT(T2.wid) FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.words = 3 | This is not; | [
"pages.pid",
"pages.words",
"pages_words.pid",
"pages_words.wid"
] |
5,768 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many word appeared 8 times? State the language id of the page. | SELECT COUNT(T2.wid), T1.lid FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T2.occurrences = 8 | appeared 8 times refers to occurrences = 8; | [
"pages.lid",
"pages.pid",
"pages_words.occurrences",
"pages_words.pid",
"pages_words.wid"
] |
5,769 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Calculate the average percentage of word appearance in the page that have revision page id smaller than 106680. | SELECT CAST(SUM(T1.words) AS REAL) * 100 / SUM(T2.occurrences) FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.revision < 106680 | revision page id smaller than 106680 refers to revision < 106680; word appearance refers to occurrences; DIVIDE(SUM(occurrences where revision < 106680), COUNT(occurrences)) as percentage; | [
"pages.pid",
"pages.revision",
"pages.words",
"pages_words.occurrences",
"pages_words.pid"
] |
5,770 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | List out the total pages of the words that has repeated times more than 3000. | SELECT T1.pages FROM langs AS T1 INNER JOIN langs_words AS T2 ON T1.lid = T2.lid WHERE T2.occurrences > 3000 GROUP BY T1.pages | repeated more than 3000 times refers to occurrences > 3000; | [
"langs.lid",
"langs.pages",
"langs_words.lid",
"langs_words.occurrences"
] |
5,771 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | State the name of the pair of word that have id of 20 and 50? | 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.w1st = 20 AND T2.w2nd = 50 | word that have id of 20 refers to wid = 20; word that have id of 50 refers to wid = 50; | [
"biwords.w1st",
"biwords.w2nd",
"words.wid",
"words.word"
] |
5,772 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many pages of Wikipedia are there in total on the Catalan language? | SELECT pages FROM langs WHERE lang = 'ca' | Catalan language refers to lang = 'ca'; | [
"langs.lang",
"langs.pages"
] |
5,773 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Please list the titles of the Wikipedia pages on the Catalan language with more than 4000 words. | SELECT title FROM pages WHERE lid = 1 AND words > 4000 | Catalan language refers to lid = 1; more than 4000 words refers to words > 4000; | [
"pages.lid",
"pages.title",
"pages.words"
] |
5,774 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many words are there on the page titled "Asclepi"? | SELECT words FROM pages WHERE title = 'Asclepi' | page titled "Asclepi" refers to title = 'Asclepi' ; | [
"pages.title",
"pages.words"
] |
5,775 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Which of these pages have more words, the page titled "Afluent" or "Asclepi"? | SELECT CASE WHEN ( SELECT words FROM pages WHERE title = 'Asclepi' ) > ( SELECT words FROM pages WHERE title = 'Afluent' ) THEN 'Asclepi' ELSE 'Afluent' END | COUNT(words where title = 'Afluent')> COUNT(words where title = 'Asclepi') | [
"pages.title",
"pages.words"
] |
5,776 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the occurrence of the word "nombre"? | SELECT occurrences FROM words WHERE word = 'nombre' | This is not; | [
"words.occurrences",
"words.word"
] |
5,777 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Please list the Catalan words with an occurrence of over 200000. | SELECT word FROM words WHERE occurrences > 200000 | occurrence of over 200000 refers to occurrences > 200000; | [
"words.occurrences",
"words.word"
] |
5,778 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the locale of the language of the page titled "Asclepi"? | SELECT T2.locale FROM pages AS T1 INNER JOIN langs AS T2 ON T1.lid = T2.lid WHERE T1.title = 'Asclepi' | page titled "Asclepi" refers to title = 'Asclepi' ; | [
"langs.lid",
"langs.locale",
"pages.lid",
"pages.title"
] |
5,779 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many times did the word "grec" occur on the page titled "Àbac"? | 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 T3.title = 'Àbac' AND T1.word = 'grec' | how many times occur refers to occurrences; page titled "Àbac" refers to title = 'Àbac' ; | [
"pages.pid",
"pages.title",
"pages_words.occurrences",
"pages_words.pid",
"pages_words.wid",
"words.wid",
"words.word"
] |
5,780 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Please list the title of the pages on which the word "grec" occurred for over 20 times. | 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 > 20 | occurred for over 20 times refers to occurrences > 20; | [
"pages.pid",
"pages.title",
"pages_words.occurrences",
"pages_words.pid",
"pages_words.wid",
"words.wid",
"words.word"
] |
5,781 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many words are there on the page that the word "grec" has occurred for 52 times? | SELECT SUM(T3.words) 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 | the word "grec" refers to word = 'grec'; occurred for 52 times refers to occurrences = 52 | [
"pages.pid",
"pages.words",
"pages_words.occurrences",
"pages_words.pid",
"pages_words.wid",
"words.wid",
"words.word"
] |
5,782 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What's the occurrence of the biwords pair whose first word is "àbac" and second word is "xinès"? | SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'xinès' ) | àbac refers to word = 'àbac'; xinès refers to word = 'xinès'; occurrence refers to occurrences | [
"words.wid",
"words.word"
] |
5,783 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Which biwords pair has a higher occurrence, "àbac-xinès" or "àbac-grec"? | SELECT CASE WHEN ( SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'xinès' ) ) > ( SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'grec' ... | higher occurrence is MAX(occurrences); àbac refers to word = 'àbac'; xinès refers to word = 'xinès'; grec refers to word = 'grec' | [
"words.wid",
"words.word"
] |
5,784 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many more times does the first word in the biwords pair "àbac-xinès" occur than the biwords pair itself? | SELECT occurrences - ( SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'xinès' ) ) AS CALUS FROM words WHERE word = 'àbac' | àbac refers to word = 'àbac'; xinès refers to word = 'xinès'; How many more times the first word in the biwords occur than the biwords pair itself means SUBTRACT(words.occurrence, biwords.occurrences) | [
"words.wid",
"words.word"
] |
5,785 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Please list all the biwords pairs with "àbac" as its first word. | SELECT T1.word AS W1, T3.word AS W2 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' | àbac refers to word = 'àbac'; first word refers to w1st | [
"biwords.w1st",
"biwords.w2nd",
"words.wid",
"words.word"
] |
5,786 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the total occurrence of the biwords pairs with "àbac" as its first word? | 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' | occurrence refers to occurrences; àbac refers to word = 'àbac'; first word refers to w1st | [
"biwords.w1st",
"biwords.w2nd",
"words.wid",
"words.word"
] |
5,787 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many Wikipedia pages are there on the language of the biwords pair "àbac-xinès"? | 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' ) | àbac refers to word = 'àbac'; xinès refers to word = 'xinès'; Wikipedia pages refer to pages | [
"biwords.lid",
"biwords.w1st",
"biwords.w2nd",
"langs.lid",
"langs.pages",
"words.wid",
"words.word"
] |
5,788 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How much higher in percentage does the word "grec" occur on the page titled "Àbac" than on the page titled "Astronomia"? | 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.p... | 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') | [
"pages.pid",
"pages.title",
"pages_words.occurrences",
"pages_words.pid",
"pages_words.wid",
"words.wid",
"words.word"
] |
5,789 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many pages does the Catalan language have in Wikipedia? | SELECT pages FROM langs WHERE lang = 'ca' | Catalan language refers to lang = 'ca' | [
"langs.lang",
"langs.pages"
] |
5,790 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Which word has the most repetitions in the Catalan language? Give the ID of the word. | SELECT wid FROM langs_words WHERE occurrences = ( SELECT MAX(occurrences) FROM langs_words ) | word with the most repetitions refers to MAX(occurrences); ID of the word refers to wid | [
"langs_words.occurrences",
"langs_words.wid"
] |
5,791 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the word ID for the second word for the biwords pair with most repetitions? | SELECT w2nd FROM biwords WHERE occurrences = ( SELECT MAX(occurrences) FROM biwords ) | second word refers to w2nd; biwords pair with most repetitions refers to MAX(biwords.occurrences) | [
"biwords.occurrences",
"biwords.w2nd"
] |
5,792 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many occurrences does the word "panajot" have? | SELECT occurrences FROM words WHERE word = 'panajot' | panajot refers to word = 'panajot' | [
"words.occurrences",
"words.word"
] |
5,793 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Which word has the time of occurrences as 340691? | SELECT word FROM words WHERE occurrences = 340691 | occurrences of 340691 refers to occurrences = 340691 | [
"words.occurrences",
"words.word"
] |
5,794 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | State the word ID for "periodograma". | SELECT wid FROM words WHERE word = 'periodograma' | word ID refers to wid; periodograma refers to word = 'periodograma' | [
"words.wid",
"words.word"
] |
5,795 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | For the biwords pair that appears "116430" times, what is the second word of the pair? | SELECT T1.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w2nd WHERE T2.occurrences = 116430 | the biwords pair that appears "116430" times refers to occurrences = 116430; second word of the pair refers to w2nd | [
"biwords.occurrences",
"biwords.w2nd",
"words.wid",
"words.word"
] |
5,796 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many times does the word "riu" appears in the biwords pair? | 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' | riu refers to word = 'riu'; SUM(w1st where wid is word = 'riu' AND w2nd where wid is word = 'riu') | [
"biwords.w1st",
"biwords.w2nd",
"words.wid",
"words.word"
] |
5,797 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Which word has the most appearances in the Wikipedia page with the title of "Agricultura"? Give the word ID. | 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 | Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences) | [
"pages.pid",
"pages.title",
"pages_words.occurrences",
"pages_words.pid",
"pages_words.wid"
] |
5,798 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many appearances does the word ID No. 2823 have in the Wikipedia page "Astre"? | 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 | Astre refers to title = 'Astre'; word ID No. 2823 refers to wid = 2823; appearances refers to pages_words_sampling.occurrences | [
"pages.pid",
"pages.title",
"pages_words.occurrences",
"pages_words.pid",
"pages_words.wid"
] |
5,799 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | In which Wikipedia page does the word ID No. 174 have the most appearances? Give the title. | SELECT title FROM pages WHERE pid = ( SELECT pid FROM pages_words WHERE wid = 174 ORDER BY occurrences DESC LIMIT 1 ) | word ID No. 174 refers to wid = 174; appearances refers to pages_words_sampling.occurrences | [
"pages_words.occurrences",
"pages_words.pid",
"pages_words.wid"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.