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:
What date was the record 20–16?
### Context:
CREATE TABLE table_name_38 (date VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_38 WHERE record = "20–16"</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 Position, when Weight is greater than 200, when Number is less than 44, when Years Exp is 9, and when College is "University of New Mexico"?
### Context:
CREATE TABLE table_name_68 (position VARCHAR, college VARCHAR, years_exp VARCHAR, weight VARCHAR, number VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_68 WHERE weight > 200 AND number < 44 AND years_exp = "9" AND college = "university of new mexico"</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 Part 3 when the Verb meaning is to gather?
### Context:
CREATE TABLE table_name_60 (part_3 VARCHAR, verb_meaning VARCHAR)
### Response:
### Response:
SELECT part_3 FROM table_name_60 WHERE verb_meaning = "to gather"</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 Cincinnati is the tournament winner how many regular season winners are there?
### Context:
CREATE TABLE table_24160890_3 (regular_season_winner VARCHAR, tournament_winner VARCHAR)
### Response:
### Response:
SELECT COUNT(regular_season_winner) FROM table_24160890_3 WHERE tournament_winner = "Cincinnati"</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:
At which games did Tunisia win a bronze in the men's 1500 m freestyle?
### Context:
CREATE TABLE table_name_59 (games VARCHAR, medal VARCHAR, event VARCHAR)
### Response:
### Response:
SELECT games FROM table_name_59 WHERE medal = "bronze" AND event = "men's 1500 m freestyle"</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 1st member that was elected in 1541/42?
### Context:
CREATE TABLE table_name_44 (elected VARCHAR)
### Response:
### Response:
SELECT 1 AS st_member FROM table_name_44 WHERE elected = "1541/42"</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 wins the club with a position of 4 and less than 4 losses has?
### Context:
CREATE TABLE table_name_67 (wins INTEGER, position VARCHAR, loses VARCHAR)
### Response:
### Response:
SELECT MIN(wins) FROM table_name_67 WHERE position = 4 AND loses < 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's the model of the processor with a 5.5 w TDP?
### Context:
CREATE TABLE table_24099916_1 (model__list_ VARCHAR, tdp VARCHAR)
### Response:
### Response:
SELECT model__list_ FROM table_24099916_1 WHERE tdp = "5.5 W"</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 team had dave penney as an incoming manager
### Context:
CREATE TABLE table_26914759_3 (team VARCHAR, incoming_manager VARCHAR)
### Response:
### Response:
SELECT team FROM table_26914759_3 WHERE incoming_manager = "Dave Penney"</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 To par of the player with a t14 Finish?
### Context:
CREATE TABLE table_name_56 (to_par VARCHAR, finish VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_name_56 WHERE finish = "t14"</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 average rank for west germany when gold is more than 1
### Context:
CREATE TABLE table_name_15 (rank INTEGER, nation VARCHAR, gold VARCHAR)
### Response:
### Response:
SELECT AVG(rank) FROM table_name_15 WHERE nation = "west germany" AND gold > 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 many wins does Greg Norman have?
### Context:
CREATE TABLE table_name_15 (wins INTEGER, player VARCHAR)
### Response:
### Response:
SELECT SUM(wins) FROM table_name_15 WHERE player = "greg norman"</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 all date and share count of transactions.
### Context:
CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, share_count VARCHAR)
### Response:
### Response:
SELECT date_of_transaction, share_count FROM TRANSACTIONS</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 Gassaway's record at the fight in mississippi, united states against anthony macias?
### Context:
CREATE TABLE table_name_19 (record VARCHAR, location VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_19 WHERE location = "mississippi, united states" AND opponent = "anthony macias"</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 class aa for 1998-99
### Context:
CREATE TABLE table_14601528_2 (class_aA VARCHAR, school_year VARCHAR)
### Response:
### Response:
SELECT class_aA FROM table_14601528_2 WHERE school_year = "1998-99"</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 tries for the season 2008 warrington wolves with an appearance more than 7?
### Context:
CREATE TABLE table_name_55 (tries INTEGER, season VARCHAR, appearance VARCHAR)
### Response:
### Response:
SELECT AVG(tries) FROM table_name_55 WHERE season = "2008 warrington wolves" AND appearance > 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:
How many years were they nominated for outstanding musical?
### Context:
CREATE TABLE table_name_93 (year VARCHAR, nominee VARCHAR)
### Response:
### Response:
SELECT COUNT(year) FROM table_name_93 WHERE nominee = "outstanding 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:
Name the position for judy-ann ramirez
### Context:
CREATE TABLE table_15463188_1 (position VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT position FROM table_15463188_1 WHERE name = "judy-ann ramirez"</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 Losses have Draws larger than 0?
### Context:
CREATE TABLE table_name_58 (losses INTEGER, draws INTEGER)
### Response:
### Response:
SELECT MAX(losses) FROM table_name_58 WHERE draws > 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 chassis when the rank is 3rd?
### Context:
CREATE TABLE table_name_25 (chassis VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT chassis FROM table_name_25 WHERE rank = "3rd"</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 executions in persona have a number with known sentences of 2 (1543–1544)?
### Context:
CREATE TABLE table_name_92 (executions_in_persona VARCHAR, number_of_autos_da_fé_with_known_sentences VARCHAR)
### Response:
### Response:
SELECT executions_in_persona FROM table_name_92 WHERE number_of_autos_da_fé_with_known_sentences = "2 (1543–1544)"</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:
Is art school public or private?
### Context:
CREATE TABLE table_2076595_1 (control VARCHAR, type VARCHAR)
### Response:
### Response:
SELECT control FROM table_2076595_1 WHERE type = "Art 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 was the record for the October 16 game?
### Context:
CREATE TABLE table_27537518_4 (record VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT record FROM table_27537518_4 WHERE date = "October 16"</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 floor number is 14.200, what is the number for the parallel bars?
### Context:
CREATE TABLE table_18662026_10 (parallel_bars VARCHAR, floor VARCHAR)
### Response:
### Response:
SELECT parallel_bars FROM table_18662026_10 WHERE floor = "14.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:
Who is the player that wears number 42?
### Context:
CREATE TABLE table_10015132_11 (player VARCHAR, no VARCHAR)
### Response:
### Response:
SELECT player FROM table_10015132_11 WHERE no = "42"</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 of all the literate people where females are 73.17?
### Context:
CREATE TABLE table_14598_9 (literate_persons___percentage_ VARCHAR, females___percentage_ VARCHAR)
### Response:
### Response:
SELECT literate_persons___percentage_ FROM table_14598_9 WHERE females___percentage_ = "73.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 title of the episode that aired on September 25, 2005?
### Context:
CREATE TABLE table_name_23 (title VARCHAR, podcast_date VARCHAR)
### Response:
### Response:
SELECT title FROM table_name_23 WHERE podcast_date = "september 25, 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 highest rank for ben crenshaw after winning more than 14 times?
### Context:
CREATE TABLE table_name_65 (rank INTEGER, player VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT MAX(rank) FROM table_name_65 WHERE player = "ben crenshaw" AND wins > 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:
the first episode in this season had what number in the series?
### Context:
CREATE TABLE table_2618142_1 (no_in_series INTEGER)
### Response:
### Response:
SELECT MIN(no_in_series) FROM table_2618142_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 monday time with tuesday being 9:00-6:00
### Context:
CREATE TABLE table_11019212_1 (monday VARCHAR, tuesday VARCHAR)
### Response:
### Response:
SELECT monday FROM table_11019212_1 WHERE tuesday = "9:00-6: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 2002 result where 2011 and 2000 are 1R?
### Context:
CREATE TABLE table_name_22 (Id VARCHAR)
### Response:
### Response:
SELECT 2002 FROM table_name_22 WHERE 2011 = "1r" AND 2000 = "1r"</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 all points when number played is less than 18?
### Context:
CREATE TABLE table_name_40 (points INTEGER, played INTEGER)
### Response:
### Response:
SELECT SUM(points) FROM table_name_40 WHERE played < 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:
Which products has been complained by the customer who has filed least amount of complaints?
### Context:
CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE complaints (product_id VARCHAR)
### Response:
### Response:
SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY COUNT(*) 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:
Tell me the highest Grid for Maurice Trintignant and laps less than 87
### Context:
CREATE TABLE table_name_14 (grid INTEGER, driver VARCHAR, laps VARCHAR)
### Response:
### Response:
SELECT MAX(grid) FROM table_name_14 WHERE driver = "maurice trintignant" AND laps < 87</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 Week has a Result of l 13-16 and an Opponent of at buffalo bills?
### Context:
CREATE TABLE table_name_27 (week INTEGER, result VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT AVG(week) FROM table_name_27 WHERE result = "l 13-16" AND opponent = "at buffalo bills"</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 enrollment value out of the enrollment values I'd the schools with a 3A WIAA clarification?
### Context:
CREATE TABLE table_1414702_3 (enrollment INTEGER, wiaa_classification VARCHAR)
### Response:
### Response:
SELECT MIN(enrollment) FROM table_1414702_3 WHERE wiaa_classification = "3A"</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 the name of ships that are not involved in any mission
### Context:
CREATE TABLE mission (Name VARCHAR, Ship_ID VARCHAR); CREATE TABLE ship (Name VARCHAR, Ship_ID VARCHAR)
### Response:
### Response:
SELECT Name FROM ship WHERE NOT Ship_ID IN (SELECT Ship_ID FROM mission)</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 province has a density of 971.4?
### Context:
CREATE TABLE table_1067441_1 (province VARCHAR, density VARCHAR)
### Response:
### Response:
SELECT province FROM table_1067441_1 WHERE density = "971.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 score to par did Mike Weir have?
### Context:
CREATE TABLE table_name_69 (to_par VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_name_69 WHERE player = "mike weir"</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 on October 7, 2000?
### Context:
CREATE TABLE table_name_45 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_45 WHERE date = "october 7, 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 was the original air date of this episode that was written by Debbie Sarjeant?
### Context:
CREATE TABLE table_17623902_1 (original_air_date VARCHAR, written_by VARCHAR)
### Response:
### Response:
SELECT original_air_date FROM table_17623902_1 WHERE written_by = "Debbie Sarjeant"</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 long were Ray Bradbury and his wife married?
### Context:
CREATE TABLE table_24143253_4 (length_of_marriage VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT length_of_marriage FROM table_24143253_4 WHERE name = "Ray Bradbury"</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 won the fastest lap if Anders Krohn won the pole position?
### Context:
CREATE TABLE table_25459168_2 (fastest_lap VARCHAR, pole_position VARCHAR)
### Response:
### Response:
SELECT fastest_lap FROM table_25459168_2 WHERE pole_position = "Anders Krohn"</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 which round did Paul McDonald have an overall greater than 109?
### Context:
CREATE TABLE table_name_22 (round INTEGER, player VARCHAR, overall VARCHAR)
### Response:
### Response:
SELECT MAX(round) FROM table_name_22 WHERE player = "paul mcdonald" AND overall > 109</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 were completed in the time of +7.213 with a grid number larger than 7?
### Context:
CREATE TABLE table_name_85 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT COUNT(laps) FROM table_name_85 WHERE time_retired = "+7.213" AND grid > 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:
If the Close ranged weapons are the knife (stone), knife (iron), what are the Long ranged weapons?
### Context:
CREATE TABLE table_27704991_1 (long_ranged_weapons VARCHAR, close_ranged_weapons VARCHAR)
### Response:
### Response:
SELECT long_ranged_weapons FROM table_27704991_1 WHERE close_ranged_weapons = "Knife (stone), Knife (iron)"</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 title when the imprint is dengeki bunko and the artist is kiyotaka haimura?
### Context:
CREATE TABLE table_name_96 (title VARCHAR, imprint VARCHAR, artist VARCHAR)
### Response:
### Response:
SELECT title FROM table_name_96 WHERE imprint = "dengeki bunko" AND artist = "kiyotaka haimura"</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 houdet ( fra ) w 6-2, 6-1 is the quarterfinals what is the final/bronze medal match?
### Context:
CREATE TABLE table_18602462_21 (final__bronze_medal_match VARCHAR, quarterfinals VARCHAR)
### Response:
### Response:
SELECT final__bronze_medal_match FROM table_18602462_21 WHERE quarterfinals = "Houdet ( FRA ) W 6-2, 6-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 is the rider with less than 15 laps, more than 32 grids, and an accident time/retired?
### Context:
CREATE TABLE table_name_44 (rider VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT rider FROM table_name_44 WHERE laps < 15 AND grid > 32 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:
Which mix artists have shlomo as artist 1?
### Context:
CREATE TABLE table_23649244_1 (mix_artist VARCHAR, artist_1 VARCHAR)
### Response:
### Response:
SELECT mix_artist FROM table_23649244_1 WHERE artist_1 = "Shlomo"</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 City of license has a Frequency MHz larger than 89.5, and a Call sign of k213el?
### Context:
CREATE TABLE table_name_22 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
### Response:
### Response:
SELECT city_of_license FROM table_name_22 WHERE frequency_mhz > 89.5 AND call_sign = "k213el"</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 total number of population per square km with population 1.12006 of 12.757
### Context:
CREATE TABLE table_name_97 (population_per_square_km VARCHAR, population_112006 VARCHAR)
### Response:
### Response:
SELECT COUNT(population_per_square_km) FROM table_name_97 WHERE population_112006 = 12.757</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 tonnage of the Eldena?
### Context:
CREATE TABLE table_name_15 (tonnage__grt_ VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT tonnage__grt_ FROM table_name_15 WHERE name = "eldena"</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 all areas within 1000 km in the city of Lubelskie?
### Context:
CREATE TABLE table_11654169_1 (area_in_1000km²__1930_ VARCHAR, voivodeship_separate_city VARCHAR)
### Response:
### Response:
SELECT area_in_1000km²__1930_ FROM table_11654169_1 WHERE voivodeship_separate_city = "lubelskie"</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 CPU chip(s) is used in the Classic type hardware?
### Context:
CREATE TABLE table_name_71 (cpu_chip VARCHAR, type VARCHAR)
### Response:
### Response:
SELECT cpu_chip FROM table_name_71 WHERE type = "classic"</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 format when the label was loen entertainment?
### Context:
CREATE TABLE table_name_20 (format VARCHAR, label VARCHAR)
### Response:
### Response:
SELECT format FROM table_name_20 WHERE label = "loen entertainment"</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 number in the series was episode 2 in the season?
### Context:
CREATE TABLE table_2468961_3 (no_in_series INTEGER, no_in_season VARCHAR)
### Response:
### Response:
SELECT MAX(no_in_series) FROM table_2468961_3 WHERE no_in_season = 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:
Where will the game at (ET) of 7:00 pm be at?
### Context:
CREATE TABLE table_name_2 (game_site VARCHAR, time___et__ VARCHAR)
### Response:
### Response:
SELECT game_site FROM table_name_2 WHERE time___et__ = "7:00 pm"</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 of the Canterbury has a Central District of 276* M.D. Crowe & P.S. Briasco V (C) 1986/87?
### Context:
CREATE TABLE table_name_67 (canterbury VARCHAR, central_districts VARCHAR)
### Response:
### Response:
SELECT canterbury FROM table_name_67 WHERE central_districts = "276* m.d. crowe & p.s. briasco v (c) 1986/87"</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 riding penaltie (pts) for the athlete that has a Swimming Time (pts) of 2:18.16 (1264)?
### Context:
CREATE TABLE table_name_83 (riding_penalties__pts_ VARCHAR, swimming_time__pts_ VARCHAR)
### Response:
### Response:
SELECT riding_penalties__pts_ FROM table_name_83 WHERE swimming_time__pts_ = "2:18.16 (1264)"</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 best finish when money list rank is n/a, earnings ($) is more than 0 and cuts made is more than 1?
### Context:
CREATE TABLE table_name_41 (best_finish VARCHAR, cuts_made VARCHAR, money_list_rank VARCHAR, earnings___$__ VARCHAR)
### Response:
### Response:
SELECT best_finish FROM table_name_41 WHERE money_list_rank = "n/a" AND earnings___$__ > 0 AND cuts_made > 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:
Which FSB/HT frequency (MHz) has a SATA larger than 6 and DDR 266/333/400 Registered/ECC memory?
### Context:
CREATE TABLE table_name_79 (fsb_ht_frequency__mhz_ VARCHAR, sata VARCHAR, memory VARCHAR)
### Response:
### Response:
SELECT fsb_ht_frequency__mhz_ FROM table_name_79 WHERE sata > 6 AND memory = "ddr 266/333/400 registered/ecc"</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 w-l-d with position being 1
### Context:
CREATE TABLE table_14181578_1 (w_l_d VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT w_l_d FROM table_14181578_1 WHERE position = 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 ch# of dwlj-tv?
### Context:
CREATE TABLE table_12379297_1 (ch__number VARCHAR, callsign VARCHAR)
### Response:
### Response:
SELECT ch__number FROM table_12379297_1 WHERE callsign = "DWLJ-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 chapter is located in Normal, Illinois?
### Context:
CREATE TABLE table_name_65 (chapter VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT chapter FROM table_name_65 WHERE location = "normal, illinois"</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 average Points has a Lost higher than 20?
### Context:
CREATE TABLE table_name_78 (points INTEGER, lost INTEGER)
### Response:
### Response:
SELECT AVG(points) FROM table_name_78 WHERE lost > 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:
What week was the tournament of paris?
### Context:
CREATE TABLE table_name_76 (week VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT week FROM table_name_76 WHERE tournament = "paris"</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 October is the lowest one that has an Opponent of washington capitals?
### Context:
CREATE TABLE table_name_38 (october INTEGER, opponent VARCHAR)
### Response:
### Response:
SELECT MIN(october) FROM table_name_38 WHERE opponent = "washington capitals"</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 of bergen, norway?
### Context:
CREATE TABLE table_name_81 (average INTEGER, city VARCHAR)
### Response:
### Response:
SELECT MIN(average) FROM table_name_81 WHERE city = "bergen, norway"</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 Pick #s have a Name of tory epps, and a Round larger than 8?
### Context:
CREATE TABLE table_name_96 (pick__number VARCHAR, name VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT COUNT(pick__number) FROM table_name_96 WHERE name = "tory epps" AND 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:
Find the name of the person who has friends with age above 40 and under age 30?
### Context:
CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)
### Response:
### Response:
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)</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 latest year with reporters Lesley Visser and Robin Roberts?
### Context:
CREATE TABLE table_22654139_3 (year INTEGER, reporters VARCHAR)
### Response:
### Response:
SELECT MAX(year) FROM table_22654139_3 WHERE reporters = "Lesley Visser and Robin Roberts"</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 2009 has 18.5% as the 2007?
### Context:
CREATE TABLE table_name_49 (Id VARCHAR)
### Response:
### Response:
SELECT 2009 FROM table_name_49 WHERE 2007 = "18.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:
How many people were in attendance on may 17?
### Context:
CREATE TABLE table_name_7 (attendance INTEGER, date VARCHAR)
### Response:
### Response:
SELECT MIN(attendance) FROM table_name_7 WHERE date = "may 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 Highest Goals for Grella?
### Context:
CREATE TABLE table_name_43 (goals INTEGER, name VARCHAR)
### Response:
### Response:
SELECT MAX(goals) FROM table_name_43 WHERE name = "grella"</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 all values for viewers for 1st season?
### Context:
CREATE TABLE table_175980_2 (viewers__in_millions_ VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT viewers__in_millions_ FROM table_175980_2 WHERE season = "1st"</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 title for the Korean progran on KBS2?
### Context:
CREATE TABLE table_name_96 (title VARCHAR, language VARCHAR, network VARCHAR)
### Response:
### Response:
SELECT title FROM table_name_96 WHERE language = "korean" AND network = "kbs2"</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 is the GDP for an area of 116?
### Context:
CREATE TABLE table_name_26 (gdp__ppp__$m_usd VARCHAR, area__km²_ VARCHAR)
### Response:
### Response:
SELECT gdp__ppp__$m_usd FROM table_name_26 WHERE area__km²_ = "116"</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 was the loss of April 25?
### Context:
CREATE TABLE table_name_51 (loss VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT loss FROM table_name_51 WHERE date = "april 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 season did a United States center play in?
### Context:
CREATE TABLE table_name_46 (season VARCHAR, nationality VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT season FROM table_name_46 WHERE nationality = "united states" AND position = "center"</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 highest Year, when Apparatus is "Vault", and when Rank-Final is less than 9?
### Context:
CREATE TABLE table_name_45 (year INTEGER, apparatus VARCHAR, rank_final VARCHAR)
### Response:
### Response:
SELECT MAX(year) FROM table_name_45 WHERE apparatus = "vault" AND rank_final < 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:
When episode 4 is the missing episode with recovered footage and the 032 is the story number what is the country/territory?
### Context:
CREATE TABLE table_1889619_5 (country_territory VARCHAR, story_no VARCHAR, missing_episodes_with_recovered_footage VARCHAR)
### Response:
### Response:
SELECT country_territory FROM table_1889619_5 WHERE story_no = "032" AND missing_episodes_with_recovered_footage = "Episode 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 highest number of bronze when silver is larger than 0, rank is larger than 3?
### Context:
CREATE TABLE table_name_69 (bronze INTEGER, silver VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT MAX(bronze) FROM table_name_69 WHERE silver > 0 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:
Which competition ended with a score of 58-4?
### Context:
CREATE TABLE table_name_64 (competition VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT competition FROM table_name_64 WHERE score = "58-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 highest value for FA cups, that has a total of 0 4, with less than 4 championships?
### Context:
CREATE TABLE table_name_43 (fa_cup INTEGER, total VARCHAR, championship VARCHAR)
### Response:
### Response:
SELECT MAX(fa_cup) FROM table_name_43 WHERE total = "0 4" AND championship < 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 position does the Cincinnati Bengals' player have?
### Context:
CREATE TABLE table_12165999_1 (position VARCHAR, afl_team VARCHAR)
### Response:
### Response:
SELECT position FROM table_12165999_1 WHERE afl_team = "Cincinnati Bengals"</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 team was in 1951?
### Context:
CREATE TABLE table_name_40 (team VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_40 WHERE year = 1951</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 Director with a Ceremony of 2001?
### Context:
CREATE TABLE table_name_93 (director VARCHAR, year__ceremony_ VARCHAR)
### Response:
### Response:
SELECT director FROM table_name_93 WHERE year__ceremony_ = 2001</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 preliminary average when the semifinal average is 8.834 (3) ?
### Context:
CREATE TABLE table_16268026_3 (preliminary_average VARCHAR, semifinal_average VARCHAR)
### Response:
### Response:
SELECT preliminary_average FROM table_16268026_3 WHERE semifinal_average = "8.834 (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:
Name the number of incumbents for texas 12
### Context:
CREATE TABLE table_1342359_42 (incumbent VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT COUNT(incumbent) FROM table_1342359_42 WHERE district = "Texas 12"</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 name is the goals of 25?
### Context:
CREATE TABLE table_name_18 (name VARCHAR, goals VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_18 WHERE goals = 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 total number of Silvers held by France when their rank was over 14?
### Context:
CREATE TABLE table_name_63 (silver VARCHAR, nation VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT COUNT(silver) FROM table_name_63 WHERE nation = "france" AND rank > 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:
The winner Arnfinn Bergmann has what under country?
### Context:
CREATE TABLE table_name_45 (country VARCHAR, winner VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_45 WHERE winner = "arnfinn bergmann"</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 to par for Jiyai Shin when the place is t1?
### Context:
CREATE TABLE table_name_70 (to_par VARCHAR, place VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_name_70 WHERE place = "t1" AND player = "jiyai shin"</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 flag that means decimal digit 2?
### Context:
CREATE TABLE table_29997112_3 (flag_name VARCHAR, meaning VARCHAR)
### Response:
### Response:
SELECT flag_name FROM table_29997112_3 WHERE meaning = "Decimal Digit 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 is the average total for less than 1 championship?
### Context:
CREATE TABLE table_name_59 (total INTEGER, championship INTEGER)
### Response:
### Response:
SELECT AVG(total) FROM table_name_59 WHERE championship < 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 height if ot is the position?
### Context:
CREATE TABLE table_20871703_1 (height VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT height FROM table_20871703_1 WHERE position = "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:
Name the team for 5 september 2008 for date of vacancy for 30 august 2008
### Context:
CREATE TABLE table_18522916_5 (team VARCHAR, date_of_appointment VARCHAR, date_of_vacancy VARCHAR)
### Response:
### Response:
SELECT team FROM table_18522916_5 WHERE date_of_appointment = "5 September 2008" AND date_of_vacancy = "30 August 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:
What is the silver when the Total is 1, and Gold is 1?
### Context:
CREATE TABLE table_name_64 (silver INTEGER, total VARCHAR, gold VARCHAR)
### Response:
### Response:
SELECT AVG(silver) FROM table_name_64 WHERE total = 1 AND gold = 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 ARE THE GOALS WITH DRAWS SMALLER THAN 6, AND LOSSES SMALLER THAN 7?
### Context:
CREATE TABLE table_name_9 (goals_for INTEGER, draws VARCHAR, losses VARCHAR)
### Response:
### Response:
SELECT AVG(goals_for) FROM table_name_9 WHERE draws < 6 AND losses < 7</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.