inputs stringlengths 400 1.34k |
|---|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many faculty lines are there in the university that conferred the most number of degrees in year 2002?
### Context:
CREATE TABLE campuses (id VARCHAR); CREATE TABLE faculty (faculty VARCHAR); CREATE TABLE degrees (Id VARCHAR)
### Response:
### Response:
SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How much silver does the rank have that has gold smaller than 4, and a total of 1 and a rank larger than 6?
### Context:
CREATE TABLE table_name_34 (silver INTEGER, rank VARCHAR, gold VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT SUM(silver) FROM table_name_34 WHERE gold < 4 AND total = 1 AND rank > 6</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Town has a Structural type of guyed mast and a Country of belgium?
### Context:
CREATE TABLE table_name_29 (town VARCHAR, structural_type VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT town FROM table_name_29 WHERE structural_type = "guyed mast" AND country = "belgium"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the largest region with a Code smaller than 66112, and a Name of l'île-dorval?
### Context:
CREATE TABLE table_name_17 (region INTEGER, code VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT MAX(region) FROM table_name_17 WHERE code < 66112 AND name = "l'île-dorval"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Player has United States as Nationality, forward as Position and a greater than 5 Round?
### Context:
CREATE TABLE table_name_7 (player VARCHAR, round VARCHAR, nationality VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_7 WHERE nationality = "united states" AND position = "forward" AND round > 5</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What player is pick #2?
### Context:
CREATE TABLE table_10960039_1 (player VARCHAR, pick__number VARCHAR)
### Response:
### Response:
SELECT player FROM table_10960039_1 WHERE pick__number = 2</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the player associated with Ole Miss in years after 2008 with a Mississippi St. name of Eric Moulds?
### Context:
CREATE TABLE table_name_90 (ole_miss VARCHAR, year VARCHAR, mississippi_st VARCHAR)
### Response:
### Response:
SELECT ole_miss FROM table_name_90 WHERE year > 2008 AND mississippi_st = "eric moulds"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the minimum total ATMs with new private sector banks as the bank type, and the on-site ATMs are greater than 1883?
### Context:
CREATE TABLE table_name_42 (total_atms INTEGER, bank_type VARCHAR, on_site_atms VARCHAR)
### Response:
### Response:
SELECT MIN(total_atms) FROM table_name_42 WHERE bank_type = "new private sector banks" AND on_site_atms > 1883</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the time of the driver with a finish position of 19?
### Context:
CREATE TABLE table_name_13 (time_retired VARCHAR, fin_pos VARCHAR)
### Response:
### Response:
SELECT time_retired FROM table_name_13 WHERE fin_pos = "19"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Event, when Viewers is 2.4 Million, and when Rating is 1.4?
### Context:
CREATE TABLE table_name_49 (event VARCHAR, viewers VARCHAR, rating VARCHAR)
### Response:
### Response:
SELECT event FROM table_name_49 WHERE viewers = "2.4 million" AND rating = "1.4"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total ticket expense of the visitors whose membership level is 1?
### Context:
CREATE TABLE visit (Total_spent INTEGER, visitor_id VARCHAR); CREATE TABLE visitor (id VARCHAR, Level_of_membership VARCHAR)
### Response:
### Response:
SELECT SUM(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id WHERE t1.Level_of_membership = 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
WHAT IS THE GRID OF HONDA, WITH 24 LAPS AND Time/Retired of +13.997?
### Context:
CREATE TABLE table_name_22 (grid VARCHAR, time_retired VARCHAR, manufacturer VARCHAR, laps VARCHAR)
### Response:
### Response:
SELECT grid FROM table_name_22 WHERE manufacturer = "honda" AND laps = "24" AND time_retired = "+13.997"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What titles were released in 2006?
### Context:
CREATE TABLE table_173475_1 (title VARCHAR, release VARCHAR)
### Response:
### Response:
SELECT title FROM table_173475_1 WHERE release = 2006</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Country that has Richard Buck Lane higher than 3?
### Context:
CREATE TABLE table_name_99 (country VARCHAR, lane VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_99 WHERE lane > 3 AND name = "richard buck"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What year was number 7 built?
### Context:
CREATE TABLE table_1015421_1 (year_built VARCHAR, no_built VARCHAR)
### Response:
### Response:
SELECT year_built FROM table_1015421_1 WHERE no_built = 7</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the score of the game against away team queens park rangers on 23 january 1982?
### Context:
CREATE TABLE table_name_63 (score VARCHAR, date VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_63 WHERE date = "23 january 1982" AND away_team = "queens park rangers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which general election had a pq majority and a 44.75% of the popular vote?
### Context:
CREATE TABLE table_106367_2 (general_election VARCHAR, result VARCHAR, _percentage_of_popular_vote VARCHAR)
### Response:
### Response:
SELECT general_election FROM table_106367_2 WHERE result = "PQ majority" AND _percentage_of_popular_vote = "44.75%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total number of losses where the byes were greater than 0?
### Context:
CREATE TABLE table_name_36 (losses VARCHAR, byes INTEGER)
### Response:
### Response:
SELECT COUNT(losses) FROM table_name_36 WHERE byes > 0</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the name of the anti-ship missile that had a turbojet propulsion that was launched by a surface, sub after 1985?
### Context:
CREATE TABLE table_name_96 (name VARCHAR, launched_by VARCHAR, propulsion VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_96 WHERE propulsion = "turbojet" AND year > 1985 AND launched_by = "surface, sub"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total number of Division(s), when Team is Chongqing Lifan, and when Apps is greater than 9?
### Context:
CREATE TABLE table_name_7 (division VARCHAR, team VARCHAR, apps VARCHAR)
### Response:
### Response:
SELECT COUNT(division) FROM table_name_7 WHERE team = "chongqing lifan" AND apps > 9</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
List first name and last name of customers lived in city Lockmanfurt.
### Context:
CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, customer_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR)
### Response:
### Response:
SELECT T1.first_name, T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = "Lockmanfurt"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which region has a regional page # of 1-3, 5-7, 9-11, 13-15?
### Context:
CREATE TABLE table_287659_2 (region_name VARCHAR, regional_page__number VARCHAR)
### Response:
### Response:
SELECT region_name FROM table_287659_2 WHERE regional_page__number = "1-3, 5-7, 9-11, 13-15"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the H.S. Asst. principal with a Glendale principal Joyce Brace during 2002-2003?
### Context:
CREATE TABLE table_name_47 (h_s_asst_principal VARCHAR, glendale_principal VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT h_s_asst_principal FROM table_name_47 WHERE glendale_principal = "joyce brace" AND year = "2002-2003"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the grid when the time/retired is oil pressure and the laps are more than 50?
### Context:
CREATE TABLE table_name_15 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
### Response:
### Response:
SELECT AVG(grid) FROM table_name_15 WHERE time_retired = "oil pressure" AND laps > 50</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the year for the United Arab Emirates?
### Context:
CREATE TABLE table_name_19 (year VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT COUNT(year) FROM table_name_19 WHERE country = "united arab emirates"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many exhibition are there in year 2005 or after?
### Context:
CREATE TABLE exhibition (YEAR VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM exhibition WHERE YEAR >= 2005</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the year of expected completion when the capacity is 22,500?
### Context:
CREATE TABLE table_name_15 (expected_completion VARCHAR, capacity VARCHAR)
### Response:
### Response:
SELECT expected_completion FROM table_name_15 WHERE capacity = "22,500"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many caps have a Position of prop, and a Player of rui cordeiro?
### Context:
CREATE TABLE table_name_6 (caps VARCHAR, position VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT COUNT(caps) FROM table_name_6 WHERE position = "prop" AND player = "rui cordeiro"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What team has a score of w 110–87 (ot)?
### Context:
CREATE TABLE table_27734577_8 (team VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT team FROM table_27734577_8 WHERE score = "W 110–87 (OT)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many courses are located in carmel, indiana?
### Context:
CREATE TABLE table_275162_1 (course VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT COUNT(course) FROM table_275162_1 WHERE location = "Carmel, Indiana"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the days held the champion with a reign larger than 3 and less than 1 defense has?
### Context:
CREATE TABLE table_name_1 (days_held VARCHAR, reign VARCHAR, defenses VARCHAR)
### Response:
### Response:
SELECT days_held FROM table_name_1 WHERE reign > 3 AND defenses < 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the runner-up in 1989?
### Context:
CREATE TABLE table_name_32 (runner_up VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT runner_up FROM table_name_32 WHERE year = 1989</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which nation is Danilo di Luca from?
### Context:
CREATE TABLE table_name_7 (nation VARCHAR, cyclist VARCHAR)
### Response:
### Response:
SELECT nation FROM table_name_7 WHERE cyclist = "danilo di luca"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the least join date
### Context:
CREATE TABLE table_26466528_1 (join_date INTEGER)
### Response:
### Response:
SELECT MIN(join_date) FROM table_26466528_1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Where Date is october 11, and game greater than 4 what is the lowest attendance?
### Context:
CREATE TABLE table_name_34 (attendance INTEGER, date VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT MIN(attendance) FROM table_name_34 WHERE date = "october 11" AND game > 4</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What venue has an attendance of 30824 at Essendon in 1984?
### Context:
CREATE TABLE table_1139835_9 (venue VARCHAR, premier VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT venue FROM table_1139835_9 WHERE premier = "Essendon" AND attendance = 30824</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the id of the product that is booked for 3 times?
### Context:
CREATE TABLE products_booked (product_id VARCHAR)
### Response:
### Response:
SELECT product_id FROM products_booked GROUP BY product_id HAVING COUNT(*) = 3</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total against on 15/10/1999?
### Context:
CREATE TABLE table_name_39 (against INTEGER, date VARCHAR)
### Response:
### Response:
SELECT SUM(against) FROM table_name_39 WHERE date = "15/10/1999"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who drove in grids more than 3 and exited in an accident?
### Context:
CREATE TABLE table_name_17 (driver VARCHAR, grid VARCHAR, time_retired VARCHAR)
### Response:
### Response:
SELECT driver FROM table_name_17 WHERE grid > 3 AND time_retired = "accident"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Release Date for Model Number c7 1.8?
### Context:
CREATE TABLE table_name_62 (release_date VARCHAR, model_number VARCHAR)
### Response:
### Response:
SELECT release_date FROM table_name_62 WHERE model_number = "c7 1.8"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What nation has 1 bronze and 3 silvers?
### Context:
CREATE TABLE table_name_9 (nation VARCHAR, bronze VARCHAR, silver VARCHAR)
### Response:
### Response:
SELECT nation FROM table_name_9 WHERE bronze = "1" AND silver = "3"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the position in 1997?
### Context:
CREATE TABLE table_name_35 (pos VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT pos FROM table_name_35 WHERE year = 1997</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many original air dates were there for the episode with production code 212?
### Context:
CREATE TABLE table_23937219_3 (original_air_date VARCHAR, prod_code VARCHAR)
### Response:
### Response:
SELECT COUNT(original_air_date) FROM table_23937219_3 WHERE prod_code = 212</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is 2004, when 2009 is "A"?
### Context:
CREATE TABLE table_name_28 (Id VARCHAR)
### Response:
### Response:
SELECT 2004 FROM table_name_28 WHERE 2009 = "a"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who ran under the Republican ticket when Frank H. Hiscock ran under the Progressive ticket?
### Context:
CREATE TABLE table_name_49 (republican_ticket VARCHAR, progressive_ticket VARCHAR)
### Response:
### Response:
SELECT republican_ticket FROM table_name_49 WHERE progressive_ticket = "frank h. hiscock"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Season has a Score of 3 – 3 aet , 4–3 pen
### Context:
CREATE TABLE table_name_31 (season VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT season FROM table_name_31 WHERE score = "3 – 3 aet , 4–3 pen"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the model number for the order part numbered tmrm75dam22gg?
### Context:
CREATE TABLE table_27277284_28 (model_number VARCHAR, order_part_number VARCHAR)
### Response:
### Response:
SELECT model_number FROM table_27277284_28 WHERE order_part_number = "TMRM75DAM22GG"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Year(s) won has a Total smaller than 276? Question 1
### Context:
CREATE TABLE table_name_71 (year_s__won VARCHAR, total INTEGER)
### Response:
### Response:
SELECT year_s__won FROM table_name_71 WHERE total < 276</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
where the land is 35.990 what is the number of the geo id
### Context:
CREATE TABLE table_18600760_19 (geo_id VARCHAR, land___sqmi__ VARCHAR)
### Response:
### Response:
SELECT geo_id FROM table_18600760_19 WHERE land___sqmi__ = "35.990"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When Estudiantes was team #2, what was their agg. value?
### Context:
CREATE TABLE table_name_28 (agg VARCHAR, team__number2 VARCHAR)
### Response:
### Response:
SELECT agg FROM table_name_28 WHERE team__number2 = "estudiantes"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What player is from Seton Hall University?
### Context:
CREATE TABLE table_name_24 (player VARCHAR, school VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_24 WHERE school = "seton hall university"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What college did delray brooks go to?
### Context:
CREATE TABLE table_name_23 (college VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT college FROM table_name_23 WHERE player = "delray brooks"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
I want the total number of gross tonnage when entered service was 1903
### Context:
CREATE TABLE table_name_51 (gross_tonnage VARCHAR, entered_service VARCHAR)
### Response:
### Response:
SELECT COUNT(gross_tonnage) FROM table_name_51 WHERE entered_service = "1903"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Count the Rank-Final which has a Year larger than 2008, and an Apparatus of balance beam, and a Rank-Qualifying larger than 4?
### Context:
CREATE TABLE table_name_68 (rank_final VARCHAR, rank_qualifying VARCHAR, year VARCHAR, apparatus VARCHAR)
### Response:
### Response:
SELECT COUNT(rank_final) FROM table_name_68 WHERE year > 2008 AND apparatus = "balance beam" AND rank_qualifying > 4</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score when Richmond was the opponent?
### Context:
CREATE TABLE table_name_45 (score VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_45 WHERE opponent = "richmond"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the first episode with a netflix episode code of s02e20?
### Context:
CREATE TABLE table_15187735_4 (episode INTEGER, netflix VARCHAR)
### Response:
### Response:
SELECT MIN(episode) FROM table_15187735_4 WHERE netflix = "S02E20"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the mountain classification of Mario Cipollini, who has a general classification of Pavel tonkov?
### Context:
CREATE TABLE table_name_60 (mountains_classification VARCHAR, winner VARCHAR, general_classification VARCHAR)
### Response:
### Response:
SELECT mountains_classification FROM table_name_60 WHERE winner = "mario cipollini" AND general_classification = "pavel tonkov"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many laps did BRM have with a grid of 11?
### Context:
CREATE TABLE table_name_33 (laps VARCHAR, constructor VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT COUNT(laps) FROM table_name_33 WHERE constructor = "brm" AND grid = 11</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When is the completed date of the destroyer with a pennant number h59?
### Context:
CREATE TABLE table_name_50 (completed VARCHAR, pennant_number VARCHAR)
### Response:
### Response:
SELECT completed FROM table_name_50 WHERE pennant_number = "h59"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is McMaster College's pick number?
### Context:
CREATE TABLE table_10960039_1 (pick__number INTEGER, college VARCHAR)
### Response:
### Response:
SELECT MIN(pick__number) FROM table_10960039_1 WHERE college = "McMaster"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which nationality has a round of 1, and F position from Louisville?
### Context:
CREATE TABLE table_name_15 (nationality VARCHAR, college VARCHAR, round VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_15 WHERE round = "1" AND position = "f" AND college = "louisville"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the home team's score when Geelong was the away team?
### Context:
CREATE TABLE table_name_1 (home_team VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_1 WHERE away_team = "geelong"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many peak positions were there on the weekly charts?
### Context:
CREATE TABLE table_23180638_1 (peak_position VARCHAR, oricon_albums_chart VARCHAR)
### Response:
### Response:
SELECT COUNT(peak_position) FROM table_23180638_1 WHERE oricon_albums_chart = "Weekly Charts"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the lowest Share, when Rating is greater than 1.3, and when Air Date is May 28, 2008?
### Context:
CREATE TABLE table_name_63 (share INTEGER, rating VARCHAR, air_date VARCHAR)
### Response:
### Response:
SELECT MIN(share) FROM table_name_63 WHERE rating > 1.3 AND air_date = "may 28, 2008"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who were the comptrollers of the parties associated with the delegates from district 1 or district 2?
### Context:
CREATE TABLE party (Comptroller VARCHAR, Party_ID VARCHAR); CREATE TABLE election (Party VARCHAR, District VARCHAR)
### Response:
### Response:
SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score of the game on 19/3/00?
### Context:
CREATE TABLE table_name_60 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_60 WHERE date = "19/3/00"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total number of points combined from the teams that played over 14 games?
### Context:
CREATE TABLE table_name_52 (points VARCHAR, played INTEGER)
### Response:
### Response:
SELECT COUNT(points) FROM table_name_52 WHERE played > 14</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Set 4, when Date is Jun 27, and when Set 3 is 17-25?
### Context:
CREATE TABLE table_name_64 (set_4 VARCHAR, date VARCHAR, set_3 VARCHAR)
### Response:
### Response:
SELECT set_4 FROM table_name_64 WHERE date = "jun 27" AND set_3 = "17-25"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What school/club team did the player who was drafted after round 13 with an overall rank of 384 play for?
### Context:
CREATE TABLE table_name_38 (school_club_team VARCHAR, round VARCHAR, overall VARCHAR)
### Response:
### Response:
SELECT school_club_team FROM table_name_38 WHERE round > 13 AND overall = 384</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the power when ch# is tv-26 and dyfj-tv?
### Context:
CREATE TABLE table_12379297_1 (power__kw_ VARCHAR, ch__number VARCHAR, callsign VARCHAR)
### Response:
### Response:
SELECT power__kw_ FROM table_12379297_1 WHERE ch__number = "TV-26" AND callsign = "DYFJ-TV"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What races have gp2 series, 0 F.L. and a 17th position?
### Context:
CREATE TABLE table_name_43 (races VARCHAR, position VARCHAR, series VARCHAR, fl VARCHAR)
### Response:
### Response:
SELECT races FROM table_name_43 WHERE series = "gp2 series" AND fl = "0" AND position = "17th"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many players had a best winning average of 20?
### Context:
CREATE TABLE table_27533947_1 (games_won VARCHAR, best_winning_average VARCHAR)
### Response:
### Response:
SELECT COUNT(games_won) FROM table_27533947_1 WHERE best_winning_average = "20"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Damani Ralph is associated with which lowest pick #?
### Context:
CREATE TABLE table_name_39 (pick__number INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MIN(pick__number) FROM table_name_39 WHERE player = "damani ralph"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many different counts of the votes for Bush are there in the county where he got 69.7% of the votes?
### Context:
CREATE TABLE table_2401326_1 (bush_number VARCHAR, bush_percentage VARCHAR)
### Response:
### Response:
SELECT COUNT(bush_number) FROM table_2401326_1 WHERE bush_percentage = "69.7%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When was the record 3-14-6?
### Context:
CREATE TABLE table_name_62 (date VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_62 WHERE record = "3-14-6"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the low point total after 2006 with an m16 chassis?
### Context:
CREATE TABLE table_name_59 (points INTEGER, chassis VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT MIN(points) FROM table_name_59 WHERE chassis = "m16" AND year > 2006</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many military or civilians were wounded in the conflict that had an unknown number of civilian and total deaths?
### Context:
CREATE TABLE table_name_39 (military_and_or_civilian_wounded VARCHAR, civilian_deaths VARCHAR, total_deaths__not_including_foreigners_ VARCHAR)
### Response:
### Response:
SELECT military_and_or_civilian_wounded FROM table_name_39 WHERE civilian_deaths = "unknown" AND total_deaths__not_including_foreigners_ = "unknown"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Original Broadway production has a Role of dr. victor von frankenstein?
### Context:
CREATE TABLE table_name_1 (original_broadway_production VARCHAR, role VARCHAR)
### Response:
### Response:
SELECT original_broadway_production FROM table_name_1 WHERE role = "dr. victor von frankenstein"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the date for Catalog Alca-9201?
### Context:
CREATE TABLE table_name_94 (date VARCHAR, catalog VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_94 WHERE catalog = "alca-9201"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who directed the show that had a TV broadcast of S07E04?
### Context:
CREATE TABLE table_16090262_1 (directed_by VARCHAR, tv_broadcast VARCHAR)
### Response:
### Response:
SELECT directed_by FROM table_16090262_1 WHERE tv_broadcast = "S07E04"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What season had Kanto Gakuin University as the winner, with an attendance of n/a, and a title of 37th?
### Context:
CREATE TABLE table_name_62 (season VARCHAR, title VARCHAR, winner VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT season FROM table_name_62 WHERE winner = "kanto gakuin university" AND attendance = "n/a" AND title = "37th"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Tyre when Jerry Hoyt was the pole position?
### Context:
CREATE TABLE table_name_22 (tyre VARCHAR, pole_position VARCHAR)
### Response:
### Response:
SELECT tyre FROM table_name_22 WHERE pole_position = "jerry hoyt"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Show the season, the player, and the name of the country that player belongs to.
### Context:
CREATE TABLE match_season (Season VARCHAR, Player VARCHAR, Country VARCHAR); CREATE TABLE country (Country_name VARCHAR, Country_id VARCHAR)
### Response:
### Response:
SELECT T2.Season, T2.Player, T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many episodes have the season number of 1?
### Context:
CREATE TABLE table_17152787_3 (series__number VARCHAR, season__number VARCHAR)
### Response:
### Response:
SELECT COUNT(series__number) FROM table_17152787_3 WHERE season__number = 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the total attendance of games against the New York Giants after week 13?
### Context:
CREATE TABLE table_name_51 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT COUNT(attendance) FROM table_name_51 WHERE week > 13 AND opponent = "new york giants"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many times is kenenisa bekele ( eth ) is marílson gomes dos santos ( bra )?
### Context:
CREATE TABLE table_24062944_2 (world_record VARCHAR, kenenisa_bekele___eth__ VARCHAR)
### Response:
### Response:
SELECT COUNT(world_record) FROM table_24062944_2 WHERE kenenisa_bekele___eth__ = "Marílson Gomes dos Santos ( BRA )"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is listed in notes for the athlete, lassi karonen?
### Context:
CREATE TABLE table_name_46 (notes VARCHAR, athlete VARCHAR)
### Response:
### Response:
SELECT notes FROM table_name_46 WHERE athlete = "lassi karonen"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
WHAT WAS THE AMOUNT OF CARBON DIOXIDE EMISSIONS IN 2006 IN THE COUNTRY WHOSE CO2 EMISSIONS (TONS PER PERSON) REACHED 1.4 IN 2OO7?
### Context:
CREATE TABLE table_11251601_2 (carbon_dioxide_emissions_per_year__10_6_tons___2006_ VARCHAR, carbon_dioxide_emissions_per_year__tons_per_person___2007_ VARCHAR)
### Response:
### Response:
SELECT carbon_dioxide_emissions_per_year__10_6_tons___2006_ FROM table_11251601_2 WHERE carbon_dioxide_emissions_per_year__tons_per_person___2007_ = "1.4"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the score when the scorers show match report?
### Context:
CREATE TABLE table_name_97 (score VARCHAR, scorers VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_97 WHERE scorers = "match report"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who's the shooter with 13 score points and 10 rank points?
### Context:
CREATE TABLE table_name_32 (shooter VARCHAR, score_points VARCHAR, rank_points VARCHAR)
### Response:
### Response:
SELECT shooter FROM table_name_32 WHERE score_points = "13" AND rank_points = "10"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the constructor in 1975?
### Context:
CREATE TABLE table_23548160_1 (constructor VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT constructor FROM table_23548160_1 WHERE year = 1975</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the most wins associated with under 4 events with 0 top-5s?
### Context:
CREATE TABLE table_name_38 (wins INTEGER, top_5 VARCHAR, events VARCHAR)
### Response:
### Response:
SELECT MAX(wins) FROM table_name_38 WHERE top_5 > 0 AND events < 4</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many benue houses have been founded?
### Context:
CREATE TABLE table_name_67 (founded VARCHAR, house_name VARCHAR)
### Response:
### Response:
SELECT COUNT(founded) FROM table_name_67 WHERE house_name = "benue"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Venue has Against smaller than 6?
### Context:
CREATE TABLE table_name_82 (venue VARCHAR, against INTEGER)
### Response:
### Response:
SELECT venue FROM table_name_82 WHERE against < 6</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the least silvers where there are 39 bronzes and the total is less than 120?
### Context:
CREATE TABLE table_name_55 (silver INTEGER, bronze VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT MIN(silver) FROM table_name_55 WHERE bronze = 39 AND total < 120</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the date of the circuit of nürburgring, which had Graham Hill as the winning driver?
### Context:
CREATE TABLE table_name_47 (date VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_47 WHERE winning_driver = "graham hill" AND circuit = "nürburgring"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Where did the games that had Wake Forest as Acc Team take place?
### Context:
CREATE TABLE table_29535057_4 (location VARCHAR, acc_team VARCHAR)
### Response:
### Response:
SELECT location FROM table_29535057_4 WHERE acc_team = "Wake Forest"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which home team has an Away team of fitzroy?
### Context:
CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_73 WHERE away_team = "fitzroy"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is the visitor on April 5?
### Context:
CREATE TABLE table_name_8 (visitor VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT visitor FROM table_name_8 WHERE date = "april 5"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the date of the game played at Victoria Park?
### Context:
CREATE TABLE table_name_80 (date VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_80 WHERE venue = "victoria park"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.