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_69 (torque VARCHAR, notes VARCHAR, engine VARCHAR)
Question: what is the torque when the notes are laredo, limited, overland and the engine is 5.7l hemi v8?
[/INST]
Here is the SQLite query to answer to the question: what is the torque when the notes are laredo, limited, overland and the engine is 5.7l hemi v8?:
```
SELECT torque FROM table_name_69 WHERE notes = "laredo, limited, overland" AND engine = "5.7l hemi v8"
```
|
[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 (democratic_seat_plurality VARCHAR, state_ranked_in_partisan_order VARCHAR)
Question: What is the democratic seat plurality with partisan order of New Hampshire?
[/INST]
Here is the SQLite query to answer to the question: What is the democratic seat plurality with partisan order of New Hampshire?:
```
SELECT democratic_seat_plurality FROM table_name_91 WHERE state_ranked_in_partisan_order = "new hampshire"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE festival_detail (Festival_Name VARCHAR, YEAR VARCHAR)
Question: What are the names of festivals held in year 2007?
[/INST]
Here is the SQLite query to answer to the question: What are the names of festivals held in year 2007?:
```
SELECT Festival_Name FROM festival_detail WHERE YEAR = 2007
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_23829490_1 (media_type VARCHAR, genre VARCHAR)
Question: What is every media type for the World genre?
[/INST]
Here is the SQLite query to answer to the question: What is every media type for the World genre?:
```
SELECT media_type FROM table_23829490_1 WHERE genre = "World"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE employees (department_id VARCHAR, salary INTEGER)
Question: return the smallest salary for every departments.
[/INST]
Here is the SQLite query to answer to the question: return the smallest salary for every departments.:
```
SELECT MIN(salary), department_id FROM employees GROUP BY department_id
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (total INTEGER, rank VARCHAR, silver VARCHAR)
Question: What is the smallest total number of medals for rank 11 and more than 0 silver medals?
[/INST]
Here is the SQLite query to answer to the question: What is the smallest total number of medals for rank 11 and more than 0 silver medals?:
```
SELECT MIN(total) FROM table_name_25 WHERE rank = "11" AND silver > 0
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1289860_2 (result VARCHAR, background VARCHAR)
Question: How many people had a prosecutor background?
[/INST]
Here is the SQLite query to answer to the question: How many people had a prosecutor background?:
```
SELECT COUNT(result) FROM table_1289860_2 WHERE background = "Prosecutor"
```
|
[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 (lived_when___mya__ VARCHAR, discovery___publication_of_name VARCHAR)
Question: Tell me lived for name of 1994/2003
[/INST]
Here is the SQLite query to answer to the question: Tell me lived for name of 1994/2003:
```
SELECT lived_when___mya__ FROM table_name_99 WHERE discovery___publication_of_name = "1994/2003"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE Professionals (professional_id VARCHAR, cell_number VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR)
Question: Which professionals have done at least two types of treatments? List the professional id and cell phone.
[/INST]
Here is the SQLite query to answer to the question: Which professionals have done at least two types of treatments? List the professional id and cell phone.:
```
SELECT T1.professional_id, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 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_11 (viewers__millions_ INTEGER, rating VARCHAR, weekly_rank VARCHAR, share VARCHAR)
Question: Which rating larger than 5 have the lowest amount of views in #3 rank with a share of 9?
[/INST]
Here is the SQLite query to answer to the question: Which rating larger than 5 have the lowest amount of views in #3 rank with a share of 9?:
```
SELECT MIN(viewers__millions_) FROM table_name_11 WHERE weekly_rank = "#3" AND share = 9 AND rating > 5
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_191105_3 (subject VARCHAR, performed_by VARCHAR)
Question: WHen jaime aff and christine langner are the performers what is the subject?
[/INST]
Here is the SQLite query to answer to the question: WHen jaime aff and christine langner are the performers what is the subject?:
```
SELECT subject FROM table_191105_3 WHERE performed_by = "Jaime Aff and Christine Langner"
```
|
[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 (ends INTEGER, name VARCHAR, since VARCHAR)
Question: What is the sum of Ends with a Name of abidal, and has a Since larger than 2007?
[/INST]
Here is the SQLite query to answer to the question: What is the sum of Ends with a Name of abidal, and has a Since larger than 2007?:
```
SELECT SUM(ends) FROM table_name_58 WHERE name = "abidal" AND since > 2007
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_11622840_1 (location VARCHAR, score VARCHAR)
Question: How many locations logged a score of 206 (-7)?
[/INST]
Here is the SQLite query to answer to the question: How many locations logged a score of 206 (-7)?:
```
SELECT COUNT(location) FROM table_11622840_1 WHERE score = "206 (-7)"
```
|
[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 (high_assists VARCHAR, record VARCHAR)
Question: Who had the highest assists when the nuggets record was 2-4?
[/INST]
Here is the SQLite query to answer to the question: Who had the highest assists when the nuggets record was 2-4?:
```
SELECT high_assists FROM table_name_64 WHERE record = "2-4"
```
|
[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 (years_for_grizzlies VARCHAR, position VARCHAR, school_club_team VARCHAR)
Question: What are the years when the grizzlies had a point guard who attended the school/club Florida?
[/INST]
Here is the SQLite query to answer to the question: What are the years when the grizzlies had a point guard who attended the school/club Florida?:
```
SELECT years_for_grizzlies FROM table_name_56 WHERE position = "point guard" AND school_club_team = "florida"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (driver VARCHAR, grid VARCHAR)
Question: Which driver had a grid of 22?
[/INST]
Here is the SQLite query to answer to the question: Which driver had a grid of 22?:
```
SELECT driver FROM table_name_43 WHERE grid = "22"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (team_2 VARCHAR, team_1 VARCHAR)
Question: What team 2 has lokomotiva as team 1?
[/INST]
Here is the SQLite query to answer to the question: What team 2 has lokomotiva as team 1?:
```
SELECT team_2 FROM table_name_16 WHERE team_1 = "lokomotiva"
```
|
[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 (label VARCHAR, format VARCHAR, region VARCHAR)
Question: What is the label for the CD format in North America?
[/INST]
Here is the SQLite query to answer to the question: What is the label for the CD format in North America?:
```
SELECT label FROM table_name_91 WHERE format = "cd" AND region = "north america"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (finish VARCHAR, player VARCHAR)
Question: Name the finish with player lou graham
[/INST]
Here is the SQLite query to answer to the question: Name the finish with player lou graham:
```
SELECT finish FROM table_name_26 WHERE player = "lou graham"
```
|
[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 (capacity VARCHAR, torque__nm__rpm VARCHAR)
Question: Name the capacity for the torque of n·m (lb·ft) @4150
[/INST]
Here is the SQLite query to answer to the question: Name the capacity for the torque of n·m (lb·ft) @4150:
```
SELECT capacity FROM table_name_90 WHERE torque__nm__rpm = "n·m (lb·ft) @4150"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (losses VARCHAR, byes INTEGER)
Question: What is the total number of losses for teams with more than 0 byes?
[/INST]
Here is the SQLite query to answer to the question: What is the total number of losses for teams with more than 0 byes?:
```
SELECT COUNT(losses) FROM table_name_43 WHERE byes > 0
```
|
[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 (delivered_as VARCHAR, locomotive VARCHAR)
Question: What is the Delivered as name of the H3 Locomotive?
[/INST]
Here is the SQLite query to answer to the question: What is the Delivered as name of the H3 Locomotive?:
```
SELECT delivered_as FROM table_name_64 WHERE locomotive = "h3"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (losses INTEGER, appearances VARCHAR, wins VARCHAR, rank VARCHAR)
Question: Tell me the sum of losses for wins less than 2 and rank of 10 with appearances larger than 3
[/INST]
Here is the SQLite query to answer to the question: Tell me the sum of losses for wins less than 2 and rank of 10 with appearances larger than 3:
```
SELECT SUM(losses) FROM table_name_60 WHERE wins < 2 AND rank = 10 AND appearances > 3
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (points INTEGER, extra_points VARCHAR, field_goals VARCHAR)
Question: Who had a points average with 0 extra points and 0 field goals?
[/INST]
Here is the SQLite query to answer to the question: Who had a points average with 0 extra points and 0 field goals?:
```
SELECT AVG(points) FROM table_name_33 WHERE extra_points = 0 AND field_goals > 0
```
|
[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 (type VARCHAR, name VARCHAR)
Question: What is the film type for the movie Sanctuary?
[/INST]
Here is the SQLite query to answer to the question: What is the film type for the movie Sanctuary?:
```
SELECT type FROM table_name_35 WHERE name = "sanctuary"
```
|
[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 (format VARCHAR, catalog VARCHAR)
Question: What format was used for Mobil 1?
[/INST]
Here is the SQLite query to answer to the question: What format was used for Mobil 1?:
```
SELECT format FROM table_name_21 WHERE catalog = "mobil 1"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_14407512_9 (points VARCHAR)
Question: What is the 1st(m) score for the Person who had a total points of 272.7
[/INST]
Here is the SQLite query to answer to the question: What is the 1st(m) score for the Person who had a total points of 272.7:
```
SELECT 1 AS st__m_ FROM table_14407512_9 WHERE points = "272.7"
```
|
[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 (land_area__km²_ INTEGER, name VARCHAR, population_density__per_km²_ VARCHAR, population__2006_ VARCHAR)
Question: Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) larger than 785, and a Name of pinehouse?
[/INST]
Here is the SQLite query to answer to the question: Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) larger than 785, and a Name of pinehouse?:
```
SELECT MAX(land_area__km²_) FROM table_name_12 WHERE population_density__per_km²_ > 112.6 AND population__2006_ > 785 AND name = "pinehouse"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2140071_13 (episode VARCHAR, coach VARCHAR)
Question: What is the summary for the episode with a coach named Rebecca Star?
[/INST]
Here is the SQLite query to answer to the question: What is the summary for the episode with a coach named Rebecca Star?:
```
SELECT episode AS Summary FROM table_2140071_13 WHERE coach = "Rebecca Star"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1301373_7 (Vice VARCHAR, captain VARCHAR, club VARCHAR)
Question: Name the vice captain for melbourne victory
[/INST]
Here is the SQLite query to answer to the question: Name the vice captain for melbourne victory:
```
SELECT Vice - captain FROM table_1301373_7 WHERE club = "Melbourne Victory"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_17650725_1 (internal_transfers INTEGER)
Question: Name the least internal transfers
[/INST]
Here is the SQLite query to answer to the question: Name the least internal transfers:
```
SELECT MIN(internal_transfers) FROM table_17650725_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_82 (character_name VARCHAR, voice_actor__japanese_ VARCHAR)
Question: what character did naoko watanabe play
[/INST]
Here is the SQLite query to answer to the question: what character did naoko watanabe play:
```
SELECT character_name FROM table_name_82 WHERE voice_actor__japanese_ = "naoko watanabe"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (finish VARCHAR, wins VARCHAR)
Question: What is the Finish of the Reno Bighorns Wins?
[/INST]
Here is the SQLite query to answer to the question: What is the Finish of the Reno Bighorns Wins?:
```
SELECT finish FROM table_name_41 WHERE wins = "reno bighorns"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (lost VARCHAR, points VARCHAR)
Question: What is the Lost when the points were dissolved?
[/INST]
Here is the SQLite query to answer to the question: What is the Lost when the points were dissolved?:
```
SELECT lost FROM table_name_61 WHERE points = "dissolved"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (ground VARCHAR, competition VARCHAR, time VARCHAR)
Question: What is the ground of the tim trophy competition, which had a time of 23:00 cet?
[/INST]
Here is the SQLite query to answer to the question: What is the ground of the tim trophy competition, which had a time of 23:00 cet?:
```
SELECT ground FROM table_name_83 WHERE competition = "tim trophy" AND time = "23:00 cet"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (lambda_functions VARCHAR, eval_function VARCHAR, functions VARCHAR, pseudorandom_number_generation VARCHAR, s_default_argument VARCHAR)
Question: What is the lambda function without a pseudorandom number generation, no s default argument, no functions, and no eval function?
[/INST]
Here is the SQLite query to answer to the question: What is the lambda function without a pseudorandom number generation, no s default argument, no functions, and no eval function?:
```
SELECT lambda_functions FROM table_name_10 WHERE pseudorandom_number_generation = "no" AND s_default_argument = "no" AND functions = "no" AND eval_function = "no"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (venue VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR)
Question: Is there a Venus that's a year later than 2002, with an Event of 4x400m relay in 4th Position?
[/INST]
Here is the SQLite query to answer to the question: Is there a Venus that's a year later than 2002, with an Event of 4x400m relay in 4th Position?:
```
SELECT venue FROM table_name_82 WHERE event = "4x400m relay" AND year > 2002 AND position = "4th"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16225511_2 (wins INTEGER, school VARCHAR)
Question: What's the largest amount of wins Texas has?
[/INST]
Here is the SQLite query to answer to the question: What's the largest amount of wins Texas has? :
```
SELECT MAX(wins) FROM table_16225511_2 WHERE school = "Texas"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (manchu___möllendorff__ VARCHAR, wu_xing_correlations VARCHAR, wuu_wuupin VARCHAR)
Question: What's Manchu (Möllendorff) with the Wi Xing Correltation of 南 South, along with Wuu Wuupin of ting44?
[/INST]
Here is the SQLite query to answer to the question: What's Manchu (Möllendorff) with the Wi Xing Correltation of 南 South, along with Wuu Wuupin of ting44?:
```
SELECT manchu___möllendorff__ FROM table_name_48 WHERE wu_xing_correlations = "南 south" AND wuu_wuupin = "ting44"
```
|
[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 (trans_1 VARCHAR, total_time VARCHAR)
Question: How long did the trans 1 take when 2:00:40.20 is the total time?
[/INST]
Here is the SQLite query to answer to the question: How long did the trans 1 take when 2:00:40.20 is the total time?:
```
SELECT trans_1 FROM table_name_28 WHERE total_time = "2:00:40.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_81 (date VARCHAR, away_team VARCHAR)
Question: On what date the footscray's away game?
[/INST]
Here is the SQLite query to answer to the question: On what date the footscray's away game?:
```
SELECT date FROM table_name_81 WHERE away_team = "footscray"
```
|
[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 (council VARCHAR)
Question: What's the 2003 result for the falkirk council?
[/INST]
Here is the SQLite query to answer to the question: What's the 2003 result for the falkirk council?:
```
SELECT 2003 AS _result FROM table_name_97 WHERE council = "falkirk"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE district (district_id VARCHAR, district_name VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR); CREATE TABLE store (store_name VARCHAR, store_id VARCHAR)
Question: Find the names of all stores in Khanewal District.
[/INST]
Here is the SQLite query to answer to the question: Find the names of all stores in Khanewal District.:
```
SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_name = "Khanewal District"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (points VARCHAR, tries VARCHAR, appearance VARCHAR)
Question: How many times is tries 0 and appearance less than 0?
[/INST]
Here is the SQLite query to answer to the question: How many times is tries 0 and appearance less than 0?:
```
SELECT COUNT(points) FROM table_name_51 WHERE tries = 0 AND appearance < 0
```
|
[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 (film VARCHAR, rank VARCHAR, director_s_ VARCHAR)
Question: Which film, directed by Dana Dorian, was nominated?
[/INST]
Here is the SQLite query to answer to the question: Which film, directed by Dana Dorian, was nominated?:
```
SELECT film FROM table_name_40 WHERE rank = "nominated" AND director_s_ = "dana dorian"
```
|
[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 (nation VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
Question: Which nation has a Bronze and Silver smaller than 1 and a Gold larger than 1?
[/INST]
Here is the SQLite query to answer to the question: Which nation has a Bronze and Silver smaller than 1 and a Gold larger than 1?:
```
SELECT nation FROM table_name_87 WHERE bronze < 1 AND silver < 1 AND gold > 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_98 (round INTEGER, nominees VARCHAR)
Question: what is the earliest round for nominee david mundy?
[/INST]
Here is the SQLite query to answer to the question: what is the earliest round for nominee david mundy?:
```
SELECT MIN(round) FROM table_name_98 WHERE nominees = "david mundy"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1156428_2 (worcs_f_c_matches VARCHAR, name_of_ground VARCHAR)
Question: There were 68 worcs f-c matches played on Chester Road North Ground.
[/INST]
Here is the SQLite query to answer to the question: There were 68 worcs f-c matches played on Chester Road North Ground.:
```
SELECT worcs_f_c_matches FROM table_1156428_2 WHERE name_of_ground = "Chester Road North Ground"
```
|
[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 (joined VARCHAR, founded VARCHAR, current_conference VARCHAR)
Question: What joined that was founded prior to year 1856 and whose current conference is the Big South (NCAA Division I)?
[/INST]
Here is the SQLite query to answer to the question: What joined that was founded prior to year 1856 and whose current conference is the Big South (NCAA Division I)?:
```
SELECT joined FROM table_name_2 WHERE founded < 1856 AND current_conference = "big south (ncaa division i)"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR, enzyme_id VARCHAR); CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE enzyme (id VARCHAR, product VARCHAR)
Question: Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.
[/INST]
Here is the SQLite query to answer to the question: Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.:
```
SELECT name, trade_name FROM medicine EXCEPT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX'
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (game INTEGER, date VARCHAR)
Question: Which game was played on march 2?
[/INST]
Here is the SQLite query to answer to the question: Which game was played on march 2?:
```
SELECT AVG(game) FROM table_name_4 WHERE date = "march 2"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15162479_8 (eviction_result VARCHAR, eviction_no VARCHAR, vote_to_save VARCHAR)
Question: How many eviction results occurred with a eviction no. 12 and a vote to save of 2.76%?
[/INST]
Here is the SQLite query to answer to the question: How many eviction results occurred with a eviction no. 12 and a vote to save of 2.76%?:
```
SELECT COUNT(eviction_result) FROM table_15162479_8 WHERE eviction_no = 12 AND vote_to_save = "2.76%"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_27529608_21 (age_s_ VARCHAR, act VARCHAR)
Question: What is the age of the act who is a rapper?
[/INST]
Here is the SQLite query to answer to the question: What is the age of the act who is a rapper?:
```
SELECT age_s_ FROM table_27529608_21 WHERE act = "Rapper"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (longitude VARCHAR, ansi_code VARCHAR, water__sqmi_ VARCHAR)
Question: What;s the total of Longitude with an ANSI code of 1036573 and has Water (sqmi) that is smaller than 0.404?
[/INST]
Here is the SQLite query to answer to the question: What;s the total of Longitude with an ANSI code of 1036573 and has Water (sqmi) that is smaller than 0.404?:
```
SELECT COUNT(longitude) FROM table_name_1 WHERE ansi_code = 1036573 AND water__sqmi_ < 0.404
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12441518_1 (recurring_cast_seasons VARCHAR, character VARCHAR)
Question: What seasons does Nick Lucas appear in?
[/INST]
Here is the SQLite query to answer to the question: What seasons does Nick Lucas appear in?:
```
SELECT recurring_cast_seasons FROM table_12441518_1 WHERE character = "Nick Lucas"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (total INTEGER, bronze VARCHAR, silver VARCHAR)
Question: Which Total has a Bronze of 5, and a Silver smaller than 1?
[/INST]
Here is the SQLite query to answer to the question: Which Total has a Bronze of 5, and a Silver smaller than 1?:
```
SELECT MIN(total) FROM table_name_37 WHERE bronze = 5 AND silver < 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_78 (height_in_ft VARCHAR, years_for_rockets VARCHAR)
Question: What is the Height for Years for Rockets of 2005-06?
[/INST]
Here is the SQLite query to answer to the question: What is the Height for Years for Rockets of 2005-06?:
```
SELECT height_in_ft FROM table_name_78 WHERE years_for_rockets = "2005-06"
```
|
[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 (nationality VARCHAR, position VARCHAR, pick__number VARCHAR)
Question: What Nationality has a Position of right wing, with a #20 pick?
[/INST]
Here is the SQLite query to answer to the question: What Nationality has a Position of right wing, with a #20 pick?:
```
SELECT nationality FROM table_name_79 WHERE position = "right wing" AND pick__number = "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_45 (team VARCHAR, year VARCHAR)
Question: Which Team has a Year of 2000?
[/INST]
Here is the SQLite query to answer to the question: Which Team has a Year of 2000?:
```
SELECT team FROM table_name_45 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_50 (lap_length VARCHAR, category VARCHAR)
Question: What is the Lap Length of the race with a Grand Prix Fia Category?
[/INST]
Here is the SQLite query to answer to the question: What is the Lap Length of the race with a Grand Prix Fia Category?:
```
SELECT lap_length FROM table_name_50 WHERE category = "grand prix fia"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (date VARCHAR, away_team VARCHAR)
Question: On what date was Richmond hosted as the away team?
[/INST]
Here is the SQLite query to answer to the question: On what date was Richmond hosted as the away team?:
```
SELECT date FROM table_name_50 WHERE away_team = "richmond"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_27091128_2 (team VARCHAR, replaced_by VARCHAR)
Question: What team's manager was replaced by Ercan Ertemçöz?
[/INST]
Here is the SQLite query to answer to the question: What team's manager was replaced by Ercan Ertemçöz?:
```
SELECT team FROM table_27091128_2 WHERE replaced_by = "Ercan Ertemçöz"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_24384861_1 (video_out VARCHAR, version VARCHAR)
Question: how many video out connections does the sounddock portable have?
[/INST]
Here is the SQLite query to answer to the question: how many video out connections does the sounddock portable have?:
```
SELECT COUNT(video_out) FROM table_24384861_1 WHERE version = "SoundDock Portable"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2182562_2 (winnings VARCHAR, starts VARCHAR)
Question: How high was the amount of winnings (in $) in the year with 15 starts?
[/INST]
Here is the SQLite query to answer to the question: How high was the amount of winnings (in $) in the year with 15 starts?:
```
SELECT winnings FROM table_2182562_2 WHERE starts = 15
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (wins INTEGER, manufacturer VARCHAR, rank VARCHAR)
Question: Manufacturer of honda, and a Rank of 8 had what highest wins?
[/INST]
Here is the SQLite query to answer to the question: Manufacturer of honda, and a Rank of 8 had what highest wins?:
```
SELECT MAX(wins) FROM table_name_71 WHERE manufacturer = "honda" AND rank = 8
```
|
[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 (home VARCHAR, away VARCHAR)
Question: What is the Home with an Away that is toronto rebels?
[/INST]
Here is the SQLite query to answer to the question: What is the Home with an Away that is toronto rebels?:
```
SELECT home FROM table_name_94 WHERE away = "toronto rebels"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_11210576_4 (final_episode VARCHAR, character VARCHAR)
Question: what's the total number of final epbeingode count with character being rick stetler
[/INST]
Here is the SQLite query to answer to the question: what's the total number of final epbeingode count with character being rick stetler:
```
SELECT COUNT(final_episode) AS Count FROM table_11210576_4 WHERE character = "Rick Stetler"
```
|
[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 (lms_nos VARCHAR, date VARCHAR, no_built VARCHAR)
Question: In 1879-81 with number built 4, what is the LMS nos?
[/INST]
Here is the SQLite query to answer to the question: In 1879-81 with number built 4, what is the LMS nos?:
```
SELECT lms_nos FROM table_name_63 WHERE date = "1879-81" AND no_built = 4
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, department_id VARCHAR)
Question: display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara.
[/INST]
Here is the SQLite query to answer to the question: display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara.:
```
SELECT first_name, last_name, hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = "Clara")
```
|
[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 (pba_team VARCHAR, player VARCHAR)
Question: What is Richard Bachmann's PBA team?
[/INST]
Here is the SQLite query to answer to the question: What is Richard Bachmann's PBA team?:
```
SELECT pba_team FROM table_name_42 WHERE player = "richard bachmann"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_27902171_4 (high_assists VARCHAR, record VARCHAR)
Question: Who had the high assist total when the team was 0-1?
[/INST]
Here is the SQLite query to answer to the question: Who had the high assist total when the team was 0-1?:
```
SELECT high_assists FROM table_27902171_4 WHERE record = "0-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_10 (nationality VARCHAR, round VARCHAR, player VARCHAR)
Question: Can you tell me the Nationality that has the Round smaller than 5, and the Player of bruce affleck?
[/INST]
Here is the SQLite query to answer to the question: Can you tell me the Nationality that has the Round smaller than 5, and the Player of bruce affleck?:
```
SELECT nationality FROM table_name_10 WHERE round < 5 AND player = "bruce affleck"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1342359_5 (party VARCHAR, incumbent VARCHAR)
Question: what's the party with incumbent being william e. evans
[/INST]
Here is the SQLite query to answer to the question: what's the party with incumbent being william e. evans:
```
SELECT party FROM table_1342359_5 WHERE incumbent = "William E. Evans"
```
|
[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 (serial_format VARCHAR, design VARCHAR, serials_issued VARCHAR)
Question: What is the serial format for white on blue with a serial issued of ss-00-00 to zz-99-99?
[/INST]
Here is the SQLite query to answer to the question: What is the serial format for white on blue with a serial issued of ss-00-00 to zz-99-99?:
```
SELECT serial_format FROM table_name_72 WHERE design = "white on blue" AND serials_issued = "ss-00-00 to zz-99-99"
```
|
[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 (attendance INTEGER, score VARCHAR)
Question: How many people were in attendance for the game with a score of 98–111?
[/INST]
Here is the SQLite query to answer to the question: How many people were in attendance for the game with a score of 98–111?:
```
SELECT SUM(attendance) FROM table_name_12 WHERE score = "98–111"
```
|
[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 (chemical_class VARCHAR, example VARCHAR)
Question: Which chemical class uses the example Chloroethane (ethyl chloride)?
[/INST]
Here is the SQLite query to answer to the question: Which chemical class uses the example Chloroethane (ethyl chloride)?:
```
SELECT chemical_class FROM table_name_90 WHERE example = "chloroethane (ethyl chloride)"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (home VARCHAR, date VARCHAR)
Question: Who was home on November 26?
[/INST]
Here is the SQLite query to answer to the question: Who was home on November 26?:
```
SELECT home FROM table_name_73 WHERE date = "november 26"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (pre_season INTEGER, a_league VARCHAR, finals VARCHAR)
Question: Which Pre-Season has a A-League of 0 1, and a Finals larger than 0?
[/INST]
Here is the SQLite query to answer to the question: Which Pre-Season has a A-League of 0 1, and a Finals larger than 0?:
```
SELECT MIN(pre_season) FROM table_name_4 WHERE a_league = "0 1" AND finals > 0
```
|
[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 (model_number VARCHAR, voltage VARCHAR, frequency VARCHAR)
Question: What is Model Number, when Voltage is 2.0V, and when Frequency is 350 mhz?
[/INST]
Here is the SQLite query to answer to the question: What is Model Number, when Voltage is 2.0V, and when Frequency is 350 mhz?:
```
SELECT model_number FROM table_name_2 WHERE voltage = "2.0v" AND frequency = "350 mhz"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_17120964_5 (venue VARCHAR, date VARCHAR)
Question: Name the venue for 19th date
[/INST]
Here is the SQLite query to answer to the question: Name the venue for 19th date:
```
SELECT venue FROM table_17120964_5 WHERE date = "19th"
```
|
[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 (church_name VARCHAR, sub_parish__sokn_ VARCHAR)
Question: What is the church in the Sub-Parish of Fresvik called?
[/INST]
Here is the SQLite query to answer to the question: What is the church in the Sub-Parish of Fresvik called?:
```
SELECT church_name FROM table_name_94 WHERE sub_parish__sokn_ = "fresvik"
```
|
[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 (game VARCHAR, location VARCHAR)
Question: Which game number was played at Chicago Stadium?
[/INST]
Here is the SQLite query to answer to the question: Which game number was played at Chicago Stadium?:
```
SELECT game FROM table_name_63 WHERE location = "chicago stadium"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE Person (gender VARCHAR, age INTEGER)
Question: Find the number of people who is under 40 for each gender.
[/INST]
Here is the SQLite query to answer to the question: Find the number of people who is under 40 for each gender.:
```
SELECT COUNT(*), gender FROM Person WHERE age < 40 GROUP BY gender
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (notes VARCHAR, country VARCHAR)
Question: What is the notes for the rowers from denmark?
[/INST]
Here is the SQLite query to answer to the question: What is the notes for the rowers from denmark?:
```
SELECT notes FROM table_name_26 WHERE country = "denmark"
```
|
[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 (winner VARCHAR, series VARCHAR)
Question: Who was the winner for ASTC round 8?
[/INST]
Here is the SQLite query to answer to the question: Who was the winner for ASTC round 8?:
```
SELECT winner FROM table_name_63 WHERE series = "astc round 8"
```
|
[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 (position VARCHAR, height__cm_ VARCHAR, name VARCHAR)
Question: What position has a height (cm) greater than 180, and brian lawton as the name?
[/INST]
Here is the SQLite query to answer to the question: What position has a height (cm) greater than 180, and brian lawton as the name?:
```
SELECT position FROM table_name_68 WHERE height__cm_ > 180 AND name = "brian lawton"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (points VARCHAR, assists VARCHAR, rebounds VARCHAR)
Question: How many points were there when there were less than 16 rebounds and 5 assists?
[/INST]
Here is the SQLite query to answer to the question: How many points were there when there were less than 16 rebounds and 5 assists?:
```
SELECT COUNT(points) FROM table_name_83 WHERE assists = 5 AND rebounds < 16
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (date VARCHAR, attendance VARCHAR)
Question: What was the date of the game attended by 25,022?
[/INST]
Here is the SQLite query to answer to the question: What was the date of the game attended by 25,022?:
```
SELECT date FROM table_name_70 WHERE attendance = "25,022"
```
|
[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 (daytime VARCHAR, saturday VARCHAR, name VARCHAR)
Question: Name the Daytime which has Saturday of yes and a Name of exmouth?
[/INST]
Here is the SQLite query to answer to the question: Name the Daytime which has Saturday of yes and a Name of exmouth?:
```
SELECT daytime FROM table_name_5 WHERE saturday = "yes" AND name = "exmouth"
```
|
[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 (attendance INTEGER, visitor VARCHAR)
Question: For all games with los angeles as visitor, what is the highest attendance of all?
[/INST]
Here is the SQLite query to answer to the question: For all games with los angeles as visitor, what is the highest attendance of all?:
```
SELECT MAX(attendance) FROM table_name_12 WHERE visitor = "los angeles"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (pole_position VARCHAR, grand_prix VARCHAR)
Question: What is the Pole Position for the German Grand Prix
[/INST]
Here is the SQLite query to answer to the question: What is the Pole Position for the German Grand Prix:
```
SELECT pole_position FROM table_name_83 WHERE grand_prix = "german grand prix"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16439764_1 (time_to_ft__m__at_25°__seconds_ VARCHAR, shell__lb_ VARCHAR, max_height__ft_ VARCHAR)
Question: Where the height range is higher than 20000.0 and the shell weight is 12.5, what is the time to feet ratio at 25 degrees?
[/INST]
Here is the SQLite query to answer to the question: Where the height range is higher than 20000.0 and the shell weight is 12.5, what is the time to feet ratio at 25 degrees?:
```
SELECT time_to_ft__m__at_25°__seconds_ FROM table_16439764_1 WHERE shell__lb_ = "12.5" AND max_height__ft_ > 20000.0
```
|
[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 (collaboration VARCHAR, indication VARCHAR)
Question: What company collaborated with non-hodgkin lymphoma?
[/INST]
Here is the SQLite query to answer to the question: What company collaborated with non-hodgkin lymphoma?:
```
SELECT collaboration FROM table_name_5 WHERE indication = "non-hodgkin lymphoma"
```
|
[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 (power__kw_ VARCHAR, location VARCHAR)
Question: Which Power has Location in metro manila
[/INST]
Here is the SQLite query to answer to the question: Which Power has Location in metro manila:
```
SELECT power__kw_ FROM table_name_75 WHERE location = "metro manila"
```
|
[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 (nationality VARCHAR, school_country VARCHAR)
Question: Which nationality is associated with Temple?
[/INST]
Here is the SQLite query to answer to the question: Which nationality is associated with Temple?:
```
SELECT nationality FROM table_name_72 WHERE school_country = "temple"
```
|
[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 (Id VARCHAR)
Question: Which 2007 has a 2003 of 2r, and a 2004 of 1r?
[/INST]
Here is the SQLite query to answer to the question: Which 2007 has a 2003 of 2r, and a 2004 of 1r?:
```
SELECT 2007 FROM table_name_7 WHERE 2003 = "2r" AND 2004 = "1r"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_23982399_1 (challenger VARCHAR, overall_episode__number VARCHAR)
Question: Who was the challenger on Episode 5?
[/INST]
Here is the SQLite query to answer to the question: Who was the challenger on Episode 5?:
```
SELECT challenger FROM table_23982399_1 WHERE overall_episode__number = 5
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_24319661_3 (no_in_season VARCHAR, us_viewers__million_ VARCHAR)
Question: How many episodes in the season had 3.81 million US viewers?
[/INST]
Here is the SQLite query to answer to the question: How many episodes in the season had 3.81 million US viewers?:
```
SELECT COUNT(no_in_season) FROM table_24319661_3 WHERE us_viewers__million_ = "3.81"
```
|
[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 (investment_income VARCHAR, region VARCHAR)
Question: Region of eastern england has what investment income?
[/INST]
Here is the SQLite query to answer to the question: Region of eastern england has what investment income?:
```
SELECT investment_income FROM table_name_30 WHERE region = "eastern england"
```
|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (socket VARCHAR, sspec_number VARCHAR)
Question: What is the socket when the sSpec number is standard power?
[/INST]
Here is the SQLite query to answer to the question: What is the socket when the sSpec number is standard power?:
```
SELECT socket FROM table_name_96 WHERE sspec_number = "standard power"
```
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.