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:
Which class had a machine of RS125R, points over 113, and a rank of 4th?
### Context:
CREATE TABLE table_name_30 (class VARCHAR, rank VARCHAR, machine VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT class FROM table_name_30 WHERE machine = "rs125r" AND points > 113 AND rank = "4th"</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 Draw for match 10, and the team was skra warszawa?
### Context:
CREATE TABLE table_name_76 (draw VARCHAR, match VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT draw FROM table_name_76 WHERE match = "10" AND team = "skra warszawa"</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 week 5 when week 2 is 36.80, and week 4 is 39.75?
### Context:
CREATE TABLE table_name_96 (week_5 VARCHAR, week_2 VARCHAR, week_4 VARCHAR)
### Response:
### Response:
SELECT week_5 FROM table_name_96 WHERE week_2 = "36.80" AND week_4 = "39.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 was the population of Green County?
### Context:
CREATE TABLE table_name_15 (population INTEGER, county VARCHAR)
### Response:
### Response:
SELECT MIN(population) FROM table_name_15 WHERE county = "green"</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 away team that played richmond?
### Context:
CREATE TABLE table_name_27 (away_team VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT away_team AS score FROM table_name_27 WHERE home_team = "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:
How many main wins for France?
### Context:
CREATE TABLE table_name_63 (main_wins VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT main_wins FROM table_name_63 WHERE team = "france"</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 team whose driver Jeff Simmons?
### Context:
CREATE TABLE table_17319931_1 (team VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT team FROM table_17319931_1 WHERE driver = "Jeff Simmons"</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 Info has an Album of romeo?
### Context:
CREATE TABLE table_name_95 (info VARCHAR, album VARCHAR)
### Response:
### Response:
SELECT info FROM table_name_95 WHERE album = "romeo"</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 Lanes have a rank higher than 3 with a time of 2:08.11?
### Context:
CREATE TABLE table_name_72 (lane VARCHAR, time VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT COUNT(lane) FROM table_name_72 WHERE time = "2:08.11" AND rank > 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:
Who is the incumbent who was first elected before 2002 from the maryland 3 district?
### Context:
CREATE TABLE table_name_41 (incumbent VARCHAR, first_elected VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT incumbent FROM table_name_41 WHERE first_elected < 2002 AND district = "maryland 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:
How many type catagories are listed when the percentage of yes is 68.91%?
### Context:
CREATE TABLE table_256286_61 (type VARCHAR, _percentage_yes VARCHAR)
### Response:
### Response:
SELECT COUNT(type) FROM table_256286_61 WHERE _percentage_yes = "68.91%"</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 netflow version when vendor and type is pc and servers?
### Context:
CREATE TABLE table_1206114_2 (netflow_version VARCHAR, vendor_and_type VARCHAR)
### Response:
### Response:
SELECT netflow_version FROM table_1206114_2 WHERE vendor_and_type = "PC and Servers"</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 eliminated contestant has October 10, 2009 as the date premiered?
### Context:
CREATE TABLE table_name_25 (eliminated_contestant VARCHAR, date_premiered__2009_ VARCHAR)
### Response:
### Response:
SELECT eliminated_contestant FROM table_name_25 WHERE date_premiered__2009_ = "october 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:
Which rider has the time of +31.426?
### Context:
CREATE TABLE table_name_10 (rider VARCHAR, time_retired VARCHAR)
### Response:
### Response:
SELECT rider FROM table_name_10 WHERE time_retired = "+31.426"</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 sacks for the player with over 1 tackle, under 3 assisted tackles, and over 0 yards?
### Context:
CREATE TABLE table_name_46 (sack VARCHAR, yards VARCHAR, tackles VARCHAR, assisted VARCHAR)
### Response:
### Response:
SELECT COUNT(sack) FROM table_name_46 WHERE tackles > 1 AND assisted < 3 AND yards > 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 year had 32 moves?
### Context:
CREATE TABLE table_name_23 (year INTEGER, moves VARCHAR)
### Response:
### Response:
SELECT SUM(year) FROM table_name_23 WHERE moves = 32</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 2010 has an A 2006 & 2011?
### Context:
CREATE TABLE table_name_30 (Id VARCHAR)
### Response:
### Response:
SELECT 2010 FROM table_name_30 WHERE 2006 = "a" AND 2011 = "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:
What is the Date, when the Winner is Aaron Gustavson?
### Context:
CREATE TABLE table_name_79 (date VARCHAR, winner VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_79 WHERE winner = "aaron gustavson"</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:
Frequency MHz of 88.7 had what average erp w?
### Context:
CREATE TABLE table_name_50 (erp_w INTEGER, frequency_mhz VARCHAR)
### Response:
### Response:
SELECT AVG(erp_w) FROM table_name_50 WHERE frequency_mhz = 88.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:
Who is every high rebound when the team is Mount St. Mary's?
### Context:
CREATE TABLE table_29846807_4 (high_rebounds VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT high_rebounds FROM table_29846807_4 WHERE team = "Mount St. Mary's"</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:
For each station, return its longitude and the average duration of trips that started from the station.
### Context:
CREATE TABLE station (name VARCHAR, long VARCHAR, id VARCHAR); CREATE TABLE trip (duration INTEGER, start_station_id VARCHAR)
### Response:
### Response:
SELECT T1.name, T1.long, AVG(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id</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 station was sent on flight up and was launched on 23 July 1980 18:33:03?
### Context:
CREATE TABLE table_245800_2 (flight_up VARCHAR, launch_date VARCHAR)
### Response:
### Response:
SELECT flight_up FROM table_245800_2 WHERE launch_date = "23 July 1980 18:33:03"</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:
In less than 58 laps, what is the highest grid for Alexander Wurz?
### Context:
CREATE TABLE table_name_32 (grid INTEGER, driver VARCHAR, laps VARCHAR)
### Response:
### Response:
SELECT MAX(grid) FROM table_name_32 WHERE driver = "alexander wurz" AND laps < 58</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:
During what year was Representative Spencer Bachus first elected?
### Context:
CREATE TABLE table_1805191_2 (first_elected VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT COUNT(first_elected) FROM table_1805191_2 WHERE incumbent = "Spencer Bachus"</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 Tujunga is moderate, what is La Crescenta-Montrose?
### Context:
CREATE TABLE table_name_71 (la_crescenta__montrose VARCHAR, tujunga VARCHAR)
### Response:
### Response:
SELECT la_crescenta__montrose FROM table_name_71 WHERE tujunga = "moderate"</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 venue that away team footscray played at?
### Context:
CREATE TABLE table_name_91 (venue VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_91 WHERE away_team = "footscray"</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 teams had an average start of 12.9?
### Context:
CREATE TABLE table_2182562_2 (team_s_ VARCHAR, avg_start VARCHAR)
### Response:
### Response:
SELECT COUNT(team_s_) FROM table_2182562_2 WHERE avg_start = "12.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:
Which Blackpool is the highest one that has a Draw larger than 18?
### Context:
CREATE TABLE table_name_82 (blackpool INTEGER, draw INTEGER)
### Response:
### Response:
SELECT MAX(blackpool) FROM table_name_82 WHERE draw > 18</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 width feet in meeters for the truss with a source of nbi (2009)?
### Context:
CREATE TABLE table_name_63 (width_feet__m_ VARCHAR, source__year_ VARCHAR)
### Response:
### Response:
SELECT width_feet__m_ FROM table_name_63 WHERE source__year_ = "nbi (2009)"</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 David Backes' Offer Team?
### Context:
CREATE TABLE table_name_59 (offer_team VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT offer_team FROM table_name_59 WHERE player = "david backes"</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:
For what class is the laps 66?
### Context:
CREATE TABLE table_name_65 (class VARCHAR, laps VARCHAR)
### Response:
### Response:
SELECT class FROM table_name_65 WHERE laps = 66</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 decay for the sattelite with an id that is 1990-081c?
### Context:
CREATE TABLE table_2150068_1 (decay VARCHAR, nssdc_id VARCHAR)
### Response:
### Response:
SELECT decay FROM table_2150068_1 WHERE nssdc_id = "1990-081C"</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 series finale has the translation ოჰ ეს ცრემლები / პარალელური საიდუმლო?
### Context:
CREATE TABLE table_name_56 (series_finale VARCHAR, translation VARCHAR)
### Response:
### Response:
SELECT series_finale FROM table_name_56 WHERE translation = "ოჰ ეს ცრემლები / პარალელური საიდუმლო"</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 for 3rd place on season 9?
### Context:
CREATE TABLE table_name_41 (total VARCHAR, place VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT total FROM table_name_41 WHERE place = "3rd" AND season = "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:
what is the record when marc gasol (8) had the high rebounds?
### Context:
CREATE TABLE table_name_23 (record VARCHAR, high_rebounds VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_23 WHERE high_rebounds = "marc gasol (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:
Name the chassis for tyre of g and carlos reutemann
### Context:
CREATE TABLE table_name_24 (chassis VARCHAR, tyre VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT chassis FROM table_name_24 WHERE tyre = "g" AND driver = "carlos reutemann"</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 finishing position with 13 points?
### Context:
CREATE TABLE table_name_93 (fin_pos VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT fin_pos FROM table_name_93 WHERE points = "13"</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 Presentation of Credentials has a Termination of Mission listed as August 15, 2000?
### Context:
CREATE TABLE table_name_91 (presentation_of_credentials VARCHAR, termination_of_mission VARCHAR)
### Response:
### Response:
SELECT presentation_of_credentials FROM table_name_91 WHERE termination_of_mission = "august 15, 2000"</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 venue for the game on 1 June 1929 where Richmond was the away team?
### Context:
CREATE TABLE table_name_96 (venue VARCHAR, date VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_96 WHERE date = "1 june 1929" AND away_team = "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 Pronunciation Spelled Free, when Pronunciation Spelled Checked is "ɑ"?
### Context:
CREATE TABLE table_name_24 (pronunciation_spelled_free VARCHAR, pronunciation_spelled_checked VARCHAR)
### Response:
### Response:
SELECT pronunciation_spelled_free FROM table_name_24 WHERE pronunciation_spelled_checked = "ɑ"</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 winners of binibining pilipinas-International when Maria Karla Bautista won binibining pilipinas-world?
### Context:
CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, binibining_pilipinas_world VARCHAR)
### Response:
### Response:
SELECT COUNT(binibining_pilipinas_international) FROM table_1825751_4 WHERE binibining_pilipinas_world = "Maria Karla Bautista"</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 game played at glenferrie oval?
### Context:
CREATE TABLE table_name_70 (date VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_70 WHERE venue = "glenferrie oval"</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 102kg when the snatch was snatch and the olympic record was the world record?
### Context:
CREATE TABLE table_name_56 (world_record VARCHAR)
### Response:
### Response:
SELECT 102 AS kg FROM table_name_56 WHERE world_record = "olympic record" AND "snatch" = "snatch"</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 has a Record of 16–17–6?
### Context:
CREATE TABLE table_name_5 (home VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT home FROM table_name_5 WHERE record = "16–17–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 smallest Alliance where the total is 25?
### Context:
CREATE TABLE table_28005809_2 (alliance INTEGER, total VARCHAR)
### Response:
### Response:
SELECT MIN(alliance) FROM table_28005809_2 WHERE total = 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 is the Street Address of the Building with 17 Floors?
### Context:
CREATE TABLE table_name_70 (street_address VARCHAR, floors VARCHAR)
### Response:
### Response:
SELECT street_address FROM table_name_70 WHERE floors = 17</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 previous experience of the player from East Jordan, Michigan?
### Context:
CREATE TABLE table_14342367_13 (previous_experience VARCHAR, hometown VARCHAR)
### Response:
### Response:
SELECT previous_experience FROM table_14342367_13 WHERE hometown = "East Jordan, Michigan"</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 names of technicians who are assigned to repair machines with value point more than 70.
### Context:
CREATE TABLE machine (machine_id VARCHAR, value_points INTEGER); CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR)
### Response:
### Response:
SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70</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 opponent in the math that was played in Nice on a clay court?
### Context:
CREATE TABLE table_name_23 (opponent VARCHAR, surface VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_23 WHERE surface = "clay" AND tournament = "nice"</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 attended by 25,034?
### Context:
CREATE TABLE table_name_85 (score VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_85 WHERE attendance = "25,034"</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 by different writers were seen by 3.24 million people in the US?
### Context:
CREATE TABLE table_18268826_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
### Response:
### Response:
SELECT COUNT(written_by) FROM table_18268826_1 WHERE us_viewers__million_ = "3.24"</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 club had fewer than 29 goals against and a difference smaller than 26?
### Context:
CREATE TABLE table_name_47 (club VARCHAR, goals_against VARCHAR, goal_difference VARCHAR)
### Response:
### Response:
SELECT club FROM table_name_47 WHERE goals_against < 29 AND goal_difference < 26</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 principal of Northfield Junior-Senior High School.
### Context:
CREATE TABLE table_1984697_85 (principal VARCHAR, school VARCHAR)
### Response:
### Response:
SELECT principal FROM table_1984697_85 WHERE school = "Northfield Junior-Senior High school"</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 country has to par E with Mark O'Meara?
### Context:
CREATE TABLE table_name_44 (country VARCHAR, to_par VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_44 WHERE to_par = "e" AND player = "mark o'meara"</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 bronze medals when the silver is greater than 0, and the total medals 5?
### Context:
CREATE TABLE table_name_14 (bronze INTEGER, silver VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT SUM(bronze) FROM table_name_14 WHERE silver > 0 AND total = 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 is the Winner of the Event in Punta del Este?
### Context:
CREATE TABLE table_name_67 (winner VARCHAR, city VARCHAR)
### Response:
### Response:
SELECT winner FROM table_name_67 WHERE city = "punta del este"</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 members of club "Bootup Baltimore" are younger than 18?
### Context:
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (stuid VARCHAR, age VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" AND t3.age < 18</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 language is spoken after 2007 for the role of urvashi mathur?
### Context:
CREATE TABLE table_name_56 (language VARCHAR, year VARCHAR, role VARCHAR)
### Response:
### Response:
SELECT language FROM table_name_56 WHERE year > 2007 AND role = "urvashi mathur"</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 stadium hosted the June 7 game and how many visitors were there?
### Context:
CREATE TABLE table_17103645_9 (location_attendance VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT location_attendance FROM table_17103645_9 WHERE date = "June 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 was the local investment (in $) in the projects of the department with $912,185 BID/PRONAR investment?
### Context:
CREATE TABLE table_17118006_2 (local_investment__us$_ VARCHAR, bid_pronar_investment__us$_ VARCHAR)
### Response:
### Response:
SELECT local_investment__us$_ FROM table_17118006_2 WHERE bid_pronar_investment__us$_ = "912,185"</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 on the prohibition ticket when the Greenback ticket had Thomas Armstrong?
### Context:
CREATE TABLE table_name_76 (prohibition_ticket VARCHAR, greenback_ticket VARCHAR)
### Response:
### Response:
SELECT prohibition_ticket FROM table_name_76 WHERE greenback_ticket = "thomas armstrong"</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 average week rank with 1.2 ratings, less than 1.94 million viewers, and a night rank less than 11?
### Context:
CREATE TABLE table_name_53 (rank__week_ INTEGER, rank__night_ VARCHAR, rating VARCHAR, viewers__millions_ VARCHAR)
### Response:
### Response:
SELECT AVG(rank__week_) FROM table_name_53 WHERE rating = 1.2 AND viewers__millions_ < 1.94 AND rank__night_ < 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:
What is every value for periselene if period is 4.947432?
### Context:
CREATE TABLE table_206217_2 (periselene__km_ VARCHAR, period__h_ VARCHAR)
### Response:
### Response:
SELECT periselene__km_ FROM table_206217_2 WHERE period__h_ = "4.947432"</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 winner if the Mountains Classification award was given to Jaime Vergara and the Team Classification award is given to Col es Pasion Café De Colombia 472?
### Context:
CREATE TABLE table_28853064_15 (winner VARCHAR, mountains_classification VARCHAR, team_classification VARCHAR)
### Response:
### Response:
SELECT winner FROM table_28853064_15 WHERE mountains_classification = "Jaime Vergara" AND team_classification = "Col es Pasion Café De Colombia 472"</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 mean pick number for Iowa College when the overall is less than 200?
### Context:
CREATE TABLE table_name_77 (pick__number INTEGER, college VARCHAR, overall VARCHAR)
### Response:
### Response:
SELECT AVG(pick__number) FROM table_name_77 WHERE college = "iowa" AND overall < 200</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 sum of losses for teams with less than 4 games played?
### Context:
CREATE TABLE table_name_38 (lost INTEGER, played INTEGER)
### Response:
### Response:
SELECT SUM(lost) FROM table_name_38 WHERE played < 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 name of the Tournament on oct 23?
### Context:
CREATE TABLE table_name_36 (tournament VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_36 WHERE date = "oct 23"</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 Brazil scorers have a Result of w, and a Competition of world cup qualifying, and a Date of february 28, 1954?
### Context:
CREATE TABLE table_name_5 (brazil_scorers VARCHAR, date VARCHAR, result VARCHAR, competition VARCHAR)
### Response:
### Response:
SELECT brazil_scorers FROM table_name_5 WHERE result = "w" AND competition = "world cup qualifying" AND date = "february 28, 1954"</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 picks had less than 11 rounds and a player of Charley Casey?
### Context:
CREATE TABLE table_name_29 (pick INTEGER, round VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT SUM(pick) FROM table_name_29 WHERE round < 11 AND player = "charley casey"</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 they play against Clemson?
### Context:
CREATE TABLE table_name_8 (location VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_8 WHERE opponent = "clemson"</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 was the winner when the result was 90–86?
### Context:
CREATE TABLE table_name_35 (winner VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT winner FROM table_name_35 WHERE result = "90–86"</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 nominated work after 2006, that was awarded the Drama Desk award and the Outstanding featured actor in a musical?
### Context:
CREATE TABLE table_name_68 (nominated_work VARCHAR, category VARCHAR, year VARCHAR, award VARCHAR)
### Response:
### Response:
SELECT nominated_work FROM table_name_68 WHERE year > 2006 AND award = "drama desk award" AND category = "outstanding featured actor in a musical"</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 INEGI code has a Population density (/km 2 ) smaller than 81.4 and 0.6593 Human Development Index (2000)?
### Context:
CREATE TABLE table_name_17 (inegi_code INTEGER, population_density___km_2__ VARCHAR, human_development_index__2000_ VARCHAR)
### Response:
### Response:
SELECT AVG(inegi_code) FROM table_name_17 WHERE population_density___km_2__ < 81.4 AND human_development_index__2000_ = 0.6593</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 area of Tuscany?
### Context:
CREATE TABLE table_14532_1 (area__km²_ INTEGER, region VARCHAR)
### Response:
### Response:
SELECT MAX(area__km²_) FROM table_14532_1 WHERE region = "Tuscany"</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 Game, when Location is Philips Arena, and when Attendance is less than 15,619?
### Context:
CREATE TABLE table_name_68 (game INTEGER, location VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT MIN(game) FROM table_name_68 WHERE location = "philips arena" AND attendance < 15 OFFSET 619</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 type of photos of Angelina Jolie cost $500,000?
### Context:
CREATE TABLE table_name_21 (type VARCHAR, reported_price VARCHAR, person_s_ VARCHAR)
### Response:
### Response:
SELECT type FROM table_name_21 WHERE reported_price = "$500,000" AND person_s_ = "angelina jolie"</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 seasons in Tamil occur when the season in Sanskrit is Grishma?
### Context:
CREATE TABLE table_1740431_3 (season_in_tamil VARCHAR, season_in_sanskrit VARCHAR)
### Response:
### Response:
SELECT COUNT(season_in_tamil) FROM table_1740431_3 WHERE season_in_sanskrit = "Grishma"</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 +9 laps and the laps is larger than 91?
### Context:
CREATE TABLE table_name_18 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
### Response:
### Response:
SELECT COUNT(grid) FROM table_name_18 WHERE time_retired = "+9 laps" AND laps > 91</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 Nationality of södertälje sk?
### Context:
CREATE TABLE table_name_78 (nationality VARCHAR, team_from VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_78 WHERE team_from = "södertälje sk"</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 th area where the municipaity is labrador?
### Context:
CREATE TABLE table_1691800_2 (area__km²_ VARCHAR, municipality VARCHAR)
### Response:
### Response:
SELECT area__km²_ FROM table_1691800_2 WHERE municipality = "Labrador"</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 directors were there for the film with the original title of The Moises Padilla Story?
### Context:
CREATE TABLE table_17919342_1 (director VARCHAR, original_title VARCHAR)
### Response:
### Response:
SELECT COUNT(director) FROM table_17919342_1 WHERE original_title = "The Moises Padilla Story"</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:
If the player is Marcelo, what is the position?
### Context:
CREATE TABLE table (position VARCHAR, player VARCHAR, Marcelo VARCHAR)
### Response:
### Response:
SELECT position FROM table WHERE player = Marcelo</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 amount of money player jim colbert has?
### Context:
CREATE TABLE table_name_96 (money___ INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MIN(money___) AS $__ FROM table_name_96 WHERE player = "jim colbert"</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 the Tie no was 6?
### Context:
CREATE TABLE table_name_89 (score VARCHAR, tie_no VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_89 WHERE tie_no = 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:
How much tonnage has a Fate of sunk, and a Flag of great britain, and a Date of 26 september 1940, and Deaths of 2?
### Context:
CREATE TABLE table_name_83 (tonnage___grt__ INTEGER, deaths VARCHAR, date VARCHAR, fate VARCHAR, flag VARCHAR)
### Response:
### Response:
SELECT SUM(tonnage___grt__) FROM table_name_83 WHERE fate = "sunk" AND flag = "great britain" AND date = "26 september 1940" AND deaths = 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 opponent when the attendance was larger than 54,766?
### Context:
CREATE TABLE table_name_27 (opponent VARCHAR, attendance INTEGER)
### Response:
### Response:
SELECT opponent FROM table_name_27 WHERE attendance > 54 OFFSET 766</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 Works Number that has a Number of 153 in 1916?
### Context:
CREATE TABLE table_name_39 (works_number VARCHAR, date VARCHAR, number VARCHAR)
### Response:
### Response:
SELECT works_number FROM table_name_39 WHERE date = "1916" AND number = "153"</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 Arena has an Opponent of @ oilers, and a Date of may 25?
### Context:
CREATE TABLE table_name_79 (arena VARCHAR, opponent VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT arena FROM table_name_79 WHERE opponent = "@ oilers" AND date = "may 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 is the Per capita income associated with a Median household income of $55,800?
### Context:
CREATE TABLE table_name_49 (per_capita_income VARCHAR, median_household_income VARCHAR)
### Response:
### Response:
SELECT per_capita_income FROM table_name_49 WHERE median_household_income = "$55,800"</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 Dante Luciani attend college?
### Context:
CREATE TABLE table_16575609_5 (college VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT college FROM table_16575609_5 WHERE player = "Dante Luciani"</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 total effic for the quarterbacks?
### Context:
CREATE TABLE table_name_20 (effic INTEGER, name VARCHAR)
### Response:
### Response:
SELECT MIN(effic) FROM table_name_20 WHERE name = "total"</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 player from round 8?
### Context:
CREATE TABLE table_name_20 (player VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_20 WHERE round = 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 is the Percentage Lost for the contestant with a starting weight above 102 kg who lost 46.9 kg?
### Context:
CREATE TABLE table_name_93 (percentage_lost VARCHAR, starting_weight__kg_ VARCHAR, weight_lost__kg_ VARCHAR)
### Response:
### Response:
SELECT percentage_lost FROM table_name_93 WHERE starting_weight__kg_ > 102 AND weight_lost__kg_ = 46.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:
What is the location of the church when the church name is Ortnevik Kyrkje?
### Context:
CREATE TABLE table_178389_1 (location_of_the_church VARCHAR, church_name VARCHAR)
### Response:
### Response:
SELECT location_of_the_church FROM table_178389_1 WHERE church_name = "Ortnevik kyrkje"</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 Date has a Venue of lancaster park , christchurch?
### Context:
CREATE TABLE table_name_14 (date VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_14 WHERE venue = "lancaster park , christchurch"</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:
Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.
### Context:
CREATE TABLE list (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR, grade VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
### Response:
### Response:
SELECT DISTINCT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER"</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 are the dimensions of the coin issued in 1992 with kim il-sung on the obverse?
### Context:
CREATE TABLE table_298883_5 (dimensions VARCHAR, obverse VARCHAR, date_of_issue VARCHAR)
### Response:
### Response:
SELECT dimensions FROM table_298883_5 WHERE obverse = "Kim Il-sung" AND date_of_issue = "1992"</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 winner at the track where Roberval Andrade won pole, Felipe Giaffone had the fastest lap, and RVR Corinthians Motorsport was the winning team?
### Context:
CREATE TABLE table_29361707_2 (winning_driver VARCHAR, winning_team VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
### Response:
### Response:
SELECT winning_driver FROM table_29361707_2 WHERE pole_position = "Roberval Andrade" AND fastest_lap = "Felipe Giaffone" AND winning_team = "RVR Corinthians Motorsport"</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 Diane Deluna was the cyber girl in week 4 who was the cyber girl in week 2?
### Context:
CREATE TABLE table_name_90 (week_2 VARCHAR, week_4 VARCHAR)
### Response:
### Response:
SELECT week_2 FROM table_name_90 WHERE week_4 = "diane deluna"</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 city for thailand
### Context:
CREATE TABLE table_name_97 (city VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT city FROM table_name_97 WHERE country = "thailand"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.