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_42 (civil_liberties_2012 INTEGER, political_rights_2011 VARCHAR, status_2011 VARCHAR, political_rights_2012 VARCHAR) Question: What is the average 2012 civil l...
Here is the SQLite query to answer the question: ``` SELECT AVG(civil_liberties_2012) FROM table_name_42 WHERE status_2011 = "not free" AND political_rights_2012 > 6 AND political_rights_2011 > 7 ```
22,400
[ { "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 (civil_liberties_2012 INTEGER, political_rights_2011 VARCHAR, status_2011 VARCHAR, political_rights_2012 VARCHAR)\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_70 (civil_liberties_2011 VARCHAR, political_rights_2010 VARCHAR, political_rights_2011 VARCHAR) Question: What is the total number of civil liberties 2011 valu...
Sure! Here is the SQLite query you requested, wrapped in code formatting: ``` SELECT COUNT(civil_liberties_2011) FROM table_name_70 WHERE political_rights_2010 < 3 AND political_rights_2011 < 1 ```
22,401
[ { "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 (civil_liberties_2011 VARCHAR, political_rights_2010 VARCHAR, political_rights_2011 VARCHAR)\n\n Question: What is t...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_47 (oppose VARCHAR, unsure VARCHAR, poll_source VARCHAR) Question: What percentage of people were opposed to the candidate based on the WNBC/Marist poll that s...
To calculate the percentage of people opposed to the candidate based on the WNBC/Marist poll where 8% of people were unsure, you first need to look for relevant rows in the table that match the specified conditions. Then, you would determine the count of opposed responses versus the total number of responses. Here’s ...
22,402
[ { "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 (oppose VARCHAR, unsure VARCHAR, poll_source VARCHAR)\n\n Question: What percentage of people were opposed to the ca...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_22 (oppose VARCHAR, poll_source VARCHAR, unsure VARCHAR) Question: What percentage of people were opposed to the candidate based on the Time Poll poll that sho...
To calculate the percentage of people who were opposed to the candidate based on the Time Poll, you need to perform a calculation using the counts of opposed responses. Assuming that the "oppose" column contains values that can be interpreted as "yes" or "no" (or similar indication of opposition), you will want to coun...
22,403
[ { "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_22 (oppose VARCHAR, poll_source VARCHAR, unsure VARCHAR)\n\n Question: What percentage of people were opposed to the ca...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_21 (consider VARCHAR, candidate VARCHAR, poll_source VARCHAR, oppose VARCHAR) Question: What percentage of people said they would consider Rudy Giuliani as a c...
To calculate the percentage of people who said they would consider Rudy Giuliani as a candidate according to the specified Newsweek poll, you would typically need to count the responses and aggregate that information. Assuming that the `consider` field contains values that can be interpreted as percentages or is just a...
22,404
[ { "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 (consider VARCHAR, candidate VARCHAR, poll_source VARCHAR, oppose VARCHAR)\n\n Question: What percentage of people s...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_12 (result VARCHAR, venue VARCHAR, goal VARCHAR) Question: What was the result of the game in Stuttgart, West Germany and a goal number of less than 9? Here i...
Here is the SQLite query to answer the question regarding the result of the game in Stuttgart, West Germany with a goal number of less than 9: ``` SELECT result FROM table_name_12 WHERE venue = "Stuttgart, West Germany" AND CAST(goal AS INTEGER) < 9 ``` Make sure to cast the `goal` column to an integer if it is stor...
22,405
[ { "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 (result VARCHAR, venue VARCHAR, goal VARCHAR)\n\n Question: What was the result of the game in Stuttgart, West Germa...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_10 (record VARCHAR, opponent VARCHAR, date VARCHAR) Question: Which Record has an Opponent of twins, and a Date of july 25? Here is the SQLite query to answer...
Here is the SQLite query to answer the question regarding which record has an opponent of "twins" and a date of "july 25": ``` SELECT record FROM table_name_10 WHERE opponent = "twins" AND date = "july 25"; ```
22,406
[ { "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_10 (record VARCHAR, opponent VARCHAR, date VARCHAR)\n\n Question: Which Record has an Opponent of twins, and a Date of ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_43 (per_capita_income VARCHAR, median_household_income VARCHAR) Question: How much is per capita income when median household income is $42,845? Here is the S...
Here is the SQLite query to answer the question regarding the per capita income when the median household income is $42,845: ``` SELECT per_capita_income FROM table_name_43 WHERE median_household_income = "$42,845" ```
22,407
[ { "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_43 (per_capita_income VARCHAR, median_household_income VARCHAR)\n\n Question: How much is per capita income when median...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_91 (points INTEGER, score VARCHAR, game VARCHAR) Question: Which Points have a Score of 4–1, and a Game smaller than 39? Here is the SQLite query to answer to...
Here is the SQLite query to answer the question about which Points have a Score of 4–1 and a Game smaller than 39: ``` SELECT SUM(points) FROM table_name_91 WHERE score = "4–1" AND game < 39 ```
22,408
[ { "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 (points INTEGER, score VARCHAR, game VARCHAR)\n\n Question: Which Points have a Score of 4–1, and a Game smaller tha...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_69 (january INTEGER, score VARCHAR, game VARCHAR) Question: Which January has a Score of 7–4, and a Game smaller than 42? Here is the SQLite query to answer t...
Here is the corrected SQLite query that answers the question about which January has a Score of "7–4" and a Game smaller than 42: ``` SELECT january FROM table_name_69 WHERE score = '7–4' AND game < 42; ``` This query selects the `january` values from the `table_name_69` table where the `score` matches "7–4" and the...
22,409
[ { "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_69 (january INTEGER, score VARCHAR, game VARCHAR)\n\n Question: Which January has a Score of 7–4, and a Game smaller th...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_9 (game VARCHAR, score VARCHAR, points VARCHAR) Question: How many games have a Score of 1–0, and Points smaller than 66? Here is the SQLite query to answer t...
Here is the SQLite query to answer the question about how many games have a Score of 1–0, and Points smaller than 66: ``` SELECT COUNT(game) FROM table_name_9 WHERE score = '1–0' AND points < 66; ```
22,410
[ { "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 (game VARCHAR, score VARCHAR, points VARCHAR)\n\n Question: How many games have a Score of 1–0, and Points smaller th...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_26 (points INTEGER, score VARCHAR, january VARCHAR) Question: Which Points is the lowest one that has a Score of 1–4, and a January smaller than 18? Here is t...
Here is the corrected SQLite query to answer the question: ``` SELECT MIN(points) FROM table_name_26 WHERE score IN ('1', '2', '3', '4') AND january < '18'; ```
22,411
[ { "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 (points INTEGER, score VARCHAR, january VARCHAR)\n\n Question: Which Points is the lowest one that has a Score of 1–...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_68 (borough_or_census_area VARCHAR, median_household_income VARCHAR) Question: Which borough or census area has a $59,596 median household income? Here is the...
Your SQL query is almost correct, but it's better practice to use single quotes for string literals in SQL. Here’s the corrected query: ``` SELECT borough_or_census_area FROM table_name_68 WHERE median_household_income = '$59,596' ``` Make sure to run the query in the context of your database to find the borough or ...
22,412
[ { "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 (borough_or_census_area VARCHAR, median_household_income VARCHAR)\n\n Question: Which borough or census area has a $...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_59 (population VARCHAR, median_family_income VARCHAR) Question: What is the population of the area with a median family income of $71,278? Here is the SQLite ...
It looks like you are trying to retrieve the population of an area where the median family income is $71,278. However, to obtain the population directly (rather than a count), you should select the population field instead of counting it. Here is the corrected SQLite query for your question: ``` SELECT population FROM...
22,413
[ { "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 (population VARCHAR, median_family_income VARCHAR)\n\n Question: What is the population of the area with a median fa...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_21 (outcome VARCHAR, venue VARCHAR, year VARCHAR) Question: What was the Outcome of the Danish Open in 1985? Here is the SQLite query to answer to the questio...
Here is the SQLite query to answer the question about the Outcome of the Danish Open in 1985: ``` SELECT outcome FROM table_name_21 WHERE venue = "Danish Open" AND year = "1985" ```
22,414
[ { "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 (outcome VARCHAR, venue VARCHAR, year VARCHAR)\n\n Question: What was the Outcome of the Danish Open in 1985?\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_71 (venue VARCHAR, year VARCHAR, outcome VARCHAR) Question: What was the Venue in 1986 with an Outcome of 1? Here is the SQLite query to answer to the questio...
Here is the SQLite query to answer the question about the venue in 1986 with an outcome of 1: ```sql SELECT venue FROM table_name_71 WHERE year = "1986" AND outcome = "1" ```
22,415
[ { "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 (venue VARCHAR, year VARCHAR, outcome VARCHAR)\n\n Question: What was the Venue in 1986 with an Outcome of 1?\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_11 (outcome VARCHAR, event VARCHAR, year VARCHAR) Question: What was the Outcome in 1983 of the WD Event? Here is the SQLite query to answer to the question: ...
Here is the SQLite query to answer the question about the Outcome in 1983 of the WD Event: ``` SELECT outcome FROM table_name_11 WHERE event = "WD" AND year = "1983" ```
22,416
[ { "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 (outcome VARCHAR, event VARCHAR, year VARCHAR)\n\n Question: What was the Outcome in 1983 of the WD Event?\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_8 (year VARCHAR, partner VARCHAR, venue VARCHAR) Question: In what Year did the German Open have Yoo Sang-Hee as Partner? Here is the SQLite query to answer t...
Here is the SQLite query to answer the question: ``` SELECT year FROM table_name_8 WHERE partner = "Yoo Sang-Hee" AND venue = "German Open"; ```
22,417
[ { "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 (year VARCHAR, partner VARCHAR, venue VARCHAR)\n\n Question: In what Year did the German Open have Yoo Sang-Hee as Pa...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_81 (outcome VARCHAR, partner VARCHAR, venue VARCHAR) Question: What is the Outcome in the Malaysia Open with Partner Yoo Sang-Hee? Here is the SQLite query to...
Here is the SQLite query that answers your question about the Outcome in the Malaysia Open with Partner Yoo Sang-Hee: ```sql SELECT outcome FROM table_name_81 WHERE partner = "Yoo Sang-Hee" AND venue = "Malaysia Open"; ```
22,418
[ { "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_81 (outcome VARCHAR, partner VARCHAR, venue VARCHAR)\n\n Question: What is the Outcome in the Malaysia Open with Partne...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_23 (partner VARCHAR, year VARCHAR) Question: What is the Partner during the Asian Games Year? Here is the SQLite query to answer to the question: What is the ...
Here is the SQLite query to answer the question about the Partner during the Asian Games Year: ``` SELECT partner FROM table_name_23 WHERE year = "asian games"; ```
22,419
[ { "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 (partner VARCHAR, year VARCHAR)\n\n Question: What is the Partner during the Asian Games Year?\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_91 (loss VARCHAR, date VARCHAR) Question: What was the loss for August 19? Here is the SQLite query to answer to the question: What was the loss for August 19...
Here is the SQLite query to answer the question: What was the loss for August 19?: ``` SELECT loss FROM table_name_91 WHERE date = 'August 19'; ```
22,420
[ { "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 (loss VARCHAR, date VARCHAR)\n\n Question: What was the loss for August 19?\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_94 (municipality VARCHAR, rank VARCHAR) Question: What Municipality has a Rank of 44? Here is the SQLite query to answer to the question: What Municipality ha...
Here is the SQLite query to answer the question: What Municipality has a Rank of 44?: ``` SELECT municipality FROM table_name_94 WHERE rank = '44' ```
22,421
[ { "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_94 (municipality VARCHAR, rank VARCHAR)\n\n Question: What Municipality has a Rank of 44?\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_85 (rank INTEGER, municipality VARCHAR, area__km_2__ VARCHAR) Question: What is the total Rank that has a Municipality of Winnipeg, an Area (KM 2) that's large...
Here is the SQLite query to answer the question regarding the total Rank for the Municipality of Winnipeg with an Area (KM²) larger than 464.01: ```sql SELECT SUM(rank) FROM table_name_85 WHERE municipality = "Winnipeg" AND CAST(area__km_2__ as REAL) > 464.01; ``` Note: It's important to cast `area__km_2__` to a num...
22,422
[ { "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 (rank INTEGER, municipality VARCHAR, area__km_2__ VARCHAR)\n\n Question: What is the total Rank that has a Municipal...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_96 (area__km_2__ INTEGER, rank VARCHAR, municipality VARCHAR, province VARCHAR, status VARCHAR) Question: What is the highest Area (KM 2) for the Province of O...
Your SQLite query looks good but there are a couple of minor corrections needed regarding the string case. SQLite is case-sensitive for string comparisons depending on the collation settings. If you want to be certain that you are capturing all cases of "Ontario", "Town", and "Minto", you can use the `UPPER()` function...
22,423
[ { "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_96 (area__km_2__ INTEGER, rank VARCHAR, municipality VARCHAR, province VARCHAR, status VARCHAR)\n\n Question: What is t...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_6 (rank INTEGER, area__km_2__ VARCHAR) Question: What's the total of Rank that has an Area (KM 2) of 1050.14? Here is the SQLite query to answer to the questi...
Here is the corrected SQLite query to answer the question: ```sql SELECT SUM(rank) FROM table_name_6 WHERE area__km_2__ = '1050.14' ``` Note: The area is stored as a VARCHAR, so the value should be surrounded by single quotes.
22,424
[ { "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 (rank INTEGER, area__km_2__ VARCHAR)\n\n Question: What's the total of Rank that has an Area (KM 2) of 1050.14?\n\nHe...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_19 (status VARCHAR, province VARCHAR, rank VARCHAR) Question: What is the listed Status that has the Province of Ontario and Rank of 86? Here is the SQLite qu...
Here is the SQLite query to answer the question about the listed Status that has the Province of Ontario and Rank of 86: ``` SELECT status FROM table_name_19 WHERE province = "Ontario" AND rank = "86" ```
22,425
[ { "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_19 (status VARCHAR, province VARCHAR, rank VARCHAR)\n\n Question: What is the listed Status that has the Province of On...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_31 (event VARCHAR, reign VARCHAR, days_held VARCHAR) Question: What type of event had the wrestler with a reign of 2 and held the title for 35 days? Here is t...
Your SQLite query is well-structured to retrieve the type of event for a wrestler with a reign of 2 who held the title for 35 days. Here is your query wrapped in code formatting: ``` SELECT event FROM table_name_31 WHERE reign = "2" AND days_held = "35" ``` This query will return the event associated with the specif...
22,426
[ { "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 (event VARCHAR, reign VARCHAR, days_held VARCHAR)\n\n Question: What type of event had the wrestler with a reign of ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_41 (location VARCHAR, wrestler VARCHAR, reign VARCHAR) Question: Where did the wrestler, super parka, with the title with a reign of 2? Here is the SQLite que...
Here is the SQLite query to answer the question: ``` SELECT location FROM table_name_41 WHERE wrestler = "super parka" AND reign = "2" ```
22,427
[ { "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 (location VARCHAR, wrestler VARCHAR, reign VARCHAR)\n\n Question: Where did the wrestler, super parka, with 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_16 (reign VARCHAR, days_held VARCHAR, wrestler VARCHAR) Question: What is the reign for super kendo who held it for 35 days? Here is the SQLite query to answe...
Here's the SQLite query to answer the question regarding the reign for super kendo who held it for 35 days: ``` SELECT reign FROM table_name_16 WHERE days_held = "35" AND wrestler = "super kendo" ```
22,428
[ { "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_16 (reign VARCHAR, days_held VARCHAR, wrestler VARCHAR)\n\n Question: What is the reign for super kendo who held it for...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_67 (fcc_info VARCHAR, erp_w VARCHAR) Question: Which FCC info has an ERP W of 100 watts? Here is the SQLite query to answer to the question: Which FCC info ha...
Here is the SQLite query to answer the question: Which FCC info has an ERP W of 100 watts?: ``` SELECT fcc_info FROM table_name_67 WHERE erp_w = '100 watts'; ```
22,429
[ { "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 (fcc_info VARCHAR, erp_w VARCHAR)\n\n Question: Which FCC info has an ERP W of 100 watts?\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_7 (frequency_mhz VARCHAR, call_sign VARCHAR) Question: Which Frequency MHz has a Call Sign of K218BE? Here is the SQLite query to answer to the question: Whic...
Here is the SQLite query to answer the question about which Frequency MHz has a Call Sign of K218BE: ``` SELECT frequency_mhz FROM table_name_7 WHERE call_sign = "K218BE"; ```
22,430
[ { "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 (frequency_mhz VARCHAR, call_sign VARCHAR)\n\n Question: Which Frequency MHz has a Call Sign of K218BE?\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_15 (erp_w VARCHAR, frequency_mhz VARCHAR) Question: Which ERP W has a Frequency MHz of 88.5 FM? Here is the SQLite query to answer to the question: Which ERP ...
Here is the SQLite query to answer the question about which ERP W has a Frequency MHz of 88.5 FM: ``` SELECT erp_w FROM table_name_15 WHERE frequency_mhz = "88.5 FM"; ```
22,431
[ { "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 (erp_w VARCHAR, frequency_mhz VARCHAR)\n\n Question: Which ERP W has a Frequency MHz of 88.5 FM?\n\nHere is the SQLi...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_62 (name VARCHAR, nationality VARCHAR, ranking VARCHAR) Question: What is the name of the player from Spain with a rank lower than 3? Here is the SQLite query...
The SQLite query you provided has a small mistake in the condition regarding the ranking. The correct condition to find players with a rank lower than 3 should use the `<` operator instead of `>`. Here’s the corrected query wrapped in code formatting: ``` SELECT name FROM table_name_62 WHERE nationality = "spain" AND ...
22,432
[ { "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 (name VARCHAR, nationality VARCHAR, ranking VARCHAR)\n\n Question: What is the name of the player from Spain with a ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_19 (region VARCHAR, catalog VARCHAR) Question: Which region had a catalog number of 570 734-2? Here is the SQLite query to answer to the question: Which regio...
Here is the SQLite query to answer the question regarding which region had a catalog number of 570 734-2: ``` SELECT region FROM table_name_19 WHERE catalog = "570 734-2"; ```
22,433
[ { "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_19 (region VARCHAR, catalog VARCHAR)\n\n Question: Which region had a catalog number of 570 734-2?\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_8 (region VARCHAR, format VARCHAR) Question: Which region had a release format of CD Maxi? Here is the SQLite query to answer to the question: Which region ha...
Here is the SQLite query to answer the question regarding which region had a release format of CD Maxi: ``` SELECT region FROM table_name_8 WHERE format = "CD Maxi"; ```
22,434
[ { "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 (region VARCHAR, format VARCHAR)\n\n Question: Which region had a release format of CD Maxi?\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_20 (region VARCHAR, format VARCHAR) Question: Which region had a release format of CD Maxi? Here is the SQLite query to answer to the question: Which region h...
Here is the SQLite query to answer the question about which region had a release format of CD Maxi: ``` SELECT region FROM table_name_20 WHERE format = "CD Maxi"; ```
22,435
[ { "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 (region VARCHAR, format VARCHAR)\n\n Question: Which region had a release format of CD Maxi?\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_98 (game_site VARCHAR, attendance VARCHAR) Question: Where did the Jet's play with an attendance of 11,309? Here is the SQLite query to answer to the question...
Here is the SQLite query to answer the question about where the Jets played with an attendance of 11,309: ``` SELECT game_site FROM table_name_98 WHERE attendance = "11,309" AND game_site LIKE "%Jets%" ```
22,436
[ { "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 (game_site VARCHAR, attendance VARCHAR)\n\n Question: Where did the Jet's play with an attendance of 11,309?\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_34 (result VARCHAR, opponent VARCHAR) Question: What's the result of the game against Bye? Here is the SQLite query to answer to the question: What's the resu...
Here is the SQLite query to answer the question: What's the result of the game against Bye?: ``` SELECT result FROM table_name_34 WHERE opponent = "Bye" ```
22,437
[ { "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 (result VARCHAR, opponent VARCHAR)\n\n Question: What's the result of the game against Bye?\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_53 (result VARCHAR, week VARCHAR) Question: What's the Result for week 15? Here is the SQLite query to answer to the question: What's the Result for week 15?:...
Here is the SQLite query to answer the question "What's the Result for week 15?": ``` SELECT result FROM table_name_53 WHERE week = '15'; ```
22,438
[ { "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 (result VARCHAR, week VARCHAR)\n\n Question: What's the Result for week 15?\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_79 (appointment VARCHAR, credentials_presented VARCHAR) Question: What day was the appointment when Credentials Presented was jul 2, 1969? Here is the SQLite ...
Here is the SQLite query to answer the question about the appointment date when the credentials presented was "jul 2, 1969": ``` SELECT appointment FROM table_name_79 WHERE credentials_presented = "jul 2, 1969"; ```
22,439
[ { "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 (appointment VARCHAR, credentials_presented VARCHAR)\n\n Question: What day was the appointment when Credentials Pre...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_59 (credentials_presented VARCHAR, state VARCHAR, status VARCHAR) Question: When were the credentials presented for new jersey with a status of foreign service...
Your SQLite query looks good, but it seems like you want to retrieve the date or time when the credentials were presented. However, the column `credentials_presented` appears to only indicate what credentials were presented and does not suggest it contains date information. If you meant to include a date column in you...
22,440
[ { "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 (credentials_presented VARCHAR, state VARCHAR, status VARCHAR)\n\n Question: When were the credentials presented for...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_90 (title VARCHAR, name VARCHAR) Question: What is the title for david campbell mulford? Here is the SQLite query to answer to the question: What is the title...
Here is the SQLite query to answer the question about the title for david campbell mulford: ``` SELECT title FROM table_name_90 WHERE name = "david campbell mulford" ```
22,441
[ { "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 (title VARCHAR, name VARCHAR)\n\n Question: What is the title for david campbell mulford?\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_47 (state VARCHAR, appointment VARCHAR) Question: What state has an appointment for jul 12, 2001? Here is the SQLite query to answer to the question: What sta...
Here is the SQLite query to answer the question: What state has an appointment for jul 12, 2001?: ``` SELECT state FROM table_name_47 WHERE appointment = 'jul 12, 2001'; ```
22,442
[ { "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 (state VARCHAR, appointment VARCHAR)\n\n Question: What state has an appointment for jul 12, 2001?\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_35 (credentials_presented VARCHAR, state VARCHAR) Question: What day were credentials presented for vermont? Here is the SQLite query to answer to the questio...
It looks like there may be a misunderstanding in the original question. The query you provided fetches the `credentials_presented`, but it seems you want to know the specific day when credentials were presented for Vermont. However, the schema you've provided does not include a date field. If you had a date column in...
22,443
[ { "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 (credentials_presented VARCHAR, state VARCHAR)\n\n Question: What day were credentials presented for vermont?\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_57 (class VARCHAR, weight VARCHAR) Question: Which Class has a Weight of 203? Here is the SQLite query to answer to the question: Which Class has a Weight of ...
Here is the SQLite query to answer the question: Which Class has a Weight of 203?: ``` SELECT class FROM table_name_57 WHERE weight = '203' ```
22,444
[ { "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_57 (class VARCHAR, weight VARCHAR)\n\n Question: Which Class has a Weight of 203?\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_43 (team_1 VARCHAR, team_2 VARCHAR) Question: What is the team 1 with team 2 Mount Cameroon FC? Here is the SQLite query to answer to the question: What is th...
Here is the SQLite query to answer the question about the team 1 associated with team 2 "Mount Cameroon FC": ``` SELECT team_1 FROM table_name_43 WHERE team_2 = "Mount Cameroon FC" ```
22,445
[ { "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_43 (team_1 VARCHAR, team_2 VARCHAR)\n\n Question: What is the team 1 with team 2 Mount Cameroon FC?\n\nHere is the SQLi...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_99 (team_1 VARCHAR) Question: What is the 2nd leg of team 1 Dolphins? Here is the SQLite query to answer to the question: What is the 2nd leg of team 1 Dolphi...
It seems like you want to understand how to structure your query based on the given schema and question. However, the way the SQL query is constructed is not quite correct for the specified task of finding the "2nd leg." Assuming that "2nd leg" refers to the second match or occurrence of the team named "Dolphins," an...
22,446
[ { "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 (team_1 VARCHAR)\n\n Question: What is the 2nd leg of team 1 Dolphins?\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_68 (distance__miles_ VARCHAR, winner VARCHAR, year VARCHAR) Question: When the winner was No Race in a year after 1909, what was the distance? Here is the SQL...
Here is the SQLite query to answer the question about the distance when the winner was No Race in a year after 1909: ``` SELECT distance__miles_ FROM table_name_68 WHERE winner = "No Race" AND year > 1909 ```
22,447
[ { "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 (distance__miles_ VARCHAR, winner VARCHAR, year VARCHAR)\n\n Question: When the winner was No Race in a year after 1...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_21 (winner VARCHAR, trainer VARCHAR) Question: What horse won with a trainer of "no race"? Here is the SQLite query to answer to the question: What horse won ...
Here is the SQLite query to answer the question about which horse won with a trainer of "no race": ``` SELECT winner FROM table_name_21 WHERE trainer = "no race" ```
22,448
[ { "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 (winner VARCHAR, trainer VARCHAR)\n\n Question: What horse won with a trainer of \"no race\"?\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_41 (jockey VARCHAR, winner VARCHAR) Question: Who was the jockey for the winning horse Helioptic? Here is the SQLite query to answer to the question: Who was ...
Here is the SQLite query to answer the question about the jockey for the winning horse Helioptic: ``` SELECT jockey FROM table_name_41 WHERE winner = "Helioptic"; ```
22,449
[ { "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 (jockey VARCHAR, winner VARCHAR)\n\n Question: Who was the jockey for the winning horse Helioptic?\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_94 (time VARCHAR, winner VARCHAR) Question: What was the time for the winning horse Salford ii? Here is the SQLite query to answer to the question: What was t...
Here is the SQLite query to answer the question regarding the winning horse Salford ii: ``` SELECT time FROM table_name_94 WHERE winner = "salford ii"; ```
22,450
[ { "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_94 (time VARCHAR, winner VARCHAR)\n\n Question: What was the time for the winning horse Salford ii?\n\nHere is the SQLi...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_49 (time VARCHAR, winner VARCHAR) Question: What was the winning time for the winning horse, Kentucky ii? Here is the SQLite query to answer to the question: ...
Your SQLite query looks correct to retrieve the winning time for the horse named "Kentucky ii". Just ensure that the horse name matches exactly (considering case sensitivity if applicable). Here’s the code wrapped properly: ``` SELECT time FROM table_name_49 WHERE winner = "Kentucky ii" ``` Make sure to use the corr...
22,451
[ { "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 (time VARCHAR, winner VARCHAR)\n\n Question: What was the winning time for the winning horse, Kentucky ii?\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_1 (position VARCHAR, lost INTEGER) Question: What was the position with the total number less than 1? Here is the SQLite query to answer to the question: What...
The provided query counts the number of positions with a `lost` value less than 1, but it does not directly return the position itself. To get the specific positions with a total `lost` number less than 1, you should modify the query to select the distinct positions that meet this criterion. Here’s the corrected query:...
22,452
[ { "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 (position VARCHAR, lost INTEGER)\n\n Question: What was the position with the total number less than 1?\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_36 (gold INTEGER, rank VARCHAR, total VARCHAR) Question: What is the sum of golds for ranks of 6 and totals over 3? Here is the SQLite query to answer to the ...
Your SQLite query is well-structured for the question asked. Here is the query wrapped appropriately: ``` SELECT SUM(gold) FROM table_name_36 WHERE rank = "6" AND total > 3 ```
22,453
[ { "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 (gold INTEGER, rank VARCHAR, total VARCHAR)\n\n Question: What is the sum of golds for ranks of 6 and totals over 3?...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_35 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR) Question: What is the average silver for golds over 2, ranks of 1, and bronzes over 0? Here is...
Here is the corrected SQLite query to answer the question regarding the average silver for golds over 2, ranks of 1, and bronzes over 0: ```sql SELECT AVG(silver) FROM table_name_35 WHERE gold > 2 AND rank = '1' AND bronze > '0'; ```
22,454
[ { "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 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR)\n\n Question: What is the average silver for golds over...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_57 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR) Question: What is the number of totals that have silvers under 2, bronzes over 0, and golds ov...
Here is the SQLite query to answer the question: ``` SELECT COUNT(total) FROM table_name_57 WHERE silver < 2 AND bronze > 0 AND gold > 1; ```
22,455
[ { "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_57 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)\n\n Question: What is the number of totals that have s...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_61 (gold VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR) Question: What is the total number of golds having a total of 1, bronzes of 0, and from West G...
Here is the SQLite query that answers the question regarding the total number of golds from West Germany, where the total is 1 and bronzes are 0: ``` SELECT COUNT(gold) FROM table_name_61 WHERE total = '1' AND bronze = '0' AND nation = 'West Germany'; ``` This query counts the number of gold entries where the total ...
22,456
[ { "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_61 (gold VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR)\n\n Question: What is the total number of golds having...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_43 (bronze INTEGER, silver VARCHAR, gold VARCHAR) Question: What is the sum of bronzes having silvers over 5 and golds under 20? Here is the SQLite query to a...
Your SQLite query to find the sum of bronzes where silvers are greater than 5 and golds are less than 20 is almost correct. However, since the `silver` column is defined as `VARCHAR`, you will need to cast it to an integer to compare it against the number 5. Here is the corrected query: ```sql SELECT SUM(bronze) FROM ...
22,457
[ { "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_43 (bronze INTEGER, silver VARCHAR, gold VARCHAR)\n\n Question: What is the sum of bronzes having silvers over 5 and go...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_71 (result VARCHAR, attendance INTEGER) Question: What is the result of the game with an attendance greater than 67,702? Here is the SQLite query to answer to...
It seems there is a small mistake in your query. The `OFFSET` clause is being used incorrectly. Instead, you should be using the `WHERE` clause to filter for attendance greater than 67,702. Here is the corrected SQLite query: ``` SELECT result FROM table_name_71 WHERE attendance > 67702; ```
22,458
[ { "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 (result VARCHAR, attendance INTEGER)\n\n Question: What is the result of the game with an attendance greater than 67...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_10 (losses VARCHAR, ballarat_fl VARCHAR, against VARCHAR) Question: How many Losses have a Ballarat FL of melton south, and an Against larger than 1468? Here ...
Here is the SQLite query to answer the question: ``` SELECT COUNT(losses) FROM table_name_10 WHERE ballarat_fl = "melton south" AND against > 1468 ```
22,459
[ { "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_10 (losses VARCHAR, ballarat_fl VARCHAR, against VARCHAR)\n\n Question: How many Losses have a Ballarat FL of melton so...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_15 (against INTEGER, byes INTEGER) Question: How many Against has Byes smaller than 2? Here is the SQLite query to answer to the question: How many Against ha...
The query you provided calculates the average of the `against` values where `byes` is smaller than 2, but it doesn't directly answer how many `against` values meet that condition. Instead, you probably want to count the number of occurrences of `against` where `byes` is less than 2. Here is the correct SQLite query to...
22,460
[ { "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 (against INTEGER, byes INTEGER)\n\n Question: How many Against has Byes smaller than 2?\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_4 (against VARCHAR, ballarat_fl VARCHAR, wins VARCHAR) Question: How many Against has a Ballarat FL of darley and Wins larger than 8? Here is the SQLite query...
Here is the SQLite query to answer the question you provided: ``` SELECT COUNT(against) FROM table_name_4 WHERE ballarat_fl = 'darley' AND wins > '8' ``` Please note that since the `wins` column is defined as `VARCHAR`, the comparison with '8' will treat the values as strings. Make sure that the `wins` values are fo...
22,461
[ { "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 (against VARCHAR, ballarat_fl VARCHAR, wins VARCHAR)\n\n Question: How many Against has a Ballarat FL of darley and W...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_16 (byes INTEGER, against VARCHAR, wins VARCHAR) Question: How many Byes have Against of 1076 and Wins smaller than 13? Here is the SQLite query to answer to ...
The query you've written has a small mistake. You want to count how many rows meet the criteria rather than calculating the average of the `byes` column. You should use `COUNT(*)` instead of `AVG(byes)`. Here's the corrected query: ```sql SELECT COUNT(*) FROM table_name_16 WHERE against = '1076' AND CAST(wins AS INTEG...
22,462
[ { "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_16 (byes INTEGER, against VARCHAR, wins VARCHAR)\n\n Question: How many Byes have Against of 1076 and Wins smaller 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 (total_passengers VARCHAR, annual_change VARCHAR, rank VARCHAR) Question: What is the total number of Total Passengers when the annual change is 28.8% and t...
Here is the SQLite query to answer the question: ``` SELECT SUM(total_passengers) FROM table_name_28 WHERE annual_change = "28.8%" AND rank < 8 ``` Please note that since `total_passengers` is defined as a `VARCHAR`, you may need to convert it to a numeric type (like `INTEGER` or `FLOAT`) for the `SUM` operation dep...
22,463
[ { "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 (total_passengers VARCHAR, annual_change VARCHAR, rank VARCHAR)\n\n Question: What is the total number of Total Pass...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_9 (total_passengers INTEGER, annual_change VARCHAR, rank VARCHAR) Question: What is the sum of Total Passengers when the annual change is 9.7% and the rank is ...
Here is the SQLite query to answer the question regarding the sum of Total Passengers where the annual change is 9.7% and the rank is less than 6: ``` SELECT SUM(total_passengers) FROM table_name_9 WHERE annual_change = "9.7%" AND rank < 6 ```
22,464
[ { "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 (total_passengers INTEGER, annual_change VARCHAR, rank VARCHAR)\n\n Question: What is the sum of Total Passengers whe...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_49 (total_passengers INTEGER, annual_change VARCHAR, rank VARCHAR) Question: What is the highest Total Passengers when the annual change is 18.3%, and the rank...
Here is the SQLite query to answer the question about the highest Total Passengers when the annual change is 18.3%, and the rank is less than 11: ```sql SELECT MAX(total_passengers) FROM table_name_49 WHERE annual_change = "18.3%" AND rank < "11"; ```
22,465
[ { "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 (total_passengers INTEGER, annual_change VARCHAR, rank VARCHAR)\n\n Question: What is the highest Total Passengers w...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_32 (location VARCHAR, annual_change VARCHAR) Question: What location has an annual change of 7.6% Here is the SQLite query to answer to the question: What loc...
Here is the SQLite query to answer the question about which location has an annual change of 7.6%: ``` SELECT location FROM table_name_32 WHERE annual_change = '7.6%'; ```
22,466
[ { "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 (location VARCHAR, annual_change VARCHAR)\n\n Question: What location has an annual change of 7.6%\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_7 (result VARCHAR, score VARCHAR, goal VARCHAR) Question: Which Result has a Score of 1–0, and a Goal of 16? Here is the SQLite query to answer to the questio...
Here is the SQLite query to answer the question: ``` SELECT result FROM table_name_7 WHERE score = '1–0' AND goal = '16' ```
22,467
[ { "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 (result VARCHAR, score VARCHAR, goal VARCHAR)\n\n Question: Which Result has a Score of 1–0, and a Goal of 16?\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_21 (score VARCHAR, goal VARCHAR, result VARCHAR, competition VARCHAR) Question: Which Score has a Result of 2–1, and a Competition of friendly, and a Goal smal...
Here is the SQLite query to answer the question regarding the Score with the specified criteria: ``` SELECT score FROM table_name_21 WHERE result = "2–1" AND competition = "friendly" AND goal < 17 ```
22,468
[ { "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 (score VARCHAR, goal VARCHAR, result VARCHAR, competition VARCHAR)\n\n Question: Which Score has a Result of 2–1, an...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_96 (score VARCHAR, date VARCHAR, venue VARCHAR) Question: Which Score has a Date of october 8, 2005, and a Venue of estadio alfonso lastras, san luis potosí, m...
Here is the SQLite query to answer the question of which score corresponds to the specified date and venue: ``` SELECT score FROM table_name_96 WHERE date = "october 8, 2005" AND venue = "estadio alfonso lastras, san luis potosí, mexico" ```
22,469
[ { "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_96 (score VARCHAR, date VARCHAR, venue VARCHAR)\n\n Question: Which Score has a Date of october 8, 2005, and a Venue of...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_45 (competition VARCHAR, venue VARCHAR, goal VARCHAR) Question: Which Competition has a Venue of estadio alfonso lastras, san luis potosí, mexico, and a Goal l...
Here's the SQLite query wrapped in code formatting for your question: ``` SELECT competition FROM table_name_45 WHERE venue = "estadio alfonso lastras, san luis potosí, mexico" AND goal > 15 ```
22,470
[ { "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_45 (competition VARCHAR, venue VARCHAR, goal VARCHAR)\n\n Question: Which Competition has a Venue of estadio alfonso la...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_22 (area__hectare_ VARCHAR, parish VARCHAR) Question: What is the area for Worth Parish? Here is the SQLite query to answer to the question: What is the area ...
Here is the SQLite query to answer the question regarding the area for Worth Parish: ``` SELECT area__hectare_ FROM table_name_22 WHERE parish = "Worth"; ```
22,471
[ { "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_22 (area__hectare_ VARCHAR, parish VARCHAR)\n\n Question: What is the area for Worth Parish?\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_88 (week__number VARCHAR, original_artist VARCHAR) Question: What is the week number with Phil Collins as the original artist? Here is the SQLite query to ans...
Your SQLite query looks correct. Here it is wrapped with the appropriate code formatting: ``` SELECT week__number FROM table_name_88 WHERE original_artist = "phil collins" ``` This query will fetch the `week__number` from `table_name_88` for any entries where the `original_artist` is "phil collins". If there are any...
22,472
[ { "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 (week__number VARCHAR, original_artist VARCHAR)\n\n Question: What is the week number with Phil Collins as the origi...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_16 (order__number VARCHAR, week__number VARCHAR) Question: What is the order number that has top 20 (10 women) as the week number? Here is the SQLite query t...
Here is the SQLite query to answer the question regarding the order number that has "top 20 (10 women)" as the week number: ```sql SELECT order__number FROM table_name_16 WHERE week__number = "top 20 (10 women)"; ```
22,473
[ { "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_16 (order__number VARCHAR, week__number VARCHAR)\n\n Question: What is the order number that has top 20 (10 women) as ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_88 (original_artist VARCHAR, week__number VARCHAR) Question: What is the original artist of top 9 as the week number? Here is the SQLite query to answer to th...
It looks like you're trying to retrieve the original artist associated with the "top 9" week number from the given table. The provided query structure is correct, but the wording may be a bit ambiguous. If "top 9" is a literal value for the `week__number`, then your query is correctly structured. However, if you mean ...
22,474
[ { "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 (original_artist VARCHAR, week__number VARCHAR)\n\n Question: What is the original artist of top 9 as the week numbe...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_12 (week__number VARCHAR, theme VARCHAR) Question: What is the week number that has Dolly Parton as the theme? Here is the SQLite query to answer to the quest...
The SQLite query you provided is almost correct, but it could be improved by ensuring that the search for the theme is case-insensitive, as SQL queries can be case-sensitive depending on the database collation settings. Here's the refined query: ```sql SELECT week__number FROM table_name_12 WHERE LOWER(theme) = "dolly...
22,475
[ { "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 (week__number VARCHAR, theme VARCHAR)\n\n Question: What is the week number that has Dolly Parton as the theme?\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_69 (original_artist VARCHAR, order__number VARCHAR) Question: What is the original artist that has 11 as the order number? Here is the SQLite query to answer ...
Here is the SQLite query to find the original artist that has 11 as the order number: ``` SELECT original_artist FROM table_name_69 WHERE order__number = "11"; ```
22,476
[ { "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_69 (original_artist VARCHAR, order__number VARCHAR)\n\n Question: What is the original artist that has 11 as the order ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_97 (order__number VARCHAR, original_artist VARCHAR) Question: What is the order number that has Aretha Franklin as the original artist? Here is the SQLite que...
Here is the SQLite query to answer the question of what is the order number that has Aretha Franklin as the original artist: ```sql SELECT order__number FROM table_name_97 WHERE original_artist = "Aretha Franklin"; ```
22,477
[ { "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 (order__number VARCHAR, original_artist VARCHAR)\n\n Question: What is the order number that has Aretha Franklin as ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_81 (format VARCHAR, date VARCHAR, catalog VARCHAR) Question: Which Format has a Date of 1993, and a Catalog of cleo 2481-2? Here is the SQLite query to answer...
Here is the SQLite query to answer the question: ``` SELECT format FROM table_name_81 WHERE date = '1993' AND catalog = 'cleo 2481-2'; ```
22,478
[ { "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_81 (format VARCHAR, date VARCHAR, catalog VARCHAR)\n\n Question: Which Format has a Date of 1993, and a Catalog of cleo...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_82 (label VARCHAR, date VARCHAR, catalog VARCHAR) Question: Which Label has a Date smaller than 2008, and a Catalog of fall cd 006? Here is the SQLite query t...
Here is the SQLite query to answer the question: ``` SELECT label FROM table_name_82 WHERE date < '2008' AND catalog = 'fall cd 006' ```
22,479
[ { "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 (label VARCHAR, date VARCHAR, catalog VARCHAR)\n\n Question: Which Label has a Date smaller than 2008, and a Catalog...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_88 (round INTEGER, position VARCHAR) Question: What is the sum of Round with a Position that is center? Here is the SQLite query to answer to the question: Wh...
Here is the SQLite query to answer the question regarding the sum of Round with a Position that is center: ``` SELECT SUM(round) FROM table_name_88 WHERE position = 'center' ```
22,480
[ { "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 (round INTEGER, position VARCHAR)\n\n Question: What is the sum of Round with a Position that is center?\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_89 (round INTEGER, pick VARCHAR) Question: What is the sum of Round with a Pick that is 55? Here is the SQLite query to answer to the question: What is the su...
Your SQLite query is almost correct, but since `pick` is defined as a `VARCHAR`, you should compare it to '55' (with single quotes) instead of 55 (without quotes). Here’s the corrected version: ``` SELECT SUM(round) FROM table_name_89 WHERE pick = '55' ```
22,481
[ { "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_89 (round INTEGER, pick VARCHAR)\n\n Question: What is the sum of Round with a Pick that is 55?\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_77 (wins INTEGER, losses VARCHAR, ties VARCHAR) Question: What is the most wins when the number of losses was less than 4 and there was more than 0 ties? Here...
The SQLite query you provided has a small error in the criteria for filtering the `losses` and `ties` columns, specifically regarding their data types. Since `losses` is a VARCHAR, it must be treated appropriately when comparing to a number. Also, `ties` should be treated as an integer to check if it's greater than 0; ...
22,482
[ { "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 (wins INTEGER, losses VARCHAR, ties VARCHAR)\n\n Question: What is the most wins when the number of losses was less ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_37 (team VARCHAR, losses VARCHAR, pos VARCHAR) Question: Which team had fewer than 2 losses and a position number more than 1? Here is the SQLite query to ans...
Your query is almost correct, but since the `losses` column is defined as VARCHAR, we need to convert it to an integer for the comparison. Here is the corrected SQLite query wrapped in code blocks: ``` SELECT team FROM table_name_37 WHERE CAST(losses AS INTEGER) < 2 AND CAST(pos AS INTEGER) > 1; ```
22,483
[ { "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_37 (team VARCHAR, losses VARCHAR, pos VARCHAR)\n\n Question: Which team had fewer than 2 losses and a position number m...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_97 (season VARCHAR, name VARCHAR) Question: What season had Marcio Lassiter? Here is the SQLite query to answer to the question: What season had Marcio Lassit...
Here is the SQLite query to answer the question about what season had Marcio Lassiter: ``` SELECT season FROM table_name_97 WHERE name = "Marcio Lassiter"; ```
22,484
[ { "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 (season VARCHAR, name VARCHAR)\n\n Question: What season had Marcio Lassiter?\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_89 (season VARCHAR, acquisition_via VARCHAR, number VARCHAR) Question: What season had an acquisition of free agency, and was higher than 9? Here is the SQLit...
Your SQLite query to find the season with an acquisition of free agency and a number higher than 9 is correct. Here it is, formatted as requested: ``` SELECT season FROM table_name_89 WHERE acquisition_via = "free agency" AND number > 9 ```
22,485
[ { "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_89 (season VARCHAR, acquisition_via VARCHAR, number VARCHAR)\n\n Question: What season had an acquisition of free agenc...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_54 (number VARCHAR, acquisition_via VARCHAR, school_club_team VARCHAR) Question: What number has an acquisition via the Rookie Draft, and is part of a School/c...
Here is the SQLite query to answer the question: ``` SELECT number FROM table_name_54 WHERE acquisition_via = "Rookie Draft" AND school_club_team = "Cal State Fullerton"; ```
22,486
[ { "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_54 (number VARCHAR, acquisition_via VARCHAR, school_club_team VARCHAR)\n\n Question: What number has an acquisition via...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_29 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR, bronze VARCHAR) Question: What is the highest rank of the medal total less than 15, more than 2 ...
Your SQLite query is correctly structured to answer the question based on the provided schema. Here it is wrapped in code format as requested: ``` SELECT MAX(rank) FROM table_name_29 WHERE total < 15 AND bronze > 2 AND gold = 0 AND silver = 1; ```
22,487
[ { "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_29 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR, bronze VARCHAR)\n\n Question: What is the highest rank o...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_59 (location VARCHAR, founded VARCHAR, team_nickname VARCHAR) Question: What is the location of the team nicknamed Broncos, which was founded after 1889? Here...
Here is the SQLite query to answer the question about the location of the team nicknamed Broncos, which was founded after 1889: ``` SELECT location FROM table_name_59 WHERE founded > 1889 AND team_nickname = "Broncos" ```
22,488
[ { "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 (location VARCHAR, founded VARCHAR, team_nickname VARCHAR)\n\n Question: What is the location of the team nicknamed ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_23 (location VARCHAR, founded VARCHAR, institution VARCHAR) Question: What is the location of the University of Montana, which was founded after 1890? Here is...
Here is the SQLite query to answer the question about the location of the University of Montana, which was founded after 1890: ``` SELECT location FROM table_name_23 WHERE founded > '1890' AND institution = 'University of Montana'; ```
22,489
[ { "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 (location VARCHAR, founded VARCHAR, institution VARCHAR)\n\n Question: What is the location of the University of Mon...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_85 (landfall VARCHAR, saffir_simpson_category VARCHAR, year VARCHAR) Question: Which landfall was in category 1 for Saffir-Simpson in 1999? Here is the SQLite...
The SQLite query to answer the question "Which landfall was in category 1 for Saffir-Simpson in 1999?" is as follows: ``` SELECT landfall FROM table_name_85 WHERE saffir_simpson_category = '1' AND year = '1999' ``` Note that in the query, I've used single quotes for the values '1' and '1999' since they are stored as...
22,490
[ { "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 (landfall VARCHAR, saffir_simpson_category VARCHAR, year VARCHAR)\n\n Question: Which landfall was in category 1 for...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_36 (v_mph_ INTEGER, saffir_simpson_category VARCHAR, year VARCHAR) Question: What was the lowest V(mph) for a Saffir-Simpson of 4 in 2005? Here is the SQLite ...
The query you provided almost has the correct structure, but there is a small issue with the data type for the `saffir_simpson_category`, which is defined as `VARCHAR`. The value `4` should be provided as a string. Here is the corrected SQLite query wrapped in the appropriate code block: ``` SELECT MIN(v_mph_) FROM ta...
22,491
[ { "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 (v_mph_ INTEGER, saffir_simpson_category VARCHAR, year VARCHAR)\n\n Question: What was the lowest V(mph) for a Saffi...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_8 (saffir_simpson_category INTEGER, nhc_advisory_number VARCHAR) Question: What was the highest SaffirSimpson with an NHC advisory of 18? Here is the SQLite q...
Your SQLite query looks correct for the given requirements. Here it is formatted properly: ``` SELECT MAX(saffir_simpson_category) FROM table_name_8 WHERE nhc_advisory_number = "18"; ``` This query will return the highest value of `saffir_simpson_category` for entries where `nhc_advisory_number` is equal to "18".
22,492
[ { "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 (saffir_simpson_category INTEGER, nhc_advisory_number VARCHAR)\n\n Question: What was the highest SaffirSimpson with ...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_82 (athlete VARCHAR, nationality VARCHAR, group VARCHAR, rank VARCHAR, result VARCHAR) Question: Which athlete's rank is more than 15 when the result is less t...
Here is the SQLite query that answers your question: ```sql SELECT athlete FROM table_name_82 WHERE rank > 15 AND result < 7.68 AND group = 'b' AND nationality = 'Great Britain'; ```
22,493
[ { "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 (athlete VARCHAR, nationality VARCHAR, group VARCHAR, rank VARCHAR, result VARCHAR)\n\n Question: Which athlete's ra...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_11 (launch_date VARCHAR, space_agency VARCHAR, name VARCHAR) Question: When did NASA launch the wide field infrared explorer (wire)? Here is the SQLite query ...
Here is the SQLite query to answer the question about when NASA launched the wide field infrared explorer (WIRE): ``` SELECT launch_date FROM table_name_11 WHERE space_agency = "nasa" AND name = "wide field infrared explorer (wire)" ```
22,494
[ { "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 (launch_date VARCHAR, space_agency VARCHAR, name VARCHAR)\n\n Question: When did NASA launch the wide field infrared...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_17 (space_agency VARCHAR, name VARCHAR) Question: Which space agency launched the herschel space observatory? Here is the SQLite query to answer to the questi...
Here is the SQLite query you can use to answer the question regarding which space agency launched the Herschel Space Observatory: ``` SELECT space_agency FROM table_name_17 WHERE name = "herschel space observatory" ```
22,495
[ { "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 (space_agency VARCHAR, name VARCHAR)\n\n Question: Which space agency launched the herschel space observatory?\n\nHe...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_98 (lead VARCHAR, third VARCHAR) Question: What lead has the third David Nedohin? Here is the SQLite query to answer to the question: What lead has the third ...
Your SQLite query looks almost correct, but it doesn't specifically address the "third" aspect of the query. If you want to ensure that you retrieve the correct lead for the "third" David Nedohin, you would typically need to include some method to identify which instance of "David Nedohin" you are referring to. However...
22,496
[ { "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 (lead VARCHAR, third VARCHAR)\n\n Question: What lead has the third David Nedohin?\n\nHere is the SQLite query to an...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_93 (builder VARCHAR, completed INTEGER) Question: Which builder completed after 1889? Here is the SQLite query to answer to the question: Which builder comple...
Here is the SQLite query to answer the question of which builder completed after 1889: ``` SELECT builder FROM table_name_93 WHERE completed > 1889 ```
22,497
[ { "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 (builder VARCHAR, completed INTEGER)\n\n Question: Which builder completed after 1889?\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_84 (builder VARCHAR, completed VARCHAR, launched VARCHAR) Question: Which builder completed before 1890 and launched on 9 june 1888? Here is the SQLite query ...
Here is the SQLite query to answer the question: ``` SELECT builder FROM table_name_84 WHERE completed < '1890' AND launched = '9 june 1888'; ```
22,498
[ { "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_84 (builder VARCHAR, completed VARCHAR, launched VARCHAR)\n\n Question: Which builder completed before 1890 and launche...
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_75 (name VARCHAR, builder VARCHAR, laid_down VARCHAR) Question: What is the name of the boat that was built by Chatham and Laid down of 25 april 1887? Here is...
Here is the SQLite query to answer the question regarding the name of the boat built by Chatham and laid down on 25 April 1887: ``` SELECT name FROM table_name_75 WHERE builder = 'Chatham' AND laid_down = '25 april 1887'; ```
22,499
[ { "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_75 (name VARCHAR, builder VARCHAR, laid_down VARCHAR)\n\n Question: What is the name of the boat that was built by Chat...