text
stringlengths 354
1.06k
|
---|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (hot_digital_songs_reaction VARCHAR, hot_100_reaction VARCHAR)
Question: What digital reaction has hot 100 reaction of 2 (+1)?
[/INST]
Here is the SQLite query to answer to the question: What digital reaction has hot 100 reaction of 2 (+1)?:
```
SELECT hot_digital_songs_reaction FROM table_name_89 WHERE hot_100_reaction = "2 (+1)"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_26428602_1 (absorb__nm_ INTEGER, color VARCHAR)
Question: How much absorption in nm does the orange dye have?
[/INST]
Here is the SQLite query to answer to the question: How much absorption in nm does the orange dye have?:
```
SELECT MIN(absorb__nm_) FROM table_26428602_1 WHERE color = "orange"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_26202847_6 (championship VARCHAR, score_in_the_final VARCHAR)
Question: Where is the championship where 6–1, 3–6, 3–6 is the score in the final?
[/INST]
Here is the SQLite query to answer to the question: Where is the championship where 6–1, 3–6, 3–6 is the score in the final?:
```
SELECT championship FROM table_26202847_6 WHERE score_in_the_final = "6–1, 3–6, 3–6"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (date VARCHAR, set_2 VARCHAR)
Question: What is Date, when Set 2 is 25-13?
[/INST]
Here is the SQLite query to answer to the question: What is Date, when Set 2 is 25-13?:
```
SELECT date FROM table_name_29 WHERE set_2 = "25-13"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (province_region VARCHAR, home_campus VARCHAR)
Question: Where is the Holy Cross of Davao College campus located?
[/INST]
Here is the SQLite query to answer to the question: Where is the Holy Cross of Davao College campus located?:
```
SELECT province_region FROM table_name_42 WHERE home_campus = "holy cross of davao college"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (mar_3 VARCHAR, poll VARCHAR)
Question: Which March 3 has a Poll of baseball america (top 25)?
[/INST]
Here is the SQLite query to answer to the question: Which March 3 has a Poll of baseball america (top 25)?:
```
SELECT mar_3 FROM table_name_35 WHERE poll = "baseball america (top 25)"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (grid VARCHAR, laps VARCHAR, driver VARCHAR)
Question: How many grids for heinz-harald frentzen with 61 laps?
[/INST]
Here is the SQLite query to answer to the question: How many grids for heinz-harald frentzen with 61 laps?:
```
SELECT COUNT(grid) FROM table_name_12 WHERE laps = 61 AND driver = "heinz-harald frentzen"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (score VARCHAR, record VARCHAR)
Question: What was the score of the game with a record of 37–26–9?
[/INST]
Here is the SQLite query to answer to the question: What was the score of the game with a record of 37–26–9?:
```
SELECT score FROM table_name_5 WHERE record = "37–26–9"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_17288825_7 (score VARCHAR, date VARCHAR)
Question: What is the score for the game played on January 25?
[/INST]
Here is the SQLite query to answer to the question: What is the score for the game played on January 25?:
```
SELECT score FROM table_17288825_7 WHERE date = "January 25"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (name VARCHAR, score VARCHAR, song VARCHAR)
Question: Wjat score is greater than 22 with this song: 林俊杰 - 木乃伊?
[/INST]
Here is the SQLite query to answer to the question: Wjat score is greater than 22 with this song: 林俊杰 - 木乃伊?:
```
SELECT name FROM table_name_86 WHERE score > 22 AND song = "林俊杰 - 木乃伊"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (round VARCHAR, time VARCHAR)
Question: Which round was 2:30?
[/INST]
Here is the SQLite query to answer to the question: Which round was 2:30?:
```
SELECT round FROM table_name_45 WHERE time = "2:30"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (date VARCHAR, competition VARCHAR, venue VARCHAR)
Question: What date has a competition of 2012 afc challenge cup, and dasarath rangasala stadium, kathmandu as the venue?
[/INST]
Here is the SQLite query to answer to the question: What date has a competition of 2012 afc challenge cup, and dasarath rangasala stadium, kathmandu as the venue?:
```
SELECT date FROM table_name_56 WHERE competition = "2012 afc challenge cup" AND venue = "dasarath rangasala stadium, kathmandu"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21091982_3 (tournament_venue__city_ VARCHAR, conference VARCHAR)
Question: Where was the Ivy League conference tournament?
[/INST]
Here is the SQLite query to answer to the question: Where was the Ivy League conference tournament?:
```
SELECT tournament_venue__city_ FROM table_21091982_3 WHERE conference = "Ivy League"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (team VARCHAR, game VARCHAR)
Question: Who was the team for game 34?
[/INST]
Here is the SQLite query to answer to the question: Who was the team for game 34?:
```
SELECT team FROM table_name_79 WHERE game = 34
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (year_s__won VARCHAR, country VARCHAR)
Question: What years did New Zealand win?
[/INST]
Here is the SQLite query to answer to the question: What years did New Zealand win?:
```
SELECT year_s__won FROM table_name_30 WHERE country = "new zealand"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (score VARCHAR, tournament VARCHAR)
Question: What was the score for the match at the tournament in canada f7, toronto?
[/INST]
Here is the SQLite query to answer to the question: What was the score for the match at the tournament in canada f7, toronto?:
```
SELECT score FROM table_name_87 WHERE tournament = "canada f7, toronto"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (date VARCHAR, course VARCHAR)
Question: What is the date of the Rome to Florence course?
[/INST]
Here is the SQLite query to answer to the question: What is the date of the Rome to Florence course?:
```
SELECT date FROM table_name_44 WHERE course = "rome to florence"
``` |
[INST] 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?
[/INST]
Here is the SQLite query to answer to the question: What is the name of a location in Nigeria?:
```
SELECT name FROM table_name_28 WHERE location = "nigeria"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (loses INTEGER, draws VARCHAR, points VARCHAR)
Question: What is the highest number of losses for teams with under 3 draws and 51 points?
[/INST]
Here is the SQLite query to answer to the question: What is the highest number of losses for teams with under 3 draws and 51 points?:
```
SELECT MAX(loses) FROM table_name_49 WHERE draws < 3 AND points = 51
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (start INTEGER, span VARCHAR, conv VARCHAR)
Question: In 1990-2005 what is the lowest Start with Convs smaller than 2?
[/INST]
Here is the SQLite query to answer to the question: In 1990-2005 what is the lowest Start with Convs smaller than 2?:
```
SELECT MIN(start) FROM table_name_93 WHERE span = "1990-2005" AND conv < 2
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (rank INTEGER, rider VARCHAR)
Question: What is the lowest rank of rider darren gilpin?
[/INST]
Here is the SQLite query to answer to the question: What is the lowest rank of rider darren gilpin?:
```
SELECT MIN(rank) FROM table_name_91 WHERE rider = "darren gilpin"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (home_team VARCHAR, venue VARCHAR)
Question: When the VFL played Victoria Park what was the home team score?
[/INST]
Here is the SQLite query to answer to the question: When the VFL played Victoria Park what was the home team score?:
```
SELECT home_team AS score FROM table_name_11 WHERE venue = "victoria park"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (rank VARCHAR, silver VARCHAR, bronze VARCHAR)
Question: What is the rank of the nation with more than 0 silver medals and 38 bronze medals?
[/INST]
Here is the SQLite query to answer to the question: What is the rank of the nation with more than 0 silver medals and 38 bronze medals?:
```
SELECT rank FROM table_name_97 WHERE silver > 0 AND bronze = 38
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (length_duration VARCHAR, date VARCHAR)
Question: What is the length and duration of the race on April 19?
[/INST]
Here is the SQLite query to answer to the question: What is the length and duration of the race on April 19?:
```
SELECT length_duration FROM table_name_85 WHERE date = "april 19"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_18173916_8 (friday VARCHAR, tuesday VARCHAR)
Question: which episode was Transmitted on friday if the episode of "414 insanely twisted shadow planet" was transmitted on tuesday?
[/INST]
Here is the SQLite query to answer to the question: which episode was Transmitted on friday if the episode of "414 insanely twisted shadow planet" was transmitted on tuesday? :
```
SELECT friday FROM table_18173916_8 WHERE tuesday = "414 Insanely Twisted Shadow Planet"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_17058116_5 (location_attendance VARCHAR, game VARCHAR)
Question: In how many locations did Game 13 take place?
[/INST]
Here is the SQLite query to answer to the question: In how many locations did Game 13 take place?:
```
SELECT COUNT(location_attendance) FROM table_17058116_5 WHERE game = 13
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (player VARCHAR, score VARCHAR)
Question: Which player has a score of 74-74-73-70=291?
[/INST]
Here is the SQLite query to answer to the question: Which player has a score of 74-74-73-70=291?:
```
SELECT player FROM table_name_72 WHERE score = 74 - 74 - 73 - 70 = 291
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1506950_4 (date VARCHAR, rounds VARCHAR)
Question: What days were the rounds of 66-67-70-67 recorded?
[/INST]
Here is the SQLite query to answer to the question: What days were the rounds of 66-67-70-67 recorded?:
```
SELECT date FROM table_1506950_4 WHERE rounds = "66-67-70-67"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (pd_per_game INTEGER, pa_per_game VARCHAR, streak VARCHAR, rank VARCHAR, winning__percentage VARCHAR)
Question: Which PD per game has a Rank smaller than 4, a Winning % of 78.6%, a Streak of w1, and a PA per game smaller than 81.5?
[/INST]
Here is the SQLite query to answer to the question: Which PD per game has a Rank smaller than 4, a Winning % of 78.6%, a Streak of w1, and a PA per game smaller than 81.5?:
```
SELECT MIN(pd_per_game) FROM table_name_49 WHERE rank < 4 AND winning__percentage = "78.6%" AND streak = "w1" AND pa_per_game < 81.5
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28744929_1 (joined_acc VARCHAR, location VARCHAR)
Question: when did the institution at chapel hill, North carolina join acc?
[/INST]
Here is the SQLite query to answer to the question: when did the institution at chapel hill, North carolina join acc?:
```
SELECT joined_acc FROM table_28744929_1 WHERE location = "Chapel Hill, North Carolina"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (teams VARCHAR, third__points_ VARCHAR)
Question: Name the teams for third points of season cancelled
[/INST]
Here is the SQLite query to answer to the question: Name the teams for third points of season cancelled:
```
SELECT teams FROM table_name_95 WHERE third__points_ = "season cancelled"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (pick VARCHAR, draft VARCHAR, round VARCHAR, nationality VARCHAR)
Question: What is the pick for round 8 with a USA nationality in the 2000 draft?
[/INST]
Here is the SQLite query to answer to the question: What is the pick for round 8 with a USA nationality in the 2000 draft?:
```
SELECT pick FROM table_name_72 WHERE round = "8" AND nationality = "usa" AND draft = 2000
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (tyre VARCHAR, engine_† VARCHAR)
Question: What is the tyre for the peugeot a20 engine?
[/INST]
Here is the SQLite query to answer to the question: What is the tyre for the peugeot a20 engine?:
```
SELECT tyre FROM table_name_40 WHERE engine_† = "peugeot a20"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (played INTEGER, position VARCHAR, goals_against VARCHAR)
Question: Which lowest played has a Position of 2, and Goals against larger than 53?
[/INST]
Here is the SQLite query to answer to the question: Which lowest played has a Position of 2, and Goals against larger than 53?:
```
SELECT MIN(played) FROM table_name_6 WHERE position = 2 AND goals_against > 53
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (elector VARCHAR, elevated VARCHAR, nationality VARCHAR, elevator VARCHAR)
Question: What is the Elector with a Nationality with roman, and an Elevator of urban iv, and an Elevated with 1261, december 17?
[/INST]
Here is the SQLite query to answer to the question: What is the Elector with a Nationality with roman, and an Elevator of urban iv, and an Elevated with 1261, december 17?:
```
SELECT elector FROM table_name_5 WHERE nationality = "roman" AND elevator = "urban iv" AND elevated = "1261, december 17"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (silver VARCHAR, year VARCHAR)
Question: Who won Silver in 2000?
[/INST]
Here is the SQLite query to answer to the question: Who won Silver in 2000?:
```
SELECT silver FROM table_name_53 WHERE year = 2000
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (ship_types_delivered VARCHAR, total_vessels_built_for_usmc VARCHAR)
Question: what is the ship types delivered when the total vessels built for usmc is 13 ships for usmc (plus 37 more for usn)?
[/INST]
Here is the SQLite query to answer to the question: what is the ship types delivered when the total vessels built for usmc is 13 ships for usmc (plus 37 more for usn)?:
```
SELECT ship_types_delivered FROM table_name_21 WHERE total_vessels_built_for_usmc = "13 ships for usmc (plus 37 more for usn)"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2182654_3 (no_in_season VARCHAR, no_in_series VARCHAR)
Question: What episode number in the season is episode 24 in the series?
[/INST]
Here is the SQLite query to answer to the question: What episode number in the season is episode 24 in the series?:
```
SELECT no_in_season FROM table_2182654_3 WHERE no_in_series = 24
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_13403120_1 (writer_s_ VARCHAR, prodcode VARCHAR)
Question: who is the writer of the episode with prod.code 30-17
[/INST]
Here is the SQLite query to answer to the question: who is the writer of the episode with prod.code 30-17:
```
SELECT writer_s_ FROM table_13403120_1 WHERE prodcode = "30-17"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2897457_4 (player VARCHAR, pick__number VARCHAR)
Question: Which player is pick 64?
[/INST]
Here is the SQLite query to answer to the question: Which player is pick 64?:
```
SELECT player FROM table_2897457_4 WHERE pick__number = 64
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (home VARCHAR, date VARCHAR)
Question: What is the home team of the game on April 20?
[/INST]
Here is the SQLite query to answer to the question: What is the home team of the game on April 20?:
```
SELECT home FROM table_name_95 WHERE date = "april 20"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (crowd INTEGER, venue VARCHAR)
Question: What is the smallest crowd at the Victoria Park Venue?
[/INST]
Here is the SQLite query to answer to the question: What is the smallest crowd at the Victoria Park Venue?:
```
SELECT MIN(crowd) FROM table_name_94 WHERE venue = "victoria park"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (finish VARCHAR, laps VARCHAR, qual VARCHAR)
Question: What is the finish when there was more than 192 laps and a qual of 135.736?
[/INST]
Here is the SQLite query to answer to the question: What is the finish when there was more than 192 laps and a qual of 135.736?:
```
SELECT finish FROM table_name_2 WHERE laps > 192 AND qual = "135.736"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, constructor VARCHAR, laps VARCHAR)
Question: Who drove the maserati under 18 laps with an oil leak that had a grid of under 14?
[/INST]
Here is the SQLite query to answer to the question: Who drove the maserati under 18 laps with an oil leak that had a grid of under 14?:
```
SELECT driver FROM table_name_34 WHERE constructor = "maserati" AND laps < 18 AND grid < 14 AND time_retired = "oil leak"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (surface VARCHAR, partner VARCHAR)
Question: What surface was used when she played with Remi Tezuka?
[/INST]
Here is the SQLite query to answer to the question: What surface was used when she played with Remi Tezuka?:
```
SELECT surface FROM table_name_76 WHERE partner = "remi tezuka"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_13619027_9 (high_rebounds VARCHAR, date VARCHAR)
Question: How many different values if the number is high rebounds can be found for the game on March 13?
[/INST]
Here is the SQLite query to answer to the question: How many different values if the number is high rebounds can be found for the game on March 13?:
```
SELECT COUNT(high_rebounds) FROM table_13619027_9 WHERE date = "March 13"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE TV_series (Weekly_Rank VARCHAR, Episode VARCHAR)
Question: What is Weekly Rank of TV series with Episode "A Love of a Lifetime"?
[/INST]
Here is the SQLite query to answer to the question: What is Weekly Rank of TV series with Episode "A Love of a Lifetime"?:
```
SELECT Weekly_Rank FROM TV_series WHERE Episode = "A Love of a Lifetime"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16724844_1 (mens_45 VARCHAR, mens_40 VARCHAR)
Question: What was the mens 45 when mens 40 was Sunwest Razorbacks def Sydney Mets?
[/INST]
Here is the SQLite query to answer to the question: What was the mens 45 when mens 40 was Sunwest Razorbacks def Sydney Mets?:
```
SELECT mens_45 FROM table_16724844_1 WHERE mens_40 = "SunWest Razorbacks def Sydney Mets"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_104858_1 (admits_boys_girls VARCHAR, name_of_member_organization VARCHAR)
Question: Does the Scout Association of Hong Kong admit boys, girls, or both?
[/INST]
Here is the SQLite query to answer to the question: Does the Scout Association of Hong Kong admit boys, girls, or both?:
```
SELECT admits_boys_girls FROM table_104858_1 WHERE name_of_member_organization = "The Scout Association of Hong Kong"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE instructor (name VARCHAR, salary INTEGER, dept_name VARCHAR)
Question: Find the name and salary of instructors whose salary is below the average salary of the instructors in the Physics department.
[/INST]
Here is the SQLite query to answer to the question: Find the name and salary of instructors whose salary is below the average salary of the instructors in the Physics department.:
```
SELECT name, salary FROM instructor WHERE salary < (SELECT AVG(salary) FROM instructor WHERE dept_name = 'Physics')
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1473672_2 (nhl_team VARCHAR, player VARCHAR)
Question: What nhl team does dwight bialowas play for?
[/INST]
Here is the SQLite query to answer to the question: What nhl team does dwight bialowas play for?:
```
SELECT nhl_team FROM table_1473672_2 WHERE player = "Dwight Bialowas"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (crowd VARCHAR, home_team VARCHAR)
Question: how many times is the home team wollongong hawks?
[/INST]
Here is the SQLite query to answer to the question: how many times is the home team wollongong hawks?:
```
SELECT COUNT(crowd) FROM table_name_62 WHERE home_team = "wollongong hawks"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (year INTEGER, start VARCHAR)
Question: Name the least year for start of 17th
[/INST]
Here is the SQLite query to answer to the question: Name the least year for start of 17th:
```
SELECT MIN(year) FROM table_name_13 WHERE start = "17th"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22917458_15 (winner VARCHAR, stage VARCHAR)
Question: Who was the Stage 1 winner?
[/INST]
Here is the SQLite query to answer to the question: Who was the Stage 1 winner?:
```
SELECT winner FROM table_22917458_15 WHERE stage = 1
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (country VARCHAR, year VARCHAR)
Question: What country had a film in 1993?
[/INST]
Here is the SQLite query to answer to the question: What country had a film in 1993?:
```
SELECT country FROM table_name_31 WHERE year = 1993
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (name VARCHAR, length VARCHAR)
Question: Which name is 51.89 (2.043) long?
[/INST]
Here is the SQLite query to answer to the question: Which name is 51.89 (2.043) long?:
```
SELECT name FROM table_name_57 WHERE length = "51.89 (2.043)"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20193855_2 (publisher VARCHAR, book_title VARCHAR)
Question: Who is the publisher of the book titled daughters of an emerald dusk?
[/INST]
Here is the SQLite query to answer to the question: Who is the publisher of the book titled daughters of an emerald dusk?:
```
SELECT publisher FROM table_20193855_2 WHERE book_title = "Daughters of an Emerald Dusk"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_19179465_1 (bp VARCHAR, club VARCHAR)
Question: What was the B.P. of club Halifax?
[/INST]
Here is the SQLite query to answer to the question: What was the B.P. of club Halifax?:
```
SELECT bp FROM table_19179465_1 WHERE club = "Halifax"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (fcc_info VARCHAR, frequency_mhz VARCHAR)
Question: What is the FCC information of 104.5 fm frequency?
[/INST]
Here is the SQLite query to answer to the question: What is the FCC information of 104.5 fm frequency?:
```
SELECT fcc_info FROM table_name_68 WHERE frequency_mhz = "104.5 fm"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_19662262_6 (strike_rate VARCHAR, wickets VARCHAR)
Question: What is the strike rate when there are 17 wickets?
[/INST]
Here is the SQLite query to answer to the question: What is the strike rate when there are 17 wickets?:
```
SELECT strike_rate FROM table_19662262_6 WHERE wickets = 17
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (earnings___ INTEGER, wins INTEGER)
Question: What is the highest earnings for the golfer who has more than 37 wins?
[/INST]
Here is the SQLite query to answer to the question: What is the highest earnings for the golfer who has more than 37 wins?:
```
SELECT MAX(earnings___) AS $__ FROM table_name_90 WHERE wins > 37
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12094609_1 (average VARCHAR, evening_gown VARCHAR)
Question: what is the total number of average where evening gown is 8.988
[/INST]
Here is the SQLite query to answer to the question: what is the total number of average where evening gown is 8.988:
```
SELECT COUNT(average) FROM table_12094609_1 WHERE evening_gown = "8.988"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22020724_1 (result VARCHAR, title_in_the_original_language VARCHAR)
Question: What are the results for the film titled 'Joki'?
[/INST]
Here is the SQLite query to answer to the question: What are the results for the film titled 'Joki'?:
```
SELECT COUNT(result) FROM table_22020724_1 WHERE title_in_the_original_language = "Joki"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (location_attendance VARCHAR, game VARCHAR, date VARCHAR)
Question: What is the loaction attendance that has a game greater than 35, with January 30 as the date?
[/INST]
Here is the SQLite query to answer to the question: What is the loaction attendance that has a game greater than 35, with January 30 as the date?:
```
SELECT location_attendance FROM table_name_24 WHERE game > 35 AND date = "january 30"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_10333757_1 (market_rank VARCHAR, calls VARCHAR)
Question: Which Market/Rank is associated with WCRN calls?
[/INST]
Here is the SQLite query to answer to the question: Which Market/Rank is associated with WCRN calls?:
```
SELECT market_rank FROM table_10333757_1 WHERE calls = "WCRN"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE Accounts (Account_details INTEGER)
Question: What are the account details with the largest value or with value having char '5' in it?
[/INST]
Here is the SQLite query to answer to the question: What are the account details with the largest value or with value having char '5' in it?:
```
SELECT MAX(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE "%5%"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_157826_1 (county VARCHAR, city_town VARCHAR)
Question: In which county is the city/town of Halden located?
[/INST]
Here is the SQLite query to answer to the question: In which county is the city/town of Halden located?:
```
SELECT county FROM table_157826_1 WHERE city_town = "Halden"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (accreditation_level VARCHAR, date VARCHAR)
Question: What is the accreditation level for the approved (awarded 05.12.12) date?
[/INST]
Here is the SQLite query to answer to the question: What is the accreditation level for the approved (awarded 05.12.12) date?:
```
SELECT accreditation_level FROM table_name_72 WHERE date = "approved (awarded 05.12.12)"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (year VARCHAR, laps VARCHAR, finish VARCHAR)
Question: In what year were laps less than 64 and the finish at 25?
[/INST]
Here is the SQLite query to answer to the question: In what year were laps less than 64 and the finish at 25?:
```
SELECT year FROM table_name_59 WHERE laps < 64 AND finish = "25"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2701625_1 (female_life_expectancy INTEGER, country VARCHAR)
Question: Name the most female life expectancy for djibouti
[/INST]
Here is the SQLite query to answer to the question: Name the most female life expectancy for djibouti:
```
SELECT MAX(female_life_expectancy) FROM table_2701625_1 WHERE country = "Djibouti"
``` |
[INST] 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, location VARCHAR)
Question: Which Name has a Location of ljubljana?
[/INST]
Here is the SQLite query to answer to the question: Which Name has a Location of ljubljana?:
```
SELECT name FROM table_name_32 WHERE location = "ljubljana"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (date VARCHAR, high_points VARCHAR, record VARCHAR)
Question: On what date did the Suns have high points with a record of 33–13?
[/INST]
Here is the SQLite query to answer to the question: On what date did the Suns have high points with a record of 33–13?:
```
SELECT date FROM table_name_8 WHERE high_points = "suns" AND record = "33–13"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE Ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (product_name VARCHAR, product_description VARCHAR, color_code VARCHAR)
Question: List the names, color descriptions and product descriptions of products with category "Herbs".
[/INST]
Here is the SQLite query to answer to the question: List the names, color descriptions and product descriptions of products with category "Herbs".:
```
SELECT T1.product_name, T2.color_description, T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = "Herbs"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (studio VARCHAR, director VARCHAR)
Question: What studio is director David Fincher from?
[/INST]
Here is the SQLite query to answer to the question: What studio is director David Fincher from?:
```
SELECT studio FROM table_name_95 WHERE director = "david fincher"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (attendance INTEGER, opponent VARCHAR)
Question: How much Attendance has an Opponent of oxford united?
[/INST]
Here is the SQLite query to answer to the question: How much Attendance has an Opponent of oxford united?:
```
SELECT SUM(attendance) FROM table_name_58 WHERE opponent = "oxford united"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (operator VARCHAR, region VARCHAR)
Question: What is the operator of the ensemble from Yorkshire?
[/INST]
Here is the SQLite query to answer to the question: What is the operator of the ensemble from Yorkshire?:
```
SELECT operator FROM table_name_99 WHERE region = "yorkshire"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (job_title_code VARCHAR, staff_id VARCHAR, date_assigned_to VARCHAR)
Question: What is the name and job title of the staff who was assigned the latest?
[/INST]
Here is the SQLite query to answer to the question: What is the name and job title of the staff who was assigned the latest?:
```
SELECT T1.staff_name, T2.job_title_code FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY T2.date_assigned_to DESC LIMIT 1
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (top_25 INTEGER, cuts_made VARCHAR, events VARCHAR, top_5 VARCHAR)
Question: What is the lowest Top-25 when events shows 12, the top-5 is 1, and less than 11 cuts?
[/INST]
Here is the SQLite query to answer to the question: What is the lowest Top-25 when events shows 12, the top-5 is 1, and less than 11 cuts?:
```
SELECT MIN(top_25) FROM table_name_63 WHERE events = 12 AND top_5 = 1 AND cuts_made < 11
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_23338693_1 (season VARCHAR, team VARCHAR)
Question: How many seasons have motopark team?
[/INST]
Here is the SQLite query to answer to the question: How many seasons have motopark team?:
```
SELECT COUNT(season) FROM table_23338693_1 WHERE team = "Motopark"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2850912_4 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
Question: Which junior team is associated with an NHL pick by the Buffalo Sabres?
[/INST]
Here is the SQLite query to answer to the question: Which junior team is associated with an NHL pick by the Buffalo Sabres?:
```
SELECT college_junior_club_team FROM table_2850912_4 WHERE nhl_team = "Buffalo Sabres"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_24501530_1 (age VARCHAR, candidate VARCHAR)
Question: How many ages for player Amy Cato?
[/INST]
Here is the SQLite query to answer to the question: How many ages for player Amy Cato?:
```
SELECT COUNT(age) FROM table_24501530_1 WHERE candidate = "Amy Cato"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (median_household_income VARCHAR, median_family_income VARCHAR)
Question: What is the Median household income associated with a median family income of $46,616?
[/INST]
Here is the SQLite query to answer to the question: What is the Median household income associated with a median family income of $46,616?:
```
SELECT median_household_income FROM table_name_56 WHERE median_family_income = "$46,616"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (college VARCHAR, position VARCHAR, school VARCHAR)
Question: What is the college for the player that went to ridge community high school and is defensive back?
[/INST]
Here is the SQLite query to answer to the question: What is the college for the player that went to ridge community high school and is defensive back?:
```
SELECT college FROM table_name_19 WHERE position = "defensive back" AND school = "ridge community high school"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (mascot VARCHAR, school VARCHAR)
Question: What is the mascot at Hamilton Community?
[/INST]
Here is the SQLite query to answer to the question: What is the mascot at Hamilton Community?:
```
SELECT mascot FROM table_name_62 WHERE school = "hamilton community"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (edition INTEGER, runner_up VARCHAR, year VARCHAR, third VARCHAR)
Question: What was the edition after 2003 when the Third was Tikveš and Sileks was the runner-up?
[/INST]
Here is the SQLite query to answer to the question: What was the edition after 2003 when the Third was Tikveš and Sileks was the runner-up?:
```
SELECT MIN(edition) FROM table_name_64 WHERE year > 2003 AND third = "tikveš" AND runner_up = "sileks"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (score VARCHAR, record VARCHAR)
Question: What was the score of the game when the record was 58–47?
[/INST]
Here is the SQLite query to answer to the question: What was the score of the game when the record was 58–47?:
```
SELECT score FROM table_name_12 WHERE record = "58–47"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_18461635_1 (captain VARCHAR, location VARCHAR)
Question: Who is the captain of the team in Southampton?
[/INST]
Here is the SQLite query to answer to the question: Who is the captain of the team in Southampton? :
```
SELECT captain FROM table_18461635_1 WHERE location = "Southampton"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (loss VARCHAR, date VARCHAR)
Question: Who did they lose to on May 20?
[/INST]
Here is the SQLite query to answer to the question: Who did they lose to on May 20?:
```
SELECT loss FROM table_name_68 WHERE date = "may 20"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1745843_8 (verb_meaning VARCHAR, part_3 VARCHAR)
Question: What is the verb meaning of the word with part 3 "sufun"?
[/INST]
Here is the SQLite query to answer to the question: What is the verb meaning of the word with part 3 "sufun"?:
```
SELECT verb_meaning FROM table_1745843_8 WHERE part_3 = "sufun"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (round INTEGER, position VARCHAR)
Question: During which round was the final cornerback drafted for the New England Patriots in 2005?
[/INST]
Here is the SQLite query to answer to the question: During which round was the final cornerback drafted for the New England Patriots in 2005?:
```
SELECT MAX(round) FROM table_name_7 WHERE position = "cornerback"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (nationality VARCHAR, lane VARCHAR, time VARCHAR)
Question: Which Nationality has a Lane of 5, and a Time of 7:08.04?
[/INST]
Here is the SQLite query to answer to the question: Which Nationality has a Lane of 5, and a Time of 7:08.04?:
```
SELECT nationality FROM table_name_36 WHERE lane = 5 AND time = "7:08.04"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (player VARCHAR, position VARCHAR, club_province VARCHAR, caps VARCHAR)
Question: Which player has a Club/province of direito, less than 21 caps, and a Position of lock?
[/INST]
Here is the SQLite query to answer to the question: Which player has a Club/province of direito, less than 21 caps, and a Position of lock?:
```
SELECT player FROM table_name_99 WHERE club_province = "direito" AND caps < 21 AND position = "lock"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (player VARCHAR, place VARCHAR, country VARCHAR)
Question: What United States player holds the place of t8?`
[/INST]
Here is the SQLite query to answer to the question: What United States player holds the place of t8?`:
```
SELECT player FROM table_name_57 WHERE place = "t8" AND country = "united states"
``` |
[INST] 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, opponent VARCHAR)
Question: What is the average round against opponent Klas Akesson?
[/INST]
Here is the SQLite query to answer to the question: What is the average round against opponent Klas Akesson?:
```
SELECT AVG(round) FROM table_name_18 WHERE opponent = "klas akesson"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (year INTEGER, player_name VARCHAR)
Question: How many years have a Player name of ronnie bull?
[/INST]
Here is the SQLite query to answer to the question: How many years have a Player name of ronnie bull?:
```
SELECT SUM(year) FROM table_name_75 WHERE player_name = "ronnie bull"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (time VARCHAR, name VARCHAR, lane VARCHAR, heat VARCHAR)
Question: What is the time for a lane less than 6, and a heat less than 4 for Joanne Malar?
[/INST]
Here is the SQLite query to answer to the question: What is the time for a lane less than 6, and a heat less than 4 for Joanne Malar?:
```
SELECT time FROM table_name_19 WHERE lane < 6 AND heat < 4 AND name = "joanne malar"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (opponent VARCHAR, location VARCHAR, record VARCHAR)
Question: Location of boston garden, and a Record of 58-23 involved what opponent?
[/INST]
Here is the SQLite query to answer to the question: Location of boston garden, and a Record of 58-23 involved what opponent?:
```
SELECT opponent FROM table_name_34 WHERE location = "boston garden" AND record = "58-23"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20849830_1 (date VARCHAR, record VARCHAR)
Question: What was the date of the game with the record of 2-1?
[/INST]
Here is the SQLite query to answer to the question: What was the date of the game with the record of 2-1?:
```
SELECT date FROM table_20849830_1 WHERE record = "2-1"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (studio_host VARCHAR, play_by_play VARCHAR, studio_analysts VARCHAR)
Question: Who is the studio host for the game that has Paul Sunderland as play by play commentator and Jack Haley as the Studio Analyst?
[/INST]
Here is the SQLite query to answer to the question: Who is the studio host for the game that has Paul Sunderland as play by play commentator and Jack Haley as the Studio Analyst?:
```
SELECT studio_host FROM table_name_19 WHERE play_by_play = "paul sunderland" AND studio_analysts = "jack haley"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (year_s__won VARCHAR, to_par VARCHAR, finish VARCHAR)
Question: What year (s) won was +2 the To par, and t22 the finish?
[/INST]
Here is the SQLite query to answer to the question: What year (s) won was +2 the To par, and t22 the finish?:
```
SELECT year_s__won FROM table_name_5 WHERE to_par = "+2" AND finish = "t22"
``` |