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_44 (murder INTEGER, year INTEGER)
Question: How many total murders happened after 2011?
Here is the SQLite query to answer to the question: How many total mur... | Here is the SQLite query that answers the question of how many total murders happened after 2011:
```
SELECT SUM(murder) FROM table_name_44 WHERE year > 2011
``` | 18,200 | [
{
"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_44 (murder INTEGER, year INTEGER)\n\n Question: How many total murders happened after 2011?\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_40 (robbery INTEGER, crime_index_total VARCHAR, aggravated_assault VARCHAR, non_violent_crime VARCHAR, rape VARCHAR)
Question: Which average Robbery has the fo... | Here is the SQLite query you can use to find the average robbery based on the specified criteria:
```sql
SELECT AVG(robbery) FROM table_name_40
WHERE non_violent_crime < 1147
AND rape < 11
AND aggravated_assault > 167
AND crime_index_total = '1313'
```
Please note that the value of `crime_index_total` is enclose... | 18,201 | [
{
"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 (robbery INTEGER, crime_index_total VARCHAR, aggravated_assault VARCHAR, non_violent_crime VARCHAR, rape 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_90 (aggravated_assault INTEGER, crime_index_total VARCHAR, crime_rate_per_1000 VARCHAR, rape VARCHAR)
Question: Which aggravated assault has the highest amount... | Your query to find the highest aggravated assault with the specified criteria looks good, but it needs to ensure that the `crime_index_total` is treated as a numeric value since it is defined as `VARCHAR` in the schema. You should convert it to a number to make the comparison. Here's the corrected version of your SQL q... | 18,202 | [
{
"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 (aggravated_assault INTEGER, crime_index_total VARCHAR, crime_rate_per_1000 VARCHAR, rape VARCHAR)\n\n Question: Whi... | |
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, label VARCHAR)
Question: When did sony music direct a label?
Here is the SQLite query to answer to the question: When did sony music direct ... | Here is the SQLite query to answer the question: When did sony music direct a label?:
```
SELECT date FROM table_name_60 WHERE label = "sony music direct";
``` | 18,203 | [
{
"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, label VARCHAR)\n\n Question: When did sony music direct a label?\n\nHere is the SQLite query to answe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (region VARCHAR, format VARCHAR, catalog VARCHAR)
Question: What record had an alca-271 cd?
Here is the SQLite query to answer to the question: What record... | Certainly! Here is the SQLite query wrapped correctly:
```
SELECT region FROM table_name_88 WHERE format = "cd" AND catalog = "alca-271";
``` | 18,204 | [
{
"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 (region VARCHAR, format VARCHAR, catalog VARCHAR)\n\n Question: What record had an alca-271 cd?\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_10 (format VARCHAR, catalog VARCHAR)
Question: What formated cataloged alca-9196?
Here is the SQLite query to answer to the question: What formated cataloged ... | Here is the SQLite query to answer the question about the formatted cataloged "alca-9196":
```
SELECT format FROM table_name_10 WHERE catalog = "alca-9196";
``` | 18,205 | [
{
"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 (format VARCHAR, catalog VARCHAR)\n\n Question: What formated cataloged alca-9196?\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_11 (podiums VARCHAR, races VARCHAR, final_placing VARCHAR)
Question: Which Podium has 1 Race and a Final Place of 5th?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question "Which Podium has 1 Race and a Final Place of 5th?":
```
SELECT podiums FROM table_name_11 WHERE races = "1" AND final_placing = "5th"
``` | 18,206 | [
{
"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 (podiums VARCHAR, races VARCHAR, final_placing VARCHAR)\n\n Question: Which Podium has 1 Race and a Final Place of 5... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (season VARCHAR, final_placing VARCHAR, podiums VARCHAR)
Question: Which Season has a Final Place of 8th and 8 Podiums?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about which Season has a Final Place of 8th and 8 Podiums:
```
SELECT season FROM table_name_79 WHERE final_placing = "8th" AND podiums = "8";
``` | 18,207 | [
{
"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 (season VARCHAR, final_placing VARCHAR, podiums VARCHAR)\n\n Question: Which Season has a Final Place of 8th and 8 P... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (season VARCHAR, points VARCHAR, podiums VARCHAR, races VARCHAR)
Question: Which Season has 0 Podiums, 1 Race, and 0 Points?
Here is the SQLite query to an... | The SQLite query to answer the question "Which Season has 0 Podiums, 1 Race, and 0 Points?" is as follows:
```
SELECT season FROM table_name_77 WHERE podiums = "0" AND races = "1" AND points = "0"
``` | 18,208 | [
{
"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 (season VARCHAR, points VARCHAR, podiums VARCHAR, races VARCHAR)\n\n Question: Which Season has 0 Podiums, 1 Race, a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (season VARCHAR, points VARCHAR)
Question: Which Season has 95 Points?
Here is the SQLite query to answer to the question: Which Season has 95 Points?:
```... | Here is the SQLite query to answer the question "Which Season has 95 Points?":
```
SELECT season FROM table_name_48 WHERE points = '95';
``` | 18,209 | [
{
"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 (season VARCHAR, points VARCHAR)\n\n Question: Which Season has 95 Points?\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_99 (races VARCHAR, series VARCHAR, wins VARCHAR)
Question: Which Race has the Toyota Racing Series New Zealand and 0 wins?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question regarding which Race has the Toyota Racing Series New Zealand and 0 wins:
```
SELECT races FROM table_name_99 WHERE series = "Toyota Racing Series New Zealand" AND wins = "0";
``` | 18,210 | [
{
"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 (races VARCHAR, series VARCHAR, wins VARCHAR)\n\n Question: Which Race has the Toyota Racing Series New Zealand and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (season VARCHAR, final_placing VARCHAR)
Question: Which Season has a 19th Final Place?
Here is the SQLite query to answer to the question: Which Season has... | Here is the SQLite query to answer the question: Which Season has a 19th Final Place?:
```
SELECT season FROM table_name_77 WHERE final_placing = '19th';
``` | 18,211 | [
{
"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 (season VARCHAR, final_placing VARCHAR)\n\n Question: Which Season has a 19th Final Place?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (frequency INTEGER, status VARCHAR, format VARCHAR)
Question: What is the largest frequency owned by multicultural broadcasting with a Format of vietnamese?... | Here is the SQLite query to answer the question regarding the largest frequency owned by multicultural broadcasting with a format of Vietnamese:
```
SELECT MAX(frequency) FROM table_name_40 WHERE status = "owned by multicultural broadcasting" AND format = "vietnamese"
``` | 18,212 | [
{
"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 (frequency INTEGER, status VARCHAR, format VARCHAR)\n\n Question: What is the largest frequency owned by multicultur... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (format VARCHAR, station VARCHAR)
Question: Which format has a Station of klok?
Here is the SQLite query to answer to the question: Which format has a Stat... | Your provided SQLite query is correct for the given question. Here it is wrapped in the required code format:
```
SELECT format FROM table_name_28 WHERE station = "klok";
``` | 18,213 | [
{
"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 (format VARCHAR, station VARCHAR)\n\n Question: Which format has a Station of klok?\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_70 (format VARCHAR, frequency VARCHAR, station VARCHAR)
Question: Which format has a Frequency larger than 1050, and a Station of kvto?
Here is the SQLite que... | Here is the SQLite query you can use to answer the question about which format has a frequency larger than 1050 and a station of "kvto":
```
SELECT format FROM table_name_70 WHERE frequency > 1050 AND station = 'kvto';
``` | 18,214 | [
{
"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 (format VARCHAR, frequency VARCHAR, station VARCHAR)\n\n Question: Which format has a Frequency larger than 1050, an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (frequency INTEGER, status VARCHAR, format VARCHAR)
Question: What is the total frequency have a Status of owned by cumulus media, and a Format of news?
He... | Here is the SQLite query to answer the question regarding the total frequency for records with a status of "owned by cumulus media" and a format of "news":
```
SELECT SUM(frequency) FROM table_name_66 WHERE status = "owned by cumulus media" AND format = "news";
``` | 18,215 | [
{
"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 (frequency INTEGER, status VARCHAR, format VARCHAR)\n\n Question: What is the total frequency have a Status of owned... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (format VARCHAR, station VARCHAR)
Question: Which format has a Station of kcbs?
Here is the SQLite query to answer to the question: Which format has a Stat... | Here is the SQLite query to answer the question: Which format has a Station of kcbs?:
```
SELECT format FROM table_name_80 WHERE station = "kcbs";
``` | 18,216 | [
{
"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 (format VARCHAR, station VARCHAR)\n\n Question: Which format has a Station of kcbs?\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_69 (fa_cup INTEGER, total INTEGER)
Question: Who has the lowest FA cup and has a total over 46?
Here is the SQLite query to answer to the question: Who has th... | To find the record with the lowest FA cup for those who have a total greater than 46, you can use the following SQL query:
```sql
SELECT fa_cup
FROM table_name_69
WHERE total > 46
ORDER BY fa_cup
LIMIT 1;
```
This query selects the `fa_cup` value from `table_name_69`, filters for rows where `total` is greater tha... | 18,217 | [
{
"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 (fa_cup INTEGER, total INTEGER)\n\n Question: Who has the lowest FA cup and has a total over 46?\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_39 (total INTEGER, league_cup INTEGER)
Question: What is the sum of the League Cup smaller than 0?
Here is the SQLite query to answer to the question: What is... | ```sql
SELECT SUM(league_cup) FROM table_name_39 WHERE league_cup < 0
``` | 18,218 | [
{
"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 (total INTEGER, league_cup INTEGER)\n\n Question: What is the sum of the League Cup smaller than 0?\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_43 (heat INTEGER, time VARCHAR, lane VARCHAR)
Question: What is the average of all Heats of competitors with a Time of 59.11 and a lane higher than 3?
Here is... | Here is the SQLite query to answer the question about the average of all Heats of competitors with a Time of 59.11 and a lane higher than 3:
```
SELECT AVG(heat) FROM table_name_43 WHERE time = "59.11" AND lane > 3
``` | 18,219 | [
{
"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 (heat INTEGER, time VARCHAR, lane VARCHAR)\n\n Question: What is the average of all Heats of competitors with 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_67 (lane INTEGER, nationality VARCHAR)
Question: What is the highest Lane used by a racer from Malta?
Here is the SQLite query to answer to the question: What... | Here is your SQLite query to find the highest lane used by a racer from Malta:
```
SELECT MAX(lane) FROM table_name_67 WHERE nationality = "Malta";
``` | 18,220 | [
{
"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 (lane INTEGER, nationality VARCHAR)\n\n Question: What is the highest Lane used by a racer from Malta?\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_96 (name VARCHAR, time VARCHAR, heat VARCHAR, lane VARCHAR)
Question: What is the Name of the racer with a heat higher than 2 and a lane less than 5, with a ti... | Here is the SQLite query to answer the question:
```sql
SELECT name FROM table_name_96 WHERE heat > 2 AND lane < 5 AND time = '1:01.53';
``` | 18,221 | [
{
"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 (name VARCHAR, time VARCHAR, heat VARCHAR, lane VARCHAR)\n\n Question: What is the Name of the racer with a heat hig... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (wins INTEGER, cuts_made VARCHAR, top_10 VARCHAR)
Question: How many wins did he have when he made over 2 cuts and had under 2 top 10s?
Here is the SQLite ... | The query you've provided has a slight issue with the conditional checks for `cuts_made` and `top_10`. Since `cuts_made` is a `VARCHAR`, you should ensure that it can be compared as a number. Thus, it would be better to cast it to an integer. Similarly, since `top_10` is also a `VARCHAR`, you need to cast that to an in... | 18,222 | [
{
"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 (wins INTEGER, cuts_made VARCHAR, top_10 VARCHAR)\n\n Question: How many wins did he have when he made over 2 cuts a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (opponent VARCHAR, score VARCHAR, attendance VARCHAR)
Question: Who was the opponent of the game that 31,293 people attended that had a final score of 9 - 6.... | It looks like there is a small mistake in the query. The condition for attendance should check for an exact match of "31,293" instead of using `>` (greater than). Additionally, the `OFFSET` clause is not needed to find a specific opponent based on the criteria provided. Here's the corrected SQLite query:
```
SELECT op... | 18,223 | [
{
"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 (opponent VARCHAR, score VARCHAR, attendance VARCHAR)\n\n Question: Who was the opponent of the game that 31,293 peop... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (attendance VARCHAR, opponent VARCHAR, record VARCHAR)
Question: How many people attended the game against athletics with the record of 9-12?
Here is the S... | Here is the SQLite query to answer the question of how many people attended the game against athletics with the record of 9-12:
```
SELECT COUNT(attendance) FROM table_name_40 WHERE opponent = "athletics" AND record = "9-12"
``` | 18,224 | [
{
"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 (attendance VARCHAR, opponent VARCHAR, record VARCHAR)\n\n Question: How many people attended the game against athle... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (attendance INTEGER, record VARCHAR)
Question: How many people went to the game with the record of 8-10?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about how many people went to the game with the record of 8-10:
```
SELECT SUM(attendance) FROM table_name_44 WHERE record = '8-10'
``` | 18,225 | [
{
"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_44 (attendance INTEGER, record VARCHAR)\n\n Question: How many people went to the game with the record of 8-10?\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_22 (entrant VARCHAR, points VARCHAR, year VARCHAR, chassis VARCHAR)
Question: which entrant after 1987 had 12 points and a benetton b188 chassis?
Here is the ... | Here is the corrected SQLite query to answer the question about which entrant after 1987 had 12 points and a Benetton B188 chassis:
```
SELECT entrant
FROM table_name_22
WHERE year > 1987 AND chassis = 'benetton b188' AND points = '12';
```
Note that I changed the quotation marks around the points value to single q... | 18,226 | [
{
"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 (entrant VARCHAR, points VARCHAR, year VARCHAR, chassis VARCHAR)\n\n Question: which entrant after 1987 had 12 point... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (year INTEGER, engine VARCHAR, points VARCHAR)
Question: what's the earliest year that there was a cosworth v8 engine and 12 points?
Here is the SQLite que... | The SQLite query to answer the question regarding the earliest year that there was a cosworth v8 engine and 12 points is:
```
SELECT MIN(year) FROM table_name_39 WHERE engine = 'cosworth v8' AND points = '12';
```
Note: Make sure to use single quotes for string constants in SQL, including the `points` value. | 18,227 | [
{
"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 (year INTEGER, engine VARCHAR, points VARCHAR)\n\n Question: what's the earliest year that there was a cosworth v8 e... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (chassis VARCHAR, year INTEGER)
Question: which chassis were in use prior to 1988?
Here is the SQLite query to answer to the question: which chassis were i... | Here is the SQLite query to answer the question: which chassis were in use prior to 1988?:
```
SELECT chassis FROM table_name_31 WHERE year < 1988;
``` | 18,228 | [
{
"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 (chassis VARCHAR, year INTEGER)\n\n Question: which chassis were in use prior to 1988?\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_28 (name VARCHAR, nationality VARCHAR, lane VARCHAR)
Question: Who was from Great Britain in lane 5?
Here is the SQLite query to answer to the question: Who w... | Here is the SQLite query to answer the question: Who was from Great Britain in lane 5?:
```
SELECT name FROM table_name_28 WHERE nationality = "Great Britain" AND lane = "5";
``` | 18,229 | [
{
"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 (name VARCHAR, nationality VARCHAR, lane VARCHAR)\n\n Question: Who was from Great Britain in lane 5?\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_19 (attendance INTEGER, week VARCHAR)
Question: How many people were in attendance at week 16?
Here is the SQLite query to answer to the question: How many pe... | Your provided query is almost correct, but it computes the average attendance rather than the total attendance for week 16. If you want to find out how many people were in attendance (which I assume means summing up the attendance), you should use the `SUM` function. Here’s the corrected SQLite query:
```
SELECT SUM(a... | 18,230 | [
{
"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 (attendance INTEGER, week VARCHAR)\n\n Question: How many people were in attendance at week 16?\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_94 (entrant VARCHAR, chassis VARCHAR, year VARCHAR)
Question: What entrant had a chassis of Maserati 250f in 1954?
Here is the SQLite query to answer to the q... | Here is the corrected SQLite query to answer the question about the entrant with a chassis of Maserati 250f in 1954:
```
SELECT entrant FROM table_name_94 WHERE chassis = "Maserati 250f" AND year = "1954";
```
Make sure the casing and datatype for the year match the schema specifications. | 18,231 | [
{
"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 (entrant VARCHAR, chassis VARCHAR, year VARCHAR)\n\n Question: What entrant had a chassis of Maserati 250f in 1954?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (points INTEGER, year INTEGER)
Question: What is the highest number of points before 1954?
Here is the SQLite query to answer to the question: What is the h... | Your SQLite query to find the highest number of points before 1954 is correct. Here it is, formatted as requested:
```
SELECT MAX(points) FROM table_name_5 WHERE year < 1954
``` | 18,232 | [
{
"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 (points INTEGER, year INTEGER)\n\n Question: What is the highest number of points before 1954?\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_10 (decile INTEGER, name VARCHAR)
Question: What is the lowest decile that Ohau School has?
Here is the SQLite query to answer to the question: What is the lo... | Your provided SQLite query is correct for answering the question about the lowest decile that Ohau School has. Here it is wrapped in code format:
```
SELECT MIN(decile) FROM table_name_10 WHERE name = "ohau school";
```
This query will return the lowest decile value from the `table_name_10` table where the name matc... | 18,233 | [
{
"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 (decile INTEGER, name VARCHAR)\n\n Question: What is the lowest decile that Ohau School has?\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_69 (gender VARCHAR, decile VARCHAR, roll VARCHAR)
Question: What gender is allowed to attend the school that has a decile of 6 and a roll that is less than 179... | Here is the SQLite query to answer the question:
```
SELECT gender FROM table_name_69 WHERE decile = '6' AND roll < '179'
``` | 18,234 | [
{
"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 (gender VARCHAR, decile VARCHAR, roll VARCHAR)\n\n Question: What gender is allowed to attend the school that 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_9 (gender VARCHAR, roll VARCHAR)
Question: What gender is allowed at the school which has a roll of 338?
Here is the SQLite query to answer to the question: W... | Your provided SQLite query is correctly formulated to answer the question regarding the gender allowed at the school which has a roll of 338. Here it is, wrapped in code formatting:
```
SELECT gender FROM table_name_9 WHERE roll = '338';
```
Note that in SQLite, `roll` is likely a string (since it's defined as `VARCH... | 18,235 | [
{
"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 (gender VARCHAR, roll VARCHAR)\n\n Question: What gender is allowed at the school which has a roll of 338?\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_54 (authority VARCHAR, roll VARCHAR, decile VARCHAR, area VARCHAR)
Question: What authority controls the school in Levin that has a decile of 6, and a roll of ... | ```sql
SELECT authority FROM table_name_54 WHERE decile = '6' AND area = 'levin' AND roll = '226';
``` | 18,236 | [
{
"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 (authority VARCHAR, roll VARCHAR, decile VARCHAR, area VARCHAR)\n\n Question: What authority controls the school in ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (function__figure_ VARCHAR, serial_number VARCHAR)
Question: What Function (figure) has Serial number AF 934103?
Here is the SQLite query to answer to the ... | Your query is almost correct, but it contains a small inconsistency with the case of the serial number. If the serial number is "AF 934103" (with uppercase letters), you should match that exact case unless the database collation setting ignores case.
Here's the corrected SQL query, maintaining the case:
```
SELECT fu... | 18,237 | [
{
"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 (function__figure_ VARCHAR, serial_number VARCHAR)\n\n Question: What Function (figure) has Serial number AF 934103?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (primary_military_speciality VARCHAR, code_name VARCHAR)
Question: What is Moondancer's Primary Military Speciality?
Here is the SQLite query to answer to ... | Sure! Here's the SQLite query wrapped in code blocks:
```
SELECT primary_military_speciality FROM table_name_39 WHERE code_name = "moondancer";
``` | 18,238 | [
{
"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 (primary_military_speciality VARCHAR, code_name VARCHAR)\n\n Question: What is Moondancer's Primary Military Special... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (secondary_military_speciality VARCHAR, primary_military_speciality VARCHAR)
Question: With a Primary military speciality of astral assault tactics, what is... | Here is the SQLite query to answer your question regarding the secondary military speciality for a primary military speciality of "astral assault tactics":
```sql
SELECT secondary_military_speciality
FROM table_name_58
WHERE primary_military_speciality = "astral assault tactics"
``` | 18,239 | [
{
"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 (secondary_military_speciality VARCHAR, primary_military_speciality VARCHAR)\n\n Question: With a Primary military s... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (serial_number VARCHAR, function__figure_ VARCHAR)
Question: What is the Serial number for the Space Security Trooper Function (figure)?
Here is the SQLite... | Here is the SQLite query you requested, formatted correctly:
```
SELECT serial_number FROM table_name_11 WHERE function__figure_ = "Space Security Trooper";
``` | 18,240 | [
{
"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 (serial_number VARCHAR, function__figure_ VARCHAR)\n\n Question: What is the Serial number for the Space Security Tr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (code_name VARCHAR, function__figure_ VARCHAR)
Question: What is the Code Name for the Space Pilot Function (figure)?
Here is the SQLite query to answer to... | Your SQLite query is correctly structured to retrieve the Code Name for the Space Pilot Function. Here it is, wrapped in code formatting:
```
SELECT code_name FROM table_name_88 WHERE function__figure_ = "space pilot";
``` | 18,241 | [
{
"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 (code_name VARCHAR, function__figure_ VARCHAR)\n\n Question: What is the Code Name for the Space Pilot Function (fig... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (birthplace VARCHAR, real_name VARCHAR)
Question: What Birthplace's Real Name is Charles 'Chuck' Connors?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question: What Birthplace's Real Name is Charles 'Chuck' Connors?:
```
SELECT birthplace FROM table_name_86 WHERE real_name = "Charles 'Chuck' Connors"
``` | 18,242 | [
{
"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 (birthplace VARCHAR, real_name VARCHAR)\n\n Question: What Birthplace's Real Name is Charles 'Chuck' Connors?\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_53 (home VARCHAR, date VARCHAR)
Question: Who is the home team of the game on December 21?
Here is the SQLite query to answer to the question: Who is the home... | Here is the SQLite query to answer the question:
```
SELECT home FROM table_name_53 WHERE date = "December 21";
``` | 18,243 | [
{
"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 (home VARCHAR, date VARCHAR)\n\n Question: Who is the home team of the game on December 21?\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_48 (visitor VARCHAR, date VARCHAR)
Question: Who is the visitor of the game on March 7?
Here is the SQLite query to answer to the question: Who is the visitor... | Here is the SQLite query to answer the question: Who is the visitor of the game on March 7?:
```
SELECT visitor FROM table_name_48 WHERE date = "March 7";
``` | 18,244 | [
{
"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 (visitor VARCHAR, date VARCHAR)\n\n Question: Who is the visitor of the game on March 7?\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_28 (year INTEGER, points VARCHAR)
Question: Which is the highest year that has 3 points?
Here is the SQLite query to answer to the question: Which is the high... | Here is the SQLite query to find the highest year that has 3 points:
```
SELECT MAX(year) FROM table_name_28 WHERE points = '3'
```
Note that I have wrapped the points value in single quotes, as it is defined as a `VARCHAR` in the schema. | 18,245 | [
{
"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 (year INTEGER, points VARCHAR)\n\n Question: Which is the highest year that has 3 points?\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_53 (engine_s_ VARCHAR, points VARCHAR, year VARCHAR)
Question: Which engine has more than 0 points and a year before 1984?
Here is the SQLite query to answer ... | Your query is almost correct, but there are a couple of things to consider regarding the data types of the columns. Since `points` and `year` are stored as `VARCHAR`, you may need to cast them to integers for the comparison to work properly. Here’s the corrected query:
```sql
SELECT engine_s_
FROM table_name_53
WHER... | 18,246 | [
{
"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 (engine_s_ VARCHAR, points VARCHAR, year VARCHAR)\n\n Question: Which engine has more than 0 points and a year befor... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (game_site VARCHAR, date VARCHAR)
Question: Name the game site for october 18, 1992
Here is the SQLite query to answer to the question: Name the game site f... | Here is the SQLite query to answer the question of naming the game site for October 18, 1992:
```sql
SELECT game_site FROM table_name_1 WHERE date = "october 18, 1992";
``` | 18,247 | [
{
"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 (game_site VARCHAR, date VARCHAR)\n\n Question: Name the game site for october 18, 1992\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_40 (game_site VARCHAR, date VARCHAR)
Question: Name the game site for october 4, 1992
Here is the SQLite query to answer to the question: Name the game site f... | Here is the SQLite query to answer the question about naming the game site for October 4, 1992:
```
SELECT game_site FROM table_name_40 WHERE date = "october 4, 1992";
``` | 18,248 | [
{
"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 (game_site VARCHAR, date VARCHAR)\n\n Question: Name the game site for october 4, 1992\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_15 (date VARCHAR, opponent VARCHAR)
Question: Name the date when bye was opponent
Here is the SQLite query to answer to the question: Name the date when bye w... | Here is the SQLite query to answer the question: Name the date when bye was opponent:
```
SELECT date FROM table_name_15 WHERE opponent = "bye";
``` | 18,249 | [
{
"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 (date VARCHAR, opponent VARCHAR)\n\n Question: Name the date when bye was opponent\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_24 (attendance VARCHAR, date VARCHAR)
Question: Name the attendance for july 16
Here is the SQLite query to answer to the question: Name the attendance for ju... | Here is the SQLite query to answer the question about the attendance for July 16:
```sql
SELECT attendance FROM table_name_24 WHERE date = "july 16";
``` | 18,250 | [
{
"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 (attendance VARCHAR, date VARCHAR)\n\n Question: Name the attendance for july 16\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (loss VARCHAR, record VARCHAR)
Question: Name the loss for 48-37
Here is the SQLite query to answer to the question: Name the loss for 48-37:
```
SELECT lo... | Here is the SQLite query to answer the question: Name the loss for 48-37:
```
SELECT loss FROM table_name_54 WHERE record = "48-37"
``` | 18,251 | [
{
"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 (loss VARCHAR, record VARCHAR)\n\n Question: Name the loss for 48-37\n\nHere is the SQLite query to answer to the qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (record VARCHAR, score VARCHAR)
Question: Name the record for 9-4 score
Here is the SQLite query to answer to the question: Name the record for 9-4 score:
... | Here is the SQLite query to answer the question, wrapped as requested:
```
SELECT record FROM table_name_61 WHERE score = "9-4";
``` | 18,252 | [
{
"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 (record VARCHAR, score VARCHAR)\n\n Question: Name the record for 9-4 score\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_53 (attendance INTEGER, record VARCHAR)
Question: Name the least attendance for 52-37 record
Here is the SQLite query to answer to the question: Name the leas... | Here is the SQLite query to answer your question:
```
SELECT MIN(attendance) FROM table_name_53 WHERE record = "52-37"
``` | 18,253 | [
{
"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 (attendance INTEGER, record VARCHAR)\n\n Question: Name the least attendance for 52-37 record\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_71 (away VARCHAR, golden_point_s__scorer VARCHAR, home VARCHAR)
Question: What Away team has the Golden point(s) scorer Trent Hodkinson and the Home of Manly-W... | Here is the SQLite query to answer the question regarding the away team with the golden point scorer Trent Hodkinson and the home team of Manly-Warringah Sea Eagles:
```
SELECT away FROM table_name_71 WHERE golden_point_s__scorer = "trent hodkinson" AND home = "manly-warringah sea eagles";
``` | 18,254 | [
{
"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 (away VARCHAR, golden_point_s__scorer VARCHAR, home VARCHAR)\n\n Question: What Away team has the Golden point(s) sc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (score VARCHAR, golden_point_s__scorer VARCHAR)
Question: What is the Score of Golden Point(s) scorer Adam Reynolds?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question about the score of Golden Point(s) scorer Adam Reynolds:
```
SELECT score FROM table_name_29 WHERE golden_point_s__scorer = "Adam Reynolds"
``` | 18,255 | [
{
"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 (score VARCHAR, golden_point_s__scorer VARCHAR)\n\n Question: What is the Score of Golden Point(s) scorer Adam Reyno... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (golden_point_s__scorer VARCHAR, venue VARCHAR)
Question: What Golden point(s) has the Venue Allianz Stadium?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about what Golden point(s) has the Venue Allianz Stadium:
```
SELECT golden_point_s__scorer FROM table_name_31 WHERE venue = "Allianz Stadium";
``` | 18,256 | [
{
"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 (golden_point_s__scorer VARCHAR, venue VARCHAR)\n\n Question: What Golden point(s) has the Venue Allianz Stadium?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (golden_point_s__scorer VARCHAR, away VARCHAR, home VARCHAR)
Question: What Golden point(s) scorer has the Away Sydney Roosters and Home Cronulla Sharks?
H... | Here is the SQLite query to answer the question regarding the Golden point scorer for the Away Sydney Roosters and Home Cronulla Sharks:
```
SELECT golden_point_s__scorer FROM table_name_53 WHERE away = "sydney roosters" AND home = "cronulla sharks";
``` | 18,257 | [
{
"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 (golden_point_s__scorer VARCHAR, away VARCHAR, home VARCHAR)\n\n Question: What Golden point(s) scorer has the Away ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (golden_point_s__scorer VARCHAR, away VARCHAR, home VARCHAR)
Question: What Golden point(s) scorer has the Away Brisbane Broncos and Home South Sydney Rabbi... | Here is the SQLite query to answer the question about the Golden point scorer with the Away Brisbane Broncos and Home South Sydney Rabbitohs:
```
SELECT golden_point_s__scorer
FROM table_name_14
WHERE away = "brisbane broncos" AND home = "south sydney rabbitohs"
``` | 18,258 | [
{
"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_14 (golden_point_s__scorer VARCHAR, away VARCHAR, home VARCHAR)\n\n Question: What Golden point(s) scorer has the Away ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (revenues VARCHAR, name VARCHAR)
Question: What are the revenues for ōoka tadayoshi (2nd) (大岡忠愛)?
Here is the SQLite query to answer to the question: What ... | Here's the SQLite query to retrieve the revenues for ōoka tadayoshi (2nd) (大岡忠愛):
```
SELECT revenues FROM table_name_15 WHERE name = "ōoka tadayoshi (2nd) (大岡忠愛)"
``` | 18,259 | [
{
"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 (revenues VARCHAR, name VARCHAR)\n\n Question: What are the revenues for ōoka tadayoshi (2nd) (大岡忠愛)?\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_15 (lineage VARCHAR, name VARCHAR)
Question: What's the lineage of ōoka tadatomo (大岡忠與)?
Here is the SQLite query to answer to the question: What's the lineag... | Here is the SQLite query to answer the question about the lineage of ōoka tadatomo (大岡忠與):
```
SELECT lineage FROM table_name_15 WHERE name = "ōoka tadatomo (大岡忠與)"
``` | 18,260 | [
{
"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 (lineage VARCHAR, name VARCHAR)\n\n Question: What's the lineage of ōoka tadatomo (大岡忠與)?\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_14 (tenure VARCHAR, lineage VARCHAR)
Question: What's the tenure of 3rd son of tadatsune?
Here is the SQLite query to answer to the question: What's the tenur... | Here is the SQLite query to answer the question: What's the tenure of the 3rd son of tadatsune?:
```sql
SELECT tenure FROM table_name_14 WHERE lineage = "3rd son of tadatsune";
``` | 18,261 | [
{
"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_14 (tenure VARCHAR, lineage VARCHAR)\n\n Question: What's the tenure of 3rd son of tadatsune?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (court_rank VARCHAR, revenues VARCHAR, lineage VARCHAR)
Question: What's the court ranking of 5th son of tadayori and has revenues of 10,000 koku?
Here is ... | Here is the SQLite query you requested, wrapped in the appropriate code block:
```
SELECT court_rank FROM table_name_32 WHERE revenues = "10,000 koku" AND lineage = "5th son of tadayori"
``` | 18,262 | [
{
"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 (court_rank VARCHAR, revenues VARCHAR, lineage VARCHAR)\n\n Question: What's the court ranking of 5th son of tadayor... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (courtesy_title VARCHAR, lineage VARCHAR)
Question: What's the courtesy title of 4th son of hatamoto ōoka tadataka?
Here is the SQLite query to answer to t... | Here's the SQLite query you can use to find the courtesy title of the 4th son of hatamoto ōoka tadataka:
```
SELECT courtesy_title FROM table_name_36 WHERE lineage = "4th son of hatamoto ōoka tadataka";
``` | 18,263 | [
{
"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 (courtesy_title VARCHAR, lineage VARCHAR)\n\n Question: What's the courtesy title of 4th son of hatamoto ōoka tadata... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (rank VARCHAR, name VARCHAR)
Question: What was the rank of the event won by Pieter de Korver?
Here is the SQLite query to answer to the question: What was... | Here's the SQLite query formatted as you requested:
```
SELECT rank FROM table_name_87 WHERE name = "Pieter de Korver";
``` | 18,264 | [
{
"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 (rank VARCHAR, name VARCHAR)\n\n Question: What was the rank of the event won by Pieter de Korver?\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_61 (name VARCHAR, prize VARCHAR)
Question: Which event had a prize of $2,434,061?
Here is the SQLite query to answer to the question: Which event had a prize ... | Here is the SQLite query to answer the question: Which event had a prize of $2,434,061?:
```sql
SELECT name FROM table_name_61 WHERE prize = '$2,434,061';
``` | 18,265 | [
{
"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 (name VARCHAR, prize VARCHAR)\n\n Question: Which event had a prize of $2,434,061?\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_88 (prize VARCHAR, name VARCHAR)
Question: What was the prize won by Sebastian Ruthenberg?
Here is the SQLite query to answer to the question: What was the pr... | Here is the SQLite query to answer the question about the prize won by Sebastian Ruthenberg:
```
SELECT prize FROM table_name_88 WHERE name = "Sebastian Ruthenberg";
``` | 18,266 | [
{
"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 (prize VARCHAR, name VARCHAR)\n\n Question: What was the prize won by Sebastian Ruthenberg?\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_28 (name VARCHAR, prize VARCHAR)
Question: Who won the event with a top prize of $2,434,061?
Here is the SQLite query to answer to the question: Who won the e... | Here is the SQLite query to answer the question of who won the event with a top prize of $2,434,061:
```
SELECT name FROM table_name_28 WHERE prize = "$2,434,061"
``` | 18,267 | [
{
"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 (name VARCHAR, prize VARCHAR)\n\n Question: Who won the event with a top prize of $2,434,061?\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_71 (grid VARCHAR, rider VARCHAR)
Question: The rider mike di meglio had a total of how many grids?
Here is the SQLite query to answer to the question: The rid... | Here is the SQLite query to answer the question regarding how many grids the rider Mike Di Meglio had:
```
SELECT COUNT(grid) FROM table_name_71 WHERE rider = "mike di meglio";
``` | 18,268 | [
{
"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 (grid VARCHAR, rider VARCHAR)\n\n Question: The rider mike di meglio had a total of how many grids?\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_10 (n117_2400_iec3 VARCHAR, n100_iec3 VARCHAR)
Question: What is the N117/2400 IEC3 associated with an N100IEC3 of 25?
Here is the SQLite query to answer to t... | Your SQLite query is correct for retrieving the N117/2400 IEC3 value associated with an N100IEC3 of 25. Here it is, wrapped as requested:
```
SELECT n117_2400_iec3 FROM table_name_10 WHERE n100_iec3 = "25"
``` | 18,269 | [
{
"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 (n117_2400_iec3 VARCHAR, n100_iec3 VARCHAR)\n\n Question: What is the N117/2400 IEC3 associated with an N100IEC3 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 (name VARCHAR, length VARCHAR, winner VARCHAR)
Question: What is the Name of the Special Stage with a 2.40km length and S. Loeb as Winner?
Here is the SQLi... | Here's the SQLite query to find the name of the Special Stage with a 2.40km length and S. Loeb as the winner:
```
SELECT name FROM table_name_45 WHERE length = "2.40km" AND winner = "S. Loeb";
``` | 18,270 | [
{
"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 (name VARCHAR, length VARCHAR, winner VARCHAR)\n\n Question: What is the Name of the Special Stage with a 2.40km len... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (time VARCHAR, length VARCHAR, name VARCHAR)
Question: In the 21.40km Santa Rosa 1 Stage, what was the Time?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question regarding the time for the 21.40km Santa Rosa 1 Stage:
```
SELECT time FROM table_name_38 WHERE length = "21.40km" AND name = "santa rosa 1";
``` | 18,271 | [
{
"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 (time VARCHAR, length VARCHAR, name VARCHAR)\n\n Question: In the 21.40km Santa Rosa 1 Stage, what was the Time?\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_54 (winner VARCHAR, stage VARCHAR)
Question: What was the Winner of the SS5 Stage?
Here is the SQLite query to answer to the question: What was the Winner of ... | Here is the SQLite query to answer the question about the Winner of the SS5 Stage:
```
SELECT winner FROM table_name_54 WHERE stage = "SS5";
``` | 18,272 | [
{
"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 (winner VARCHAR, stage VARCHAR)\n\n Question: What was the Winner of the SS5 Stage?\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_74 (time VARCHAR, name VARCHAR)
Question: What was the Time in the Mina Clavero 2 Stage?
Here is the SQLite query to answer to the question: What was the Time... | Here is the SQLite query wrapped in the requested format:
```
SELECT time FROM table_name_74 WHERE name = "mina clavero 2";
``` | 18,273 | [
{
"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 (time VARCHAR, name VARCHAR)\n\n Question: What was the Time in the Mina Clavero 2 Stage?\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_86 (winner VARCHAR, stage VARCHAR)
Question: What was Stage SS2's Winner?
Here is the SQLite query to answer to the question: What was Stage SS2's Winner?:
``... | Here is the SQLite query to answer the question: What was Stage SS2's Winner?:
```
SELECT winner FROM table_name_86 WHERE stage = "SS2";
``` | 18,274 | [
{
"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 (winner VARCHAR, stage VARCHAR)\n\n Question: What was Stage SS2's Winner?\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_27 (bronze_medals INTEGER, total_medals VARCHAR, gold_medals VARCHAR, ensemble VARCHAR)
Question: What is the lowest amount of bronze medals won by Music City ... | Here is the SQLite query to answer the question about the lowest amount of bronze medals won by Music City Mystique, with the specified conditions:
```
SELECT MIN(bronze_medals)
FROM table_name_27
WHERE gold_medals > 3
AND ensemble = "Music City Mystique"
AND total_medals < 15;
``` | 18,275 | [
{
"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_27 (bronze_medals INTEGER, total_medals VARCHAR, gold_medals VARCHAR, ensemble VARCHAR)\n\n Question: What is the lowes... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (gold_medals VARCHAR, ensemble VARCHAR, bronze_medals VARCHAR)
Question: When the Mandarins won more than 1 bronze medals, how many gold medals did they win?... | It looks like you're trying to write a SQL query to answer a specific question based on the provided schema. However, the `bronze_medals` column is defined as a `VARCHAR` type, which means that comparisons (like `> 1`) might not work as expected unless the values are numeric as strings.
To ensure proper numeric compa... | 18,276 | [
{
"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_3 (gold_medals VARCHAR, ensemble VARCHAR, bronze_medals VARCHAR)\n\n Question: When the Mandarins won more than 1 bronz... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (roll INTEGER, decile VARCHAR, years VARCHAR, name VARCHAR)
Question: What is the largest roll with Years 1–8, a Name of dorie school, and a Decile larger t... | Your query looks almost correct, but you should ensure to use the correct data type comparison for the `decile` column, which might need to be cast as an integer if it is stored as a string. Here’s the query wrapped correctly:
```
SELECT MAX(roll) FROM table_name_49 WHERE years = "1–8" AND name = "dorie school" AND CA... | 18,277 | [
{
"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 (roll INTEGER, decile VARCHAR, years VARCHAR, name VARCHAR)\n\n Question: What is the largest roll with Years 1–8, a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (decile VARCHAR, years VARCHAR, roll VARCHAR)
Question: How many deciles have Years of 1–8, and a Roll of 49?
Here is the SQLite query to answer to the que... | Your query is almost correct; however, you should ensure that the condition for the `roll` column compares its value as a string since it is declared as `VARCHAR`. Here’s the SQLite query you can use:
```sql
SELECT COUNT(decile) FROM table_name_95 WHERE years = '1–8' AND roll = '49';
```
This query counts the number... | 18,278 | [
{
"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 (decile VARCHAR, years VARCHAR, roll VARCHAR)\n\n Question: How many deciles have Years of 1–8, and a Roll of 49?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (name VARCHAR, roll VARCHAR, years VARCHAR, decile VARCHAR)
Question: Which name has Years of 1–8, a Decile of 9, and a Roll smaller than 141?
Here is the ... | Here is the SQLite query to answer the question:
```
SELECT name FROM table_name_20 WHERE years = "1–8" AND decile = '9' AND roll < '141'
``` | 18,279 | [
{
"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 (name VARCHAR, roll VARCHAR, years VARCHAR, decile VARCHAR)\n\n Question: Which name has Years of 1–8, a Decile of 9... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (decile INTEGER, roll VARCHAR, years VARCHAR, authority VARCHAR)
Question: What is the largest Decile with Years of 1–8, anAuthority of state, and a Roll of... | Your SQLite query is almost correct, but there is a small error in the value for the `roll`. Since the `roll` is defined as a `VARCHAR`, the value should be enclosed in single quotes instead of not being quoted. Here’s the corrected version:
```sql
SELECT MAX(decile) FROM table_name_46 WHERE years = '1–8' AND authorit... | 18,280 | [
{
"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_46 (decile INTEGER, roll VARCHAR, years VARCHAR, authority VARCHAR)\n\n Question: What is the largest Decile with Years... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (decile VARCHAR, authority VARCHAR, name VARCHAR)
Question: How many deciles have an Authority of state and a Name of chertsey school?
Here is the SQLite q... | Your provided SQLite query is correct for answering the question about counting the number of deciles that have an Authority of "state" and a Name of "chertsey school". Here it is wrapped again as you requested:
```
SELECT COUNT(decile) FROM table_name_21 WHERE authority = "state" AND name = "chertsey school";
``` | 18,281 | [
{
"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 (decile VARCHAR, authority VARCHAR, name VARCHAR)\n\n Question: How many deciles have an Authority of state and a Na... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (type VARCHAR, lt_nos VARCHAR, bldr VARCHAR, year VARCHAR)
Question: Bldr of mcw&f, and a Year smaller than 1927, and a LT Nos of 9820-9821 has what type?
... | Here is the SQLite query to answer the question:
```
SELECT type FROM table_name_19 WHERE bldr = "mcw&f" AND year < "1927" AND lt_nos = "9820-9821"
``` | 18,282 | [
{
"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 (type VARCHAR, lt_nos VARCHAR, bldr VARCHAR, year VARCHAR)\n\n Question: Bldr of mcw&f, and a Year smaller than 1927... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (sales VARCHAR, song_title VARCHAR)
Question: What were the total number of sales for the song 21 Seconds?
Here is the SQLite query to answer to the questi... | Your query is almost correct, but it uses `COUNT(sales)`, which counts the number of non-null sales entries instead of summing the sales. If the sales field represents the number of sales and is stored as a string, you'll need to convert it to an integer to sum it properly. Assuming sales is a numeric string that you w... | 18,283 | [
{
"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 (sales VARCHAR, song_title VARCHAR)\n\n Question: What were the total number of sales for the song 21 Seconds?\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_53 (reigns VARCHAR, days_held VARCHAR)
Question: Which Reigns has 92 days held?
Here is the SQLite query to answer to the question: Which Reigns has 92 days h... | Here is the SQLite query to answer the question "Which Reigns has 92 days held?":
```sql
SELECT reigns FROM table_name_53 WHERE days_held = '92';
```
(Note: The `days_held` value is treated as a string since the column is defined as VARCHAR. Ensure that the values in the column are stored in a consistent format for ... | 18,284 | [
{
"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 (reigns VARCHAR, days_held VARCHAR)\n\n Question: Which Reigns has 92 days held?\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (successful_defenses VARCHAR, days_held VARCHAR, reigns VARCHAR)
Question: What successful defenses has 126 days held and a Reigns of 3?
Here is the SQLite... | Here is the SQLite query to answer the question about successful defenses that have 126 days held and a Reigns of 3:
```sql
SELECT successful_defenses FROM table_name_89 WHERE days_held = '126' AND reigns = '3';
``` | 18,285 | [
{
"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 (successful_defenses VARCHAR, days_held VARCHAR, reigns VARCHAR)\n\n Question: What successful defenses has 126 days... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (event VARCHAR, location VARCHAR, days_held VARCHAR)
Question: Which event has Philadelphia, PA as the location and 41 days held?
Here is the SQLite query ... | Here is the SQLite query to answer the question regarding which event has Philadelphia, PA as the location and 41 days held:
```
SELECT event FROM table_name_39 WHERE location = "Philadelphia, PA" AND days_held = "41"
``` | 18,286 | [
{
"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 (event VARCHAR, location VARCHAR, days_held VARCHAR)\n\n Question: Which event has Philadelphia, PA as the location ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (no3 VARCHAR, no2 VARCHAR, final VARCHAR)
Question: Who was number 3 that had a number 2 of Delfina and a Final of Pedro?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question:
```
SELECT no3 FROM table_name_98 WHERE no2 = "Delfina" AND final = "Pedro"
``` | 18,287 | [
{
"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 (no3 VARCHAR, no2 VARCHAR, final VARCHAR)\n\n Question: Who was number 3 that had a number 2 of Delfina and a Final ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (no9 VARCHAR, no7 VARCHAR, final VARCHAR)
Question: Who was number 9 that had a number 7 of Joana and a Final of Pedro?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question regarding who was number 9 that had a number 7 of Joana and a Final of Pedro:
```
SELECT no9 FROM table_name_96 WHERE no7 = "Joana" AND final = "Pedro";
``` | 18,288 | [
{
"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 (no9 VARCHAR, no7 VARCHAR, final VARCHAR)\n\n Question: Who was number 9 that had a number 7 of Joana and a Final of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (days VARCHAR, the_presenter VARCHAR, launch_date VARCHAR)
Question: Which days were presented by Andreas Mikroutsikos and were launched on March 10, 2003?
... | Here is the SQLite query to answer the question regarding which days were presented by Andreas Mikroutsikos and were launched on March 10, 2003:
```
SELECT days FROM table_name_48 WHERE the_presenter = "Andreas Mikroutsikos" AND launch_date = "March 10, 2003"
``` | 18,289 | [
{
"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 (days VARCHAR, the_presenter VARCHAR, launch_date VARCHAR)\n\n Question: Which days were presented by Andreas Mikrou... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (the_winner VARCHAR, the_presenter VARCHAR)
Question: Who won when the presenter was Tatiana Stefanidou?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question "Who won when the presenter was Tatiana Stefanidou?":
```
SELECT the_winner FROM table_name_92 WHERE the_presenter = "Tatiana Stefanidou";
``` | 18,290 | [
{
"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 (the_winner VARCHAR, the_presenter VARCHAR)\n\n Question: Who won when the presenter was Tatiana Stefanidou?\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_19 (the_prize VARCHAR, launch_date VARCHAR, tv_channel VARCHAR, the_presenter VARCHAR)
Question: What was the prize when the show was aired on Ant1, was presen... | Here is the SQLite query to answer the question:
```
SELECT the_prize FROM table_name_19 WHERE tv_channel = "Ant1" AND the_presenter = "Andreas Mikroutsikos" AND launch_date = "March 10, 2003";
``` | 18,291 | [
{
"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 (the_prize VARCHAR, launch_date VARCHAR, tv_channel VARCHAR, the_presenter VARCHAR)\n\n Question: What was the prize... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (gold INTEGER, bronze INTEGER)
Question: Name the sum of gold when Bronze is less than 0
Here is the SQLite query to answer to the question: Name the sum o... | Here is the SQLite query to answer the question about summing gold when bronze is less than 0:
```
SELECT SUM(gold) FROM table_name_19 WHERE bronze < 0
``` | 18,292 | [
{
"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 (gold INTEGER, bronze INTEGER)\n\n Question: Name the sum of gold when Bronze is less than 0\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_46 (nation VARCHAR, total VARCHAR, bronze VARCHAR)
Question: Name the nation when bronze is less than 4 and the total is more than 4
Here is the SQLite query ... | Here is the SQLite query to answer the question about naming the nation when bronze is less than 4 and the total is more than 4, properly formatted:
```
SELECT nation FROM table_name_46 WHERE CAST(total AS INTEGER) > 4 AND CAST(bronze AS INTEGER) < 4;
```
Note: The `total` and `bronze` columns are defined as `VARCHA... | 18,293 | [
{
"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_46 (nation VARCHAR, total VARCHAR, bronze VARCHAR)\n\n Question: Name the nation when bronze is less than 4 and the tot... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (position VARCHAR, team VARCHAR)
Question: What positions are in the Chicago bulls?
Here is the SQLite query to answer to the question: What positions are ... | Here is the SQLite query to answer the question about what positions are in the Chicago Bulls:
```
SELECT position FROM table_name_27 WHERE team = "chicago bulls";
``` | 18,294 | [
{
"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_27 (position VARCHAR, team VARCHAR)\n\n Question: What positions are in the Chicago bulls?\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_46 (season VARCHAR, nationality VARCHAR, position VARCHAR)
Question: What season did a United States center play in?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question about what season a United States center played in:
```sql
SELECT season FROM table_name_46 WHERE nationality = "united states" AND position = "center"
``` | 18,295 | [
{
"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_46 (season VARCHAR, nationality VARCHAR, position VARCHAR)\n\n Question: What season did a United States center play in... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (film VARCHAR, year VARCHAR)
Question: Which film was released in 1983?
Here is the SQLite query to answer to the question: Which film was released in 1983... | The SQLite query to answer the question "Which film was released in 1983?" is:
```
SELECT film FROM table_name_30 WHERE year = '1983'
```
Note: The year should be enclosed in single quotes since it is stored as a VARCHAR in the database schema. | 18,296 | [
{
"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_30 (film VARCHAR, year VARCHAR)\n\n Question: Which film was released in 1983?\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_83 (us_peak_position VARCHAR, uk_peak_position VARCHAR)
Question: What was the US Peak position of the film that peaked at #21 in the UK?
Here is the SQLite q... | Here is the SQLite query to answer the question about the US Peak position of the film that peaked at #21 in the UK:
```
SELECT us_peak_position FROM table_name_83 WHERE uk_peak_position = '21'
``` | 18,297 | [
{
"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 (us_peak_position VARCHAR, uk_peak_position VARCHAR)\n\n Question: What was the US Peak position of the film that pe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (score_composer VARCHAR, year VARCHAR)
Question: Who was the score composer of the film released in 1967?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question regarding the score composer of the film released in 1967:
```
SELECT score_composer FROM table_name_5 WHERE year = '1967'
``` | 18,298 | [
{
"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 (score_composer VARCHAR, year VARCHAR)\n\n Question: Who was the score composer of the film released in 1967?\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_1 (year VARCHAR, uk_peak_position VARCHAR)
Question: How many years had a film that peaked at #10 in the UK?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question regarding how many years had a film that peaked at #10 in the UK:
```
SELECT COUNT(DISTINCT year) FROM table_name_1 WHERE uk_peak_position = '10';
```
This query counts the distinct years where the `uk_peak_position` is `10`. | 18,299 | [
{
"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 (year VARCHAR, uk_peak_position VARCHAR)\n\n Question: How many years had a film that peaked at #10 in the UK?\n\nHer... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.