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_32 (bp_comp_2__˚c_ VARCHAR, _percentage_wt_comp_1 VARCHAR)
Question: Tell me the bp comp 2 for % wt comp 1 of 76
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question: Tell me the bp comp 2 for % wt comp 1 of 76:
```
SELECT bp_comp_2__˚c_ FROM table_name_32 WHERE _percentage_wt_comp_1 = '76'
```
Note: If the value in `_percentage_wt_comp_1` is stored as a string, it should be enclosed in quotes. | 41,300 | [
{
"from": "human",
"value": " 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 (bp_comp_2__˚c_ VARCHAR, _percentage_wt_comp_1 VARCHAR)\n\n Question: Tell me the bp comp 2 for % wt comp 1 of 76\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (_percentage_wt_comp_1 VARCHAR, _percentage_wt_comp_2 VARCHAR)
Question: Tell me the total number of % wt comp 1 foR % wt comp 2 or 27
Here is the SQLite qu... | Your provided query is almost correct, but there is a small mistake in handling the data type of `_percentage_wt_comp_2`. The condition `_percentage_wt_comp_2 = 27` assumes that `_percentage_wt_comp_2` should be an integer, whereas it's declared as a `VARCHAR`. You should ensure the comparison is done with a string ins... | 41,301 | [
{
"from": "human",
"value": " 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 (_percentage_wt_comp_1 VARCHAR, _percentage_wt_comp_2 VARCHAR)\n\n Question: Tell me the total number of % wt comp 1 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (_percentage_of_popular_vote VARCHAR, _number_of_seats_available VARCHAR)
Question: What is the percentage of the popular vote when there were 90 seats avai... | Your SQLite query is correct for retrieving the percentage of the popular vote when there are 90 seats available. Below is the query wrapped in code formatting:
```
SELECT _percentage_of_popular_vote FROM table_name_53 WHERE _number_of_seats_available = '90'
```
Note: The value '90' is treated as a string because the... | 41,302 | [
{
"from": "human",
"value": " 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 (_percentage_of_popular_vote VARCHAR, _number_of_seats_available VARCHAR)\n\n Question: What is the percentage of th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (gold VARCHAR, silver VARCHAR)
Question: Name the gold for silver of 39
Here is the SQLite query to answer to the question: Name the gold for silver of 39:... | Here is the corrected SQLite query to answer the question "Name the gold for silver of 39":
```
SELECT gold FROM table_name_56 WHERE silver = '39'
```
Please note that if the `silver` column is of type `VARCHAR`, the value `39` should be enclosed in single quotes. | 41,303 | [
{
"from": "human",
"value": " 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 (gold VARCHAR, silver VARCHAR)\n\n Question: Name the gold for silver of 39\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_41 (compression_ratio VARCHAR, engine VARCHAR)
Question: What is the compression ratio for the 302-2v Windsor v8 engine?
Here is the SQLite query to answer to... | Your SQLite query is mostly correct, but there are a couple of potential issues to address for accuracy. First, the engine name should match exactly as it appears in the database (case-sensitive and spacing should be checked). It is recommended to ensure proper casing and any other variations.
Assuming "302-2v Windsor... | 41,304 | [
{
"from": "human",
"value": " 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 (compression_ratio VARCHAR, engine VARCHAR)\n\n Question: What is the compression ratio for the 302-2v Windsor v8 en... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (games VARCHAR, rushes VARCHAR, yards VARCHAR)
Question: How many games had 41 rushes and were than 197 yards?
Here is the SQLite query to answer to the qu... | Your provided SQLite query has a minor error regarding the comparison operator for yards. It should say "less than" instead of "were than." However, since the query appears mostly correct, I'll present it with a slight adjustment for clarity:
```sql
SELECT COUNT(games) FROM table_name_21 WHERE rushes = '41' AND yards ... | 41,305 | [
{
"from": "human",
"value": " 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 (games VARCHAR, rushes VARCHAR, yards VARCHAR)\n\n Question: How many games had 41 rushes and were than 197 yards?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (yards INTEGER, rushes VARCHAR, games VARCHAR)
Question: What was the highest number of yards in years where there were fewer than 51 rushes and more than 1... | Here is the SQLite query that answers your question:
```
SELECT MAX(yards) FROM table_name_48 WHERE rushes < 51 AND games > 12;
``` | 41,306 | [
{
"from": "human",
"value": " 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 (yards INTEGER, rushes VARCHAR, games VARCHAR)\n\n Question: What was the highest number of yards in years where the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (pick__number INTEGER, player VARCHAR)
Question: What is the pick # for Dimelon Westfield?
Here is the SQLite query to answer to the question: What is the ... | Here is the SQLite query to find the pick # for Dimelon Westfield:
```
SELECT pick__number FROM table_name_93 WHERE player = "Dimelon Westfield";
``` | 41,307 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (pick__number INTEGER, player VARCHAR)\n\n Question: What is the pick # for Dimelon Westfield?\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_64 (result VARCHAR, date VARCHAR)
Question: What was the final score of the November 8, 2001 game?
Here is the SQLite query to answer to the question: What wa... | Here is the SQLite query to answer the question about the final score of the November 8, 2001 game:
```
SELECT result FROM table_name_64 WHERE date = "November 8, 2001";
``` | 41,308 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (result VARCHAR, date VARCHAR)\n\n Question: What was the final score of the November 8, 2001 game?\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_54 (bullet_tip_color VARCHAR, headstamp_id VARCHAR)
Question: Tell me the bullet tip color of headstamp id of h1z
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question regarding the bullet tip color of the headstamp id "h1z":
```
SELECT bullet_tip_color FROM table_name_54 WHERE headstamp_id = "h1z";
``` | 41,309 | [
{
"from": "human",
"value": " 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 (bullet_tip_color VARCHAR, headstamp_id VARCHAR)\n\n Question: Tell me the bullet tip color of headstamp id of h1z\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (gold VARCHAR, bronze VARCHAR, rank VARCHAR)
Question: Tell me the total number of gold for bronze more than 0 and total more than 100
Here is the SQLite qu... | It seems like there might be a slight misunderstanding in your query structure, particularly regarding how to filter based on the "total" value, since "total" seems to be referring to a "rank" rather than a column.
Assuming that you meant to filter the rows based on the condition of "bronze" being more than 0 and, add... | 41,310 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (gold VARCHAR, bronze VARCHAR, rank VARCHAR)\n\n Question: Tell me the total number of gold for bronze more than 0 an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (silver INTEGER, total VARCHAR, rank VARCHAR)
Question: Tell me the least silver for total less than 6 and rank of 8
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question: Tell me the least silver for total less than 6 and rank of 8:
```sql
SELECT MIN(silver) FROM table_name_17 WHERE total < '6' AND rank = '8';
``` | 41,311 | [
{
"from": "human",
"value": " 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 (silver INTEGER, total VARCHAR, rank VARCHAR)\n\n Question: Tell me the least silver for total less than 6 and rank ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (team_1 VARCHAR)
Question: What is the first leg score in that match where Marseille was the first team?
Here is the SQLite query to answer to the question... | The provided query isn't correctly retrieving the score for the match where Marseille is the first team. It simply returns a constant value of 1.
To properly answer your question, it’s essential to know the associated structure or additional columns in your database that contain the scores. Assuming there is a `"scor... | 41,312 | [
{
"from": "human",
"value": " 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 (team_1 VARCHAR)\n\n Question: What is the first leg score in that match where Marseille was the first team?\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_55 (discovery___publication_of_name VARCHAR, fossil_record VARCHAR)
Question: Tell me the discovery/publication for still living
Here is the SQLite query to a... | Here is the SQLite query to answer the question regarding the discovery/publication for "still living":
```
SELECT discovery___publication_of_name FROM table_name_55 WHERE fossil_record = "still living"
``` | 41,313 | [
{
"from": "human",
"value": " 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 (discovery___publication_of_name VARCHAR, fossil_record VARCHAR)\n\n Question: Tell me the discovery/publication for... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (discovery___publication_of_name VARCHAR, species VARCHAR)
Question: Tell me the discovery/publication for red deer cave people
Here is the SQLite query to... | Here is the SQLite query to answer the question about the discovery/publication for red deer cave people:
```
SELECT discovery___publication_of_name FROM table_name_69 WHERE species = "red deer cave people";
``` | 41,314 | [
{
"from": "human",
"value": " 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 (discovery___publication_of_name VARCHAR, species VARCHAR)\n\n Question: Tell me the discovery/publication for red d... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (discovery___publication_of_name VARCHAR, species VARCHAR)
Question: Tell me the discovery/publicatio of name for h.heidelbergensis
Here is the SQLite quer... | Here is the SQLite query to answer the question regarding the discovery/publication of name for h.heidelbergensis:
```
SELECT discovery___publication_of_name FROM table_name_78 WHERE species = "h.heidelbergensis"
``` | 41,315 | [
{
"from": "human",
"value": " 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 (discovery___publication_of_name VARCHAR, species VARCHAR)\n\n Question: Tell me the discovery/publicatio of name fo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (fossil_record VARCHAR, discovery___publication_of_name VARCHAR)
Question: Tell me the fossil record for name of 1994/2003
Here is the SQLite query to answ... | Here is the SQLite query to answer the question: Tell me the fossil record for name of 1994/2003:
```
SELECT fossil_record FROM table_name_33 WHERE discovery___publication_of_name = "1994/2003"
``` | 41,316 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (fossil_record VARCHAR, discovery___publication_of_name VARCHAR)\n\n Question: Tell me the fossil record for name of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (lived_when___mya__ VARCHAR, discovery___publication_of_name VARCHAR)
Question: Tell me lived for name of 1994/2003
Here is the SQLite query to answer to t... | Here is the SQLite query wrapped in the requested format:
```
SELECT lived_when___mya__ FROM table_name_99 WHERE discovery___publication_of_name = "1994/2003";
``` | 41,317 | [
{
"from": "human",
"value": " 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 (lived_when___mya__ VARCHAR, discovery___publication_of_name VARCHAR)\n\n Question: Tell me lived for name of 1994/2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (date VARCHAR, circuit VARCHAR)
Question: When was the Monza circuit?
Here is the SQLite query to answer to the question: When was the Monza circuit?:
```
... | Here is the SQLite query to answer the question about when the Monza circuit was:
```
SELECT date FROM table_name_68 WHERE circuit = "monza";
``` | 41,318 | [
{
"from": "human",
"value": " 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 (date VARCHAR, circuit VARCHAR)\n\n Question: When was the Monza circuit?\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_4 (win__percentage VARCHAR, conference VARCHAR)
Question: What is Metro's win percentage?
Here is the SQLite query to answer to the question: What is Metro's ... | Your SQLite query to find Metro's win percentage is correctly formatted. Here it is encapsulated as you requested:
```
SELECT win__percentage FROM table_name_4 WHERE conference = "metro";
``` | 41,319 | [
{
"from": "human",
"value": " 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 (win__percentage VARCHAR, conference VARCHAR)\n\n Question: What is Metro's win percentage?\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_67 (elite_eight VARCHAR, conference VARCHAR)
Question: How many elite eight teams came from the Atlantic 10?
Here is the SQLite query to answer to the questio... | To get the count of elite eight teams that came from the Atlantic 10, you need to use the `COUNT()` function in your query. Here’s the correct SQL query:
```
SELECT COUNT(elite_eight) AS num_teams FROM table_name_67 WHERE conference = "Atlantic 10";
```
This will return the number of elite eight teams in the Atlanti... | 41,320 | [
{
"from": "human",
"value": " 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 (elite_eight VARCHAR, conference VARCHAR)\n\n Question: How many elite eight teams came from the Atlantic 10?\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_24 (opponent VARCHAR, attendance VARCHAR)
Question: Tell me the opponent for attendance of 55,527
Here is the SQLite query to answer to the question: Tell me ... | Here is the SQLite query to answer the question about the opponent for an attendance of 55,527:
```sql
SELECT opponent FROM table_name_24 WHERE attendance = "55,527";
``` | 41,321 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, attendance VARCHAR)\n\n Question: Tell me the opponent for attendance of 55,527\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_57 (aircraft VARCHAR, versions VARCHAR, in_service VARCHAR, origin VARCHAR)
Question: Which version B-58 aircraft model originated in the United States has 2 i... | Here is the SQLite query formatted as you requested:
```
SELECT aircraft FROM table_name_57 WHERE in_service = "2" AND origin = "united states" AND versions = "b-58";
``` | 41,322 | [
{
"from": "human",
"value": " 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 (aircraft VARCHAR, versions VARCHAR, in_service VARCHAR, origin VARCHAR)\n\n Question: Which version B-58 aircraft m... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (type VARCHAR, aircraft VARCHAR)
Question: What aircraft type is the Casa C-212 Aviocar?
Here is the SQLite query to answer to the question: What aircraft ... | Here is the SQLite query wrapped in code formatting to answer the question about the aircraft type for the Casa C-212 Aviocar:
```
SELECT type FROM table_name_45 WHERE aircraft = "Casa C-212 Aviocar";
``` | 41,323 | [
{
"from": "human",
"value": " 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 (type VARCHAR, aircraft VARCHAR)\n\n Question: What aircraft type is the Casa C-212 Aviocar?\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_64 (in_service VARCHAR, versions VARCHAR)
Question: How many T-260 EU aircrafts are currently in service?
Here is the SQLite query to answer to the question: ... | Your current query is almost correct but doesn't count the number of T-260 EU aircraft that are currently in service. You should use the `COUNT()` function, and the query should check for `in_service` to be true or equivalent value representing being in service, assuming it has some specific value for being in service.... | 41,324 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (in_service VARCHAR, versions VARCHAR)\n\n Question: How many T-260 EU aircrafts are currently in service?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (in_service VARCHAR, origin VARCHAR, versions VARCHAR)
Question: How many C-95 aircrafts originating in Brazil are currently in service?
Here is the SQLite... | Your provided query is a good starting point, but to count the number of C-95 aircrafts, you'll need to use the `COUNT` function and adjust the `SELECT` statement accordingly. Here’s the corrected query:
```
SELECT COUNT(*)
FROM table_name_12
WHERE origin = "brazil" AND versions = "c-95" AND in_service = "yes";
```
... | 41,325 | [
{
"from": "human",
"value": " 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 (in_service VARCHAR, origin VARCHAR, versions VARCHAR)\n\n Question: How many C-95 aircrafts originating in Brazil 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 (other INTEGER, albanians VARCHAR, roma VARCHAR)
Question: Tell me the lowest other for albanians more than 8793 and Roma less than 1030
Here is the SQLite... | Here is the SQLite query to answer the question regarding the lowest "other" for Albanians more than 8793 and Roma less than 1030:
```
SELECT MIN(other) FROM table_name_47 WHERE albanians > 8793 AND roma < 1030
``` | 41,326 | [
{
"from": "human",
"value": " 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 (other INTEGER, albanians VARCHAR, roma VARCHAR)\n\n Question: Tell me the lowest other for albanians more than 8793... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (bosniaks INTEGER, census_year INTEGER)
Question: Tell me the highest bosniaks for year more than 2002
Here is the SQLite query to answer to the question: T... | Here is the SQLite query to answer the question: Tell me the highest bosniaks for year more than 2002:
```
SELECT MAX(bosniaks) FROM table_name_8 WHERE census_year > 2002
``` | 41,327 | [
{
"from": "human",
"value": " 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 (bosniaks INTEGER, census_year INTEGER)\n\n Question: Tell me the highest bosniaks for year more than 2002\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_21 (erp_w INTEGER, frequency_mhz INTEGER)
Question: Name the lowest ERP W with a frequency mhz less than 103.1
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about naming the lowest ERP W with a frequency MHz less than 103.1:
```
SELECT MIN(erp_w) FROM table_name_21 WHERE frequency_mhz < 103.1;
``` | 41,328 | [
{
"from": "human",
"value": " 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 (erp_w INTEGER, frequency_mhz INTEGER)\n\n Question: Name the lowest ERP W with a frequency mhz less than 103.1\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (city_of_license VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)
Question: Name the city with 103.1 frequency and ERP W less than 80
Here is the SQLite quer... | Here is the SQLite query to answer the question, formatted as requested:
```
SELECT city_of_license FROM table_name_92 WHERE frequency_mhz = '103.1' AND erp_w < 80;
``` | 41,329 | [
{
"from": "human",
"value": " 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 (city_of_license VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)\n\n Question: Name the city with 103.1 frequency and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (affiliation VARCHAR, pick__number VARCHAR, position VARCHAR)
Question: Tell me the affiliation for pick number less than 59 and position of gk
Here is the... | Here is the SQLite query to answer the question about affiliations for pick numbers less than 59 and position of "gk":
```
SELECT affiliation FROM table_name_33 WHERE pick__number < 59 AND position = 'gk';
``` | 41,330 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (affiliation VARCHAR, pick__number VARCHAR, position VARCHAR)\n\n Question: Tell me the affiliation for pick number ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (tournament VARCHAR)
Question: What Tournament of canada happened in 1998?
Here is the SQLite query to answer to the question: What Tournament of canada ha... | The provided query has an issue with its structure. Instead of selecting the year, you should be selecting the tournament that occurred in Canada in 1998. The correct query should use a clause to filter the tournaments based on the criteria you provided. Here is the corrected query:
```
SELECT tournament FROM table_na... | 41,331 | [
{
"from": "human",
"value": " 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 (tournament VARCHAR)\n\n Question: What Tournament of canada happened in 1998?\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_67 (Id VARCHAR)
Question: Who had 1990 of 2–2 in 1993?
Here is the SQLite query to answer to the question: Who had 1990 of 2–2 in 1993?:
```
SELECT 1993 FROM ... | It seems there is a misunderstanding with the query based on the schema provided. The schema contains only an `Id` column of type `VARCHAR`, but the given question suggests querying for specific values which do not directly correlate with the schema structure.
Based on the schema `CREATE TABLE table_name_67 (Id VARCHA... | 41,332 | [
{
"from": "human",
"value": " 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 (Id VARCHAR)\n\n Question: Who had 1990 of 2–2 in 1993?\n\nHere is the SQLite query to answer to the question: Who h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (tournament VARCHAR)
Question: What Tournament of monte carlo had 1996 and a 1987 of nme?
Here is the SQLite query to answer to the question: What Tourname... | It seems like you're asking for a SQLite query based on a specific condition. However, there are a few misunderstandings in your SQL syntax. SQLite does not allow column names to be represented directly as numeric literals like `1996` or `1987`, and the condition you are trying to implement might be incorrectly structu... | 41,333 | [
{
"from": "human",
"value": " 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 (tournament VARCHAR)\n\n Question: What Tournament of monte carlo had 1996 and a 1987 of nme?\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_58 (tournament VARCHAR)
Question: What Tournament of the french open had 2004 that has a 1998 of 2r?
Here is the SQLite query to answer to the question: What ... | Your SQL query contains some inaccuracies regarding the column names and how to reference them. In SQLite, it's essential to use the correct column names defined in the schema. Given your schema only has one column named `tournament`, we need to adjust the query to correctly reflect what we want to retrieve.
Here's th... | 41,334 | [
{
"from": "human",
"value": " 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 (tournament VARCHAR)\n\n Question: What Tournament of the french open had 2004 that has a 1998 of 2r?\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_18 (margin VARCHAR, championship VARCHAR)
Question: What is the margin at the Nabisco Championship?
Here is the SQLite query to answer to the question: What i... | Here is the SQLite query to answer the question regarding the margin at the Nabisco Championship:
```
SELECT margin FROM table_name_18 WHERE championship = "Nabisco Championship";
```
Note: I've capitalized "Nabisco Championship" to match the likely case sensitivity, but you may adjust it based on your actual data. | 41,335 | [
{
"from": "human",
"value": " 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 (margin VARCHAR, championship VARCHAR)\n\n Question: What is the margin at the Nabisco Championship?\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_88 (margin VARCHAR, year VARCHAR, championship VARCHAR)
Question: What was the margin in 2001 at the McDonald's LPGA Championship?
Here is the SQLite query to... | Here is the SQLite query to answer the question about the margin in 2001 at the McDonald's LPGA Championship:
```
SELECT margin FROM table_name_88 WHERE year = '2001' AND championship = "McDonald's LPGA Championship";
``` | 41,336 | [
{
"from": "human",
"value": " 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 (margin VARCHAR, year VARCHAR, championship VARCHAR)\n\n Question: What was the margin in 2001 at the McDonald's LPG... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (date VARCHAR, goal VARCHAR)
Question: Tell me the date of goal 5
Here is the SQLite query to answer to the question: Tell me the date of goal 5:
```
SELECT... | Your SQLite query is almost correct, but typically goals would be represented as strings, so ensure that the goal comparison matches the data type. If the goal is indeed a string and you want to find the date for "5", your query would look like this:
```sql
SELECT date FROM table_name_5 WHERE goal = '5'
```
If the go... | 41,337 | [
{
"from": "human",
"value": " 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 (date VARCHAR, goal VARCHAR)\n\n Question: Tell me the date of goal 5\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_17 (date VARCHAR, goal VARCHAR)
Question: Tell me the date for goal of 5
Here is the SQLite query to answer to the question: Tell me the date for goal of 5:
`... | Your SQLite query looks almost correct, but keep in mind that if the `goal` column is defined as a VARCHAR, you should use quotes around the value '5'. Here is the corrected version of your query:
```
SELECT date FROM table_name_17 WHERE goal = '5'
``` | 41,338 | [
{
"from": "human",
"value": " 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 (date VARCHAR, goal VARCHAR)\n\n Question: Tell me the date for goal of 5\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_33 (result VARCHAR, location VARCHAR)
Question: What was the result of Sopot (pol)?
Here is the SQLite query to answer to the question: What was the result of... | Here is the SQLite query to answer the question: What was the result of Sopot (pol)?:
```
SELECT result FROM table_name_33 WHERE location = "Sopot (pol)";
``` | 41,339 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (result VARCHAR, location VARCHAR)\n\n Question: What was the result of Sopot (pol)?\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (division VARCHAR, open_cup VARCHAR)
Question: Which division was the Rampage in when they were in the 2nd round in the Open Cup?
Here is the SQLite query ... | Here is the SQLite query to answer the question about which division the Rampage was in when they were in the 2nd round of the Open Cup:
```
SELECT division FROM table_name_39 WHERE open_cup = "2nd round" AND division = "Rampage";
```
Note: Please ensure that "Rampage" is the correct identifier for the team you are ... | 41,340 | [
{
"from": "human",
"value": " 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 (division VARCHAR, open_cup VARCHAR)\n\n Question: Which division was the Rampage in when they were in the 2nd round... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (reg_season VARCHAR, year VARCHAR)
Question: What was the Rampage's regular season in 1997?
Here is the SQLite query to answer to the question: What was th... | The SQLite query to answer the question about the Rampage's regular season in 1997, based on the provided schema, is as follows:
```
SELECT reg_season FROM table_name_12 WHERE year = '1997';
``` | 41,341 | [
{
"from": "human",
"value": " 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 (reg_season VARCHAR, year VARCHAR)\n\n Question: What was the Rampage's regular season in 1997?\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_98 (open_cup VARCHAR, playoffs VARCHAR)
Question: What was the Rampage's status in the Open Cup in the year that they made it to the 2nd round of the playoffs?... | ```sql
SELECT open_cup FROM table_name_98 WHERE playoffs = "2nd round" AND open_cup IS NOT NULL;
``` | 41,342 | [
{
"from": "human",
"value": " 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 (open_cup VARCHAR, playoffs VARCHAR)\n\n Question: What was the Rampage's status in the Open Cup in the year that 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 (playoffs VARCHAR, reg_season VARCHAR)
Question: What was the Rampage's result in the playoffs in the year that their regular season resulted in 4th, centra... | Your SQLite query is almost correct, but it doesn't specify that you want the result for the "Rampage" team. You should also add a condition to ensure that you're only retrieving records for the Rampage. Here's the corrected version of your query:
```
SELECT playoffs FROM table_name_38 WHERE reg_season = "4th, central... | 41,343 | [
{
"from": "human",
"value": " 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 (playoffs VARCHAR, reg_season VARCHAR)\n\n Question: What was the Rampage's result in the playoffs in the year that ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (method VARCHAR, result VARCHAR, opponent VARCHAR)
Question: Which method resulting in a win against Ed Mahone?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question regarding which method resulted in a win against Ed Mahone:
```
SELECT method FROM table_name_77 WHERE result = "win" AND opponent = "Ed Mahone";
``` | 41,344 | [
{
"from": "human",
"value": " 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 (method VARCHAR, result VARCHAR, opponent VARCHAR)\n\n Question: Which method resulting in a win against Ed Mahone?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (date VARCHAR, method VARCHAR, opponent VARCHAR)
Question: When did the technical knockout against Fatu Tuimanono happen?
Here is the SQLite query to answ... | Your SQL query is correctly formulated to retrieve the date of the technical knockout against Fatu Tuimanono. Here it is, wrapped in the requested format:
```
SELECT date FROM table_name_24 WHERE method = "technical knockout" AND opponent = "fatu tuimanono"
``` | 41,345 | [
{
"from": "human",
"value": " 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 (date VARCHAR, method VARCHAR, opponent VARCHAR)\n\n Question: When did the technical knockout against Fatu Tuimano... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (date VARCHAR, opponent VARCHAR, method VARCHAR, round VARCHAR)
Question: When did the opponent knockout Barry Prior in more than 2 rounds?
Here is the SQL... | Here is the corrected SQLite query to answer the question of when the opponent knocked out Barry Prior in more than 2 rounds:
```
SELECT date FROM table_name_53 WHERE method = "knockout" AND round > '2' AND opponent = "Barry Prior"
```
Note: If the `round` column stores numbers as text, be sure to use quotes around t... | 41,346 | [
{
"from": "human",
"value": " 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 (date VARCHAR, opponent VARCHAR, method VARCHAR, round VARCHAR)\n\n Question: When did the opponent knockout Barry P... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (result VARCHAR, round VARCHAR, opponent VARCHAR)
Question: What resulted after 4 rounds with Ed Mahone?
Here is the SQLite query to answer to the question... | Your SQLite query looks almost correct, but it requires a minor adjustment to properly count the rounds up to and including the fourth round with Ed Mahone. You should include a condition to filter the rows up to and including the fourth round. Here’s the modified query:
```sql
SELECT result FROM table_name_19 WHERE r... | 41,347 | [
{
"from": "human",
"value": " 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 (result VARCHAR, round VARCHAR, opponent VARCHAR)\n\n Question: What resulted after 4 rounds with Ed Mahone?\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_8 (region VARCHAR, state VARCHAR)
Question: Tell me the region for georgia
Here is the SQLite query to answer to the question: Tell me the region for georgia:... | Here is the SQLite query to answer the question about the region for Georgia:
```
SELECT region FROM table_name_8 WHERE state = "georgia"
``` | 41,348 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (region VARCHAR, state VARCHAR)\n\n Question: Tell me the region for georgia\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_85 (host VARCHAR, region VARCHAR, venue VARCHAR)
Question: Tell me the host for midwest thomas assembly center
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question: Tell me the host for midwest thomas assembly center:
```
SELECT host FROM table_name_85 WHERE region = "midwest" AND venue = "thomas assembly center"
``` | 41,349 | [
{
"from": "human",
"value": " 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 (host VARCHAR, region VARCHAR, venue VARCHAR)\n\n Question: Tell me the host for midwest thomas assembly center\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (region VARCHAR, venue VARCHAR)
Question: Tell me the region for frank erwin center
Here is the SQLite query to answer to the question: Tell me the region ... | Here is the SQLite query to answer the question: Tell me the region for frank erwin center:
```
SELECT region FROM table_name_10 WHERE venue = "frank erwin center";
``` | 41,350 | [
{
"from": "human",
"value": " 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 (region VARCHAR, venue VARCHAR)\n\n Question: Tell me the region for frank erwin center\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_35 (score VARCHAR, year VARCHAR, competition VARCHAR, venue VARCHAR)
Question: In 1971 at MCG, what was the score of the VFL Reserves?
Here is the SQLite quer... | ```sql
SELECT score FROM table_name_35 WHERE competition = "VFL Reserves" AND venue = "MCG" AND year = "1971";
``` | 41,351 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_35 (score VARCHAR, year VARCHAR, competition VARCHAR, venue VARCHAR)\n\n Question: In 1971 at MCG, what was the score o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (score VARCHAR, opponent VARCHAR)
Question: What was the score when Richmond was the opponent?
Here is the SQLite query to answer to the question: What was... | Here is the SQLite query to answer the question about the score when Richmond was the opponent:
```
SELECT score FROM table_name_45 WHERE opponent = "Richmond";
``` | 41,352 | [
{
"from": "human",
"value": " 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 (score VARCHAR, opponent VARCHAR)\n\n Question: What was the score when Richmond was the opponent?\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_62 (venue VARCHAR, score VARCHAR)
Question: Where was the match with a score of 18.6 (114) - 21.14 (140)?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question regarding the match with the specified score:
```
SELECT venue FROM table_name_62 WHERE score = "18.6 (114) - 21.14 (140)"
``` | 41,353 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_62 (venue VARCHAR, score VARCHAR)\n\n Question: Where was the match with a score of 18.6 (114) - 21.14 (140)?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (opponent VARCHAR, competition VARCHAR, score VARCHAR)
Question: At the VFL Reserves, who was the opponent when the score was 18.6 (114) - 21.14 (140)?
Here... | Here is the SQLite query to answer the question about the opponent in the VFL Reserves for the specified score:
```
SELECT opponent FROM table_name_7 WHERE competition = 'VFL Reserves' AND score = '18.6 (114) - 21.14 (140)';
``` | 41,354 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (opponent VARCHAR, competition VARCHAR, score VARCHAR)\n\n Question: At the VFL Reserves, who was the opponent 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_51 (venue VARCHAR, score VARCHAR)
Question: Where was the match with a score of 4.10 (34) - 8.12 (60)?
Here is the SQLite query to answer to the question: Whe... | ```sql
SELECT venue FROM table_name_51 WHERE score = "4.10 (34) - 8.12 (60)"
``` | 41,355 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (venue VARCHAR, score VARCHAR)\n\n Question: Where was the match with a score of 4.10 (34) - 8.12 (60)?\n\nHere is t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (bbc_two_total_viewing VARCHAR, year VARCHAR)
Question: How much is the total BBC 2 viewing in 1999?
Here is the SQLite query to answer to the question: Ho... | Your provided SQLite query will return the `bbc_two_total_viewing` for the year 1999, but it does not aggregate the total viewings if there are multiple entries for that year. To get the total BBC 2 viewing for 1999, you should sum the values. Here's the corrected query:
```sql
SELECT SUM(bbc_two_total_viewing) AS tot... | 41,356 | [
{
"from": "human",
"value": " 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 (bbc_two_total_viewing VARCHAR, year VARCHAR)\n\n Question: How much is the total BBC 2 viewing in 1999?\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_53 (bbc_two_rank VARCHAR, year VARCHAR)
Question: What was the rank of BBC 2 in 2005?
Here is the SQLite query to answer to the question: What was the rank of... | Here is the SQLite query to answer the question: What was the rank of BBC 2 in 2005?:
```
SELECT bbc_two_rank FROM table_name_53 WHERE year = "2005"
``` | 41,357 | [
{
"from": "human",
"value": " 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 (bbc_two_rank VARCHAR, year VARCHAR)\n\n Question: What was the rank of BBC 2 in 2005?\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_2 (bbc_two_rank VARCHAR, bbc_one_rank VARCHAR, bbc_one_total_viewing VARCHAR)
Question: What is the BBC 2 rank when BBC 1 is 1st rank and the total viewing is ... | Here is the SQLite query to answer the question about the BBC 2 rank when BBC 1 is 1st rank and the total viewing is 9,840,000:
```
SELECT bbc_two_rank FROM table_name_2 WHERE bbc_one_rank = '1st' AND bbc_one_total_viewing = '9,840,000';
``` | 41,358 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (bbc_two_rank VARCHAR, bbc_one_rank VARCHAR, bbc_one_total_viewing VARCHAR)\n\n Question: What is the BBC 2 rank when... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (year VARCHAR, bbc_two_rank VARCHAR)
Question: In what year was BBC 2 13th in rank?
Here is the SQLite query to answer to the question: In what year was BB... | Your SQLite query is correct for finding the year when BBC 2 was ranked 13th. Here's the same query wrapped in code formatting:
```
SELECT year FROM table_name_51 WHERE bbc_two_rank = "13th";
``` | 41,359 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (year VARCHAR, bbc_two_rank VARCHAR)\n\n Question: In what year was BBC 2 13th in rank?\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_13 (goals VARCHAR, caps VARCHAR, player VARCHAR)
Question: How many goals occurred for Stein Huysegems when the caps value is more than 8?
Here is the SQLite ... | To count how many goals occurred for Stein Huysegems when the caps value is more than 8, you would need to use the `COUNT` function in your SQL query. Here is the corrected SQLite query:
```
SELECT COUNT(goals) AS total_goals
FROM table_name_13
WHERE caps > 8 AND player = "Stein Huysegems";
``` | 41,360 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_13 (goals VARCHAR, caps VARCHAR, player VARCHAR)\n\n Question: How many goals occurred for Stein Huysegems when the cap... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (caps INTEGER, player VARCHAR)
Question: What is the largest caps value for Glen Moss?
Here is the SQLite query to answer to the question: What is the larg... | Your SQLite query is mostly correct, but SQLite is case-sensitive regarding string comparisons by default. If you want to ensure it matches regardless of case, you can use the `LOWER` function. Here's the query with that adjustment:
```sql
SELECT MAX(caps) FROM table_name_50 WHERE LOWER(player) = "glen moss"
```
Thi... | 41,361 | [
{
"from": "human",
"value": " 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 (caps INTEGER, player VARCHAR)\n\n Question: What is the largest caps value for Glen Moss?\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_63 (year_of_recording INTEGER, orchestra VARCHAR, record_company VARCHAR)
Question: What is the oldest year that the Royal Philharmonic Orchestra released a re... | Here is the SQLite query to answer the question regarding the oldest year that the Royal Philharmonic Orchestra released a record with Decca Records:
```
SELECT MIN(year_of_recording)
FROM table_name_63
WHERE orchestra = "royal philharmonic orchestra"
AND record_company = "decca records";
``` | 41,362 | [
{
"from": "human",
"value": " 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 (year_of_recording INTEGER, orchestra VARCHAR, record_company VARCHAR)\n\n Question: What is the oldest year that th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (format VARCHAR, conductor VARCHAR)
Question: What format was conductor Erich Leinsdorf's album released on?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question regarding the format of conductor Erich Leinsdorf's album:
```
SELECT format FROM table_name_34 WHERE conductor = "Erich Leinsdorf";
``` | 41,363 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_34 (format VARCHAR, conductor VARCHAR)\n\n Question: What format was conductor Erich Leinsdorf's album released on?\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_48 (record_company VARCHAR, year_of_recording VARCHAR, format VARCHAR)
Question: What record company released a CD in 1964?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question about which record company released a CD in 1964:
```
SELECT record_company FROM table_name_48 WHERE year_of_recording = '1964' AND format = 'cd';
``` | 41,364 | [
{
"from": "human",
"value": " 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 (record_company VARCHAR, year_of_recording VARCHAR, format VARCHAR)\n\n Question: What record company released a CD ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (division VARCHAR, playoffs VARCHAR, open_cup VARCHAR)
Question: What division has finalist playoffs and was 3rd round Open Cup?
Here is the SQLite query t... | Your provided query is correct for the given question. Here it is wrapped in the required code formatting:
```
SELECT division FROM table_name_73 WHERE playoffs = "finalist" AND open_cup = "3rd round";
``` | 41,365 | [
{
"from": "human",
"value": " 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 (division VARCHAR, playoffs VARCHAR, open_cup VARCHAR)\n\n Question: What division has finalist playoffs and was 3rd... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (year VARCHAR, reg_season VARCHAR, open_cup VARCHAR)
Question: What year was the team 8th in the season and made it to the 3rd round in Open Cup?
Here is t... | Your SQLite query seems to be correctly formulated to answer the question regarding the given database schema. Here it is wrapped as per your request:
```
SELECT year FROM table_name_21 WHERE reg_season = "8th" AND open_cup = "3rd round";
```
This query will retrieve the `year` where the team was ranked 8th in the r... | 41,366 | [
{
"from": "human",
"value": " 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 (year VARCHAR, reg_season VARCHAR, open_cup VARCHAR)\n\n Question: What year was the team 8th in the season and made... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (launch_date_time__utc_ VARCHAR, payload VARCHAR)
Question: Tell me the launch date/time for payload of gsat-4
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question regarding the launch date/time for the payload of gsat-4:
```
SELECT launch_date_time__utc_ FROM table_name_57 WHERE payload = "gsat-4";
``` | 41,367 | [
{
"from": "human",
"value": " 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 (launch_date_time__utc_ VARCHAR, payload VARCHAR)\n\n Question: Tell me the launch date/time for payload of gsat-4\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (launch_pad VARCHAR, launch_date_time__utc_ VARCHAR)
Question: Tell me the launch pad for 25 december 2010 10:34
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question regarding the launch pad for 25 December 2010 at 10:34:
```
SELECT launch_pad FROM table_name_16 WHERE launch_date_time__utc_ = "25 December 2010 10:34";
``` | 41,368 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (launch_pad VARCHAR, launch_date_time__utc_ VARCHAR)\n\n Question: Tell me the launch pad for 25 december 2010 10:34... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (name VARCHAR, rank VARCHAR, last VARCHAR)
Question: Who had a rank more than 48, and a last in 2005?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query that answers the question about who had a rank more than 48 and a last in 2005:
```sql
SELECT name FROM table_name_16 WHERE rank > 48 AND last = '2005';
``` | 41,369 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (name VARCHAR, rank VARCHAR, last VARCHAR)\n\n Question: Who had a rank more than 48, and a last in 2005?\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_32 (name VARCHAR, caps VARCHAR, rank VARCHAR, confederation VARCHAR)
Question: Which UEFA confederation member had a rank more than 17 and caps of 114?
Here i... | Here is the SQLite query to answer the question regarding which UEFA confederation member had a rank more than 17 and caps of 114:
```
SELECT name FROM table_name_32 WHERE rank > 17 AND confederation = "uefa" AND caps = 114;
``` | 41,370 | [
{
"from": "human",
"value": " 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 (name VARCHAR, caps VARCHAR, rank VARCHAR, confederation VARCHAR)\n\n Question: Which UEFA confederation member had ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (result VARCHAR, date VARCHAR)
Question: Tell me the result of july 16, 2000
Here is the SQLite query to answer to the question: Tell me the result of july... | Here is the SQLite query to answer the question: Tell me the result of July 16, 2000:
```
SELECT result FROM table_name_68 WHERE date = "July 16, 2000"
``` | 41,371 | [
{
"from": "human",
"value": " 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 (result VARCHAR, date VARCHAR)\n\n Question: Tell me the result of july 16, 2000\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_5 (caps INTEGER, goals VARCHAR, rank VARCHAR)
Question: What is the maximum cap number where 0 goals were scored with a rank of 15?
Here is the SQLite query t... | Here is the corrected SQLite query to answer the question about the maximum cap number where 0 goals were scored with a rank of 15:
```
SELECT MAX(caps) FROM table_name_5 WHERE goals = '0' AND rank = '15';
```
Please note that since the `goals` column is defined as a `VARCHAR`, the comparison should use a string ('0... | 41,372 | [
{
"from": "human",
"value": " 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 (caps INTEGER, goals VARCHAR, rank VARCHAR)\n\n Question: What is the maximum cap number where 0 goals were scored wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (guns INTEGER, class VARCHAR, year VARCHAR)
Question: What were the fewest amount of guns possessed by a frigate that served in 1815?
Here is the SQLite qu... | Here is the SQLite query that answers the question:
```
SELECT MIN(guns) FROM table_name_32 WHERE class = "frigate" AND year = "1815"
``` | 41,373 | [
{
"from": "human",
"value": " 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 (guns INTEGER, class VARCHAR, year VARCHAR)\n\n Question: What were the fewest amount of guns possessed by a frigate... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (place INTEGER, units_sold_in_the_uk VARCHAR)
Question: Of the games that sold 321,000 units in the UK, what is their average place?
Here is the SQLite que... | Your SQLite query is correct. Here's the formatted SQL code for clarity:
```
SELECT AVG(place) FROM table_name_86 WHERE units_sold_in_the_uk = "321,000"
```
This query will calculate the average `place` of the games that sold 321,000 units in the UK from the `table_name_86` table. | 41,374 | [
{
"from": "human",
"value": " 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 (place INTEGER, units_sold_in_the_uk VARCHAR)\n\n Question: Of the games that sold 321,000 units in the UK, what 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 (units_sold_in_the_us VARCHAR, units_sold_in_japan VARCHAR)
Question: How many units were sold in the US of the game that sold 346,000 units in japan?
Here... | Here is the SQLite query you can use to answer the question regarding units sold in the US for the game that sold 346,000 units in Japan:
```
SELECT units_sold_in_the_us FROM table_name_72 WHERE units_sold_in_japan = "346,000"
``` | 41,375 | [
{
"from": "human",
"value": " 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 (units_sold_in_the_us VARCHAR, units_sold_in_japan VARCHAR)\n\n Question: How many units were sold in the US of the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (player VARCHAR, mls_team VARCHAR)
Question: Tell me the player from dallas burn
Here is the SQLite query to answer to the question: Tell me the player fro... | Here is the SQLite query to answer the question "Tell me the player from dallas burn":
```
SELECT player FROM table_name_64 WHERE mls_team = "dallas burn";
``` | 41,376 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (player VARCHAR, mls_team VARCHAR)\n\n Question: Tell me the player from dallas burn\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (pick__number INTEGER, player VARCHAR)
Question: Tell me the sum of pick number for kenny arena
Here is the SQLite query to answer to the question: Tell me... | Here is the SQLite query to answer the question:
```
SELECT SUM(pick__number) FROM table_name_40 WHERE player = "kenny arena";
``` | 41,377 | [
{
"from": "human",
"value": " 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 (pick__number INTEGER, player VARCHAR)\n\n Question: Tell me the sum of pick number for kenny arena\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_7 (city VARCHAR, host VARCHAR)
Question: What city is the Northeast Louisiana University located in?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question about the city where Northeast Louisiana University is located:
```
SELECT city FROM table_name_7 WHERE host = "Northeast Louisiana University";
``` | 41,378 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (city VARCHAR, host VARCHAR)\n\n Question: What city is the Northeast Louisiana University located in?\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_16 (region VARCHAR, city VARCHAR)
Question: What region is the city of Philadelphia located in?
Here is the SQLite query to answer to the question: What regio... | Here is the SQLite query to answer the question about the region in which the city of Philadelphia is located:
```
SELECT region FROM table_name_16 WHERE city = "Philadelphia";
``` | 41,379 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (region VARCHAR, city VARCHAR)\n\n Question: What region is the city of Philadelphia located in?\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_73 (venue VARCHAR, city VARCHAR)
Question: What venue is in Long Beach?
Here is the SQLite query to answer to the question: What venue is in Long Beach?:
```
... | Here is the SQLite query to answer the question: What venue is in Long Beach?:
```
SELECT venue FROM table_name_73 WHERE city = "Long Beach";
``` | 41,380 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, city VARCHAR)\n\n Question: What venue is in Long Beach?\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_76 (state VARCHAR, region VARCHAR, city VARCHAR)
Question: What state is Knoxville and the mideast region located in?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about the state that Knoxville and the mideast region are located in:
```
SELECT state FROM table_name_76 WHERE region = "mideast" AND city = "knoxville";
``` | 41,381 | [
{
"from": "human",
"value": " 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 (state VARCHAR, region VARCHAR, city VARCHAR)\n\n Question: What state is Knoxville and the mideast region located i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (host VARCHAR, state VARCHAR)
Question: What is the host in Georgia?
Here is the SQLite query to answer to the question: What is the host in Georgia?:
```
... | Here is the SQLite query to answer the question "What is the host in Georgia?":
```
SELECT host FROM table_name_51 WHERE state = "Georgia";
``` | 41,382 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (host VARCHAR, state VARCHAR)\n\n Question: What is the host in Georgia?\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_91 (state VARCHAR, host VARCHAR)
Question: What state is the University of Tennessee located in?
Here is the SQLite query to answer to the question: What stat... | Here is the SQLite query to find out what state the University of Tennessee is located in:
```
SELECT state FROM table_name_91 WHERE host = "university of tennessee";
``` | 41,383 | [
{
"from": "human",
"value": " 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 (state VARCHAR, host VARCHAR)\n\n Question: What state is the University of Tennessee located in?\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_26 (date VARCHAR, week VARCHAR, result VARCHAR)
Question: Tell me the date that has a week larger than 3 and a result of w 28-27
Here is the SQLite query to a... | Here is the SQLite query to answer the question:
```
SELECT date FROM table_name_26 WHERE week > 3 AND result = "w 28-27";
``` | 41,384 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (date VARCHAR, week VARCHAR, result VARCHAR)\n\n Question: Tell me the date that has a week larger than 3 and a resu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (attendance INTEGER, result VARCHAR, week VARCHAR)
Question: Tell me the sum of attendane for a result of w 12-3 and week more than 12
Here is the SQLite q... | Here is the SQLite query to answer the question you provided:
```
SELECT SUM(attendance) FROM table_name_64 WHERE result = "w 12-3" AND week > 12
``` | 41,385 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (attendance INTEGER, result VARCHAR, week VARCHAR)\n\n Question: Tell me the sum of attendane for a result of w 12-3... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (attendance VARCHAR, result VARCHAR)
Question: Tell me the total number of attendance for result of l 18-6
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question regarding the total number of attendance for the result of "l 18-6":
```
SELECT COUNT(attendance) FROM table_name_3 WHERE result = "l 18-6";
``` | 41,386 | [
{
"from": "human",
"value": " 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 (attendance VARCHAR, result VARCHAR)\n\n Question: Tell me the total number of attendance for result of l 18-6\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_12 (attendance VARCHAR, week VARCHAR)
Question: Tell me the total number of attendance for week of 16
Here is the SQLite query to answer to the question: Tell... | Here is the SQLite query to answer the question about the total number of attendance for week 16:
```sql
SELECT COUNT(attendance) FROM table_name_12 WHERE week = '16'
``` | 41,387 | [
{
"from": "human",
"value": " 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 (attendance VARCHAR, week VARCHAR)\n\n Question: Tell me the total number of attendance for week of 16\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_37 (bronze INTEGER, total VARCHAR, silver VARCHAR)
Question: How many bronzes were held by those with a total of 4 and less than 3 silvers.
Here is the SQLite... | The SQLite query you provided needs a little adjustment, especially regarding the conditions for `total` and `silver`. Since `total` is a `VARCHAR`, you should compare it correctly as a string, and also convert the `silver` to an integer for comparison if it's stored as a string. Here’s the corrected version of the que... | 41,388 | [
{
"from": "human",
"value": " 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 (bronze INTEGER, total VARCHAR, silver VARCHAR)\n\n Question: How many bronzes were held by those with a total of 4 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (round INTEGER, event VARCHAR)
Question: How many rounds did the IFL: Oakland event have?
Here is the SQLite query to answer to the question: How many round... | To count how many rounds the "IFL: Oakland" event had, you can use the following SQLite query. It should count the number of rounds and ensure you are accurately reflecting the event name. Here’s the corrected version of your query:
```sql
SELECT COUNT(round) FROM table_name_4 WHERE event = "IFL: Oakland";
```
This q... | 41,389 | [
{
"from": "human",
"value": " 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 (round INTEGER, event VARCHAR)\n\n Question: How many rounds did the IFL: Oakland event have?\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_83 (opponent VARCHAR, record VARCHAR)
Question: Which opponent has a record of 3-0?
Here is the SQLite query to answer to the question: Which opponent has a r... | Here is the SQLite query to answer the question: Which opponent has a record of 3-0?:
```
SELECT opponent FROM table_name_83 WHERE record = "3-0"
``` | 41,390 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, record VARCHAR)\n\n Question: Which opponent has a record of 3-0?\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (constructor VARCHAR, driver VARCHAR)
Question: Tell me the constructor for david coulthard
Here is the SQLite query to answer to the question: Tell me the... | Here is the SQLite query to answer the question about the constructor for David Coulthard:
```
SELECT constructor FROM table_name_10 WHERE driver = "david coulthard"
``` | 41,391 | [
{
"from": "human",
"value": " 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 (constructor VARCHAR, driver VARCHAR)\n\n Question: Tell me the constructor for david coulthard\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_75 (pos VARCHAR, driver VARCHAR)
Question: Tell me the pos for adrian sutil
Here is the SQLite query to answer to the question: Tell me the pos for adrian sut... | Here is the SQLite query to answer the question about the position for Adrian Sutil:
```
SELECT pos FROM table_name_75 WHERE driver = "adrian sutil"
``` | 41,392 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (pos VARCHAR, driver VARCHAR)\n\n Question: Tell me the pos for adrian sutil\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_60 (part_1 VARCHAR, grid VARCHAR)
Question: Tell me the part 1 of grid of 1
Here is the SQLite query to answer to the question: Tell me the part 1 of grid of ... | Here is the SQLite query to answer the question: Tell me the part 1 of grid of 1:
```
SELECT part_1 FROM table_name_60 WHERE grid = '1';
``` | 41,393 | [
{
"from": "human",
"value": " 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 (part_1 VARCHAR, grid VARCHAR)\n\n Question: Tell me the part 1 of grid of 1\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_7 (city_of_license VARCHAR, call_sign VARCHAR)
Question: Name the city of license for call sign of k215es
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question about the city of license for the call sign "k215es":
```
SELECT city_of_license FROM table_name_7 WHERE call_sign = "k215es";
``` | 41,394 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (city_of_license VARCHAR, call_sign VARCHAR)\n\n Question: Name the city of license for call sign of k215es\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (fcc_info VARCHAR, call_sign VARCHAR)
Question: Name the FCC info for call sign of k208eq
Here is the SQLite query to answer to the question: Name the FCC ... | Here is the SQLite query to answer the question regarding the FCC info for the call sign of k208eq:
```
SELECT fcc_info FROM table_name_51 WHERE call_sign = "k208eq";
``` | 41,395 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (fcc_info VARCHAR, call_sign VARCHAR)\n\n Question: Name the FCC info for call sign of k208eq\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_94 (date VARCHAR, surface VARCHAR)
Question: Tell me the total number of date for carpet
Here is the SQLite query to answer to the question: Tell me the total... | Here is the SQLite query to answer the question: Tell me the total number of dates for carpet:
```
SELECT COUNT(date) FROM table_name_94 WHERE surface = "carpet"
``` | 41,396 | [
{
"from": "human",
"value": " 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 (date VARCHAR, surface VARCHAR)\n\n Question: Tell me the total number of date for carpet\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_29 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
Question: Tell me the opponent for 6–2, 3–6, 4–6
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question about the opponent for the score 6–2, 3–6, 4–6:
```
SELECT opponent_in_the_final FROM table_name_29 WHERE score_in_the_final = "6–2, 3–6, 4–6"
``` | 41,397 | [
{
"from": "human",
"value": " 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 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)\n\n Question: Tell me the opponent for 6–2, 3–6, 4–6\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_62 (nationality VARCHAR, player VARCHAR)
Question: What is the nationality of Martin Lewis?
Here is the SQLite query to answer to the question: What is the na... | Here is the SQLite query to answer the question about the nationality of Martin Lewis:
```sql
SELECT nationality FROM table_name_62 WHERE player = "Martin Lewis";
``` | 41,398 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_62 (nationality VARCHAR, player VARCHAR)\n\n Question: What is the nationality of Martin Lewis?\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 (opponent VARCHAR, week VARCHAR)
Question: Tell me the opponent of week 14
Here is the SQLite query to answer to the question: Tell me the opponent of week... | Here is the SQLite query to answer the question: Tell me the opponent of week 14:
```sql
SELECT opponent FROM table_name_59 WHERE week = '14';
``` | 41,399 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, week VARCHAR)\n\n Question: Tell me the opponent of week 14\n\nHere is the SQLite query to answer... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.