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_59 (leading_scorer VARCHAR, visitor VARCHAR)
Question: Tell me the leading scorer for grizzlies
Here is the SQLite query to answer to the question: Tell me th... | Here is the SQLite query to find the leading scorer for the Grizzlies:
```
SELECT leading_scorer FROM table_name_59 WHERE visitor = "grizzlies"
``` | 14,100 | [
{
"from": "human",
"value": " 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 (leading_scorer VARCHAR, visitor VARCHAR)\n\n Question: Tell me the leading scorer for grizzlies\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_76 (record VARCHAR, home VARCHAR, date VARCHAR)
Question: Name the record with home of bucks on 24 november 2007
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question:
```
SELECT record FROM table_name_76 WHERE home = "bucks" AND date = "24 november 2007"
``` | 14,101 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_76 (record VARCHAR, home VARCHAR, date VARCHAR)\n\n Question: Name the record with home of bucks on 24 november 2007\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (record VARCHAR, home VARCHAR)
Question: Name the record for bobcats
Here is the SQLite query to answer to the question: Name the record for bobcats:
```
S... | Here is the SQLite query to answer the question about naming the record for bobcats:
```
SELECT record FROM table_name_65 WHERE home = "bobcats";
``` | 14,102 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (record VARCHAR, home VARCHAR)\n\n Question: Name the record for bobcats\n\nHere is the SQLite query to answer to th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (home_team VARCHAR, venue VARCHAR)
Question: In the venue of Glenferrie Oval, what is the home team score?
Here is the SQLite query to answer to the questi... | Here is the SQLite query wrapped as requested:
```
SELECT home_team AS score FROM table_name_38 WHERE venue = "Glenferrie Oval"
``` | 14,103 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, venue VARCHAR)\n\n Question: In the venue of Glenferrie Oval, what is the home team score?\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_92 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR)
Question: What is the date of the game in a week earlier than 10 played in Texas stadium a... | Your SQLite query is almost correct but would need a little adjustment to clarify the week condition. To find the date of the game in a week earlier than week 10, you should specifically check for weeks that are less than 10. Here’s the corrected version of your query:
```sql
SELECT date
FROM table_name_92
WHERE wee... | 14,104 | [
{
"from": "human",
"value": " 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 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR)\n\n Question: What is the date of the game in a we... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (nationality VARCHAR, pick VARCHAR, round VARCHAR, college VARCHAR)
Question: What is the nationality of the player from Round 2, Pick 19 from College of Ka... | Here is the SQLite query to answer the question about the nationality of the player from Round 2, Pick 19 from College of Kansas State:
```
SELECT nationality FROM table_name_42 WHERE round = "2" AND college = "Kansas State" AND pick = "19";
``` | 14,105 | [
{
"from": "human",
"value": " 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 (nationality VARCHAR, pick VARCHAR, round VARCHAR, college VARCHAR)\n\n Question: What is the nationality of the pla... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (nationality VARCHAR, round VARCHAR, position VARCHAR)
Question: What is the nationality of the player in Position C from Round 1?
Here is the SQLite query... | Here is the SQLite query to answer the question regarding the nationality of the player in Position C from Round 1:
```
SELECT nationality FROM table_name_17 WHERE round = "1" AND position = "C"
``` | 14,106 | [
{
"from": "human",
"value": " 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 (nationality VARCHAR, round VARCHAR, position VARCHAR)\n\n Question: What is the nationality of the player in Positi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (team VARCHAR, round VARCHAR, pick VARCHAR)
Question: Which team has Pick 13 in Round 2?
Here is the SQLite query to answer to the question: Which team has... | Your SQLite query to find which team has Pick 13 in Round 2 is correct. Here it is again for clarity:
```
SELECT team FROM table_name_88 WHERE round = "2" AND pick = "13"
``` | 14,107 | [
{
"from": "human",
"value": " 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 (team VARCHAR, round VARCHAR, pick VARCHAR)\n\n Question: Which team has Pick 13 in Round 2?\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_59 (player VARCHAR, pick VARCHAR)
Question: Who is the Pick 7 player?
Here is the SQLite query to answer to the question: Who is the Pick 7 player?:
```
SELEC... | Here is the SQLite query to answer the question: Who is the Pick 7 player?:
```
SELECT player FROM table_name_59 WHERE pick = "7";
``` | 14,108 | [
{
"from": "human",
"value": " 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 (player VARCHAR, pick VARCHAR)\n\n Question: Who is the Pick 7 player?\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_54 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)
Question: Who were the opponents in the final in which the score was 6–1, 1–6, 4–6?
Here is th... | Here is the SQLite query to answer the question about the opponents in the final with the specified score:
```
SELECT opponents_in_the_final FROM table_name_54 WHERE score_in_the_final = "6–1, 1–6, 4–6"
``` | 14,109 | [
{
"from": "human",
"value": " 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 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)\n\n Question: Who were the opponents in the final in wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (launch_date VARCHAR, institutional_authority VARCHAR, launch_vehicle VARCHAR)
Question: Tell me the launch date with Institutional authority of ndc and lau... | Here is the SQLite query to answer the question regarding the launch date with Institutional authority of "ndc" and launch vehicle of "hatf-xi":
```
SELECT launch_date FROM table_name_58 WHERE institutional_authority = "ndc" AND launch_vehicle = "hatf-xi";
``` | 14,110 | [
{
"from": "human",
"value": " 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 (launch_date VARCHAR, institutional_authority VARCHAR, launch_vehicle VARCHAR)\n\n Question: Tell me the launch date... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (launch_vehicle VARCHAR, institutional_authority VARCHAR)
Question: Name the launch vehicle with Institutional authority of ndc
Here is the SQLite query to... | Here is the SQLite query to answer the question about naming the launch vehicle with the institutional authority of "ndc":
```
SELECT launch_vehicle FROM table_name_59 WHERE institutional_authority = "ndc"
``` | 14,111 | [
{
"from": "human",
"value": " 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 (launch_vehicle VARCHAR, institutional_authority VARCHAR)\n\n Question: Name the launch vehicle with Institutional a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (institutional_authority VARCHAR, launch_date VARCHAR)
Question: Name the institutional authority for launch date of october 12, 2004
Here is the SQLite qu... | Here is the SQLite query to answer the question about the institutional authority for the launch date of October 12, 2004:
```
SELECT institutional_authority FROM table_name_47 WHERE launch_date = "october 12, 2004";
``` | 14,112 | [
{
"from": "human",
"value": " 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 (institutional_authority VARCHAR, launch_date VARCHAR)\n\n Question: Name the institutional authority for launch dat... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (results VARCHAR, institutional_authority VARCHAR)
Question: Name the results for institutional authority of paf
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question:
```
SELECT results FROM table_name_73 WHERE institutional_authority = "paf"
``` | 14,113 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_73 (results VARCHAR, institutional_authority VARCHAR)\n\n Question: Name the results for institutional authority of paf... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (laps VARCHAR, driver VARCHAR)
Question: How many laps did Yannick Dalmas do?
Here is the SQLite query to answer to the question: How many laps did Yannick... | To count the total number of laps that Yannick Dalmas did, you should use the `SUM` function on the `laps` column. Here is the corrected SQL query:
```
SELECT SUM(laps) AS total_laps FROM table_name_59 WHERE driver = "yannick dalmas";
```
This query will give you the total number of laps that Yannick Dalmas complete... | 14,114 | [
{
"from": "human",
"value": " 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 (laps VARCHAR, driver VARCHAR)\n\n Question: How many laps did Yannick Dalmas do?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (laps VARCHAR, driver VARCHAR)
Question: How many Laps does Eddie Cheever have?
Here is the SQLite query to answer to the question: How many Laps does Eddi... | Here is the SQLite query to answer the question about how many laps Eddie Cheever has:
```sql
SELECT laps FROM table_name_39 WHERE driver = "Eddie Cheever";
``` | 14,115 | [
{
"from": "human",
"value": " 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 (laps VARCHAR, driver VARCHAR)\n\n Question: How many Laps does Eddie Cheever have?\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_98 (constructor VARCHAR, grid VARCHAR)
Question: What is the name of the Constructor with a 19 Grid?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question about the name of the Constructor with a 19 Grid:
```
SELECT constructor FROM table_name_98 WHERE grid = '19';
``` | 14,116 | [
{
"from": "human",
"value": " 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 (constructor VARCHAR, grid VARCHAR)\n\n Question: What is the name of the Constructor with a 19 Grid?\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_86 (ngc_number VARCHAR, declination___j2000__ VARCHAR, constellation VARCHAR, object_type VARCHAR)
Question: Name the total number of NGC number for sagittariu... | Here is the SQLite query to answer the question regarding the total number of NGC numbers for Sagittarius and diffuse nebula with declination of °02′:
```
SELECT COUNT(ngc_number)
FROM table_name_86
WHERE constellation = "sagittarius"
AND object_type = "diffuse nebula"
AND declination___j2000__ = "°02′";
``` | 14,117 | [
{
"from": "human",
"value": " 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 (ngc_number VARCHAR, declination___j2000__ VARCHAR, constellation VARCHAR, object_type VARCHAR)\n\n Question: Name t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (right_ascension___j2000__ VARCHAR, ngc_number VARCHAR, declination___j2000__ VARCHAR)
Question: I want to know the right ascension which has an NGC less th... | Here is the SQLite query to answer your question:
```
SELECT right_ascension___j2000__ FROM table_name_72 WHERE ngc_number < '6575' AND declination___j2000__ = '°38′00″';
``` | 14,118 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (right_ascension___j2000__ VARCHAR, ngc_number VARCHAR, declination___j2000__ VARCHAR)\n\n Question: I want to know ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, object_type VARCHAR, constellation VARCHAR, ngc_number VARCHAR)
Question: Name the right ... | Here is the SQLite query to answer the question regarding the right ascension for Sagittarius with an NGC number larger than 6522 for open clusters and a declination of °22′:
```
SELECT right_ascension___j2000__ FROM table_name_78
WHERE constellation = "sagittarius"
AND ngc_number > 6522
AND object_type = "open clu... | 14,119 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_78 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, object_type VARCHAR, constellation VARCHAR, ngc_numb... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (attendance INTEGER, loss VARCHAR)
Question: How many were in attendance for the loss of rekar (4–5)?
Here is the SQLite query to answer to the question: H... | Here is the SQLite query to answer the question of how many were in attendance for the loss of rekar (4–5):
```
SELECT SUM(attendance) FROM table_name_15 WHERE loss = "rekar (4–5)"
``` | 14,120 | [
{
"from": "human",
"value": " 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 (attendance INTEGER, loss VARCHAR)\n\n Question: How many were in attendance for the loss of rekar (4–5)?\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_72 (year VARCHAR, status VARCHAR)
Question: In what year is the status of won?
Here is the SQLite query to answer to the question: In what year is the status ... | Here is the SQLite query to answer the question: In what year is the status of won?:
```
SELECT year FROM table_name_72 WHERE status = "won";
``` | 14,121 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (year VARCHAR, status VARCHAR)\n\n Question: In what year is the status of won?\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_70 (role VARCHAR, film VARCHAR)
Question: What was the Last Samurai role?
Here is the SQLite query to answer to the question: What was the Last Samurai role?:... | Here is the SQLite query to answer the question about the Last Samurai role:
```
SELECT role FROM table_name_70 WHERE film = "the last samurai";
``` | 14,122 | [
{
"from": "human",
"value": " 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 (role VARCHAR, film VARCHAR)\n\n Question: What was the Last Samurai role?\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_14 (status VARCHAR)
Question: When the role is role what was the status?
Here is the SQLite query to answer to the question: When the role is role what was th... | It seems like there might be some misunderstanding in the query you've provided. The question references checking the status based on a role, but the schema you've shown only contains a table with a "status" column and no mention of roles.
Assuming you might want to filter the status based on some condition where the... | 14,123 | [
{
"from": "human",
"value": " 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 (status VARCHAR)\n\n Question: When the role is role what was the status?\n\nHere is the SQLite query to answer to t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (film VARCHAR, status VARCHAR, name VARCHAR)
Question: What Ken Watanabe film as nominated?
Here is the SQLite query to answer to the question: What Ken Wa... | Certainly! Here’s the SQLite query to find the Ken Watanabe film that was nominated, wrapped in code formatting:
```
SELECT film FROM table_name_96 WHERE status = "nominated" AND name = "ken watanabe";
``` | 14,124 | [
{
"from": "human",
"value": " 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 (film VARCHAR, status VARCHAR, name VARCHAR)\n\n Question: What Ken Watanabe film as nominated?\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_42 (year VARCHAR, status VARCHAR, film VARCHAR)
Question: What year was The Last Samurai nominated?
Here is the SQLite query to answer to the question: What y... | Here is the SQLite query to answer the question: What year was The Last Samurai nominated?:
```
SELECT year FROM table_name_42 WHERE status = "nominated" AND film = "The Last Samurai";
``` | 14,125 | [
{
"from": "human",
"value": " 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 (year VARCHAR, status VARCHAR, film VARCHAR)\n\n Question: What year was The Last Samurai nominated?\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_31 (film VARCHAR)
Question: When the year is year what was the film?
Here is the SQLite query to answer to the question: When the year is year what was the fi... | It seems there is a bit of confusion in your question regarding how to use placeholders or parameters in SQL queries. Assuming "year" refers to a specific year value and you want to retrieve the film(s) associated with that year, you should replace "year" with the actual numeric year you're querying for.
However, if ... | 14,126 | [
{
"from": "human",
"value": " 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 (film VARCHAR)\n\n Question: When the year is year what was the film?\n\nHere is the SQLite query to answer to the q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (class VARCHAR, quantity VARCHAR, date VARCHAR)
Question: Which class has less in quantity than 174 between the years 1921–23?
Here is the SQLite query to ... | The provided query has a few issues. Specifically, `quantity` needs to be compared as an integer, and the date field should be checked for the correct range rather than an equality condition. Here’s an improved version of the query that correctly addresses the question:
```sql
SELECT class
FROM table_name_43
WHERE C... | 14,127 | [
{
"from": "human",
"value": " 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 (class VARCHAR, quantity VARCHAR, date VARCHAR)\n\n Question: Which class has less in quantity than 174 between the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (type VARCHAR, quantity VARCHAR)
Question: Which type has a quantity of 11?
Here is the SQLite query to answer to the question: Which type has a quantity o... | Here is the SQLite query to answer the question "Which type has a quantity of 11?":
```
SELECT type FROM table_name_29 WHERE quantity = '11'
``` | 14,128 | [
{
"from": "human",
"value": " 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 (type VARCHAR, quantity VARCHAR)\n\n Question: Which type has a quantity of 11?\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_70 (class VARCHAR, type VARCHAR, quantity VARCHAR)
Question: Which class has less than 3 in quantity with a type of 4-6-0?
Here is the SQLite query to answer... | Your SQLite query needs a small adjustment because the `quantity` column is defined as VARCHAR, which means you might need to cast it to an integer for comparison. Here’s an updated version of your query:
```sql
SELECT class FROM table_name_70 WHERE type = '4-6-0' AND CAST(quantity AS INTEGER) < 3;
```
This query wi... | 14,129 | [
{
"from": "human",
"value": " 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 (class VARCHAR, type VARCHAR, quantity VARCHAR)\n\n Question: Which class has less than 3 in quantity with a type o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (score VARCHAR, time VARCHAR)
Question: What was the score for the team with a time of 2:44?
Here is the SQLite query to answer to the question: What was th... | Here is the SQLite query to answer the question regarding the score for the team with a time of 2:44:
```
SELECT score FROM table_name_8 WHERE time = "2:44"
``` | 14,130 | [
{
"from": "human",
"value": " 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 (score VARCHAR, time VARCHAR)\n\n Question: What was the score for the team with a time of 2:44?\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_20 (opened INTEGER, venue VARCHAR, established VARCHAR)
Question: When is the earliest year opened for huff hall that was established after 1974?
Here is the ... | Here is the SQLite query to answer the question about the earliest year opened for "huff hall" that was established after 1974:
```
SELECT MIN(opened) FROM table_name_20 WHERE venue = "huff hall" AND established > 1974
``` | 14,131 | [
{
"from": "human",
"value": " 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 (opened INTEGER, venue VARCHAR, established VARCHAR)\n\n Question: When is the earliest year opened for huff hall th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (earnings__ INTEGER, rank INTEGER)
Question: Tell me the sum of earnings for rank less than 1
Here is the SQLite query to answer to the question: Tell me t... | Here is the SQLite query to answer the question of the sum of earnings for rank less than 1:
```sql
SELECT SUM(earnings__) AS total_earnings FROM table_name_63 WHERE rank < 1;
``` | 14,132 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_63 (earnings__ INTEGER, rank INTEGER)\n\n Question: Tell me the sum of earnings for rank less than 1\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (rank INTEGER, wins VARCHAR)
Question: Tell me the sum of rank with wins of 17
Here is the SQLite query to answer to the question: Tell me the sum of rank w... | The correct SQL query to sum the ranks where the wins are equal to 17 looks like this:
```
SELECT SUM(rank) FROM table_name_6 WHERE wins = '17'
```
Please note that in SQLite, since the `wins` column is defined as a VARCHAR, the value '17' should be treated as a string in the query. | 14,133 | [
{
"from": "human",
"value": " 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, wins VARCHAR)\n\n Question: Tell me the sum of rank with wins of 17\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
Question: What is the total number of laps where time/retired is +2 laps and the grid number is bigger tha... | Here is the SQLite query formatted correctly to answer the question:
```sql
SELECT SUM(laps) FROM table_name_5 WHERE time_retired = "+2 laps" AND grid > 18;
``` | 14,134 | [
{
"from": "human",
"value": " 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 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)\n\n Question: What is the total number of laps where time/retired ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (laps INTEGER, time_retired VARCHAR)
Question: What is the mean number of laps where time/retired was +1:05.564?
Here is the SQLite query to answer to the ... | Your SQLite query is almost correct, but you'll want to ensure that the time format is consistent and properly handled by SQLite. Here's the refined version of the query, wrapped appropriately:
```
SELECT AVG(laps) FROM table_name_67 WHERE time_retired = '+1:05.564';
```
Note that I used single quotes for the string... | 14,135 | [
{
"from": "human",
"value": " 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 (laps INTEGER, time_retired VARCHAR)\n\n Question: What is the mean number of laps where time/retired was +1:05.564?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (laps VARCHAR, grid VARCHAR, driver VARCHAR)
Question: Which lap number had a grid number bigger than 9 and where the driver was Mark Webber?
Here is the S... | Here is the SQLite query to answer the question:
```
SELECT laps FROM table_name_77 WHERE grid > 9 AND driver = "Mark Webber"
``` | 14,136 | [
{
"from": "human",
"value": " 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 (laps VARCHAR, grid VARCHAR, driver VARCHAR)\n\n Question: Which lap number had a grid number bigger than 9 and wher... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (date VARCHAR, home_team VARCHAR)
Question: What is the date when Richmond was the home team?
Here is the SQLite query to answer to the question: What is t... | ```sql
SELECT date FROM table_name_66 WHERE home_team = "Richmond";
``` | 14,137 | [
{
"from": "human",
"value": " 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 (date VARCHAR, home_team VARCHAR)\n\n Question: What is the date when Richmond was the home team?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (tie_no INTEGER, attendance VARCHAR)
Question: what is the tie no when the attendance is 126?
Here is the SQLite query to answer to the question: what is t... | The given SQL query you've provided is attempting to use the `AVG()` function, which is not necessary for retrieving the `tie_no` when the `attendance` is 126. Instead, you would want to select the `tie_no` directly. Here is the correct SQL query to answer your question:
```
SELECT tie_no FROM table_name_66 WHERE atte... | 14,138 | [
{
"from": "human",
"value": " 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 (tie_no INTEGER, attendance VARCHAR)\n\n Question: what is the tie no when the attendance is 126?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (tie_no INTEGER, home_team VARCHAR)
Question: what is the average tie no when the home team is stamford a.f.c.?
Here is the SQLite query to answer to the q... | Your SQLite query to calculate the average `tie_no` for the home team "stamford a.f.c." looks correct. Here it is formatted as requested:
```
SELECT AVG(tie_no) FROM table_name_11 WHERE home_team = "stamford a.f.c."
``` | 14,139 | [
{
"from": "human",
"value": " 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 (tie_no INTEGER, home_team VARCHAR)\n\n Question: what is the average tie no when the home team is stamford a.f.c.?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (score VARCHAR, tie_no VARCHAR)
Question: what is the score when the tie no is 28?
Here is the SQLite query to answer to the question: what is the score wh... | Here is the SQLite query to answer the question regarding the score when the tie no is 28:
```
SELECT score FROM table_name_97 WHERE tie_no = '28'
```
Note: The value for `tie_no` is enclosed in single quotes, as it is defined as a VARCHAR type in the schema. | 14,140 | [
{
"from": "human",
"value": " 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 (score VARCHAR, tie_no VARCHAR)\n\n Question: what is the score when the tie no is 28?\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_21 (driver VARCHAR, tyre VARCHAR, entrant VARCHAR)
Question: Who was the driver of the Officine Alfieri Maserati with a Tyre of P?
Here is the SQLite query to... | Here is the SQLite query to answer the question:
```
SELECT driver FROM table_name_21 WHERE tyre = "P" AND entrant = "Officine Alfieri Maserati";
``` | 14,141 | [
{
"from": "human",
"value": " 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 (driver VARCHAR, tyre VARCHAR, entrant VARCHAR)\n\n Question: Who was the driver of the Officine Alfieri Maserati wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (entrant VARCHAR, driver VARCHAR, tyre VARCHAR, chassis VARCHAR)
Question: Who was the entrant for driver Giuseppe Farina when he had a Chassis of 625 555 D... | Here is the SQLite query formatted according to your request:
```
SELECT entrant FROM table_name_87 WHERE tyre = "E" AND chassis = "625 555 D50" AND driver = "Giuseppe Farina";
``` | 14,142 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (entrant VARCHAR, driver VARCHAR, tyre VARCHAR, chassis VARCHAR)\n\n Question: Who was the entrant for driver Giusep... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (constructor VARCHAR, tyre VARCHAR, driver VARCHAR)
Question: Who constructed Mike Sparken's car with a tyre of E?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question "Who constructed Mike Sparken's car with a tyre of E?":
```
SELECT constructor FROM table_name_79 WHERE tyre = "E" AND driver = "Mike Sparken";
``` | 14,143 | [
{
"from": "human",
"value": " 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 (constructor VARCHAR, tyre VARCHAR, driver VARCHAR)\n\n Question: Who constructed Mike Sparken's car with a tyre of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (rounds VARCHAR, constructor VARCHAR)
Question: What rounds did Gordini participate in?
Here is the SQLite query to answer to the question: What rounds did... | Here is the SQLite query to answer the question: What rounds did Gordini participate in?:
```
SELECT rounds FROM table_name_74 WHERE constructor = "gordini";
``` | 14,144 | [
{
"from": "human",
"value": " 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 (rounds VARCHAR, constructor VARCHAR)\n\n Question: What rounds did Gordini participate in?\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_86 (constructor VARCHAR, chassis VARCHAR, rounds VARCHAR)
Question: Who constructed the car in round 1 with a Chassis of 250F?
Here is the SQLite query to ans... | Here is the SQLite query to answer to the question:
```
SELECT constructor FROM table_name_86 WHERE chassis = "250F" AND rounds = "1"
``` | 14,145 | [
{
"from": "human",
"value": " 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 (constructor VARCHAR, chassis VARCHAR, rounds VARCHAR)\n\n Question: Who constructed the car in round 1 with a Chass... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (crowd INTEGER, venue VARCHAR)
Question: What was the lowest attendance at Glenferrie Oval?
Here is the SQLite query to answer to the question: What was th... | Here is the SQLite query to answer the question regarding the lowest attendance at Glenferrie Oval:
```
SELECT MIN(crowd) FROM table_name_83 WHERE venue = "glenferrie oval";
``` | 14,146 | [
{
"from": "human",
"value": " 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 (crowd INTEGER, venue VARCHAR)\n\n Question: What was the lowest attendance at Glenferrie Oval?\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_56 (venue VARCHAR, away_team VARCHAR)
Question: Where did North Melbourne play as the away team?
Here is the SQLite query to answer to the question: Where did... | Your SQLite query looks good, but keep in mind that SQL queries are case-sensitive when it comes to string comparison, depending on the collation. If there are cases where "North Melbourne" could be stored with different capitalizations, you might want to use the `LOWER()` function to ensure a case-insensitive comparis... | 14,147 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (venue VARCHAR, away_team VARCHAR)\n\n Question: Where did North Melbourne play as the away team?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (away_team VARCHAR)
Question: What was Footscray's score as the away team?
Here is the SQLite query to answer to the question: What was Footscray's score a... | Your provided SQL query retrieves the `away_team` as a score, but it seems you might be looking for the actual score of the team, which isn't present in the provided schema. The schema only lists `away_team`, but there’s no score information shown.
If there was another table that recorded scores corresponding to team... | 14,148 | [
{
"from": "human",
"value": " 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 (away_team VARCHAR)\n\n Question: What was Footscray's score as the away team?\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_92 (away_team VARCHAR, venue VARCHAR)
Question: What was the away teams score at Glenferrie Oval?
Here is the SQLite query to answer to the question: What was... | Your SQL query is almost correct, but it seems like there is a misunderstanding regarding the request for the away team's score. The schema provided only includes the `away_team` and `venue`, but there is no score information available in the given schema.
Normally, you would need a column that holds the score for th... | 14,149 | [
{
"from": "human",
"value": " 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 (away_team VARCHAR, venue VARCHAR)\n\n Question: What was the away teams score at Glenferrie Oval?\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_53 (head_coach VARCHAR, location VARCHAR)
Question: Who is the head coach of the team located in Mudgeeraba?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question about the head coach of the team located in Mudgeeraba:
```sql
SELECT head_coach FROM table_name_53 WHERE location = "Mudgeeraba";
``` | 14,150 | [
{
"from": "human",
"value": " 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 (head_coach VARCHAR, location VARCHAR)\n\n Question: Who is the head coach of the team located in Mudgeeraba?\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_37 (president VARCHAR, head_coach VARCHAR)
Question: Who is the President of the team that has the Head Coach Mark Wakeling?
Here is the SQLite query to answe... | Your query is almost correct, but it's important to ensure that the case sensitivity of the string matches the actual data in the database. SQLite is case-sensitive in string comparisons unless otherwise specified, but it’s a good practice to use a consistent casing if you’re not sure.
Here is the corrected version w... | 14,151 | [
{
"from": "human",
"value": " 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 (president VARCHAR, head_coach VARCHAR)\n\n Question: Who is the President of the team that has the Head Coach Mark ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (head_coach VARCHAR, president VARCHAR)
Question: Who is the Head Coach of the team whose President is Mario Volarevic?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question of who is the Head Coach of the team whose President is Mario Volarevic:
```
SELECT head_coach FROM table_name_86 WHERE president = "Mario Volarevic"
``` | 14,152 | [
{
"from": "human",
"value": " 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 (head_coach VARCHAR, president VARCHAR)\n\n Question: Who is the Head Coach of the team whose President is Mario Vol... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (team VARCHAR, head_coach VARCHAR)
Question: Which team's Head Coach is Steve Beever?
Here is the SQLite query to answer to the question: Which team's Head... | Here is the SQLite query to answer the question about which team's Head Coach is Steve Beever:
```
SELECT team FROM table_name_68 WHERE head_coach = "Steve Beever";
``` | 14,153 | [
{
"from": "human",
"value": " 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 (team VARCHAR, head_coach VARCHAR)\n\n Question: Which team's Head Coach is Steve Beever?\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_45 (attendance VARCHAR, date VARCHAR)
Question: How many people attended the match on 1/11?
Here is the SQLite query to answer to the question: How many peopl... | To count how many people attended the match on 1/11, you need to modify the query to use the `COUNT` function. Here's the corrected SQLite query:
```
SELECT COUNT(attendance) AS total_attendance FROM table_name_45 WHERE date = "1/11";
``` | 14,154 | [
{
"from": "human",
"value": " 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 (attendance VARCHAR, date VARCHAR)\n\n Question: How many people attended the match on 1/11?\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_43 (leading_scorer VARCHAR, visitor VARCHAR, home VARCHAR)
Question: Who was the leading scorer in the match when the Golden State Warriors were visiting the D... | Your SQLite query to find the leading scorer when the Golden State Warriors were visiting the Dallas Mavericks is correct. Here it is wrapped in the specified format:
```
SELECT leading_scorer FROM table_name_43 WHERE visitor = "golden state warriors" AND home = "dallas mavericks"
``` | 14,155 | [
{
"from": "human",
"value": " 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 (leading_scorer VARCHAR, visitor VARCHAR, home VARCHAR)\n\n Question: Who was the leading scorer in the match when t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (cfl_team VARCHAR, position VARCHAR)
Question: Which CFL Team has a Position of dl?
Here is the SQLite query to answer to the question: Which CFL Team has ... | Here is the SQLite query to answer the question: Which CFL Team has a Position of dl?:
```
SELECT cfl_team FROM table_name_54 WHERE position = 'dl';
``` | 14,156 | [
{
"from": "human",
"value": " 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 (cfl_team VARCHAR, position VARCHAR)\n\n Question: Which CFL Team has a Position of dl?\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_12 (cfl_team VARCHAR, college VARCHAR, player VARCHAR)
Question: Which CFL Team has a College of montreal, and a Player of marc trepanier?
Here is the SQLite ... | Here is the SQLite query to answer the question regarding which CFL team has a college of Montreal and a player of Marc Trepanier:
```
SELECT cfl_team FROM table_name_12 WHERE college = "montreal" AND player = "marc trepanier"
``` | 14,157 | [
{
"from": "human",
"value": " 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 (cfl_team VARCHAR, college VARCHAR, player VARCHAR)\n\n Question: Which CFL Team has a College of montreal, and a Pl... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (translated_title VARCHAR, norwegian_title VARCHAR)
Question: What is the Translated Title of Steinulven?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question about the Translated Title of Steinulven:
```
SELECT translated_title FROM table_name_31 WHERE norwegian_title = "Steinulven";
``` | 14,158 | [
{
"from": "human",
"value": " 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 (translated_title VARCHAR, norwegian_title VARCHAR)\n\n Question: What is the Translated Title of Steinulven?\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_37 (norwegian_title VARCHAR, pages VARCHAR, translated_title VARCHAR)
Question: What Norwegian title has 218 pages and Translated Title of Breaking Dawn?
Here... | It appears that there is a small mistake in your SQL query regarding how the `pages` field is treated. Since `pages` is defined as a `VARCHAR` in the schema, it should be compared to a string rather than an integer. Here's the corrected version of the query:
```sql
SELECT norwegian_title FROM table_name_37 WHERE pages... | 14,159 | [
{
"from": "human",
"value": " 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 (norwegian_title VARCHAR, pages VARCHAR, translated_title VARCHAR)\n\n Question: What Norwegian title has 218 pages ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (constituency VARCHAR, swing_to_gain VARCHAR, rank VARCHAR)
Question: I want the constituency which has a swing to gain less than 6.05 and a rank of 2
Here ... | Here is the SQLite query to answer the question about constituencies with a swing to gain less than 6.05 and a rank of 2:
```
SELECT constituency FROM table_name_4 WHERE swing_to_gain < 6.05 AND rank = '2'
```
Note: Ensure that the comparison for `rank` uses quotes, since it is defined as a `VARCHAR` in the schema. | 14,160 | [
{
"from": "human",
"value": " 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 (constituency VARCHAR, swing_to_gain VARCHAR, rank VARCHAR)\n\n Question: I want the constituency which has a swing t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (winning_party_2007 VARCHAR, constituency VARCHAR, result VARCHAR, swing_to_gain VARCHAR)
Question: Name the winning party 2007 for result of labour hold an... | Here is the SQLite query wrapped in code formatting to answer your question:
```
SELECT winning_party_2007
FROM table_name_60
WHERE result = "labour hold"
AND swing_to_gain < 7.11
AND constituency = "wrexham";
``` | 14,161 | [
{
"from": "human",
"value": " 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 (winning_party_2007 VARCHAR, constituency VARCHAR, result VARCHAR, swing_to_gain VARCHAR)\n\n Question: Name the win... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (boxscore VARCHAR, loss VARCHAR)
Question: Which box score has a Loss of capuano (5–5)?
Here is the SQLite query to answer to the question: Which box score... | Here is the SQLite query to answer the question:
```
SELECT boxscore FROM table_name_82 WHERE loss = "capuano (5–5)"
``` | 14,162 | [
{
"from": "human",
"value": " 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 (boxscore VARCHAR, loss VARCHAR)\n\n Question: Which box score has a Loss of capuano (5–5)?\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_23 (opponent VARCHAR, score VARCHAR)
Question: Which opponent has a Score of 2–5?
Here is the SQLite query to answer to the question: Which opponent has a Sco... | Here is the SQLite query to answer the question: Which opponent has a Score of 2–5?:
```
SELECT opponent FROM table_name_23 WHERE score = "2–5"
``` | 14,163 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, score VARCHAR)\n\n Question: Which opponent has a Score of 2–5?\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_28 (record VARCHAR, date VARCHAR)
Question: What is the record for june 10?
Here is the SQLite query to answer to the question: What is the record for june 10... | Here is the SQLite query to answer the question regarding the record for June 10:
```sql
SELECT record FROM table_name_28 WHERE date = "june 10";
``` | 14,164 | [
{
"from": "human",
"value": " 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 (record VARCHAR, date VARCHAR)\n\n Question: What is the record for june 10?\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (boxscore VARCHAR, attendance VARCHAR)
Question: Which box score has an Attendance of 54,773?
Here is the SQLite query to answer to the question: Which box... | Here is the SQLite query to answer the question, which retrieves the box score with an attendance of 54,773:
```
SELECT boxscore FROM table_name_32 WHERE attendance = '54,773';
``` | 14,165 | [
{
"from": "human",
"value": " 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 (boxscore VARCHAR, attendance VARCHAR)\n\n Question: Which box score has an Attendance of 54,773?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (loss VARCHAR, date VARCHAR)
Question: What loss happened june 8?
Here is the SQLite query to answer to the question: What loss happened june 8?:
```
SELEC... | Here is the SQLite query to answer the question about what loss happened on June 8:
```
SELECT loss FROM table_name_43 WHERE date = "june 8";
``` | 14,166 | [
{
"from": "human",
"value": " 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 (loss VARCHAR, date VARCHAR)\n\n Question: What loss happened june 8?\n\nHere is the SQLite query to answer to the q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (record VARCHAR, boxscore VARCHAR, loss VARCHAR)
Question: Which record has a Boxscore of w2, and a Loss of kline (2–3)?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question regarding which record has a Boxscore of `w2`, and a Loss of `kline (2–3)`:
```
SELECT record FROM table_name_89 WHERE boxscore = "w2" AND loss = "kline (2–3)"
``` | 14,167 | [
{
"from": "human",
"value": " 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 (record VARCHAR, boxscore VARCHAR, loss VARCHAR)\n\n Question: Which record has a Boxscore of w2, and a Loss of klin... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (pct VARCHAR, total_games INTEGER)
Question: What is the PCT when the total number of games is less than 944?
Here is the SQLite query to answer to the que... | Your query correctly retrieves the PCT values from the `table_name_84` table where the total number of games is less than 944. Here is the query wrapped in code formatting as you requested:
```
SELECT pct FROM table_name_84 WHERE total_games < 944;
``` | 14,168 | [
{
"from": "human",
"value": " 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 (pct VARCHAR, total_games INTEGER)\n\n Question: What is the PCT when the total number of games is less than 944?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (lost INTEGER, pct VARCHAR, tied VARCHAR, years VARCHAR)
Question: What is the highest number lost when the number tied is more than 42, the years are less ... | Here's the SQLite query wrapped in code formatting as requested:
```
SELECT MAX(lost) FROM table_name_57 WHERE tied > 42 AND years < 132 AND pct < 0.5729000000000001
``` | 14,169 | [
{
"from": "human",
"value": " 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 (lost INTEGER, pct VARCHAR, tied VARCHAR, years VARCHAR)\n\n Question: What is the highest number lost when the numb... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (lost INTEGER, pct VARCHAR, total_games VARCHAR)
Question: What is the average number lost when the PCT is more than 0.7334 and the total number of games is... | Here's the corrected SQLite query to answer the question based on the provided schema:
```sql
SELECT AVG(lost)
FROM table_name_22
WHERE CAST(pct AS REAL) > 0.7334 AND CAST(total_games AS INTEGER) > 48;
```
This query assumes that `pct` is stored as a VARCHAR and needs to be cast to a REAL type for comparison, and ... | 14,170 | [
{
"from": "human",
"value": " 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 (lost INTEGER, pct VARCHAR, total_games VARCHAR)\n\n Question: What is the average number lost when the PCT is more ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (tied INTEGER, independent VARCHAR, years VARCHAR)
Question: What is the total number of tied games when Old Dominion is the independent and the years is mo... | Here is the correct SQLite query to answer the question about the total number of tied games when Old Dominion is the independent and the years is more than 4:
```
SELECT SUM(tied) FROM table_name_41 WHERE independent = "Old Dominion" AND years > 4;
```
Note the capitalization of "Old Dominion," which should match t... | 14,171 | [
{
"from": "human",
"value": " 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 (tied INTEGER, independent VARCHAR, years VARCHAR)\n\n Question: What is the total number of tied games when Old Dom... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (pct INTEGER, independent VARCHAR, years VARCHAR)
Question: What is the lowest PCT when Old Dominion is the independent and the years is more than 4?
Here ... | Here is the correct SQLite query to answer the question:
```
SELECT MIN(pct) FROM table_name_54 WHERE independent = "Old Dominion" AND years > 4;
``` | 14,172 | [
{
"from": "human",
"value": " 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 (pct INTEGER, independent VARCHAR, years VARCHAR)\n\n Question: What is the lowest PCT when Old Dominion is the inde... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (laps VARCHAR, driver VARCHAR, grid VARCHAR)
Question: how many laps was the driver jacques villeneuve and the grid more than 7?
Here is the SQLite query t... | Your SQLite query is almost correct, but it is important to ensure that the `grid` comparison is done with the correct data type. Since the `grid` is stored as a VARCHAR, you should explicitly cast it to an integer for comparison. Here's the revised query:
```sql
SELECT COUNT(laps) FROM table_name_55 WHERE driver = "j... | 14,173 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (laps VARCHAR, driver VARCHAR, grid VARCHAR)\n\n Question: how many laps was the driver jacques villeneuve and the g... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (high_assists VARCHAR, high_rebounds VARCHAR)
Question: What is the high assists score of Nick Collison (11)?
Here is the SQLite query to answer to the que... | Here is the corrected SQLite query to answer the question about Nick Collison's high assists score:
```
SELECT high_assists FROM table_name_85 WHERE high_rebounds = "Nick Collison (11)"
```
Make sure that the casing and spelling are consistent with how the names are stored in the database. | 14,174 | [
{
"from": "human",
"value": " 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 (high_assists VARCHAR, high_rebounds VARCHAR)\n\n Question: What is the high assists score of Nick Collison (11)?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (time_retired VARCHAR, grid VARCHAR)
Question: What is Time/Retired with a Grid of 12?
Here is the SQLite query to answer to the question: What is Time/Ret... | Here is the SQLite query to answer the question regarding Time/Retired with a Grid of 12:
```
SELECT time_retired FROM table_name_23 WHERE grid = '12'
```
Note: The value '12' is in quotes because it is stored as a VARCHAR in the database schema. | 14,175 | [
{
"from": "human",
"value": " 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 (time_retired VARCHAR, grid VARCHAR)\n\n Question: What is Time/Retired with a Grid of 12?\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_8 (grid VARCHAR, laps VARCHAR, manufacturer VARCHAR, rider VARCHAR)
Question: How many grids have a Manufacturer of honda, a Rider of yuki takahashi, and more ... | Your SQLite query is correctly formatted to answer the specified question. Here it is wrapped in code formatting:
```
SELECT COUNT(grid) FROM table_name_8 WHERE manufacturer = "honda" AND rider = "yuki takahashi" AND laps > 22
``` | 14,176 | [
{
"from": "human",
"value": " 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 (grid VARCHAR, laps VARCHAR, manufacturer VARCHAR, rider VARCHAR)\n\n Question: How many grids have a Manufacturer of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (laps VARCHAR, time_retired VARCHAR)
Question: How many laps have a Time/Retired of +1:35.553?
Here is the SQLite query to answer to the question: How many... | Here is the SQLite query to answer the question of how many laps have a Time/Retired of +1:35.553:
```
SELECT COUNT(laps) FROM table_name_84 WHERE time_retired = '+1:35.553';
``` | 14,177 | [
{
"from": "human",
"value": " 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 (laps VARCHAR, time_retired VARCHAR)\n\n Question: How many laps have a Time/Retired of +1:35.553?\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_48 (date VARCHAR, home_team VARCHAR)
Question: If fitzroy was the home team what date did they play?
Here is the SQLite query to answer to the question: If fi... | Here is the SQLite query to answer the question: If fitzroy was the home team what date did they play?:
```
SELECT date FROM table_name_48 WHERE home_team = "fitzroy"
``` | 14,178 | [
{
"from": "human",
"value": " 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 (date VARCHAR, home_team VARCHAR)\n\n Question: If fitzroy was the home team what date did they play?\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_46 (score VARCHAR, goal VARCHAR)
Question: What is the score of the game with 4 goals?
Here is the SQLite query to answer to the question: What is the score o... | It looks like you're trying to query for a specific score based on a goal count. Since the `goal` column is defined as a `VARCHAR`, you need to ensure that you are comparing it as a string. The value '4' should also be enclosed in quotes as it is a string. Here's the corrected SQLite query:
```sql
SELECT score FROM ta... | 14,179 | [
{
"from": "human",
"value": " 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 (score VARCHAR, goal VARCHAR)\n\n Question: What is the score of the game with 4 goals?\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_25 (score VARCHAR, competition VARCHAR, goal VARCHAR)
Question: What is the score of the friendly competition with 1 goal?
Here is the SQLite query to answer ... | Here is the corrected SQLite query to answer the question about the score of the friendly competition with 1 goal:
```sql
SELECT score FROM table_name_25 WHERE competition = "friendly" AND goal = "1"
```
In this query, ensure that the `goal` field is compared as a string, since `goal` is defined as a `VARCHAR`. | 14,180 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (score VARCHAR, competition VARCHAR, goal VARCHAR)\n\n Question: What is the score of the friendly competition with ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (purse___us$__ VARCHAR, race VARCHAR)
Question: What was the Illinois Derby purse?
Here is the SQLite query to answer to the question: What was the Illinoi... | Here is your SQLite query to answer the question about the Illinois Derby purse:
```
SELECT purse___us$__ FROM table_name_32 WHERE race = "illinois derby";
``` | 14,181 | [
{
"from": "human",
"value": " 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 (purse___us$__ VARCHAR, race VARCHAR)\n\n Question: What was the Illinois Derby purse?\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_30 (purse___us$__ VARCHAR, dist VARCHAR, winning_horse VARCHAR)
Question: How much money did Crafty Bear wins with a dist of 1 mile?
Here is the SQLite query ... | Here is the SQLite query to answer the question about how much money Crafty Bear wins with a distance of 1 mile:
```
SELECT purse___us$__ FROM table_name_30 WHERE dist = '1 mile' AND winning_horse = 'Crafty Bear';
``` | 14,182 | [
{
"from": "human",
"value": " 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 (purse___us$__ VARCHAR, dist VARCHAR, winning_horse VARCHAR)\n\n Question: How much money did Crafty Bear wins with ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (track VARCHAR, race VARCHAR)
Question: What track did they race on at the Fountain of Youth Stakes?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about the track used in the Fountain of Youth Stakes:
```sql
SELECT track FROM table_name_69 WHERE race = "Fountain of Youth Stakes";
``` | 14,183 | [
{
"from": "human",
"value": " 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 (track VARCHAR, race VARCHAR)\n\n Question: What track did they race on at the Fountain of Youth Stakes?\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_91 (grid INTEGER, laps VARCHAR, driver VARCHAR)
Question: What is the grid total for alain prost with over 14 laps?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about the grid total for Alain Prost with over 14 laps:
```
SELECT SUM(grid) FROM table_name_91 WHERE laps > 14 AND driver = "alain prost"
``` | 14,184 | [
{
"from": "human",
"value": " 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 (grid INTEGER, laps VARCHAR, driver VARCHAR)\n\n Question: What is the grid total for alain prost with over 14 laps?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (digital_analog_signal VARCHAR, chipset_based_on VARCHAR)
Question: What is the Digital/analog signal with a Chipset based on with radeon 8500?
Here is the... | Here is the SQLite query to answer the question about the Digital/analog signal with a Chipset based on "radeon 8500":
```
SELECT digital_analog_signal FROM table_name_50 WHERE chipset_based_on = "radeon 8500";
``` | 14,185 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (digital_analog_signal VARCHAR, chipset_based_on VARCHAR)\n\n Question: What is the Digital/analog signal with a Chi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (retail_name VARCHAR, chipset_based_on VARCHAR)
Question: What is the Retail name with a Chipset based on with radeon 9200?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about the retail name with a chipset based on "radeon 9200":
```
SELECT retail_name FROM table_name_1 WHERE chipset_based_on = "radeon 9200";
``` | 14,186 | [
{
"from": "human",
"value": " 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 (retail_name VARCHAR, chipset_based_on VARCHAR)\n\n Question: What is the Retail name with a Chipset based on with ra... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (chipset_based_on VARCHAR, retail_name VARCHAR, digital_analog_signal VARCHAR, available_interface VARCHAR)
Question: What is the Chipset based on with a Di... | Here is the SQLite query to answer the question:
```
SELECT chipset_based_on FROM table_name_18 WHERE digital_analog_signal = "analog" AND available_interface = "agp" AND retail_name = "all-in-wonder 9800"
``` | 14,187 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (chipset_based_on VARCHAR, retail_name VARCHAR, digital_analog_signal VARCHAR, available_interface VARCHAR)\n\n Ques... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (retail_name VARCHAR, available_interface VARCHAR)
Question: What is the Retail name with an Available interface with pci express 2.0?
Here is the SQLite q... | Here is the SQLite query to answer the question you provided:
```
SELECT retail_name FROM table_name_24 WHERE available_interface = "pci express 2.0"
``` | 14,188 | [
{
"from": "human",
"value": " 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 (retail_name VARCHAR, available_interface VARCHAR)\n\n Question: What is the Retail name with an Available interface... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (digital_analog_signal VARCHAR, available_interface VARCHAR, retail_name VARCHAR)
Question: What is the Digital/analog signal with an Available interface wi... | Here is the SQLite query that answers your question:
```
SELECT digital_analog_signal FROM table_name_71 WHERE available_interface = "pci express" AND retail_name = "all-in-wonder x600 pro"
``` | 14,189 | [
{
"from": "human",
"value": " 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 (digital_analog_signal VARCHAR, available_interface VARCHAR, retail_name VARCHAR)\n\n Question: What is the Digital/... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (retail_name VARCHAR, digital_analog_signal VARCHAR, chipset_based_on VARCHAR)
Question: What is the Retail name with a Digital/analog signal with analog, a... | Your SQLite query looks correct for the specified question. Here it is wrapped properly:
```
SELECT retail_name FROM table_name_15 WHERE digital_analog_signal = "analog" AND chipset_based_on = "radeon 9600";
``` | 14,190 | [
{
"from": "human",
"value": " 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 (retail_name VARCHAR, digital_analog_signal VARCHAR, chipset_based_on VARCHAR)\n\n Question: What is the Retail name... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (score VARCHAR, date VARCHAR)
Question: What was the score of the match on 11/2/01?
Here is the SQLite query to answer to the question: What was the score ... | Here is the SQLite query to answer the question regarding the score of the match on 11/2/01:
```
SELECT score FROM table_name_94 WHERE date = '11/2/01';
``` | 14,191 | [
{
"from": "human",
"value": " 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 (score VARCHAR, date VARCHAR)\n\n Question: What was the score of the match on 11/2/01?\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_84 (result VARCHAR, venue VARCHAR)
Question: Did the Bulls win or lose at Valley Parade?
Here is the SQLite query to answer to the question: Did the Bulls win... | Here is the SQLite query to answer the question: Did the Bulls win or lose at Valley Parade?:
```
SELECT result FROM table_name_84 WHERE venue = "Valley Parade";
``` | 14,192 | [
{
"from": "human",
"value": " 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 (result VARCHAR, venue VARCHAR)\n\n Question: Did the Bulls win or lose at Valley Parade?\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 (score VARCHAR, champion VARCHAR, stadium VARCHAR)
Question: What was the score when the Vikings won the championship at Namyangju Stadium?
Here is the SQL... | Here is the SQLite query to answer the question regarding the score when the Vikings won the championship at Namyangju Stadium:
```
SELECT score FROM table_name_86 WHERE champion = "vikings" AND stadium = "namyangju stadium";
``` | 14,193 | [
{
"from": "human",
"value": " 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 (score VARCHAR, champion VARCHAR, stadium VARCHAR)\n\n Question: What was the score when the Vikings won the champio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (label VARCHAR, year VARCHAR, formats VARCHAR, format VARCHAR)
Question: Tell me the label for formats of cd and album and year of 2008
Here is the SQLite ... | Here is the SQLite query to answer the question based on the provided schema:
```sql
SELECT label FROM table_name_48 WHERE formats = 'cd' AND format = 'album' AND year = '2008';
``` | 14,194 | [
{
"from": "human",
"value": " 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 (label VARCHAR, year VARCHAR, formats VARCHAR, format VARCHAR)\n\n Question: Tell me the label for formats of cd and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (label VARCHAR, formats VARCHAR, title VARCHAR)
Question: Tell me the label for digital format with nebula remixes
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question about the label for the digital format with nebula remixes:
```
SELECT label FROM table_name_9 WHERE formats = 'digital' AND title = 'nebula remixes';
``` | 14,195 | [
{
"from": "human",
"value": " 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 (label VARCHAR, formats VARCHAR, title VARCHAR)\n\n Question: Tell me the label for digital format with nebula remixe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (catalog_number VARCHAR, title VARCHAR, formats VARCHAR, format VARCHAR, label VARCHAR)
Question: I want to know the catalog number for album and seed recor... | Here is the SQLite query to answer your question:
```
SELECT catalog_number FROM table_name_66 WHERE format = 'album' AND label = 'seed records' AND formats = 'cd' AND title = 'grey';
``` | 14,196 | [
{
"from": "human",
"value": " 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 (catalog_number VARCHAR, title VARCHAR, formats VARCHAR, format VARCHAR, label VARCHAR)\n\n Question: I want to know... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (format VARCHAR, catalog_number VARCHAR, year VARCHAR, label VARCHAR)
Question: Tell me the format with year more than 2000 and label of myuzyk with catalog... | Here is the SQLite query to answer the question about the format with a year greater than 2000, a label of 'myuzyk', and a catalog number of 'mzykn08':
```sql
SELECT format FROM table_name_48 WHERE year > 2000 AND label = 'myuzyk' AND catalog_number = 'mzykn08'
``` | 14,197 | [
{
"from": "human",
"value": " 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 (format VARCHAR, catalog_number VARCHAR, year VARCHAR, label VARCHAR)\n\n Question: Tell me the format with year mor... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (crowd INTEGER, venue VARCHAR)
Question: If the Venue was kardinia park what was the highest Crowd attended?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question:
```
SELECT MAX(crowd) FROM table_name_12 WHERE venue = "kardinia park";
``` | 14,198 | [
{
"from": "human",
"value": " 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 (crowd INTEGER, venue VARCHAR)\n\n Question: If the Venue was kardinia park what was the highest Crowd attended?\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_45 (away_team VARCHAR, home_team VARCHAR)
Question: If the Home team of collingwood was playing, what was the Away team?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question:
```
SELECT away_team FROM table_name_45 WHERE home_team = "collingwood"
``` | 14,199 | [
{
"from": "human",
"value": " 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 (away_team VARCHAR, home_team VARCHAR)\n\n Question: If the Home team of collingwood was playing, what was the Away ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.