db_id stringclasses 68 values | question stringlengths 24 325 | evidence stringlengths 0 580 | SQL stringlengths 23 728 |
|---|---|---|---|
language_corpus | Calculate the average number of different words that appear on all pages whose title begins with A. | DIVIDE(SUM(words WHERE title = 'A%'), COUNT(words WHERE title = 'A%')) as percentage; A is a letter; | SELECT AVG(words) FROM pages WHERE title LIKE 'A%' |
language_corpus | Calculate the average number of repetitions in the pairs of words in which the first word id is number 34. | 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)); | SELECT CAST(SUM(CASE WHEN w1st = 34 THEN 1 ELSE 0 END) AS REAL) / COUNT(w1st) FROM biwords |
language_corpus | Calculate the percentage of pages that have 1500 different words. | DIVIDE(COUNT(pages WHERE words = 1500), COUNT(pages)) as percentage; | SELECT CAST(COUNT(CASE WHEN words = 1500 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(page) FROM pages WHERE words > 300 LIMIT 3 |
language_corpus | Calculate the percentage of times that the same word appears in a pair. | 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; | SELECT CAST(COUNT(CASE WHEN w1st = w2nd THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(w1st) FROM biwords |
language_corpus | Indicate the title of all the pages in which the word comunitat appears. | This is not; | 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' |
language_corpus | Indicate on how many different pages the word ripoll appears. | This is not; | 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' |
language_corpus | How many words are repeated on the Llista de conflictes armats page? | title = 'Llista de conflictes armats'; How many repeated refers to occurrences; | SELECT occurrences FROM pages_words WHERE pid = ( SELECT pid FROM pages WHERE title = 'Llista de conflictes armats' ) |
language_corpus | Indicate if there is any pair formed by the words fukunaga and 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'; | 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' ) |
language_corpus | Calculate the average of repetitions in the pages that have a total of 100 different words. | Repetition refers to occurrences; 100 different words refers to words = 100; DIVIDE(SUM(occurrences where words = 100), COUNT(page where words = 100)) as percentage; | 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 |
language_corpus | Which Wikipedia page number does the Catalan language's name, Acampada, appear on? | Wikipedia page number refers to page; title = 'Acampada'; | SELECT page FROM pages WHERE title = 'Acampada' |
language_corpus | Please list any three Wikipedia pages with more than 300 words. | more than 300 words refers to words > 300; list any three means limit 3; Wikipedia pages refers to page; | SELECT page FROM pages WHERE words > 300 LIMIT 3 |
language_corpus | How many times did the word number 8 appear? | word number 8 refers to wid = 8; How many times refer to occurrences; | SELECT occurrences FROM words WHERE wid = 8 |
language_corpus | Please list the top three most frequently occurring words and their ids. | most frequently occurring words refer to MAX(occurrences); id refers to wid; | SELECT word, wid FROM words ORDER BY occurrences DESC LIMIT 3 |
language_corpus | How frequently did the words 1 and 25 appear together? | 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; | SELECT occurrences FROM biwords WHERE w1st = 1 AND w2nd = 25 |
language_corpus | What number of words are there on revision page 27457362? | This is not; | SELECT words FROM pages WHERE revision = 27457362 |
language_corpus | What is the percentage of words in the Catalan language that have a repetition of more than 16,000 times? | 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; | SELECT CAST(COUNT(CASE WHEN occurrences > 16000 THEN lid ELSE NULL END) AS REAL) * 100 / COUNT(lid) FROM langs_words |
language_corpus | Which Wikipedia page number has the highest number of words in the Catalan language? | Wikipedia page number refers to page; the highest number of words in the Catalan language refers to MAX(lid = 1); | SELECT page FROM pages WHERE words = ( SELECT MAX(words) FROM pages ) |
language_corpus | What proportion of a pair of words in the Catalan language have been repeated less than 80 times? | 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; | SELECT CAST(COUNT(CASE WHEN occurrences < 80 THEN lid ELSE NULL END) AS REAL) * 100 / COUNT(lid) FROM biwords |
language_corpus | How many Catalan-language Wikipedia pages are there overall? | Catalan-language refers to lang = 'ca'; | SELECT pages FROM langs WHERE lang = 'ca' |
language_corpus | Please list any three Wikipedia pages that are written in Catalan, together with their titles and revision page numbers. | in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision; | SELECT title, revision FROM pages WHERE lid = 1 LIMIT 3 |
language_corpus | What is the language of the pair of words numbered 1 and 616? | Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 616; | 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 |
language_corpus | How many times does the Catalan word "nombre" repeat itself? | the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences; | SELECT T1.occurrences FROM langs_words AS T1 INNER JOIN words AS T2 ON T1.wid = T2.wid WHERE T2.word = 'nombre' |
language_corpus | What is the second word in the pair of words number 1 and 8968? | Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 8968; | SELECT word FROM words WHERE wid = 8968 |
language_corpus | Which word has the most repetitions in the Catalan language? | the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1; | 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 ) |
language_corpus | How many times on page number 44 does the word "votives" appear? | How many times refers to occurrences; page number 44 refers to pid = 44; | 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 |
language_corpus | How many times on page number 16 does the second word in the pair of words 1 and 109 appear? | How many times appear refer to occurrences; page number 16 refers to pid = 16; Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 109; | 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 |
language_corpus | What is the percentage of the words that have been repeated under 180 times in the Catalan language? | repeated under 180 times refers to occurrences < 180; Catalan language refers to lang = 'ca'; DIVIDE(COUNT(words WHERE occurrences < 180 and lang = 'ca'), COUNT(words WHERE lang = 'ca')) as percentage; | 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' |
language_corpus | What percentage of Catalan-language Wikipedia pages have more than 10,000 words? | Catalan-language refers to lang = 'ca'; more than 10,000 words refer to words > 10000; DIVIDE(COUNT(pages WHERE words > 10000 and lang = 'ca'), COUNT(pages WHERE lang = 'ca')) as percentage; | 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' |
language_corpus | How many times the word "desena" occurs? | How many times occurs refers to occurrences; | SELECT occurrences FROM words WHERE word = 'desena' |
language_corpus | How many words has the appearance times greater than 10? | appearance times greater than 10 refers to occurrences > 10; | SELECT COUNT(w1st) AS countwords FROM biwords WHERE occurrences > 10 |
language_corpus | List out the total pages of Wikipedia in Catalan language. | This is not; | SELECT pages FROM langs |
language_corpus | How many words have repetitions greater than 2000 and lower than 5000? | repetitions greater than 2000 and lower than 5000 refer to occurrences between 2000 and 5000; | SELECT COUNT(wid) FROM langs_words WHERE occurrences BETWEEN '2000' AND '5000' |
language_corpus | List out the title of Catalan language Wikipedia page that has wikipedia revision page id as 106601. | Wikipedia revision page id as 106601 refers to revision = 106601; | SELECT title FROM pages WHERE revision = 106601 |
language_corpus | State the Wikipedia page title that has revision page id of 28040864. | revision page id of 28040864 refers to revision = 28040864; | SELECT title FROM pages WHERE revision = 28040864 |
language_corpus | What is the locale of the language of the page titled "Anys 90"? | page titled "Anys 90" refers to title = 'Anys 90'; | SELECT T1.locale FROM langs AS T1 INNER JOIN pages AS T2 ON T1.lid = T2.lid WHERE T2.title = 'Anys 90' |
language_corpus | Which word that has 71303 appearance in the Catalan language? | has 71303 appearance refers to occurrences = 71303; | SELECT T1.word FROM words AS T1 INNER JOIN langs_words AS T2 ON T1.wid = T2.wid WHERE T2.occurrences = 71303 |
language_corpus | What is the locale of the language of the page titled "Abril"? | the page titled "Abril" refers to title = 'Abril'; | SELECT T1.locale FROM langs AS T1 INNER JOIN pages AS T2 ON T1.lid = T2.lid WHERE T2.title = 'Abril' |
language_corpus | State the total pages of the words that has repeated times of 2593. | repeated times of 2593 refers to occurrences = 2593; | SELECT COUNT(T1.pages) FROM langs AS T1 INNER JOIN langs_words AS T2 ON T1.lid = T2.lid WHERE T2.occurrences = 2593 |
language_corpus | List out the title of the word have id less than 20. | word have id less than 20 refers to wid < 20; | SELECT DISTINCT T1.title FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T2.wid < 20 |
language_corpus | How many word that has number of different words equal to 3? | This is not; | SELECT COUNT(T2.wid) FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.words = 3 |
language_corpus | Calculate the average percentage of word appearance in the page that have revision page id smaller than 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; | 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 |
language_corpus | List out the total pages of the words that has repeated times more than 3000. | repeated more than 3000 times refers to occurrences > 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 |
language_corpus | How many pages of Wikipedia are there in total on the Catalan language? | Catalan language refers to lang = 'ca'; | SELECT pages FROM langs WHERE lang = 'ca' |
language_corpus | Please list the titles of the Wikipedia pages on the Catalan language with more than 4000 words. | Catalan language refers to lid = 1; more than 4000 words refers to words > 4000; | SELECT title FROM pages WHERE lid = 1 AND words > 4000 |
language_corpus | How many words are there on the page titled "Asclepi"? | page titled "Asclepi" refers to title = 'Asclepi' ; | SELECT words FROM pages WHERE title = 'Asclepi' |
language_corpus | Which of these pages have more words, the page titled "Afluent" or "Asclepi"? | COUNT(words where title = 'Afluent')> COUNT(words where title = 'Asclepi') | SELECT CASE WHEN ( SELECT words FROM pages WHERE title = 'Asclepi' ) > ( SELECT words FROM pages WHERE title = 'Afluent' ) THEN 'Asclepi' ELSE 'Afluent' END |
language_corpus | What is the occurrence of the word "nombre"? | This is not; | SELECT occurrences FROM words WHERE word = 'nombre' |
language_corpus | Please list the Catalan words with an occurrence of over 200000. | occurrence of over 200000 refers to occurrences > 200000; | SELECT word FROM words WHERE occurrences > 200000 |
language_corpus | What is the locale of the language of the page titled "Asclepi"? | page titled "Asclepi" refers to title = 'Asclepi' ; | SELECT T2.locale FROM pages AS T1 INNER JOIN langs AS T2 ON T1.lid = T2.lid WHERE T1.title = 'Asclepi' |
language_corpus | How many times did the word "grec" occur on the page titled "Àbac"? | how many times occur refers to occurrences; page titled "Àbac" refers to title = 'À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' |
language_corpus | Please list the title of the pages on which the word "grec" occurred for over 20 times. | occurred for over 20 times refers to occurrences > 20; | 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 |
language_corpus | How many words are there on the page that the word "grec" has occurred for 52 times? | the word "grec" refers to word = 'grec'; occurred for 52 times refers to occurrences = 52 | 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 |
language_corpus | What's the occurrence of the biwords pair whose first word is "àbac" and second word is "xinès"? | àbac refers to word = 'àbac'; xinès refers to word = 'xinès'; occurrence refers to occurrences | SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'xinès' ) |
language_corpus | Which biwords pair has a higher occurrence, "àbac-xinès" or "àbac-grec"? | higher occurrence is MAX(occurrences); àbac refers to word = 'àbac'; xinès refers to word = 'xinès'; grec refers to word = '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' ) ) THEN 'àbac-xinès' ELSE 'àbac-grec' END AS CALUS FROM words LIMIT 1 |
language_corpus | How many more times does the first word in the biwords pair "àbac-xinès" occur than the biwords pair itself? | à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) | 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' |
language_corpus | Please list all the biwords pairs with "àbac" as its first word. | àbac refers to word = 'àbac'; first word refers to w1st | 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' |
language_corpus | What is the total occurrence of the biwords pairs with "àbac" as its first word? | occurrence refers to occurrences; àbac refers to word = 'àbac'; first word refers to w1st | 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' |
language_corpus | How many Wikipedia pages are there on the language of the biwords pair "àbac-xinès"? | àbac refers to word = 'àbac'; xinès refers to word = 'xinès'; Wikipedia pages refer to pages | 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' ) |
language_corpus | How much higher in percentage does the word "grec" occur on the page titled "Àbac" than on the page titled "Astronomia"? | 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') | SELECT CAST((SUM(CASE WHEN T3.title = 'Àbac' THEN T2.occurrences END) - SUM(CASE WHEN T3.title = 'Astronomia' THEN T2.occurrences END)) AS REAL) * 100 / SUM(CASE WHEN T3.title = 'Astronomia' THEN T2.occurrences END) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec' |
language_corpus | How many pages does the Catalan language have in Wikipedia? | Catalan language refers to lang = 'ca' | SELECT pages FROM langs WHERE lang = 'ca' |
language_corpus | Which word has the most repetitions in the Catalan language? Give the ID of the word. | word with the most repetitions refers to MAX(occurrences); ID of the word refers to wid | SELECT wid FROM langs_words WHERE occurrences = ( SELECT MAX(occurrences) FROM langs_words ) |
language_corpus | What is the word ID for the second word for the biwords pair with most repetitions? | second word refers to w2nd; biwords pair with most repetitions refers to MAX(biwords.occurrences) | SELECT w2nd FROM biwords WHERE occurrences = ( SELECT MAX(occurrences) FROM biwords ) |
language_corpus | How many occurrences does the word "panajot" have? | panajot refers to word = 'panajot' | SELECT occurrences FROM words WHERE word = 'panajot' |
language_corpus | Which word has the time of occurrences as 340691? | occurrences of 340691 refers to occurrences = 340691 | SELECT word FROM words WHERE occurrences = 340691 |
language_corpus | State the word ID for "periodograma". | word ID refers to wid; periodograma refers to word = 'periodograma' | SELECT wid FROM words WHERE word = 'periodograma' |
language_corpus | For the biwords pair that appears "116430" times, what is the second word of the pair? | the biwords pair that appears "116430" times refers to occurrences = 116430; second word of the pair refers to w2nd | SELECT T1.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w2nd WHERE T2.occurrences = 116430 |
language_corpus | How many times does the word "riu" appears in the biwords pair? | riu refers to word = 'riu'; SUM(w1st where wid is word = 'riu' AND w2nd where wid is word = 'riu') | 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' |
language_corpus | Which word has the most appearances in the Wikipedia page with the title of "Agricultura"? Give the word ID. | Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences) | 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 |
language_corpus | How many appearances does the word ID No. 2823 have in the Wikipedia page "Astre"? | Astre refers to title = 'Astre'; word ID No. 2823 refers to wid = 2823; appearances refers to pages_words_sampling.occurrences | 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 |
language_corpus | In which Wikipedia page does the word ID No. 174 have the most appearances? Give the title. | word ID No. 174 refers to wid = 174; appearances refers to pages_words_sampling.occurrences | SELECT title FROM pages WHERE pid = ( SELECT pid FROM pages_words WHERE wid = 174 ORDER BY occurrences DESC LIMIT 1 ) |
language_corpus | How many times does the word "heròdot" appear in the Wikipedia page? | heròdot refers to word = 'heròdot'; times appear refers to SUM(pid) | SELECT COUNT(T2.occurrences) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'heròdot' |
language_corpus | Which word has the most appearances in the Wikipedia page revision ID No. 28278070? Give the word ID. | the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid | SELECT pid FROM pages_words WHERE pid = ( SELECT pid FROM pages WHERE revision = 28278070 ) ORDER BY occurrences DESC LIMIT 1 |
language_corpus | How many times does the biwords "que gregorio" appear in the language? | que gregorio refers to w1st = wid where word = 'que' AND w2nd = wid where word = 'gregorio'; appear refers to biwords.occurrences | SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'que' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'gregorio' ) |
language_corpus | How many biword pairs contain the word "base" as the second word? | base refers to word = 'base'; SUM(w2nd) where w2nd = wid for word = 'base' | SELECT COUNT(w1st) FROM biwords WHERE w2nd = ( SELECT wid FROM words WHERE word = 'base' ) |
language_corpus | How many times of repetition does the word "exemple" show in the Catalan language? | exemple refers to word = 'exemple'; repetition refers to langs_words.occurrences; lid = 1 menas it's Catalan language | SELECT T2.occurrences FROM words AS T1 INNER JOIN langs_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'exemple' AND T2.lid = 1 |
language_corpus | Which word that has 274499 repetitions in the Catalan language? | lid = 1 menas it's Catalan language; 274499 repetitions refers to occurrences = 274499 | SELECT T1.word FROM words AS T1 INNER JOIN langs_words AS T2 ON T1.wid = T2.wid WHERE T2.occurrences = 274499 AND T2.lid = 1 |
language_corpus | How many times greater is the appearances of the biword pair "a base" than "a decimal"? | a, base AND decimal are words; wid is the ID of word; w1st is the first word of a biword pair; w2nd is the second word of a biword pair; appearances refers to biwords.occurrences; biword pair 'a base' refers to word = 'a' as w1st AND word = 'base' as w2nd; biword pair 'a decimal' refers to word = 'a' as w1st AND word = 'decimal' as w2nd; appearances of 'a base' greater than 'a decimal' refers to DIVIDE(SUBTRACT(biwords.occurrences'a base', biwords.occurrences'a decimal'), biwords.occurrences'a decimal') | SELECT CAST(occurrences AS REAL) / ( SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'a' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'decimal' ) ) FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'a' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'base' ) |
language_corpus | For the word "grec", what is the percentage of the appearances in the "Art" Wikipedia page have among all the appearances? | grec refers to word = 'grec'; Art refers to title = 'Art'; percentage is DIVIDE(occurrences(grec), occurences(Art))*100 | SELECT CAST(SUM(CASE WHEN T3.title = 'Art' THEN T2.occurrences ELSE 0 END) AS REAL) * 100 / SUM(T2.occurrences) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec' |
language_corpus | How many Wikipedia pages with over 4000 different words are there on the Catalan language? | lid = 1 means it's Catalan language; over 4000 different words means words > 4000; Wikipedia pages refers to pid | SELECT COUNT(lid) FROM pages WHERE lid = 1 AND words > 4000 |
language_corpus | Please list the titles of all the Wikipedia pages on the Catalan language with 10 different words. | lid = 1 means it's Catalan language; 10 different words refers to words = 10; titles refers to title | SELECT title FROM pages WHERE lid = 1 AND words = 10 LIMIT 10 |
language_corpus | What is the word that occurs the most in the Catalan language? | MAX(occurrences) | SELECT word FROM words WHERE occurrences = ( SELECT MAX(occurrences) FROM words ) |
language_corpus | Please list the titles of the top 3 Wikipedia pages with the most different words on the Catalan language. | lid = 1 means it's Catalan language; with most different words refers to MAX(words) | SELECT title FROM pages WHERE lid = 1 ORDER BY words DESC LIMIT 3 |
language_corpus | What is the revision ID for the page on Catalan titled "Arqueologia"? | lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision | SELECT revision FROM pages WHERE lid = 1 AND title = 'Arqueologia' |
language_corpus | Among the wikipedia pages on Catalan with more than 300 different words, how many of them have a revision ID of over 28330000? | lid = 1 means it's Catalan language; more than 300 different words refers to words > 300; revision ID of over 28330000 refers to revision > 28330000 | SELECT COUNT(lid) FROM pages WHERE lid = 1 AND words > 300 AND revision > 28330000 |
language_corpus | Please list the page IDs of all the Wikipedia pages that have the word "nombre" appeared on it. | nombre refers to word = 'nombre'; page IDs refers to pid | SELECT T2.pid FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'nombre' |
language_corpus | How many Wikipedia pages on Catalan are there with the word "nombre" appearing for more than 5 times? | nombre refers to word = 'nombre'; appear for more than 5 times refers to pages_words.occurrences > 5 | SELECT COUNT(T2.pid) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'nombre' AND T2.occurrences > 5 |
language_corpus | How many biwords pairs are there whose second word is "grec"? | grec refers to word = 'grec'; wid where word = 'grec' AS w2nd | SELECT COUNT(T2.w1st) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w2nd WHERE T1.word = 'grec' |
language_corpus | What is the title of the page on which the word "grec" has an occurrence of 52 times. | occurrence of 52 times refers to pages_words.occurrences = 52; grec refers to word = 'grec' | SELECT T3.title FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec' AND T2.occurrences = 52 |
language_corpus | Among the biwords pairs with "àbac" as its first word, how many of them have an occurrence of over 10? | àbac refers to word = 'àbac'; as first word refers to w1st; occurrence of over 10 refers to occurrences > 10 | SELECT COUNT(T2.w2nd) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st WHERE T1.word = 'àbac' AND T2.occurrences > 10 |
language_corpus | What is the average occurrence of the word "grec" on each Wikipedia page that has this word? | grec refers to word = 'grec'; AVG(occurrences where word = 'grec') | SELECT CAST(SUM(T2.occurrences) AS REAL) / COUNT(T1.wid) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'grec' |
airline | How many flights were there on 2018/8/1? | on 2018/8/1 refers to FL_DATE = '2018/8/1'; | SELECT COUNT(*) FROM Airlines WHERE FL_DATE = '2018/8/1' |
airline | Among the flights on 2018/8/1, how many of them departed from an airport in New York? | on 2018/8/1 refers to FL_DATE = '2018/8/1'; departed from an airport in New York refers to ORIGIN = 'JFK'; | SELECT COUNT(*) FROM Airlines WHERE FL_DATE = '2018/8/1' AND ORIGIN = 'JFK' |
airline | Please list the destination cities of all the flights that were cancelled on 2018/8/1. | destination cities refers to DEST; cancelled refers to CANCELLED = 1; on 2018/8/1 refers to FL_DATE = '2018/8/1'; | SELECT DEST FROM Airlines WHERE FL_DATE = '2018/8/1' AND CANCELLED = 1 GROUP BY DEST |
airline | Please list the dates of the flights that were cancelled due to the most serious reason. | dates of the flights refers to FL_DATE; cancelled refers to CANCELLED = 1; most serious reason refers to CANCELLATION_CODE = 'A'; | SELECT FL_DATE FROM Airlines WHERE CANCELLATION_CODE = 'A' GROUP BY FL_DATE |
airline | Please list the departure airports of the flights on 2018/8/1 that were delayed. | departure airports refers ORIGIN; on 2018/8/1 refers to FL_DATE = '2018/8/1'; delayed refers to DEP_DELAY > 0; | SELECT T1.Description FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T2.FL_DATE = '2018/8/1' AND T2.DEP_DELAY > 0 GROUP BY T1.Description |
airline | Among the flights on 2018/8/1, how many of them were scheduled to depart from John F. Kennedy International in New York? | on 2018/8/1 refers to FL_DATE = '2018/8/1'; depart from refers to ORIGIN; John F. Kennedy International in New York refers to Description = 'New York, NY: John F. Kennedy International'; | SELECT COUNT(T1.Code) FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T2.FL_DATE = '2018/8/1' AND T1.Description = 'New York, NY: John F. Kennedy International' |
airline | For the flight on 2018/8/1 that was delayed for the longest time, which was the destination airport of this flight? | on 2018/8/1 refers to FL_DATE = '2018/8/1'; delayed for the longest time refers to MAX(DEP_DELAY); destination airport refers to DEST; | SELECT T1.Description FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.DEST WHERE T2.FL_DATE = '2018/8/1' ORDER BY T2.DEP_DELAY DESC LIMIT 1 |
airline | Among the flights departing from John F. Kennedy International, how many of them arrived earlier than scheduled? | departing from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International'; arrived earlier than scheduled refers to ARR_DELAY < 0; | SELECT SUM(CASE WHEN T2.ARR_DELAY < 0 THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T1.Description = 'New York, NY: John F. Kennedy International' |
airline | Among all the flights scheduled to depart from John F. Kennedy International on 2018/8/1, when was the earliest one scheduled to depart? | depart from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International'; on 2018/8/1 refers to FL_DATE = '2018/8/1'; earliest one scheduled to depart refers to MIN(DEP_TIME); | SELECT T2.DEP_TIME FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T2.FL_DATE = '2018/8/1' AND T1.Description = 'New York, NY: John F. Kennedy International' AND T2.DEP_TIME IS NOT NULL ORDER BY T2.DEP_TIME ASC LIMIT 1 |
airline | Give the number of planes that took off from Los Angeles International airport on 2018/8/27. | took off from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; on 2018/8/27 refers to FL_DATE = '2018/8/27'; | SELECT SUM(CASE WHEN T2.FL_DATE = '2018/8/27' THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T1.Description = 'Los Angeles, CA: Los Angeles International' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.