instruction_seed
stringlengths
305
1.28k
response_seed
stringclasses
1 value
response
stringlengths
7
2.05k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_40 (type VARCHAR, formed_from VARCHAR) Question: Name the typed for formed from 6-pul trailer third in res unit Here is the SQLite query to answer to the ques...
Here is the SQLite query to answer the question: ``` SELECT type FROM table_name_40 WHERE formed_from = "6-pul trailer third in res unit" ```
26,500
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (type VARCHAR, formed_from VARCHAR)\n\n Question: Name the typed for formed from 6-pul trailer third in res unit\n\n...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_58 (formed_from VARCHAR, type VARCHAR) Question: Name the formed that has type of 4-cor Here is the SQLite query to answer to the question: Name the formed th...
Your provided SQLite query is correct for retrieving the `formed_from` names where the `type` is "4-cor". Here's the query wrapped in code formatting: ``` SELECT formed_from FROM table_name_58 WHERE type = "4-cor"; ```
26,501
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_58 (formed_from VARCHAR, type VARCHAR)\n\n Question: Name the formed that has type of 4-cor\n\nHere is the SQLite query...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_9 (loss VARCHAR, time VARCHAR) Question: Who lost with a time of 2:42? Here is the SQLite query to answer to the question: Who lost with a time of 2:42?: ``` ...
Here is the SQLite query to answer the question: Who lost with a time of 2:42?: ``` SELECT loss FROM table_name_9 WHERE time = "2:42"; ```
26,502
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (loss VARCHAR, time VARCHAR)\n\n Question: Who lost with a time of 2:42?\n\nHere is the SQLite query to answer to the...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_93 (loss VARCHAR, date VARCHAR) Question: Who lost on August 27? Here is the SQLite query to answer to the question: Who lost on August 27?: ``` SELECT loss F...
Here is the SQLite query to answer the question: Who lost on August 27?: ``` SELECT loss FROM table_name_93 WHERE date = "August 27"; ```
26,503
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (loss VARCHAR, date VARCHAR)\n\n Question: Who lost on August 27?\n\nHere is the SQLite query to answer to the quest...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_62 (points INTEGER, year INTEGER) Question: Which of the biggest points numbers had a year more recent than 1953? Here is the SQLite query to answer to the qu...
Here’s the SQLite query to answer the question: ```sql SELECT MAX(points) FROM table_name_62 WHERE year > 1953 ```
26,504
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_62 (points INTEGER, year INTEGER)\n\n Question: Which of the biggest points numbers had a year more recent than 1953?\n...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_68 (year INTEGER, points INTEGER) Question: How many years had more than 0 points? Here is the SQLite query to answer to the question: How many years had more...
To answer the question "How many years had more than 0 points?", you need to count the number of distinct years where points are greater than 0. The corrected SQL query should use the `COUNT` function instead of `SUM`, and you shouldn't sum the years but count them. Here is the proper SQL query: ``` SELECT COUNT(DISTI...
26,505
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (year INTEGER, points INTEGER)\n\n Question: How many years had more than 0 points?\n\nHere is the SQLite query to a...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_67 (entrant VARCHAR, year INTEGER) Question: Which entrant was present prior to 1953? Here is the SQLite query to answer to the question: Which entrant was pr...
Here is the SQLite query to answer the question about which entrant was present prior to 1953: ``` SELECT entrant FROM table_name_67 WHERE year < 1953 ```
26,506
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_67 (entrant VARCHAR, year INTEGER)\n\n Question: Which entrant was present prior to 1953?\n\nHere is the SQLite query t...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_77 (wickets VARCHAR, average VARCHAR, runs VARCHAR, matches VARCHAR) Question: How many wickets have runs under 7531, matches over 44, and an average of 22.17?...
Your query needs a slight adjustment to correctly count the number of wickets matching the specified criteria. You should use the `COUNT` function and remove the `wickets` selection from the `SELECT` clause. Here's the corrected SQL query: ``` SELECT COUNT(wickets) FROM table_name_77 WHERE runs < 7531 AND matches > 44...
26,507
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (wickets VARCHAR, average VARCHAR, runs VARCHAR, matches VARCHAR)\n\n Question: How many wickets have runs under 753...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_64 (wickets INTEGER, runs VARCHAR, matches VARCHAR) Question: What is the total number of wickets that have runs under 4600 and matches under 44? Here is the ...
Here is the SQLite query to answer the question regarding the total number of wickets that have runs under 4600 and matches under 44: ``` SELECT SUM(wickets) FROM table_name_64 WHERE CAST(runs AS INTEGER) < 4600 AND CAST(matches AS INTEGER) < 44; ``` Note: The `runs` and `matches` columns are stored as VARCHAR, so t...
26,508
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (wickets INTEGER, runs VARCHAR, matches VARCHAR)\n\n Question: What is the total number of wickets that have runs un...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_2 (label VARCHAR, catalog VARCHAR) Question: Which Label was cataloged as alca-9013? Here is the SQLite query to answer to the question: Which Label was catal...
Here's the SQLite query to answer the question regarding which label was cataloged as alca-9013: ``` SELECT label FROM table_name_2 WHERE catalog = "alca-9013"; ```
26,509
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (label VARCHAR, catalog VARCHAR)\n\n Question: Which Label was cataloged as alca-9013?\n\nHere is the SQLite query to...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_9 (catalog VARCHAR, label VARCHAR, format VARCHAR) Question: Which Catalog was formated as a CD under the label Alfa Records? Here is the SQLite query to answ...
Your SQLite query is mostly correct, but it is important to ensure that string comparisons are case-sensitive in SQLite unless you explicitly handle case insensitivity. Assuming "Alfa Records" has a capital "A" and is not in all lowercase, here's the corrected query ensuring that the label is checked in a case-insensit...
26,510
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (catalog VARCHAR, label VARCHAR, format VARCHAR)\n\n Question: Which Catalog was formated as a CD under the label Alf...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_50 (retired INTEGER, poaf_serial VARCHAR, delivery VARCHAR, in_service VARCHAR) Question: What is the earliest year retired delivered in 1965 with an in servic...
Here is the SQLite query to answer the question you provided, wrapped in code formatting: ``` SELECT MIN(retired) FROM table_name_50 WHERE delivery = "1965" AND in_service = "november 1971" AND poaf_serial < 7103; ```
26,511
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (retired INTEGER, poaf_serial VARCHAR, delivery VARCHAR, in_service VARCHAR)\n\n Question: What is the earliest year...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_80 (freight_carried_s_tonne INTEGER, year VARCHAR, road_closed VARCHAR, super_b_capacity_reached_ VARCHAR, _citation_needed_ VARCHAR) Question: What is the sma...
Your query is attempting to select the minimum amount of freight carried under specific conditions regarding the road closure date and super B capacity. However, it seems there's a minor mistake in accessing the `super_b_capacity_reached_` field. You don't need to include `_citation_needed_` in the column name in the q...
26,512
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (freight_carried_s_tonne INTEGER, year VARCHAR, road_closed VARCHAR, super_b_capacity_reached_ VARCHAR, _citation_neede...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_95 (english_title VARCHAR, original_title VARCHAR) Question: What's the English title listed that has an Original title of The Crying Game? Here is the SQLite...
Here is the SQLite query to answer the question about the English title with the original title "The Crying Game": ``` SELECT english_title FROM table_name_95 WHERE original_title = "The Crying Game"; ```
26,513
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (english_title VARCHAR, original_title VARCHAR)\n\n Question: What's the English title listed that has an Original t...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_13 (year VARCHAR, original_title VARCHAR) Question: Which Year has the Orginal title of La Cérémonie? Here is the SQLite query to answer to the question: Whic...
Here is the SQLite query to answer the question about which year has the original title of "La Cérémonie": ``` SELECT year FROM table_name_13 WHERE original_title = "La Cérémonie"; ```
26,514
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_13 (year VARCHAR, original_title VARCHAR)\n\n Question: Which Year has the Orginal title of La Cérémonie?\n\nHere is th...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_70 (original_title VARCHAR, english_title VARCHAR) Question: What's the Original Title of the English title A Judgement in Stone? Here is the SQLite query to ...
Here is the SQLite query to answer the question regarding the original title of the English title "A Judgement in Stone": ``` SELECT original_title FROM table_name_70 WHERE english_title = "A Judgement in Stone"; ```
26,515
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (original_title VARCHAR, english_title VARCHAR)\n\n Question: What's the Original Title of the English title A Judge...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_59 (director VARCHAR, original_title VARCHAR) Question: Who is the Director of the Original title of The Crying Game? Here is the SQLite query to answer to th...
Here is the SQLite query to answer the question about the director of the original title of "The Crying Game": ``` SELECT director FROM table_name_59 WHERE original_title = "The Crying Game"; ```
26,516
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (director VARCHAR, original_title VARCHAR)\n\n Question: Who is the Director of the Original title of The Crying Gam...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_74 (country VARCHAR, director VARCHAR) Question: Which Country is listed for the Director Thomas Vinterberg? Here is the SQLite query to answer to the questio...
Here is the SQLite query to answer the question about which country is listed for the director Thomas Vinterberg: ```sql SELECT country FROM table_name_74 WHERE director = "Thomas Vinterberg"; ```
26,517
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (country VARCHAR, director VARCHAR)\n\n Question: Which Country is listed for the Director Thomas Vinterberg?\n\nHer...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_79 (country VARCHAR, director VARCHAR) Question: Which Country has the Director Chen Kaige? Here is the SQLite query to answer to the question: Which Country ...
Here is the SQLite query to answer the question: Which Country has the Director Chen Kaige?: ```sql SELECT country FROM table_name_79 WHERE director = "Chen Kaige"; ```
26,518
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (country VARCHAR, director VARCHAR)\n\n Question: Which Country has the Director Chen Kaige?\n\nHere is the SQLite q...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_2 (score VARCHAR, attendance VARCHAR) Question: What was the score of the game attended by 50,200? Here is the SQLite query to answer to the question: What wa...
Here is the SQLite query to answer the question regarding the score of the game attended by 50,200: ``` SELECT score FROM table_name_2 WHERE attendance = "50,200"; ```
26,519
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (score VARCHAR, attendance VARCHAR)\n\n Question: What was the score of the game attended by 50,200?\n\nHere is the S...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_34 (termination_of_mission VARCHAR, presentation_of_credentials VARCHAR) Question: What's the Termination of Mission listed that has a Presentation of Credenti...
Here is the SQLite query to answer the question regarding the Termination of Mission listed that has a Presentation of Credentials for August 29, 1859: ``` SELECT termination_of_mission FROM table_name_34 WHERE presentation_of_credentials = "August 29, 1859"; ```
26,520
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_34 (termination_of_mission VARCHAR, presentation_of_credentials VARCHAR)\n\n Question: What's the Termination of Missio...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_80 (representative VARCHAR, presentation_of_credentials VARCHAR) Question: What's the Representative listed that has a Presentation of Credentials of August 25...
Here is the SQLite query to answer the question about the representative with a Presentation of Credentials of August 25, 1851: ```sql SELECT representative FROM table_name_80 WHERE presentation_of_credentials = "August 25, 1851"; ```
26,521
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (representative VARCHAR, presentation_of_credentials VARCHAR)\n\n Question: What's the Representative listed that ha...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_93 (title VARCHAR, termination_of_mission VARCHAR) Question: What Title has a Termination of Mission for August 13, 1854? Here is the SQLite query to answer t...
Here is the SQLite query to answer the question regarding the title with a termination of mission for August 13, 1854: ``` SELECT title FROM table_name_93 WHERE termination_of_mission = 'August 13, 1854'; ```
26,522
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (title VARCHAR, termination_of_mission VARCHAR)\n\n Question: What Title has a Termination of Mission for August 13,...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_60 (title VARCHAR, termination_of_mission VARCHAR) Question: What Title has a Termination of Mission of November 4, 1861? Here is the SQLite query to answer t...
Your SQLite query has a small issue with the case sensitivity of the date format. SQLite is case-sensitive when matching string literals, so you should ensure the string in your query matches the format in the database exactly. If the date in the database is stored as "November 4, 1861" (with an uppercase "N"), then yo...
26,523
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_60 (title VARCHAR, termination_of_mission VARCHAR)\n\n Question: What Title has a Termination of Mission of November 4,...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_42 (representative VARCHAR, presentation_of_credentials VARCHAR) Question: What Representative has a Presentation of Credentails of April 10, 1855? Here is th...
Here is the SQLite query to answer the question regarding the representative with a presentation of credentials on April 10, 1855: ``` SELECT representative FROM table_name_42 WHERE presentation_of_credentials = "April 10, 1855"; ```
26,524
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (representative VARCHAR, presentation_of_credentials VARCHAR)\n\n Question: What Representative has a Presentation o...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_21 (title VARCHAR, appointed_by VARCHAR) Question: Which Title has an Appointed by of Millard Fillmore? Here is the SQLite query to answer to the question: Wh...
Here is the SQLite query to answer the question regarding which title has an appointed by of Millard Fillmore: ```sql SELECT title FROM table_name_21 WHERE appointed_by = "Millard Fillmore"; ```
26,525
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (title VARCHAR, appointed_by VARCHAR)\n\n Question: Which Title has an Appointed by of Millard Fillmore?\n\nHere is ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_42 (opponent VARCHAR, year VARCHAR, partner VARCHAR) Question: Who was Choong Tan Fook's opponent in 1999? Here is the SQLite query to answer to the question:...
Here is the corrected SQLite query to answer the question about Choong Tan Fook's opponent in 1999: ``` SELECT opponent FROM table_name_42 WHERE year = '1999' AND partner = 'Choong Tan Fook'; ``` Note that the year should be enclosed in single quotes, as it is defined as a VARCHAR in the schema. Additionally, make s...
26,526
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (opponent VARCHAR, year VARCHAR, partner VARCHAR)\n\n Question: Who was Choong Tan Fook's opponent in 1999?\n\nHere ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_66 (opponent VARCHAR, tournament VARCHAR, year VARCHAR) Question: Which opponent played in the Chinese Taipei Open in 2000? Here is the SQLite query to answer...
Here is the SQLite query to answer the question about which opponent played in the Chinese Taipei Open in 2000: ``` SELECT opponent FROM table_name_66 WHERE tournament = "Chinese Taipei Open" AND year = "2000"; ```
26,527
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_66 (opponent VARCHAR, tournament VARCHAR, year VARCHAR)\n\n Question: Which opponent played in the Chinese Taipei Open ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_6 (bronze VARCHAR, nation VARCHAR, total VARCHAR) Question: How many bronzes have a Nation of jamaica (jam), and a Total smaller than 7? Here is the SQLite qu...
Your query is almost correct, but there is one important detail to address: since the `total` column is defined as `VARCHAR`, you will need to cast it to an integer for the comparison. Here's the corrected query wrapped in code blocks: ``` SELECT COUNT(bronze) FROM table_name_6 WHERE nation = "jamaica (jam)" AND CAS...
26,528
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (bronze VARCHAR, nation VARCHAR, total VARCHAR)\n\n Question: How many bronzes have a Nation of jamaica (jam), and a ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_82 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR) Question: What is the average silver with more than 0 gold, a Rank of 1, and a Total smaller tha...
Here's the corrected SQLite query to find the average silver with the specified conditions: ```sql SELECT AVG(silver) FROM table_name_82 WHERE CAST(gold AS INTEGER) > 0 AND rank = '1' AND CAST(total AS INTEGER) < 30; ``` Note: We cast `gold` and `total` to INTEGER, assuming they may be stored as VARCHAR in the da...
26,529
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_82 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)\n\n Question: What is the average silver with more than ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_2 (gold INTEGER, total INTEGER) Question: What is the total gold with a total less than 1? Here is the SQLite query to answer to the question: What is the tot...
Here is the SQLite query to answer the question regarding the total gold with a total less than 1: ``` SELECT SUM(gold) FROM table_name_2 WHERE total < 1 ```
26,530
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (gold INTEGER, total INTEGER)\n\n Question: What is the total gold with a total less than 1?\n\nHere is the SQLite qu...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_87 (nir_number VARCHAR, type VARCHAR, br_number_s_ VARCHAR) Question: Which NIR number is for the tso (ex-br class 488 unit 488305) type that has a 6082 / 7260...
Here is the SQLite query to answer the question: ``` SELECT nir_number FROM table_name_87 WHERE type = "tso (ex-br class 488 unit 488305)" AND br_number_s_ = "6082 / 72605"; ```
26,531
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (nir_number VARCHAR, type VARCHAR, br_number_s_ VARCHAR)\n\n Question: Which NIR number is for the tso (ex-br class ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_32 (authority VARCHAR, name VARCHAR) Question: What is the Whakamaru school's authority? Here is the SQLite query to answer to the question: What is the Whaka...
Here is the SQLite query to answer the question about Whakamaru school's authority: ```sql SELECT authority FROM table_name_32 WHERE name = "whakamaru school"; ```
26,532
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (authority VARCHAR, name VARCHAR)\n\n Question: What is the Whakamaru school's authority?\n\nHere is the SQLite quer...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_11 (area VARCHAR, authority VARCHAR, roll VARCHAR) Question: Where is the school with state authority that has a roll of more than 157 students? Here is the S...
Here is the SQLite query to answer the question about the school with state authority that has a roll of more than 157 students: ``` SELECT area FROM table_name_11 WHERE authority = "state" AND roll > 157 ```
26,533
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_11 (area VARCHAR, authority VARCHAR, roll VARCHAR)\n\n Question: Where is the school with state authority that has a ro...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_12 (subject VARCHAR, pinyin VARCHAR) Question: Name the subject of shiyan Here is the SQLite query to answer to the question: Name the subject of shiyan: ``` ...
Here is the SQLite query to answer the question "Name the subject of shiyan": ``` SELECT subject FROM table_name_12 WHERE pinyin = "shiyan"; ```
26,534
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_12 (subject VARCHAR, pinyin VARCHAR)\n\n Question: Name the subject of shiyan\n\nHere is the SQLite query to answer to ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_50 (chinese VARCHAR, subject VARCHAR) Question: Name the chinese with subject of adjectives, adverbs, mostly with reduplication Here is the SQLite query to an...
Here is the SQLite query to answer the question regarding the Chinese words associated with the specified subject: ``` SELECT chinese FROM table_name_50 WHERE subject = 'adjectives, adverbs, mostly with reduplication'; ```
26,535
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (chinese VARCHAR, subject VARCHAR)\n\n Question: Name the chinese with subject of adjectives, adverbs, mostly with r...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_74 (chapter VARCHAR, chinese VARCHAR) Question: Name the total number of chapter for chinese of 釋宮 Here is the SQLite query to answer to the question: Name th...
Here is the SQLite query to answer the question regarding the total number of chapters for the Chinese text "釋宮": ``` SELECT COUNT(chapter) FROM table_name_74 WHERE chinese = '釋宮'; ```
26,536
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (chapter VARCHAR, chinese VARCHAR)\n\n Question: Name the total number of chapter for chinese of 釋宮\n\nHere is the S...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_24 (chapter INTEGER, chinese VARCHAR) Question: Name the highest chapter with chinese of 釋言 Here is the SQLite query to answer to the question: Name the highe...
Here is the SQLite query to answer the question regarding the highest chapter with the Chinese text "釋言": ``` SELECT MAX(chapter) FROM table_name_24 WHERE chinese = "釋言" ```
26,537
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_24 (chapter INTEGER, chinese VARCHAR)\n\n Question: Name the highest chapter with chinese of 釋言\n\nHere is the SQLite q...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_28 (chapter VARCHAR, chinese VARCHAR) Question: Name the chapter with chinese of 釋水 Here is the SQLite query to answer to the question: Name the chapter with ...
Here is the SQLite query to answer the question: Name the chapter with chinese of 釋水: ``` SELECT chapter FROM table_name_28 WHERE chinese = "釋水"; ```
26,538
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (chapter VARCHAR, chinese VARCHAR)\n\n Question: Name the chapter with chinese of 釋水\n\nHere is the SQLite query to ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_93 (entrant VARCHAR, engine VARCHAR, year VARCHAR) Question: Who used Gordini Straight-6 in 1956? Here is the SQLite query to answer to the question: Who used...
Here is the SQLite query to answer the question: Who used Gordini Straight-6 in 1956?: ``` SELECT entrant FROM table_name_93 WHERE engine = "Gordini Straight-6" AND year = "1956"; ```
26,539
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (entrant VARCHAR, engine VARCHAR, year VARCHAR)\n\n Question: Who used Gordini Straight-6 in 1956?\n\nHere is the SQ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_87 (entrant VARCHAR, year VARCHAR) Question: Who was in 1963? Here is the SQLite query to answer to the question: Who was in 1963?: ``` SELECT entrant FROM ta...
Here is the SQLite query to answer the question "Who was in 1963?": ``` SELECT entrant FROM table_name_87 WHERE year = '1963' ```
26,540
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (entrant VARCHAR, year VARCHAR)\n\n Question: Who was in 1963?\n\nHere is the SQLite query to answer to the question...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_48 (score VARCHAR, date VARCHAR) Question: Name the score for september 11 Here is the SQLite query to answer to the question: Name the score for september 11...
Here is the SQLite query to answer the question regarding the score for September 11: ``` SELECT score FROM table_name_48 WHERE date = 'september 11'; ```
26,541
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_48 (score VARCHAR, date VARCHAR)\n\n Question: Name the score for september 11\n\nHere is the SQLite query to answer to...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_23 (loss VARCHAR, record VARCHAR) Question: Name the loss for record of 71-81 Here is the SQLite query to answer to the question: Name the loss for record of ...
Sure! Here is the SQLite query wrapped as you requested: ``` SELECT loss FROM table_name_23 WHERE record = "71-81"; ```
26,542
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (loss VARCHAR, record VARCHAR)\n\n Question: Name the loss for record of 71-81\n\nHere is the SQLite query to answer...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_17 (score VARCHAR, record VARCHAR) Question: Name the score which has record of 73-83 Here is the SQLite query to answer to the question: Name the score which...
Here's the SQLite query to answer the question regarding the score associated with the record "73-83": ``` SELECT score FROM table_name_17 WHERE record = '73-83'; ```
26,543
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_17 (score VARCHAR, record VARCHAR)\n\n Question: Name the score which has record of 73-83\n\nHere is the SQLite query t...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_20 (date VARCHAR, record VARCHAR) Question: Name the date for record of 74-84 Here is the SQLite query to answer to the question: Name the date for record of ...
Here is the SQLite query to answer the question "Name the date for record of 74-84": ``` SELECT date FROM table_name_20 WHERE record = "74-84" ```
26,544
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (date VARCHAR, record VARCHAR)\n\n Question: Name the date for record of 74-84\n\nHere is the SQLite query to answer...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_66 (overall_ranking INTEGER, index VARCHAR) Question: For all events with index f10, what is the sum of the overall rankings? Here is the SQLite query to answ...
Your provided SQLite query is correct. It properly calculates the sum of the `overall_ranking` for all entries in `table_name_66` where the `index` is "f10". Here's the query wrapped in the appropriate format: ``` SELECT SUM(overall_ranking) FROM table_name_66 WHERE index = "f10"; ```
26,545
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_66 (overall_ranking INTEGER, index VARCHAR)\n\n Question: For all events with index f10, what is the sum of the overall...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_23 (status VARCHAR, index VARCHAR) Question: For the event with index f7, what is the status? Here is the SQLite query to answer to the question: For the even...
Here is the SQLite query to answer the question regarding the status for the event with index f7: ``` SELECT status FROM table_name_23 WHERE index = "f7"; ```
26,546
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (status VARCHAR, index VARCHAR)\n\n Question: For the event with index f7, what is the status?\n\nHere is the SQLite...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_49 (talent_segment VARCHAR, index VARCHAR) Question: For the event with index f9, what's the talent segment? Here is the SQLite query to answer to the questio...
Here is the SQLite query to answer the question: ``` SELECT talent_segment FROM table_name_49 WHERE index = "f9"; ```
26,547
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (talent_segment VARCHAR, index VARCHAR)\n\n Question: For the event with index f9, what's the talent segment?\n\nHer...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_36 (acting_segment VARCHAR, status VARCHAR, name VARCHAR) Question: What's the acting segment of 林佩琪 lin peiqi's events that are eliminated? Here is the SQLit...
Here is the SQLite query to answer the question about 林佩琪 lin peiqi's events that are eliminated: ``` SELECT acting_segment FROM table_name_36 WHERE status = "eliminated" AND name = "林佩琪 lin peiqi" ```
26,548
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_36 (acting_segment VARCHAR, status VARCHAR, name VARCHAR)\n\n Question: What's the acting segment of 林佩琪 lin peiqi's ev...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_12 (overall_ranking VARCHAR, status VARCHAR, name VARCHAR) Question: What's the total number of overall rankings of 廖尹宁 jvnne leow's events that are eliminated...
Here is the SQLite query to answer the question regarding the total number of overall rankings of 廖尹宁 jvnne leow's events that are eliminated: ``` SELECT COUNT(overall_ranking) FROM table_name_12 WHERE status = "eliminated" AND name = "廖尹宁 jvnne leow"; ```
26,549
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_12 (overall_ranking VARCHAR, status VARCHAR, name VARCHAR)\n\n Question: What's the total number of overall rankings of...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_9 (opponent VARCHAR, round VARCHAR) Question: Who was the opponent at the qf(r) round? Here is the SQLite query to answer to the question: Who was the opponen...
Your SQLite query is correctly structured to retrieve the opponent at the "qf(r)" round from the specified table. Here’s the formatted code: ``` SELECT opponent FROM table_name_9 WHERE round = "qf(r)" ```
26,550
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (opponent VARCHAR, round VARCHAR)\n\n Question: Who was the opponent at the qf(r) round?\n\nHere is the SQLite query ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_60 (date VARCHAR, venue VARCHAR, opponent VARCHAR) Question: What day was the game held at Firhill against AYR United? Here is the SQLite query to answer to t...
Here is the SQLite query to answer the question about the day the game was held at Firhill against AYR United: ``` SELECT date FROM table_name_60 WHERE venue = "Firhill" AND opponent = "AYR United"; ```
26,551
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_60 (date VARCHAR, venue VARCHAR, opponent VARCHAR)\n\n Question: What day was the game held at Firhill against AYR Unit...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_26 (attendance INTEGER, venue VARCHAR, round VARCHAR) Question: What is the average attendance at a game held at Firhill for the 5(r) round? Here is the SQLit...
Your SQLite query to find the average attendance at a game held at Firhill for the 5(r) round is correct. Here it is wrapped in code formatting: ``` SELECT AVG(attendance) FROM table_name_26 WHERE venue = "Firhill" AND round = "5(r)"; ``` Make sure to match the case of the venue name as it appears in the database if ...
26,552
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (attendance INTEGER, venue VARCHAR, round VARCHAR)\n\n Question: What is the average attendance at a game held at Fi...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_18 (opponent VARCHAR, record VARCHAR) Question: Who was the opponent when the Seattle Seahawks had a record of 0-1? Here is the SQLite query to answer to the ...
Here is the SQLite query to answer the question about the opponent when the Seattle Seahawks had a record of 0-1: ``` SELECT opponent FROM table_name_18 WHERE record = "0-1"; ```
26,553
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (opponent VARCHAR, record VARCHAR)\n\n Question: Who was the opponent when the Seattle Seahawks had a record of 0-1?...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_87 (opponent VARCHAR, record VARCHAR) Question: Who was the opponent when the Seattle Seahawks had a record of 8-7? Here is the SQLite query to answer to the ...
Here is the SQLite query wrapped in the appropriate code block: ``` SELECT opponent FROM table_name_87 WHERE record = "8-7" AND opponent = "Seattle Seahawks"; ```
26,554
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (opponent VARCHAR, record VARCHAR)\n\n Question: Who was the opponent when the Seattle Seahawks had a record of 8-7?...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_40 (points VARCHAR, year INTEGER) Question: How many points after 1956? Here is the SQLite query to answer to the question: How many points after 1956?: ``` S...
Here is the SQLite query to answer the question about how many points were recorded after 1956: ``` SELECT COUNT(points) FROM table_name_40 WHERE year > 1956 ```
26,555
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (points VARCHAR, year INTEGER)\n\n Question: How many points after 1956?\n\nHere is the SQLite query to answer to th...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_83 (chassis VARCHAR, points VARCHAR, year VARCHAR, engine VARCHAR) Question: Before 1956, what Chassis has Gordini Straight-4 engine with 3 points? Here is th...
Your SQLite query appears to be almost correct, but there's a minor detail with the `points` column. Since points are stored as a VARCHAR, you should use single quotes for the string literal '3' when filtering. Here is the corrected query: ``` SELECT chassis FROM table_name_83 WHERE year < '1956' AND engine = 'gordini...
26,556
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (chassis VARCHAR, points VARCHAR, year VARCHAR, engine VARCHAR)\n\n Question: Before 1956, what Chassis has Gordini ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_15 (engine VARCHAR, entrant VARCHAR, year VARCHAR, points VARCHAR) Question: What engine was used by Equipe Simca Gordini before 1956 with less than 4 points? ...
Here is the SQLite query to answer the question regarding the engine used by Equipe Simca Gordini before 1956 with less than 4 points: ``` SELECT engine FROM table_name_15 WHERE year < '1956' AND points < '4' AND entrant = 'Equipe Simca Gordini'; ``` Please note that I adjusted the comparison of `year` and `points` ...
26,557
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_15 (engine VARCHAR, entrant VARCHAR, year VARCHAR, points VARCHAR)\n\n Question: What engine was used by Equipe Simca G...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_92 (chassis VARCHAR, points VARCHAR, entrant VARCHAR) Question: What chassis has smaller than 9 points by Equipe Rosier? Here is the SQLite query to answer to...
Here is the SQLite query to answer the question about which chassis has smaller than 9 points by Equipe Rosier: ``` SELECT chassis FROM table_name_92 WHERE points < 9 AND entrant = "Equipe Rosier"; ```
26,558
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_92 (chassis VARCHAR, points VARCHAR, entrant VARCHAR)\n\n Question: What chassis has smaller than 9 points by Equipe Ro...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_53 (winner VARCHAR, season VARCHAR) Question: Who was the winner in the 2008 season? Here is the SQLite query to answer to the question: Who was the winner in...
Here is the SQLite query to answer the question: Who was the winner in the 2008 season?: ``` SELECT winner FROM table_name_53 WHERE season = '2008' ```
26,559
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_53 (winner VARCHAR, season VARCHAR)\n\n Question: Who was the winner in the 2008 season?\n\nHere is the SQLite query to...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_21 (investing_dragon_s_ VARCHAR, company_or_product_name VARCHAR) Question: Who is the company Investing Dragons, or tiny box? Here is the SQLite query to ans...
Here is the SQLite query to answer the question: Who is the company Investing Dragons, or tiny box?: ``` SELECT investing_dragon_s_ FROM table_name_21 WHERE company_or_product_name IN ("tiny box", "Investing Dragons"); ```
26,560
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (investing_dragon_s_ VARCHAR, company_or_product_name VARCHAR)\n\n Question: Who is the company Investing Dragons, o...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_98 (first_aired VARCHAR, episode VARCHAR, entrepreneur_s_ VARCHAR) Question: When did episode 6 first air with entrepreneur Guy Portelli? Here is the SQLite q...
Your SQLite query to find out when episode 6 first aired with entrepreneur Guy Portelli is correctly structured. Here it is wrapped in the requested code block: ```sql SELECT first_aired FROM table_name_98 WHERE episode = "episode 6" AND entrepreneur_s_ = "guy portelli" ```
26,561
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (first_aired VARCHAR, episode VARCHAR, entrepreneur_s_ VARCHAR)\n\n Question: When did episode 6 first air with entr...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_39 (money_requested__£_ VARCHAR, company_or_product_name VARCHAR) Question: How much money did the company Neurotica request? Here is the SQLite query to answ...
Here is the SQLite query to answer the question about how much money the company Neurotica requested: ``` SELECT money_requested__£_ FROM table_name_39 WHERE company_or_product_name = "Neurotica"; ```
26,562
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_39 (money_requested__£_ VARCHAR, company_or_product_name VARCHAR)\n\n Question: How much money did the company Neurotic...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_28 (hits INTEGER, year VARCHAR, player VARCHAR) Question: Name the least hits for year less than 1920 and player of ed delahanty Here is the SQLite query to a...
Your SQLite query appears to be correct. Here it is wrapped in the appropriate code block format: ``` SELECT MIN(hits) FROM table_name_28 WHERE year < '1920' AND player = 'ed delahanty'; ``` Note that I used single quotes for the string `'1920'` and `'ed delahanty'` which is the preferred practice in SQL.
26,563
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (hits INTEGER, year VARCHAR, player VARCHAR)\n\n Question: Name the least hits for year less than 1920 and player of...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_8 (player VARCHAR, year VARCHAR, hits VARCHAR) Question: Name the player with 238 hits and years after 1885 Here is the SQLite query to answer to the question...
Here is the SQLite query to answer the question: Name the player with 238 hits and years after 1885: ``` SELECT player FROM table_name_8 WHERE year > 1885 AND hits = 238 ```
26,564
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (player VARCHAR, year VARCHAR, hits VARCHAR)\n\n Question: Name the player with 238 hits and years after 1885\n\nHere...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_86 (hits VARCHAR, year INTEGER) Question: Name the hits for years before 1883 Here is the SQLite query to answer to the question: Name the hits for years befo...
Here is the SQLite query to answer the question: Name the hits for years before 1883: ``` SELECT hits FROM table_name_86 WHERE year < 1883 ```
26,565
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_86 (hits VARCHAR, year INTEGER)\n\n Question: Name the hits for years before 1883\n\nHere is the SQLite query to answer...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_41 (attendance VARCHAR, location VARCHAR, date VARCHAR) Question: For the game that was played on october 22 in west side grounds, what is the total attendance...
Your query is almost correct, but it seems you're trying to count the number of attendance records, which may not give you the total attendance if the `attendance` field contains actual attendance numbers. If the `attendance` field contains actual numeric values representing attendance figures, you should sum those val...
26,566
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (attendance VARCHAR, location VARCHAR, date VARCHAR)\n\n Question: For the game that was played on october 22 in wes...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_47 (game INTEGER, time VARCHAR, attendance VARCHAR) Question: Which week was the first game played that had a time of 2:06 and less than 27,374 attendees? Her...
It looks like there are some issues with the provided SQLite query. The use of `OFFSET` in combination with a comparison operator is incorrect. Additionally, if you want to find a specific week and also ensure that you retrieve the week number correctly, you would typically need to extract or define what constitutes a ...
26,567
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (game INTEGER, time VARCHAR, attendance VARCHAR)\n\n Question: Which week was the first game played that had a time ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_5 (class VARCHAR, pos VARCHAR, laps VARCHAR) Question: In which class had 252 laps and a position of dnf? Here is the SQLite query to answer to the question: ...
Here is the SQLite query you requested: ``` SELECT class FROM table_name_5 WHERE pos = "dnf" AND laps = 252 ```
26,568
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_5 (class VARCHAR, pos VARCHAR, laps VARCHAR)\n\n Question: In which class had 252 laps and a position of dnf?\n\nHere i...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_35 (pos VARCHAR, year VARCHAR) Question: What was the position in 1997? Here is the SQLite query to answer to the question: What was the position in 1997?: ``...
Here is the SQLite query to answer the question "What was the position in 1997?": ``` SELECT pos FROM table_name_35 WHERE year = '1997' ```
26,569
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_35 (pos VARCHAR, year VARCHAR)\n\n Question: What was the position in 1997?\n\nHere is the SQLite query to answer to th...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_99 (kit_manufacturer VARCHAR, team VARCHAR) Question: Which Kit manufacturer sponsers Arsenal? Here is the SQLite query to answer to the question: Which Kit m...
Here is the SQLite query to answer the question: Which Kit manufacturer sponsors Arsenal?: ``` SELECT kit_manufacturer FROM table_name_99 WHERE team = "arsenal"; ```
26,570
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_99 (kit_manufacturer VARCHAR, team VARCHAR)\n\n Question: Which Kit manufacturer sponsers Arsenal?\n\nHere is the SQLit...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_31 (captain VARCHAR, manager VARCHAR) Question: Which captain is managed by gianluca vialli? Here is the SQLite query to answer to the question: Which captain...
Here is the SQLite query to answer the question: Which captain is managed by gianluca vialli?: ``` SELECT captain FROM table_name_31 WHERE manager = "gianluca vialli" ```
26,571
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (captain VARCHAR, manager VARCHAR)\n\n Question: Which captain is managed by gianluca vialli?\n\nHere is the SQLite ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_90 (kit_manufacturer VARCHAR, team VARCHAR) Question: Which Kit Manufacturer supports team Everton? Here is the SQLite query to answer to the question: Which ...
Here is the SQLite query to answer the question about which Kit Manufacturer supports the team Everton: ``` SELECT kit_manufacturer FROM table_name_90 WHERE team = "Everton"; ```
26,572
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (kit_manufacturer VARCHAR, team VARCHAR)\n\n Question: Which Kit Manufacturer supports team Everton?\n\nHere is the ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_28 (team VARCHAR, manager VARCHAR) Question: Which team does David O'leary manage? Here is the SQLite query to answer to the question: Which team does David O...
Here is the SQLite query to answer the question: Which team does David O'leary manage?: ``` SELECT team FROM table_name_28 WHERE manager = "David O'leary"; ```
26,573
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (team VARCHAR, manager VARCHAR)\n\n Question: Which team does David O'leary manage?\n\nHere is the SQLite query to a...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_68 (shirt_sponsor VARCHAR, kit_manufacturer VARCHAR) Question: Which shirt sponser has Nike as a kit manufacturer? Here is the SQLite query to answer to the q...
The SQLite query you provided is almost correct, but it should match the brand "Nike" with a capital "N" since it is a proper noun. Here’s the corrected version of the query: ``` SELECT shirt_sponsor FROM table_name_68 WHERE kit_manufacturer = "Nike"; ``` This query will return the shirt sponsors that have "Nike" as...
26,574
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (shirt_sponsor VARCHAR, kit_manufacturer VARCHAR)\n\n Question: Which shirt sponser has Nike as a kit manufacturer?\...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_31 (title VARCHAR, year VARCHAR, platform VARCHAR) Question: Which title has a year prior to 2008 and xbox 360 as the platform? Here is the SQLite query to an...
Here is the SQLite query to answer the question regarding titles with a year prior to 2008 and "xbox 360" as the platform: ``` SELECT title FROM table_name_31 WHERE year < '2008' AND platform = 'xbox 360'; ``` Please note that since the `year` column is of type `VARCHAR`, we must ensure that we compare it correctly ...
26,575
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (title VARCHAR, year VARCHAR, platform VARCHAR)\n\n Question: Which title has a year prior to 2008 and xbox 360 as t...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_4 (publisher VARCHAR, title VARCHAR) Question: Which publisher has Far Cry as the title? Here is the SQLite query to answer to the question: Which publisher h...
Here is the SQLite query to answer the question regarding which publisher has "Far Cry" as the title: ``` SELECT publisher FROM table_name_4 WHERE title = "Far Cry"; ``` Make sure to use the correct case for "Far Cry" based on your database entries. If you want to make the query case-insensitive, you can use the `LO...
26,576
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (publisher VARCHAR, title VARCHAR)\n\n Question: Which publisher has Far Cry as the title?\n\nHere is the SQLite quer...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_85 (title VARCHAR, platform VARCHAR, year VARCHAR) Question: Which title has xbox as the platform with a year prior to 2006? Here is the SQLite query to answe...
Here is the corrected SQLite query to answer the question regarding titles that have "xbox" as the platform and a year prior to 2006: ``` SELECT title FROM table_name_85 WHERE platform = 'xbox' AND year < '2006'; ``` Please note that in the query, the year is treated as a string due to the `VARCHAR` type. However, f...
26,577
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_85 (title VARCHAR, platform VARCHAR, year VARCHAR)\n\n Question: Which title has xbox as the platform with a year prior...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_59 (developer VARCHAR, platform VARCHAR) Question: Which developer has xbox 360 as the platform? Here is the SQLite query to answer to the question: Which dev...
Here is the SQLite query to answer the question about which developer has Xbox 360 as the platform: ``` SELECT developer FROM table_name_59 WHERE platform = "xbox 360"; ```
26,578
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (developer VARCHAR, platform VARCHAR)\n\n Question: Which developer has xbox 360 as the platform?\n\nHere is the SQL...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_93 (year INTEGER, title VARCHAR) Question: What is the average year that has far cry vengeance as the title? Here is the SQLite query to answer to the questio...
Here is the SQLite query to answer the question about the average year that has "far cry vengeance" as the title: ``` SELECT AVG(year) FROM table_name_93 WHERE title = "far cry vengeance" ```
26,579
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (year INTEGER, title VARCHAR)\n\n Question: What is the average year that has far cry vengeance as the title?\n\nHer...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_9 (position INTEGER, goal_difference VARCHAR, goals_against VARCHAR, losses VARCHAR) Question: Which position is the highest to have less than 54 goals, a loss...
Your SQLite query appears to be mostly correct, but you'll need to ensure that the conditions you are applying are accurate based on the data types defined in the schema. Specifically, since `goals_against` and `goal_difference` are defined as `VARCHAR`, you'll need to convert them to integers for proper comparisons. H...
26,580
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (position INTEGER, goal_difference VARCHAR, goals_against VARCHAR, losses VARCHAR)\n\n Question: Which position is th...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_97 (played INTEGER, points VARCHAR, goals_for VARCHAR) Question: Which is the lowest played with 28-10 points and goals higher than 29? Here is the SQLite que...
Your provided SQLite query is correctly structured to answer the question regarding the minimum value of the "played" column under the specified conditions. Here’s the query wrapped in code blocks as requested: ``` SELECT MIN(played) FROM table_name_97 WHERE points = "28-10" AND goals_for > 29 ``` This query will re...
26,581
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (played INTEGER, points VARCHAR, goals_for VARCHAR)\n\n Question: Which is the lowest played with 28-10 points and g...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_7 (position VARCHAR, losses VARCHAR, wins VARCHAR, goals_against VARCHAR) Question: How many positions have 14 wins, goals against of 61 and fewer than 19 loss...
Your provided SQLite query is correct for the specified question. Here it is wrapped in code formatting: ``` SELECT COUNT(position) FROM table_name_7 WHERE wins = 14 AND goals_against = 61 AND losses < 19 ```
26,582
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (position VARCHAR, losses VARCHAR, wins VARCHAR, goals_against VARCHAR)\n\n Question: How many positions have 14 wins...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_88 (losses INTEGER, goals_against VARCHAR, wins VARCHAR) Question: What is the average loss with a goal higher than 51 and wins higher than 14? Here is the SQ...
Your provided SQLite query is mostly accurate, but it appears there may be an issue with the column types. In your schema, "goals_against" and "wins" are defined as VARCHAR, which would mean they contain string values. Consequently, you should ensure that they are properly compared as numbers. Here’s the corrected que...
26,583
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (losses INTEGER, goals_against VARCHAR, wins VARCHAR)\n\n Question: What is the average loss with a goal higher than...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_28 (ends INTEGER, name VARCHAR) Question: Name the average ends for weston Here is the SQLite query to answer to the question: Name the average ends for westo...
Here is the SQLite query to answer the question about the average ends for weston: ``` SELECT AVG(ends) FROM table_name_28 WHERE name = "weston"; ```
26,584
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (ends INTEGER, name VARCHAR)\n\n Question: Name the average ends for weston\n\nHere is the SQLite query to answer to...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_71 (decile INTEGER, authority VARCHAR, name VARCHAR) Question: What is the lowest decile with a state authority and Midhirst school? Here is the SQLite query ...
Your SQLite query looks correct for fetching the lowest decile with a state authority and Midhirst school. Here is the formatted query: ``` SELECT MIN(decile) FROM table_name_71 WHERE authority = "state" AND name = "midhirst school"; ``` Make sure that the casing of the school name is consistent with how it is store...
26,585
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (decile INTEGER, authority VARCHAR, name VARCHAR)\n\n Question: What is the lowest decile with a state authority and...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_91 (area VARCHAR, name VARCHAR) Question: What area is Central Takaka School in? Here is the SQLite query to answer to the question: What area is Central Taka...
Here is the SQLite query to answer the question: What area is Central Takaka School in?: ``` SELECT area FROM table_name_91 WHERE name = "Central Takaka School"; ```
26,586
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (area VARCHAR, name VARCHAR)\n\n Question: What area is Central Takaka School in?\n\nHere is the SQLite query to ans...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_88 (mach INTEGER, vehicle_flight__number VARCHAR, altitude__meters_ VARCHAR) Question: What is the Mach with Vehicle Flight # m2-f2 #8 and an Altitude (meters)...
It looks like there is a small mistake in your SQL query. The query should be checking if the `altitude__meters_` is greater than 13716, but it appears you added an `OFFSET` clause incorrectly. Instead, you should use a simple comparison. Here is the corrected query: ```sql SELECT mach FROM table_name_88 WHERE vehic...
26,587
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (mach INTEGER, vehicle_flight__number VARCHAR, altitude__meters_ VARCHAR)\n\n Question: What is the Mach with Vehicl...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_31 (vehicle_flight__number VARCHAR, pilot VARCHAR, velocity__km_h_ VARCHAR) Question: What Vehicle Flight # has Pilot Peterson and Velocity (km/h) of 649? Her...
Here is the SQLite query to answer the question regarding the Vehicle Flight # with Pilot Peterson and a Velocity of 649 km/h: ``` SELECT vehicle_flight__number FROM table_name_31 WHERE pilot = "Peterson" AND velocity__km_h_ = "649"; ```
26,588
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (vehicle_flight__number VARCHAR, pilot VARCHAR, velocity__km_h_ VARCHAR)\n\n Question: What Vehicle Flight # has Pil...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_77 (date VARCHAR, mach VARCHAR) Question: What Date has a Mach of 0.662? Here is the SQLite query to answer to the question: What Date has a Mach of 0.662?: `...
Here is the SQLite query to answer the question "What Date has a Mach of 0.662?": ``` SELECT date FROM table_name_77 WHERE mach = '0.662' ```
26,589
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (date VARCHAR, mach VARCHAR)\n\n Question: What Date has a Mach of 0.662?\n\nHere is the SQLite query to answer to t...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_20 (year VARCHAR) Question: In 1865, what was the first party? Here is the SQLite query to answer to the question: In 1865, what was the first party?: ``` SEL...
Based on the provided schema and the question, it seems that you want to retrieve the first party from the `table_name_20` where the year is 1865. However, the provided schema only contains a column for the year, and it seems there is insufficient data in the schema to determine what a "party" refers to. If your inten...
26,590
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (year VARCHAR)\n\n Question: In 1865, what was the first party?\n\nHere is the SQLite query to answer to the questio...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_33 (barrel_twist VARCHAR, stock VARCHAR, hand_guards VARCHAR) Question: Which Barrel twist has a Stock of canadian 3rd generation and a Hand guards of short ri...
Here's the SQLite query wrapped in the appropriate code formatting: ``` SELECT barrel_twist FROM table_name_33 WHERE stock = "canadian 3rd generation" AND hand_guards = "short ribbed" ```
26,591
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (barrel_twist VARCHAR, stock VARCHAR, hand_guards VARCHAR)\n\n Question: Which Barrel twist has a Stock of canadian ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_1 (hand_guards VARCHAR, barrel_profile VARCHAR, rear_sight VARCHAR) Question: Which Hand guards has a Barrel profile of a2 and a Rear sight of weaver? Here is...
Here is the SQLite query to answer your question: ``` SELECT hand_guards FROM table_name_1 WHERE barrel_profile = "a2" AND rear_sight = "weaver"; ```
26,592
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (hand_guards VARCHAR, barrel_profile VARCHAR, rear_sight VARCHAR)\n\n Question: Which Hand guards has a Barrel profil...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_41 (co_driver VARCHAR, number VARCHAR, laps VARCHAR, year VARCHAR) Question: Who was the co-driver for the team with more than 160 laps and the number 6 after ...
Here is the SQLite query to answer the question about the co-driver for the team with more than 160 laps and the number 6 after 2010: ``` SELECT co_driver FROM table_name_41 WHERE laps > 160 AND year > 2010 AND number = '6'; ``` Note: In the query, I have assumed that the `number` is a VARCHAR type, so it is compare...
26,593
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (co_driver VARCHAR, number VARCHAR, laps VARCHAR, year VARCHAR)\n\n Question: Who was the co-driver for the team wit...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_82 (laps INTEGER, year VARCHAR, position VARCHAR, number VARCHAR) Question: What is the fewest laps for a team with a position of DNF and a number smaller than...
Here is the SQLite query to answer the question about the fewest laps for a team with a position of DNF and a number smaller than 25 before 2001: ``` SELECT MIN(laps) FROM table_name_82 WHERE position = "DNF" AND number < 25 AND year < '2001'; ```
26,594
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_82 (laps INTEGER, year VARCHAR, position VARCHAR, number VARCHAR)\n\n Question: What is the fewest laps for a team with...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_20 (votes INTEGER, occupation VARCHAR) Question: What is the highest number of votes for the French Professor? Here is the SQLite query to answer to the quest...
Here is the SQLite query to answer the question regarding the highest number of votes for the French Professor: ``` SELECT MAX(votes) FROM table_name_20 WHERE occupation = 'french professor'; ```
26,595
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (votes INTEGER, occupation VARCHAR)\n\n Question: What is the highest number of votes for the French Professor?\n\nH...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_38 (constellation VARCHAR, designation VARCHAR) Question: Where is Hip 4872? Here is the SQLite query to answer to the question: Where is Hip 4872?: ``` SELEC...
Here is the SQLite query to answer the question: Where is Hip 4872?: ``` SELECT constellation FROM table_name_38 WHERE designation = "Hip 4872"; ```
26,596
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (constellation VARCHAR, designation VARCHAR)\n\n Question: Where is Hip 4872?\n\nHere is the SQLite query to answer ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_33 (language_s_ VARCHAR, original_title VARCHAR) Question: What is the language of the film Rosie? Here is the SQLite query to answer to the question: What is...
Here's the SQLite query to find the language of the film "Rosie": ```sql SELECT language_s_ FROM table_name_33 WHERE original_title = "Rosie"; ```
26,597
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (language_s_ VARCHAR, original_title VARCHAR)\n\n Question: What is the language of the film Rosie?\n\nHere is the S...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_79 (film_title_used_in_nomination VARCHAR, language_s_ VARCHAR, original_title VARCHAR) Question: What was the title used for Rosie, the film nominated for the...
Here is the SQLite query to answer to the question: What was the title used for Rosie, the film nominated for the Dutch language?: ``` SELECT film_title_used_in_nomination FROM table_name_79 WHERE language_s_ = "dutch" AND original_title = "rosie" ```
26,598
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (film_title_used_in_nomination VARCHAR, language_s_ VARCHAR, original_title VARCHAR)\n\n Question: What was the titl...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_49 (mixed_doubles VARCHAR, year VARCHAR) Question: Who won the Mixed Doubles in 2007? Here is the SQLite query to answer to the question: Who won the Mixed Do...
Here is the SQLite query to answer the question: Who won the Mixed Doubles in 2007?: ``` SELECT mixed_doubles FROM table_name_49 WHERE year = "2007"; ```
26,599
[ { "from": "human", "value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (mixed_doubles VARCHAR, year VARCHAR)\n\n Question: Who won the Mixed Doubles in 2007?\n\nHere is the SQLite query t...