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_25 (team_name VARCHAR, poles VARCHAR, final_placing VARCHAR)
Question: Which Team Name has Poles of 0, and a Final Placing of 29th?
Here is the SQLite query t... | Here is the SQLite query to answer the question:
```
SELECT team_name FROM table_name_25 WHERE poles = "0" AND final_placing = "29th";
``` | 46,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_25 (team_name VARCHAR, poles VARCHAR, final_placing VARCHAR)\n\n Question: Which Team Name has Poles of 0, and a Final ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (series VARCHAR, final_placing VARCHAR, podiums VARCHAR)
Question: Which Series has a Final Placing of 9th, and Podiums of 2?
Here is the SQLite query to a... | Here is the SQLite query to answer the question regarding which Series has a Final Placing of 9th and Podiums of 2:
```
SELECT series FROM table_name_31 WHERE final_placing = "9th" AND podiums = "2"
``` | 46,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_31 (series VARCHAR, final_placing VARCHAR, podiums VARCHAR)\n\n Question: Which Series has a Final Placing of 9th, and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (series VARCHAR, team_name VARCHAR)
Question: Which Series has a Team Name of sunred engineering?
Here is the SQLite query to answer to the question: Which... | Here is the SQLite query to answer the question regarding which Series has a Team Name of sunred engineering:
```
SELECT series FROM table_name_34 WHERE team_name = "sunred engineering";
``` | 46,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_34 (series VARCHAR, team_name VARCHAR)\n\n Question: Which Series has a Team Name of sunred engineering?\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_38 (points VARCHAR, wins VARCHAR, final_placing VARCHAR)
Question: Which Points have Wins of 0, and a Final Placing of 21st?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question regarding which Points have Wins of 0 and a Final Placing of 21st:
```
SELECT points FROM table_name_38 WHERE wins = '0' AND final_placing = '21st';
``` | 46,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_38 (points VARCHAR, wins VARCHAR, final_placing VARCHAR)\n\n Question: Which Points have Wins of 0, and a Final Placing... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (bronze VARCHAR, place VARCHAR)
Question: Name the bronze for lahti
Here is the SQLite query to answer to the question: Name the bronze for lahti:
```
SELE... | Here is the SQLite query to answer the question about naming the bronze for lahti:
```
SELECT bronze FROM table_name_46 WHERE place = "lahti"
``` | 46,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_46 (bronze VARCHAR, place VARCHAR)\n\n Question: Name the bronze for lahti\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_35 (rank VARCHAR, goals VARCHAR, scorer VARCHAR)
Question: Which Rank has Goals larger than 10, and a Scorer of choi sang-kuk?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question regarding which Rank has Goals larger than 10, and a Scorer of "choi sang-kuk":
```
SELECT rank FROM table_name_35 WHERE goals > 10 AND scorer = "choi sang-kuk"
``` | 46,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_35 (rank VARCHAR, goals VARCHAR, scorer VARCHAR)\n\n Question: Which Rank has Goals larger than 10, and a Scorer of cho... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (rank VARCHAR, scorer VARCHAR)
Question: Which Rank has a Scorer of lee sang-cheol?
Here is the SQLite query to answer to the question: Which Rank has a Sc... | Here is the SQLite query to answer the question "Which Rank has a Scorer of lee sang-cheol?":
```
SELECT rank FROM table_name_69 WHERE scorer = "lee sang-cheol";
``` | 46,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_69 (rank VARCHAR, scorer VARCHAR)\n\n Question: Which Rank has a Scorer of lee sang-cheol?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (club VARCHAR, rank VARCHAR)
Question: Which Club has a Rank of 5?
Here is the SQLite query to answer to the question: Which Club has a Rank of 5?:
```
SEL... | Your provided SQLite query is correct. Here it is wrapped in the code block as you requested:
```
SELECT club FROM table_name_40 WHERE rank = "5";
``` | 46,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_40 (club VARCHAR, rank VARCHAR)\n\n Question: Which Club has a Rank of 5?\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_50 (original_amendments_cosponsored INTEGER, all_bills_sponsored VARCHAR, bill_support_withdrawn VARCHAR)
Question: How many original bills amendments cosponso... | It looks like you're trying to find the count of original bill amendments cosponsored that are less than 64, with the condition that bill support withdrawn is less than 0. However, your query uses the `MIN` function instead of counting the rows that meet the conditions.
Here's the correct SQLite query to count the num... | 46,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_50 (original_amendments_cosponsored INTEGER, all_bills_sponsored VARCHAR, bill_support_withdrawn VARCHAR)\n\n Question:... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (incumbent VARCHAR, status VARCHAR, party VARCHAR)
Question: Who is the democratic incumbent that was re-elected?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question about the democratic incumbent that was re-elected:
```
SELECT incumbent FROM table_name_55 WHERE status = "re-elected" AND party = "democratic";
``` | 46,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_55 (incumbent VARCHAR, status VARCHAR, party VARCHAR)\n\n Question: Who is the democratic incumbent that was re-elected... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (elected VARCHAR, incumbent VARCHAR, party VARCHAR, status VARCHAR)
Question: What year was republican, re-elected incumbent John all barham elected?
Here ... | Here is the SQLite query to answer the question "What year was republican, re-elected incumbent John all barham elected?":
```
SELECT elected FROM table_name_92 WHERE party = "republican" AND status = "re-elected" AND incumbent = "john all barham";
``` | 46,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_92 (elected VARCHAR, incumbent VARCHAR, party VARCHAR, status VARCHAR)\n\n Question: What year was republican, re-elect... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (october VARCHAR, game VARCHAR, points VARCHAR)
Question: What day in october was game number 4 with under 3 points?
Here is the SQLite query to answer to ... | The provided SQLite query contains a small mistake in the selection. To find out the specific days in October where game number 4 had under 3 points, you should select the `october` column instead of counting the rows. Here is the corrected SQL query:
```sql
SELECT october
FROM table_name_18
WHERE game = '4' AND poi... | 46,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_18 (october VARCHAR, game VARCHAR, points VARCHAR)\n\n Question: What day in october was game number 4 with under 3 poi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (school VARCHAR, pick INTEGER)
Question: Which school was the drafted player from in a pick larger than 181?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question about which school the drafted player was from in a pick larger than 181:
```
SELECT school FROM table_name_27 WHERE pick > 181;
``` | 46,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_27 (school VARCHAR, pick INTEGER)\n\n Question: Which school was the drafted player from in a pick larger than 181?\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_61 (points_against VARCHAR, lost VARCHAR)
Question: Which points against has 17 as the lost?
Here is the SQLite query to answer to the question: Which points ... | Here is the SQLite query to answer the question:
```
SELECT points_against FROM table_name_61 WHERE lost = "17"
``` | 46,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_61 (points_against VARCHAR, lost VARCHAR)\n\n Question: Which points against has 17 as the lost?\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_78 (lost VARCHAR, points_for VARCHAR)
Question: What lost has 528 as the points?
Here is the SQLite query to answer to the question: What lost has 528 as the ... | Your query is correctly formulated for retrieving the lost value corresponding to 528 points. Here it is wrapped again for clarity:
```
SELECT lost FROM table_name_78 WHERE points_for = "528"
``` | 46,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_78 (lost VARCHAR, points_for VARCHAR)\n\n Question: What lost has 528 as the points?\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_31 (drawn VARCHAR, try_bonus VARCHAR)
Question: What is the drawn that has 16 as the trys bonus?
Here is the SQLite query to answer to the question: What is t... | Your SQLite query is correct and properly answers the question. Here it is again, formatted as requested:
```
SELECT drawn FROM table_name_31 WHERE try_bonus = "16";
``` | 46,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_31 (drawn VARCHAR, try_bonus VARCHAR)\n\n Question: What is the drawn that has 16 as the trys bonus?\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_64 (club VARCHAR, tries_for VARCHAR)
Question: What club has tries for in the category tries for?
Here is the SQLite query to answer to the question: What clu... | Here is the SQLite query to answer the question:
```
SELECT club FROM table_name_64 WHERE tries_for = 'tries for';
``` | 46,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_64 (club VARCHAR, tries_for VARCHAR)\n\n Question: What club has tries for in the category tries for?\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_96 (drawn VARCHAR, played VARCHAR, points VARCHAR)
Question: What is the drawn that has 22 for played, and 96 for points?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question:
```
SELECT drawn FROM table_name_96 WHERE played = "22" AND points = "96";
``` | 46,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_96 (drawn VARCHAR, played VARCHAR, points VARCHAR)\n\n Question: What is the drawn that has 22 for played, and 96 for p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (points_for VARCHAR, drawn VARCHAR, try_bonus VARCHAR)
Question: What points have 1 for drawn, and 16 as a try bonus?
Here is the SQLite query to answer to... | Your SQLite query is correct for the given question. Here's the formatted code:
```
SELECT points_for FROM table_name_22 WHERE drawn = "1" AND try_bonus = "16"
```
This query will retrieve the values in the `points_for` column where the `drawn` column has a value of "1" and the `try_bonus` column has a value of "16"... | 46,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_22 (points_for VARCHAR, drawn VARCHAR, try_bonus VARCHAR)\n\n Question: What points have 1 for drawn, and 16 as a try b... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (team__number1 VARCHAR, round VARCHAR)
Question: What is team 1 in group h?
Here is the SQLite query to answer to the question: What is team 1 in group h?:... | To answer the question "What is team 1 in group h?" based on the given database schema, here is the correct SQLite query:
```
SELECT team__number1 FROM table_name_45 WHERE round = "group h"
``` | 46,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_45 (team__number1 VARCHAR, round VARCHAR)\n\n Question: What is team 1 in group h?\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_85 (score VARCHAR, date VARCHAR)
Question: What was the score on 15 march 2006?
Here is the SQLite query to answer to the question: What was the score on 15 m... | Here is the SQLite query to answer the question: What was the score on 15 March 2006?:
```
SELECT score FROM table_name_85 WHERE date = "15 march 2006"
``` | 46,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_85 (score VARCHAR, date VARCHAR)\n\n Question: What was the score on 15 march 2006?\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_46 (winning_team VARCHAR, winning_pitcher VARCHAR, location VARCHAR)
Question: Which winning team has a winning pitcher of Chris Young and was played in Arling... | Here is the SQLite query to answer the question you provided:
```
SELECT winning_team FROM table_name_46 WHERE winning_pitcher = "Chris Young" AND location = "Arlington";
``` | 46,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_46 (winning_team VARCHAR, winning_pitcher VARCHAR, location VARCHAR)\n\n Question: Which winning team has a winning pit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (winning_team VARCHAR, losing_pitcher VARCHAR)
Question: What winning team has a losing pitcher of Juan Dominguez?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question regarding which winning team has a losing pitcher of Juan Dominguez:
```
SELECT winning_team FROM table_name_31 WHERE losing_pitcher = "Juan Dominguez";
``` | 46,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_31 (winning_team VARCHAR, losing_pitcher VARCHAR)\n\n Question: What winning team has a losing pitcher of Juan Domingue... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (opponent VARCHAR, date VARCHAR)
Question: Who was the opponent on August 14?
Here is the SQLite query to answer to the question: Who was the opponent on A... | Here is the SQLite query to answer the question about the opponent on August 14:
```sql
SELECT opponent FROM table_name_91 WHERE date = 'August 14';
``` | 46,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_91 (opponent VARCHAR, date VARCHAR)\n\n Question: Who was the opponent on August 14?\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_7 (loss VARCHAR, record VARCHAR)
Question: Which loss had a record of 79-49?
Here is the SQLite query to answer to the question: Which loss had a record of 79... | Here is the SQLite query to answer the question: Which loss had a record of 79-49?:
```
SELECT loss FROM table_name_7 WHERE record = "79-49";
``` | 46,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_7 (loss VARCHAR, record VARCHAR)\n\n Question: Which loss had a record of 79-49?\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_96 (semi_final_dual_television_commentator VARCHAR, grand_final_television_commentator VARCHAR, spokesperson VARCHAR)
Question: What is the semi-final dual tel... | Here is the corrected SQLite query to answer the question about the semi-final dual television commentator status, specifically in relation to Pierre Tchernia as the grand final television commentator and an unknown spokesperson:
```
SELECT semi_final_dual_television_commentator
FROM table_name_96
WHERE grand_final_... | 46,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_96 (semi_final_dual_television_commentator VARCHAR, grand_final_television_commentator VARCHAR, spokesperson VARCHAR)\n\n ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (semi_final_television_commentator VARCHAR, spokesperson VARCHAR, year_s_ VARCHAR)
Question: What is the semi-final television commentator status in 1962 wi... | Here is the SQLite query to answer the question regarding the semi-final television commentator status in 1962 with an unknown spokesperson:
```
SELECT semi_final_television_commentator FROM table_name_54 WHERE spokesperson = "unknown" AND year_s_ = '1962';
```
Make sure to use single quotes around the year as it's ... | 46,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_54 (semi_final_television_commentator VARCHAR, spokesperson VARCHAR, year_s_ VARCHAR)\n\n Question: What is the semi-fi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (grand_final_television_commentator VARCHAR, spokesperson VARCHAR, year_s_ VARCHAR, grand_final_dual_television_commentator VARCHAR)
Question: What is the g... | Here is the SQLite query to answer the question regarding the grand final television commentator status after 1959 when Dave was the grand final dual television commentator and Marie Myriam was the spokesperson:
```
SELECT grand_final_television_commentator
FROM table_name_20
WHERE year_s_ > 1959
AND grand_final_du... | 46,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_20 (grand_final_television_commentator VARCHAR, spokesperson VARCHAR, year_s_ VARCHAR, grand_final_dual_television_comment... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (grand_final_dual_television_commentator VARCHAR, spokesperson VARCHAR)
Question: What is the grand final dual television commentator status of the year whe... | Here is the SQLite query to answer the question regarding the grand final dual television commentator status of the year when Amaury Vassili was the spokesperson:
```
SELECT grand_final_dual_television_commentator FROM table_name_52 WHERE spokesperson = "Amaury Vassili";
``` | 46,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_52 (grand_final_dual_television_commentator VARCHAR, spokesperson VARCHAR)\n\n Question: What is the grand final dual t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (state VARCHAR, hometown VARCHAR)
Question: What state has lincoln, de as the hometown?
Here is the SQLite query to answer to the question: What state has ... | Here is the SQLite query formatted as requested:
```
SELECT state FROM table_name_73 WHERE hometown = "lincoln, de";
``` | 46,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_73 (state VARCHAR, hometown VARCHAR)\n\n Question: What state has lincoln, de as the hometown?\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_89 (ship VARCHAR, hull_no VARCHAR)
Question: Name the ship with hull number of aor-6
Here is the SQLite query to answer to the question: Name the ship with hu... | Here is the SQLite query to answer the question: Name the ship with hull number of aor-6:
```
SELECT ship FROM table_name_89 WHERE hull_no = "aor-6";
``` | 46,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_89 (ship VARCHAR, hull_no VARCHAR)\n\n Question: Name the ship with hull number of aor-6\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_29 (hull_no VARCHAR, commissioned__decommissioned VARCHAR)
Question: Name the hull number of Commissioned– Decommissioned of 1973–1996
Here is the SQLite quer... | Your provided SQLite query is almost correct, but it looks like it assumes that the column `commissioned__decommissioned` will have the exact string "1973–1996". If the data in this column might not match that exact string, we should consider more comprehensive criteria to correctly identify the relevant records.
Here... | 46,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_29 (hull_no VARCHAR, commissioned__decommissioned VARCHAR)\n\n Question: Name the hull number of Commissioned– Decommis... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (commissioned__decommissioned VARCHAR, home_port VARCHAR, nvr_page VARCHAR)
Question: Name the commissioned-decommissioned for oakland and NVR page of aor-1... | Here is the SQLite query to answer the question about the commissioned-decommissioned for Oakland and the NVR page of AOR-1:
```sql
SELECT commissioned__decommissioned FROM table_name_62 WHERE home_port = "oakland" AND nvr_page = "aor-1";
``` | 46,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_62 (commissioned__decommissioned VARCHAR, home_port VARCHAR, nvr_page VARCHAR)\n\n Question: Name the commissioned-deco... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (home_port VARCHAR, ship VARCHAR)
Question: Name the home port for kansas city
Here is the SQLite query to answer to the question: Name the home port for k... | Here is the SQLite query to answer the question: Name the home port for kansas city:
```
SELECT home_port FROM table_name_15 WHERE ship = "kansas city"
``` | 46,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_15 (home_port VARCHAR, ship VARCHAR)\n\n Question: Name the home port for kansas city\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_17 (commissioned__decommissioned VARCHAR, nvr_page VARCHAR)
Question: Name the commissioned-decommissioned for NVR page of aor-7
Here is the SQLite query to a... | Here is the SQLite query wrapped as you requested:
```
SELECT commissioned__decommissioned FROM table_name_17 WHERE nvr_page = "aor-7";
``` | 46,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_17 (commissioned__decommissioned VARCHAR, nvr_page VARCHAR)\n\n Question: Name the commissioned-decommissioned for NVR ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (ship VARCHAR, home_port VARCHAR, nvr_page VARCHAR)
Question: Name the ship for oakland home port and NVR page of aor-3
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question of naming the ship for the Oakland home port and NVR page of aor-3:
```sql
SELECT ship FROM table_name_28 WHERE home_port = "oakland" AND nvr_page = "aor-3";
``` | 46,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_28 (ship VARCHAR, home_port VARCHAR, nvr_page VARCHAR)\n\n Question: Name the ship for oakland home port and NVR page o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (name VARCHAR, entered_service VARCHAR, location VARCHAR, type VARCHAR)
Question: What is the name of the location and ship type in the Gulf of Mexico that ... | Your query requires a slight modification to correctly retrieve both the name of the location and the ship type. Here’s the corrected SQLite query:
```
SELECT location, type FROM table_name_43 WHERE location = "gulf of mexico" AND entered_service = "1999"
```
This query selects the `location` and `type` from `table_... | 46,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_43 (name VARCHAR, entered_service VARCHAR, location VARCHAR, type VARCHAR)\n\n Question: What is the name of the locati... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (water_depth VARCHAR, entered_service VARCHAR, name VARCHAR)
Question: What was the water depth that entered service in 2001 named Cajun Express?
Here is t... | Your query is almost correct, but SQL is case-sensitive when it comes to string matching unless configured otherwise. If you want to ensure it works regardless of the case, you might want to use the `LOWER()` function. Here is the revised query:
```sql
SELECT water_depth
FROM table_name_11
WHERE entered_service = "2... | 46,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_11 (water_depth VARCHAR, entered_service VARCHAR, name VARCHAR)\n\n Question: What was the water depth that entered ser... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (water_depth VARCHAR, location VARCHAR, name VARCHAR)
Question: What was the water depth in the Gulf of Mexico named Discoverer Clear Leader?
Here is the S... | Here is the SQLite query to answer the question about the water depth in the Gulf of Mexico named Discoverer Clear Leader:
```
SELECT water_depth FROM table_name_87 WHERE location = "gulf of mexico" AND name = "discoverer clear leader"
``` | 46,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_87 (water_depth VARCHAR, location VARCHAR, name VARCHAR)\n\n Question: What was the water depth in the Gulf of Mexico n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (name VARCHAR, location VARCHAR)
Question: What is the name of a location in Nigeria?
Here is the SQLite query to answer to the question: What is the name ... | Here is the SQLite query to answer the question "What is the name of a location in Nigeria?":
```
SELECT name FROM table_name_28 WHERE location = 'Nigeria';
``` | 46,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_28 (name VARCHAR, location VARCHAR)\n\n Question: What is the name of a location in Nigeria?\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_5 (location VARCHAR, entered_service VARCHAR, customer VARCHAR)
Question: What location entered service in 1999 and had a customer of Anadarko?
Here is the SQ... | Your SQLite query is almost correct, but there's a small point to consider regarding the case sensitivity of string comparisons in SQLite. If the customer name needs to be matched in a case-insensitive manner, you might want to use `LOWER()` or `UPPER()`. However, if the case in the data is consistent, your query will ... | 46,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_5 (location VARCHAR, entered_service VARCHAR, customer VARCHAR)\n\n Question: What location entered service in 1999 and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR)
Question: What was the Score on January 30?
Here is the SQLite query to answer to the question: What was the Score on January... | Your SQLite query to find the score on January 30 is mostly correct, but you might want to ensure that you are accounting for potential case sensitivity or variations in date formatting. Here's the refined query:
```sql
SELECT score FROM table_name_93 WHERE date = "January 30";
```
If you want to be more flexible wit... | 46,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_93 (score VARCHAR, date VARCHAR)\n\n Question: What was the Score on January 30?\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_11 (visitor VARCHAR, home VARCHAR, date VARCHAR)
Question: Who were the Visitor of the Toronto Maple Leafs Home game on December 22?
Here is the SQLite query ... | Here is the SQLite query to answer the question:
```
SELECT visitor FROM table_name_11 WHERE home = "toronto maple leafs" AND date = "december 22"
``` | 46,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_11 (visitor VARCHAR, home VARCHAR, date VARCHAR)\n\n Question: Who were the Visitor of the Toronto Maple Leafs Home gam... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (date VARCHAR, record VARCHAR)
Question: On what Date was the Record 9–6–4?
Here is the SQLite query to answer to the question: On what Date was the Record... | ```sql
SELECT date FROM table_name_62 WHERE record = "9–6–4";
``` | 46,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_62 (date VARCHAR, record VARCHAR)\n\n Question: On what Date was the Record 9–6–4?\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_18 (score VARCHAR, date VARCHAR)
Question: What was the Score on March 1?
Here is the SQLite query to answer to the question: What was the Score on March 1?:
... | Here is the SQLite query to answer the question: What was the Score on March 1?:
```
SELECT score FROM table_name_18 WHERE date = "March 1";
``` | 46,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_18 (score VARCHAR, date VARCHAR)\n\n Question: What was the Score on March 1?\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_58 (primary_conference VARCHAR, founded VARCHAR, affiliation VARCHAR)
Question: What is the primary conference that was founded before 1866 and has an affiliat... | Here is the SQLite query to answer the question regarding the primary conference that was founded before 1866 and has an affiliation of private/catholic:
```sql
SELECT primary_conference
FROM table_name_58
WHERE founded < '1866' AND affiliation = 'private/catholic';
``` | 46,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_58 (primary_conference VARCHAR, founded VARCHAR, affiliation VARCHAR)\n\n Question: What is the primary conference that... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (enrollment VARCHAR, affiliation VARCHAR, founded VARCHAR)
Question: What is the total enrollment for an affiliation of public, and was founded before 1866?... | Here is the corrected SQLite query to answer the question about the total enrollment for an affiliation of public, and was founded before 1866:
```
SELECT SUM(enrollment) FROM table_name_43 WHERE affiliation = "public" AND founded < 1866
```
Note: The original query used `COUNT(enrollment)`, which counts the number o... | 46,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_43 (enrollment VARCHAR, affiliation VARCHAR, founded VARCHAR)\n\n Question: What is the total enrollment for an affilia... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (affiliation VARCHAR, location VARCHAR)
Question: What is the affiliation for towson, md?
Here is the SQLite query to answer to the question: What is the a... | Here is the SQLite query to answer the question: What is the affiliation for towson, md?:
```
SELECT affiliation FROM table_name_37 WHERE location = "towson, md"
``` | 46,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_37 (affiliation VARCHAR, location VARCHAR)\n\n Question: What is the affiliation for towson, md?\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_1 (enrollment VARCHAR, affiliation VARCHAR, founded VARCHAR)
Question: What is the total enrollment for a private/catholic affiliation and founded after 1842?
... | Your query has a logical error in how you're counting the enrollments. The `COUNT` function counts the number of rows that match a condition, not the total enrollment value. If you want to sum the enrollment numbers, you should be using `SUM` instead, assuming `enrollment` is a numerical value. Here's the corrected SQL... | 46,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_1 (enrollment VARCHAR, affiliation VARCHAR, founded VARCHAR)\n\n Question: What is the total enrollment for a private/c... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (founded VARCHAR, nickname VARCHAR)
Question: What is the number founded for the nickname mountain hawks?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to find the number founded for the nickname "mountain hawks":
```sql
SELECT founded FROM table_name_68 WHERE nickname = "mountain hawks";
``` | 46,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_68 (founded VARCHAR, nickname VARCHAR)\n\n Question: What is the number founded for the nickname mountain hawks?\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_59 (score VARCHAR, host_city VARCHAR)
Question: What is the score of the season in the host city kėdainiai?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question regarding the score of the season in the host city kėdainiai:
```
SELECT score FROM table_name_59 WHERE host_city = "kėdainiai";
``` | 46,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_59 (score VARCHAR, host_city VARCHAR)\n\n Question: What is the score of the season in the host city kėdainiai?\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_39 (winner VARCHAR, finalist VARCHAR, season VARCHAR)
Question: Who was the winner of the season before 2010 with Lietuvos Rytas as a finalist?
Here is the SQ... | Your SQLite query is almost correct, but we need to ensure that the condition on the `season` field is applied in a way that it compares it as a string since `season` is defined as `VARCHAR`. Assuming the `season` strings are in a format like '2009', we can compare it as such. Here’s the revised query, formatted as req... | 46,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_39 (winner VARCHAR, finalist VARCHAR, season VARCHAR)\n\n Question: Who was the winner of the season before 2010 with L... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (finalist VARCHAR, host_city VARCHAR, season VARCHAR)
Question: Who was the finalist in the 2010 season in the host city tartu?
Here is the SQLite query to... | Here is the SQLite query to answer the question about the finalist in the 2010 season in the host city Tartu:
```
SELECT finalist FROM table_name_57 WHERE host_city = "tartu" AND season = "2010"
``` | 46,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_57 (finalist VARCHAR, host_city VARCHAR, season VARCHAR)\n\n Question: Who was the finalist in the 2010 season in the h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (winner VARCHAR, season VARCHAR)
Question: Who was the winner during the 2009 season?
Here is the SQLite query to answer to the question: Who was the winne... | Here is the SQLite query to answer the question: Who was the winner during the 2009 season?:
```
SELECT winner FROM table_name_42 WHERE season = '2009';
``` | 46,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_42 (winner VARCHAR, season VARCHAR)\n\n Question: Who was the winner during the 2009 season?\n\nHere is the SQLite quer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (host_city VARCHAR, season VARCHAR)
Question: What is the host city during the 2012 season?
Here is the SQLite query to answer to the question: What is the... | Here is the SQLite query to answer the question about the host city during the 2012 season:
```
SELECT host_city FROM table_name_47 WHERE season = '2012'
``` | 46,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_47 (host_city VARCHAR, season VARCHAR)\n\n Question: What is the host city during the 2012 season?\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_54 (tournament VARCHAR, score VARCHAR)
Question: what game had a score of 4–6, 6–3, 7–6(10)?
Here is the SQLite query to answer to the question: what game had... | Here is the SQLite query to answer the question regarding the game with the specified score:
```
SELECT tournament FROM table_name_54 WHERE score = "4–6, 6–3, 7–6(10)"
``` | 46,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_54 (tournament VARCHAR, score VARCHAR)\n\n Question: what game had a score of 4–6, 6–3, 7–6(10)?\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_77 (became_duchess VARCHAR, name VARCHAR)
Question: When did eleonor magdalene of the palatinate-neuburg become duchess?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question about when Eleonor Magdalene of the Palatinate-Neuburg became duchess:
```
SELECT became_duchess FROM table_name_77 WHERE name = "eleonor magdalene of the palatinate-neuburg"
``` | 46,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_77 (became_duchess VARCHAR, name VARCHAR)\n\n Question: When did eleonor magdalene of the palatinate-neuburg become duc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (marriage VARCHAR, became_duchess VARCHAR)
Question: Which Marriage has a Became Duchess of 12 december 1666?
Here is the SQLite query to answer to the que... | Your SQLite query to find the marriage associated with someone who became a duchess on 12 December 1666 is correctly formulated. Here it is wrapped in the requested format:
```
SELECT marriage FROM table_name_68 WHERE became_duchess = "12 december 1666";
``` | 46,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_68 (marriage VARCHAR, became_duchess VARCHAR)\n\n Question: Which Marriage has a Became Duchess of 12 december 1666?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (death VARCHAR, birth VARCHAR)
Question: When did the person die who was born on 18 november 1630?
Here is the SQLite query to answer to the question: When ... | Here is the SQLite query to answer the question about when the person died who was born on 18 November 1630:
```sql
SELECT death FROM table_name_3 WHERE birth = "18 november 1630";
``` | 46,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_3 (death VARCHAR, birth VARCHAR)\n\n Question: When did the person die who was born on 18 november 1630?\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_65 (birth VARCHAR, became_duchess VARCHAR)
Question: Which Birth has a Became Duchess of 17 april 1711 husband's ascension?
Here is the SQLite query to answer... | ```sql
SELECT birth FROM table_name_65 WHERE became_duchess = "17 april 1711 husband's ascension";
``` | 46,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_65 (birth VARCHAR, became_duchess VARCHAR)\n\n Question: Which Birth has a Became Duchess of 17 april 1711 husband's as... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (spouse VARCHAR, birth VARCHAR)
Question: Which Spouse has a Birth of 30 may 1653?
Here is the SQLite query to answer to the question: Which Spouse has a B... | Here is the SQLite query to answer the question regarding which spouse has a birth of 30 May 1653:
```
SELECT spouse FROM table_name_38 WHERE birth = "30 may 1653";
``` | 46,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_38 (spouse VARCHAR, birth VARCHAR)\n\n Question: Which Spouse has a Birth of 30 may 1653?\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_34 (death VARCHAR, birth VARCHAR)
Question: When did the person born on 6 january 1655 die?
Here is the SQLite query to answer to the question: When did the p... | Here is the SQLite query to answer the question about when the person born on 6 January 1655 died:
```
SELECT death FROM table_name_34 WHERE birth = "6 january 1655"
``` | 46,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_34 (death VARCHAR, birth VARCHAR)\n\n Question: When did the person born on 6 january 1655 die?\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_88 (club_province VARCHAR, caps VARCHAR, player VARCHAR)
Question: Which Club or province has a caps larger than 15 and has Chris Cusiter playing for them?
He... | Here is the SQLite query to answer the question:
```
SELECT club_province FROM table_name_88 WHERE caps > 15 AND player = "Chris Cusiter";
``` | 46,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_88 (club_province VARCHAR, caps VARCHAR, player VARCHAR)\n\n Question: Which Club or province has a caps larger than 15... | |
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_of_birth__age_ VARCHAR, club_province VARCHAR, position VARCHAR)
Question: What is the date of birth for the player from Ulster and plays at Centre po... | Here is the SQLite query to answer the question about the date of birth for the player from Ulster who plays at the Centre position:
```sql
SELECT date_of_birth__age_ FROM table_name_26 WHERE club_province = "ulster" AND position = "centre"
``` | 46,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_26 (date_of_birth__age_ VARCHAR, club_province VARCHAR, position VARCHAR)\n\n Question: What is the date of birth for t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (type VARCHAR, location VARCHAR, disaster VARCHAR)
Question: What type of disaster is rms atlantic categorized in that was located in Nova Scotia?
Here is ... | Here is the SQLite query to answer the question about the type of disaster categorized for "rms atlantic" located in "Nova Scotia":
```
SELECT type FROM table_name_62 WHERE location = "Nova Scotia" AND disaster = "rms atlantic";
``` | 46,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_62 (type VARCHAR, location VARCHAR, disaster VARCHAR)\n\n Question: What type of disaster is rms atlantic categorized i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (type VARCHAR, disaster VARCHAR)
Question: What is the type of disaster that the Arrow Air Flight 1285 categorized in?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question regarding the type of disaster that the Arrow Air Flight 1285 is categorized in:
```
SELECT type FROM table_name_55 WHERE disaster = "Arrow Air Flight 1285";
``` | 46,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_55 (type VARCHAR, disaster VARCHAR)\n\n Question: What is the type of disaster that the Arrow Air Flight 1285 categoriz... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (disaster VARCHAR, location VARCHAR, deaths VARCHAR)
Question: What is the disaster that was located in Ontario with 223 deaths?
Here is the SQLite query t... | Here is the SQLite query to answer the question about the disaster located in Ontario with 223 deaths:
```
SELECT disaster FROM table_name_39 WHERE location = "Ontario" AND deaths = "223";
``` | 46,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_39 (disaster VARCHAR, location VARCHAR, deaths VARCHAR)\n\n Question: What is the disaster that was located in Ontario ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (deaths VARCHAR, type VARCHAR, date VARCHAR)
Question: How many deaths were there during the shipwreck in 1873?
Here is the SQLite query to answer to the q... | To answer the question about the number of deaths during the shipwreck in 1873, you'll want to ensure that you are summing the deaths (assuming they are numeric) for that specific event. The query you provided retrieves the deaths but doesn't sum them. Here is the corrected SQLite query:
```
SELECT SUM(deaths) AS tota... | 46,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_56 (deaths VARCHAR, type VARCHAR, date VARCHAR)\n\n Question: How many deaths were there during the shipwreck in 1873?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (location VARCHAR, date VARCHAR)
Question: Where was the disaster located that took place on 1916?
Here is the SQLite query to answer to the question: Wher... | Here is the SQLite query to answer the question: Where was the disaster located that took place on 1916?:
```
SELECT location FROM table_name_49 WHERE date LIKE "1916%"
``` | 46,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_49 (location VARCHAR, date VARCHAR)\n\n Question: Where was the disaster located that took place on 1916?\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_52 (laps INTEGER, time_retired VARCHAR)
Question: Which Laps is the highest one that has a Time/Retired of +3.370 secs?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question about which laps is the highest one that has a Time/Retired of +3.370 secs:
```
SELECT MAX(laps) FROM table_name_52 WHERE time_retired = "+3.370 secs";
``` | 46,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_52 (laps INTEGER, time_retired VARCHAR)\n\n Question: Which Laps is the highest one that has a Time/Retired of +3.370 s... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (grid INTEGER, team VARCHAR, laps VARCHAR)
Question: Which Grid has a Team of rusport, and Laps larger than 221?
Here is the SQLite query to answer to the ... | The SQL query you've provided is designed to calculate the sum of the `grid` values for rows where the `team` is "rusport" and the `laps` are greater than 221. However, since the question only asks for which grid meets these criteria, you may want to retrieve the relevant `grid` values directly instead of summing them ... | 46,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_62 (grid INTEGER, team VARCHAR, laps VARCHAR)\n\n Question: Which Grid has a Team of rusport, and Laps larger than 221?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (title VARCHAR, producer VARCHAR, role VARCHAR)
Question: What title has a producer of MAQ and Anna as a role?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question about the title that has a producer of "MAQ" and "Anna" as a role:
```
SELECT title FROM table_name_18 WHERE producer = "MAQ" AND role = "Anna";
``` | 46,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_18 (title VARCHAR, producer VARCHAR, role VARCHAR)\n\n Question: What title has a producer of MAQ and Anna as a role?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (year VARCHAR, title VARCHAR, producer VARCHAR, director VARCHAR)
Question: How many years was Kay Tagal Kang Hinintay directed by Rory Quintos and produced... | Here is the SQLite query to answer the question about "Kay Tagal Kang Hinintay":
```
SELECT COUNT(DISTINCT year) FROM table_name_94 WHERE producer = "Star Cinema" AND director = "Rory Quintos" AND title = "Kay Tagal Kang Hinintay";
``` | 46,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_94 (year VARCHAR, title VARCHAR, producer VARCHAR, director VARCHAR)\n\n Question: How many years was Kay Tagal Kang Hi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (title VARCHAR, director VARCHAR)
Question: Which title was directed by Joyce Bernal?
Here is the SQLite query to answer to the question: Which title was d... | Here is the SQLite query to answer the question "Which title was directed by Joyce Bernal?":
```
SELECT title FROM table_name_76 WHERE director = "Joyce Bernal";
``` | 46,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_76 (title VARCHAR, director VARCHAR)\n\n Question: Which title was directed by Joyce Bernal?\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_46 (song VARCHAR, points VARCHAR, artist VARCHAR)
Question: What song is it that artist morena camilleri does and has more than 38 points
Here is the SQLite q... | Here is the SQLite query to answer the question about what song the artist Morena Camilleri performs and has more than 38 points:
```
SELECT song FROM table_name_46 WHERE points > 38 AND artist = 'morena camilleri'
``` | 46,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_46 (song VARCHAR, points VARCHAR, artist VARCHAR)\n\n Question: What song is it that artist morena camilleri does and h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (points INTEGER, lyricist VARCHAR)
Question: What is the total number of points for ray agius
Here is the SQLite query to answer to the question: What is t... | Here is the SQLite query to find the total number of points for ray agius:
```
SELECT SUM(points) FROM table_name_15 WHERE lyricist = "ray agius"
``` | 46,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_15 (points INTEGER, lyricist VARCHAR)\n\n Question: What is the total number of points for ray agius\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_99 (place VARCHAR, name VARCHAR)
Question: What play did henry s. uber / betty uber (eng) finish in?
Here is the SQLite query to answer to the question: What ... | To answer the question: "What play did henry s. uber / betty uber (eng) finish in?" we need to retrieve the `place` from the table for the specified `name`. The appropriate query to find this information is as follows:
```sql
SELECT place FROM table_name_99 WHERE name = "henry s. uber / betty uber (eng)";
```
This q... | 46,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_99 (place VARCHAR, name VARCHAR)\n\n Question: What play did henry s. uber / betty uber (eng) finish 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_37 (first_elected INTEGER, counties_represented VARCHAR, committee VARCHAR)
Question: When Baltimore County, Howard are represented, what's the first elected w... | Here is the SQLite query to answer your question:
```
SELECT MIN(first_elected) FROM table_name_37 WHERE counties_represented = "baltimore county, howard" AND committee = "environmental matters (vice-chair)"
``` | 46,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_37 (first_elected INTEGER, counties_represented VARCHAR, committee VARCHAR)\n\n Question: When Baltimore County, Howard... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (party VARCHAR, counties_represented VARCHAR, delegate VARCHAR)
Question: What party is the delegate of Turner, Frank S. Frank S. Turner of Howard County?
... | Here is the SQLite query to answer the question about the party of the delegate Frank S. Turner of Howard County:
```
SELECT party FROM table_name_50 WHERE counties_represented = "Howard" AND delegate = "Turner, Frank S. Frank S. Turner";
``` | 46,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_50 (party VARCHAR, counties_represented VARCHAR, delegate VARCHAR)\n\n Question: What party is the delegate of Turner, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (damage__millions_usd__ VARCHAR, storm_name VARCHAR)
Question: What is the damage of storm three?
Here is the SQLite query to answer to the question: What ... | Your provided SQLite query is correct for retrieving the damage associated with "storm three". Here it is wrapped in the specified format:
```
SELECT damage__millions_usd__ FROM table_name_58 WHERE storm_name = "three";
``` | 46,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_58 (damage__millions_usd__ VARCHAR, storm_name VARCHAR)\n\n Question: What is the damage of storm three?\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 (round INTEGER, circuit VARCHAR)
Question: Which Round is the lowest one that has a Circuit of donington?
Here is the SQLite query to answer to the questio... | Your SQLite query looks correct for the question asked. Here it is wrapped again for clarity:
```
SELECT MIN(round) FROM table_name_18 WHERE circuit = "donington";
``` | 46,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_18 (round INTEGER, circuit VARCHAR)\n\n Question: Which Round is the lowest one that has a Circuit of donington?\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_5 (round VARCHAR, date VARCHAR)
Question: Which 250cc winner has a Round larger than 6, and a Date of 26 july?
Here is the SQLite query to answer to the quest... | It looks like your query may not accurately represent the logic for finding the 250cc winner based on the provided schema and question. If you want to select a specific field that represents the winner, you might want to consider a field that indicates the winner rather than returning a constant value like `250`.
Giv... | 46,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_5 (round VARCHAR, date VARCHAR)\n\n Question: Which 250cc winner has a Round larger than 6, and a Date of 26 july?\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_30 (week INTEGER, attendance VARCHAR)
Question: Attendance of 48,510 had what highest week?
Here is the SQLite query to answer to the question: Attendance of ... | It seems there is a small error in your query regarding the way you are checking the attendance. The `attendance` column is of type `VARCHAR`, and it should be compared as a string. Additionally, there is a misunderstanding in using `OFFSET 510`, which does not fit the context of the question. Instead, you should filte... | 46,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_30 (week INTEGER, attendance VARCHAR)\n\n Question: Attendance of 48,510 had what highest week?\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 (week INTEGER, opponent VARCHAR)
Question: Opponent of at san francisco 49ers had what lowest week?
Here is the SQLite query to answer to the question: Opp... | Here is the corrected SQLite query that answers the question about the opponent of "at san francisco 49ers" and retrieves the lowest week:
```sql
SELECT MIN(week) FROM table_name_43 WHERE opponent = 'at san francisco 49ers';
```
Make sure to use single quotes for string literals in SQL, which is a standard practice. | 46,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_43 (week INTEGER, opponent VARCHAR)\n\n Question: Opponent of at san francisco 49ers had what lowest week?\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_71 (date VARCHAR, opponent VARCHAR)
Question: On what Date is the Minnesota Vikings the Opponent?
Here is the SQLite query to answer to the question: On what ... | Here is the SQLite query to answer the question about the dates when the Minnesota Vikings are the opponent:
```
SELECT date FROM table_name_71 WHERE opponent = "Minnesota Vikings";
``` | 46,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_71 (date VARCHAR, opponent VARCHAR)\n\n Question: On what Date is the Minnesota Vikings 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_3 (date VARCHAR, week VARCHAR)
Question: What is the Date of Week 5?
Here is the SQLite query to answer to the question: What is the Date of Week 5?:
```
SELE... | Here is the SQLite query to answer the question about the Date of Week 5:
```
SELECT date FROM table_name_3 WHERE week = '5'
``` | 46,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_3 (date VARCHAR, week VARCHAR)\n\n Question: What is the Date of Week 5?\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_47 (date VARCHAR, week VARCHAR)
Question: What is the Date of Week 2?
Here is the SQLite query to answer to the question: What is the Date of Week 2?:
```
SEL... | Here is the SQLite query to answer the question about the Date of Week 2:
```
SELECT date FROM table_name_47 WHERE week = '2'
``` | 46,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_47 (date VARCHAR, week VARCHAR)\n\n Question: What is the Date of Week 2?\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_18 (score VARCHAR, loss VARCHAR)
Question: What was the score when the game has a loss of Lary (10-12)?
Here is the SQLite query to answer to the question: Wh... | The provided SQLite query is almost correct, but it appears there is a small inconsistency with the case sensitivity of the string in the condition. SQLite string comparisons are case-sensitive by default. Therefore, if "Lary" is meant to be in the query, it should be capitalized accordingly.
Here is the corrected que... | 46,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_18 (score VARCHAR, loss VARCHAR)\n\n Question: What was the score when the game has a loss of Lary (10-12)?\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_37 (result VARCHAR, competition VARCHAR)
Question: What is the result of the friendly match?
Here is the SQLite query to answer to the question: What is the r... | Here is the SQLite query to answer the question regarding the result of the friendly match, formatted as requested:
```
SELECT result FROM table_name_37 WHERE competition = "friendly"
``` | 46,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 (result VARCHAR, competition VARCHAR)\n\n Question: What is the result of the friendly match?\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_76 (score VARCHAR, date VARCHAR)
Question: What is the score of the match on June 4, 2008?
Here is the SQLite query to answer to the question: What is the sco... | ```sql
SELECT score FROM table_name_76 WHERE date = "June 4, 2008";
``` | 46,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_76 (score VARCHAR, date VARCHAR)\n\n Question: What is the score of the match on June 4, 2008?\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_17 (year INTEGER, length VARCHAR)
Question: Which Year is the lowest one that has a Length of 3:50?
Here is the SQLite query to answer to the question: Which ... | Here is the SQLite query to answer the question: Which Year is the lowest one that has a Length of 3:50?:
```
SELECT MIN(year) FROM table_name_17 WHERE length = '3:50';
``` | 46,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_17 (year INTEGER, length VARCHAR)\n\n Question: Which Year is the lowest one that has a Length of 3:50?\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_13 (length VARCHAR, year VARCHAR)
Question: Which Length has a Year of 2000?
Here is the SQLite query to answer to the question: Which Length has a Year of 20... | Your SQLite query is almost correct, but since the column `year` is defined as a VARCHAR in the schema, you should wrap the year value in single quotes in the query. Here’s the corrected version:
```
SELECT length FROM table_name_13 WHERE year = '2000'
``` | 46,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_13 (length VARCHAR, year VARCHAR)\n\n Question: Which Length has a Year of 2000?\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_7 (place VARCHAR, artist VARCHAR, draw VARCHAR, points VARCHAR)
Question: In what place is the artist Midnight Band with a draw larger than 2 and less than 139... | Here is the corrected SQLite query based on your requirements:
```sql
SELECT place FROM table_name_7 WHERE draw > 2 AND draw < 139 AND artist = "Midnight Band";
```
Note: Make sure to compare the 'draw' column correctly according to your condition, and also ensure the artist name matches the case you are using in th... | 46,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_7 (place VARCHAR, artist VARCHAR, draw VARCHAR, points VARCHAR)\n\n Question: In what place is the artist Midnight Band... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (player VARCHAR, matches VARCHAR)
Question: what player matched up with 9
Here is the SQLite query to answer to the question: what player matched up with 9... | Here is the SQLite query to answer the question about which player matched up with 9:
```
SELECT player FROM table_name_78 WHERE matches = '9';
``` | 46,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_78 (player VARCHAR, matches VARCHAR)\n\n Question: what player matched up with 9\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_48 (team_1 VARCHAR)
Question: What is the 2nd leg of the Internacional Team 1?
Here is the SQLite query to answer to the question: What is the 2nd leg of the ... | Here's the corrected SQLite query to answer the question about the 2nd leg of the Internacional Team 1:
```
SELECT team_1 FROM table_name_48 WHERE team_1 = "internacional" LIMIT 1 OFFSET 1;
```
This assumes that there is a specific ordering of the records that would identify the "second leg" of "Internacional." If yo... | 46,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_48 (team_1 VARCHAR)\n\n Question: What is the 2nd leg of the Internacional Team 1?\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_57 (city VARCHAR, country VARCHAR, stadium VARCHAR)
Question: Which City has a Country of spain, and a Stadium of palacio de deportes de santander?
Here is th... | Here is the SQLite query wrapped in code formatting to answer your question:
```
SELECT city FROM table_name_57 WHERE country = "spain" AND stadium = "palacio de deportes de santander";
``` | 46,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_57 (city VARCHAR, country VARCHAR, stadium VARCHAR)\n\n Question: Which City has a Country of spain, and a Stadium of p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (capacity INTEGER, rank VARCHAR, city VARCHAR)
Question: Which Capacity is the lowest one that has a Rank smaller than 15, and a City of belgrade?
Here is ... | Here is the SQLite query to answer the question regarding the lowest capacity with a rank smaller than 15 and a city of Belgrade:
```sql
SELECT MIN(capacity) FROM table_name_76 WHERE rank < 15 AND city = "belgrade";
``` | 46,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_76 (capacity INTEGER, rank VARCHAR, city VARCHAR)\n\n Question: Which Capacity is the lowest one that has a Rank smalle... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (capacity INTEGER, city VARCHAR, rank VARCHAR)
Question: Which Capacity is the lowest one that has a City of brisbane, and a Rank smaller than 1?
Here is t... | Here is the SQLite query to answer the question regarding the lowest capacity for the city of Brisbane and a rank smaller than 1:
```
SELECT MIN(capacity) FROM table_name_96 WHERE city = "brisbane" AND rank < 1;
``` | 46,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_96 (capacity INTEGER, city VARCHAR, rank VARCHAR)\n\n Question: Which Capacity is the lowest one that has a City of bri... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (total_points VARCHAR, match_points VARCHAR, games VARCHAR, bonus_points VARCHAR)
Question: What are the total points that had 68 match points, 9 bonus poin... | Here is the SQLite query to answer the question regarding the total points for the specified conditions:
```
SELECT total_points FROM table_name_29 WHERE games = "30" AND bonus_points = "9" AND match_points = "68"
``` | 46,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_29 (total_points VARCHAR, match_points VARCHAR, games VARCHAR, bonus_points VARCHAR)\n\n Question: What are the total p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (length__km_ INTEGER, name VARCHAR, length__mi_ VARCHAR)
Question: What's the shortest length from north klondike highway that has a length less than 326?
... | Here is the SQLite query to answer the question regarding the shortest length from the north klondike highway that has a length less than 326:
```
SELECT MIN(length__km_) FROM table_name_38 WHERE name = "north klondike highway" AND length__km_ < 326;
```
(Note: I corrected the condition to use `length__km_` instead ... | 46,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_38 (length__km_ INTEGER, name VARCHAR, length__mi_ VARCHAR)\n\n Question: What's the shortest length from north klondik... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.