text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is natural change with a crude death rate of 8.7 and less than 472 live births?
### Context:
CREATE TABLE table_name_74 (natural_change VARCHAR, crude_death_rate__per_1000_ VARCHAR, live_births VARCHAR) [/INST]
### Response:
SELECT natural_change FROM table_name_74 WHERE crude_death_rate__per_1000_ = 8.7 AND live_births < 472 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What owner or owners have an operational description?
### Context:
CREATE TABLE table_name_34 (owner_s_ VARCHAR, description VARCHAR) [/INST]
### Response:
SELECT owner_s_ FROM table_name_34 WHERE description = "operational" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date for the Operational Livery?
### Context:
CREATE TABLE table_name_51 (date VARCHAR, livery VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_51 WHERE livery = "operational" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date listed for the item that has undergoing overhaul, restoration or repairs listed under description?
### Context:
CREATE TABLE table_name_62 (date VARCHAR, description VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_62 WHERE description = "undergoing overhaul, restoration or repairs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the home team that played at MCG?
### Context:
CREATE TABLE table_name_43 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_43 WHERE venue = "mcg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the size of the smallest crowd that watched a game at Arden Street Oval?
### Context:
CREATE TABLE table_name_32 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_32 WHERE venue = "arden street oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the away team who played home team Hawthorn?
### Context:
CREATE TABLE table_name_21 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_21 WHERE home_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the away team that played home team Footscray?
### Context:
CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_67 WHERE home_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people attended the game where Fitzroy was the away team?
### Context:
CREATE TABLE table_name_44 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_44 WHERE away_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the NGC number for leo of irregular galaxy
### Context:
CREATE TABLE table_name_16 (ngc_number VARCHAR, constellation VARCHAR, object_type VARCHAR) [/INST]
### Response:
SELECT ngc_number FROM table_name_16 WHERE constellation = "leo" AND object_type = "irregular galaxy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the highest NGC number for right ascension of 09h40m28.5s
### Context:
CREATE TABLE table_name_57 (ngc_number INTEGER, right_ascension___j2000__ VARCHAR) [/INST]
### Response:
SELECT MAX(ngc_number) FROM table_name_57 WHERE right_ascension___j2000__ = "09h40m28.5s" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the constellation for open cluster?
### Context:
CREATE TABLE table_name_37 (constellation VARCHAR, object_type VARCHAR) [/INST]
### Response:
SELECT constellation FROM table_name_37 WHERE object_type = "open cluster" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which event was Tatyana Lebedeva in?
### Context:
CREATE TABLE table_name_75 (event VARCHAR, athlete VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_75 WHERE athlete = "tatyana lebedeva" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What event was Fatima Whitbread Trine Hattestad in?
### Context:
CREATE TABLE table_name_25 (event VARCHAR, athlete VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_25 WHERE athlete = "fatima whitbread trine hattestad" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Milcah Chemos' record?
### Context:
CREATE TABLE table_name_80 (record VARCHAR, athlete VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_80 WHERE athlete = "milcah chemos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the record for the 400 m event on 4 september 2009?
### Context:
CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_23 WHERE date = "4 september 2009" AND event = "400 m" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What event was on 26 August 2005?
### Context:
CREATE TABLE table_name_14 (event VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_14 WHERE date = "26 august 2005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of the discus throw for Bulgaria?
### Context:
CREATE TABLE table_name_40 (date VARCHAR, nationality VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_40 WHERE nationality = "bulgaria" AND event = "discus throw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date ground A and Cartagena as an opponent?
### Context:
CREATE TABLE table_name_50 (date VARCHAR, ground VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_50 WHERE ground = "a" AND opponent = "cartagena" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What ground has a match smaller than 2?
### Context:
CREATE TABLE table_name_16 (ground VARCHAR, match INTEGER) [/INST]
### Response:
SELECT ground FROM table_name_16 WHERE match < 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the competition of friendly, at match 7?
### Context:
CREATE TABLE table_name_53 (score1 VARCHAR, competition_or_tour VARCHAR, match VARCHAR) [/INST]
### Response:
SELECT score1 FROM table_name_53 WHERE competition_or_tour = "friendly" AND match = 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the lowest Pick number of Player Brian Bradley from Canada, in a Draft year before 1985?
### Context:
CREATE TABLE table_name_29 (pick INTEGER, player VARCHAR, nationality VARCHAR, draft VARCHAR) [/INST]
### Response:
SELECT MIN(pick) FROM table_name_29 WHERE nationality = "canada" AND draft < 1985 AND player = "brian bradley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Round was Player Adam Cracknell Picked after 231 in a Draft year after 1988?
### Context:
CREATE TABLE table_name_4 (round VARCHAR, player VARCHAR, pick VARCHAR, draft VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_4 WHERE pick > 231 AND draft > 1988 AND player = "adam cracknell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the total number of yards for avg of 9 and rec of 1
### Context:
CREATE TABLE table_name_99 (yards VARCHAR, avg VARCHAR, rec VARCHAR) [/INST]
### Response:
SELECT COUNT(yards) FROM table_name_99 WHERE avg = 9 AND rec = 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of losses that the team incurred while scoring less than 79 points in 10 games with a point differential less than 34?
### Context:
CREATE TABLE table_name_69 (losses INTEGER, point_differential VARCHAR, points_for VARCHAR, games_played VARCHAR) [/INST]
### Response:
SELECT MAX(losses) FROM table_name_69 WHERE points_for < 79 AND games_played = 10 AND point_differential < 34 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Player has a Date of Birth (Age When Delisted) of 13 February 1987 (aged 24)?
### Context:
CREATE TABLE table_name_85 (player VARCHAR, date_of_birth__age_when_delisted_ VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_85 WHERE date_of_birth__age_when_delisted_ = "13 february 1987 (aged 24)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is listed under Senior List for Date of Birth (Age When Delisted) of 5 June 1984 (aged 23)?
### Context:
CREATE TABLE table_name_84 (senior_list VARCHAR, date_of_birth__age_when_delisted_ VARCHAR) [/INST]
### Response:
SELECT senior_list FROM table_name_84 WHERE date_of_birth__age_when_delisted_ = "5 june 1984 (aged 23)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average year to begin making autos for a brand that joined GM in 1917?
### Context:
CREATE TABLE table_name_30 (year_began_making_autos INTEGER, year_joined_gm VARCHAR) [/INST]
### Response:
SELECT AVG(year_began_making_autos) FROM table_name_30 WHERE year_joined_gm = 1917 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the date with a home team of melbourne
### Context:
CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_74 WHERE home_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the venue for collingwood home team
### Context:
CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_40 WHERE home_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which year has a Gen.-Secretary of silvana jansen?
### Context:
CREATE TABLE table_name_7 (year VARCHAR, gen_secretary VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_7 WHERE gen_secretary = "silvana jansen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Vice President has a President of daniel masny, and a Treasurer of rebecca t. altmann?
### Context:
CREATE TABLE table_name_29 (Vice VARCHAR, president VARCHAR, treasurer VARCHAR) [/INST]
### Response:
SELECT Vice AS president FROM table_name_29 WHERE president = "daniel masny" AND treasurer = "rebecca t. altmann" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was president Year of 2002-2003, second semester?
### Context:
CREATE TABLE table_name_89 (president VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT president FROM table_name_89 WHERE year = "2002-2003, second semester" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which treasurer has a President of sebastian ihler?
### Context:
CREATE TABLE table_name_74 (treasurer VARCHAR, president VARCHAR) [/INST]
### Response:
SELECT treasurer FROM table_name_74 WHERE president = "sebastian ihler" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which opponent used a grass surface?
### Context:
CREATE TABLE table_name_1 (opponent VARCHAR, surface VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_1 WHERE surface = "grass" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which tournament had a score of 6–7 (0–7) , 6–2, 4–6?
### Context:
CREATE TABLE table_name_3 (tournament VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_3 WHERE score = "6–7 (0–7) , 6–2, 4–6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the total number of points for lost less than 4
### Context:
CREATE TABLE table_name_72 (points VARCHAR, lost INTEGER) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_72 WHERE lost < 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the sum of drawn for lost less than 0
### Context:
CREATE TABLE table_name_81 (drawn INTEGER, lost INTEGER) [/INST]
### Response:
SELECT SUM(drawn) FROM table_name_81 WHERE lost < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the points difference for points of 14
### Context:
CREATE TABLE table_name_29 (points_difference VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT points_difference FROM table_name_29 WHERE points = 14 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the sum of rank for when gold is more than 0 and silver less than 23 with total more than 32
### Context:
CREATE TABLE table_name_59 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT SUM(rank) FROM table_name_59 WHERE gold > 0 AND total > 32 AND silver < 23 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the sum of silver for liechtenstein and bronze more than 4
### Context:
CREATE TABLE table_name_34 (silver INTEGER, nation VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT SUM(silver) FROM table_name_34 WHERE nation = "liechtenstein" AND bronze > 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which tournament had a score of 6–4, 4–6, 7–5?
### Context:
CREATE TABLE table_name_70 (tournament VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_70 WHERE score = "6–4, 4–6, 7–5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which tournament had a score of 7–5, 2–6, 7–6?
### Context:
CREATE TABLE table_name_7 (tournament VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_7 WHERE score = "7–5, 2–6, 7–6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent in the final in which the court surface was hard and the score was 6–3, 3–6, 7–5?
### Context:
CREATE TABLE table_name_89 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent_in_the_final FROM table_name_89 WHERE surface = "hard" AND score = "6–3, 3–6, 7–5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the court surface when the score was 6–4, 6–1?
### Context:
CREATE TABLE table_name_90 (surface VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_90 WHERE score = "6–4, 6–1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date was the opponent in the final Gwinyai Tongoona?
### Context:
CREATE TABLE table_name_62 (date VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_62 WHERE opponent_in_the_final = "gwinyai tongoona" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record from the Golden State Warriors on 11/18?
### Context:
CREATE TABLE table_name_13 (record VARCHAR, visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_13 WHERE visitor = "golden state warriors" AND date = "11/18" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What class has 4-4-0 wheels and was less than number 40 built?
### Context:
CREATE TABLE table_name_95 (class VARCHAR, wheels VARCHAR, no_built VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_95 WHERE wheels = "4-4-0" AND no_built < 40 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the space crusade when the english is of finnish
### Context:
CREATE TABLE table_name_7 (space_crusade VARCHAR, english VARCHAR) [/INST]
### Response:
SELECT space_crusade FROM table_name_7 WHERE english = "finnish" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the space crusade which has Genestealers of genrøvere (gene robbers)
### Context:
CREATE TABLE table_name_92 (space_crusade VARCHAR, genestealers VARCHAR) [/INST]
### Response:
SELECT space_crusade FROM table_name_92 WHERE genestealers = "genrøvere (gene robbers)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was Galatasaray score when when he won in 1990 and Trabzonspor was the runner-up?
### Context:
CREATE TABLE table_name_24 (score VARCHAR, year VARCHAR, winners VARCHAR, runners_up VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_24 WHERE winners = "galatasaray" AND runners_up = "trabzonspor" AND year = 1990 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many matches were there in the round with £1,000,000 in prize money?
### Context:
CREATE TABLE table_name_15 (matches VARCHAR, prize_money VARCHAR) [/INST]
### Response:
SELECT COUNT(matches) FROM table_name_15 WHERE prize_money = "£1,000,000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date for a round that only had 1 match?
### Context:
CREATE TABLE table_name_36 (date VARCHAR, matches VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_36 WHERE matches = 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date did Hawthorn play as the away team?
### Context:
CREATE TABLE table_name_87 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_87 WHERE away_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the hometown for a college in Wisconsin?
### Context:
CREATE TABLE table_name_43 (hometown VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT hometown FROM table_name_43 WHERE college = "wisconsin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which college has a linebacker from Lessburg High School?
### Context:
CREATE TABLE table_name_92 (college VARCHAR, position VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_92 WHERE position = "linebacker" AND school = "lessburg high school" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which opponent has a week of 11?
### Context:
CREATE TABLE table_name_49 (opponent VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_49 WHERE week = 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which December 4, 1976 week has an attendance less than 57,366?
### Context:
CREATE TABLE table_name_46 (week INTEGER, date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_46 WHERE date = "december 4, 1976" AND attendance < 57 OFFSET 366 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who has a larger than 70.99 km2?
### Context:
CREATE TABLE table_name_52 (comune VARCHAR, total__km²_ INTEGER) [/INST]
### Response:
SELECT comune FROM table_name_52 WHERE total__km²_ > 70.99 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Piano di Sorrento, Napoli lowest km2 with a total smaller than 121.14 km2?
### Context:
CREATE TABLE table_name_26 (area__km²_ INTEGER, total__km²_ VARCHAR, province VARCHAR, comune VARCHAR) [/INST]
### Response:
SELECT MIN(area__km²_) FROM table_name_26 WHERE province = "napoli" AND comune = "piano di sorrento" AND total__km²_ < 121.14 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which writer had a producer DKA, JL, AS?
### Context:
CREATE TABLE table_name_85 (writer VARCHAR, producer_executive_producer VARCHAR) [/INST]
### Response:
SELECT writer FROM table_name_85 WHERE producer_executive_producer = "dka, jl, as" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the film that Lu directed.
### Context:
CREATE TABLE table_name_68 (film_title VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT film_title FROM table_name_68 WHERE director = "lu" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who wrote Toy Story?
### Context:
CREATE TABLE table_name_22 (writer VARCHAR, film_title VARCHAR) [/INST]
### Response:
SELECT writer FROM table_name_22 WHERE film_title = "toy story" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which writer had voice characters of JDR, BB, TN, LR, PS?
### Context:
CREATE TABLE table_name_13 (writer VARCHAR, voiced_character_s_ VARCHAR) [/INST]
### Response:
SELECT writer FROM table_name_13 WHERE voiced_character_s_ = "jdr, bb, tn, lr, ps" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the sound producer that worked under Executive Producer JL?
### Context:
CREATE TABLE table_name_77 (sound VARCHAR, producer_executive_producer VARCHAR) [/INST]
### Response:
SELECT sound FROM table_name_77 WHERE producer_executive_producer = "jl" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the away team at mcg?
### Context:
CREATE TABLE table_name_44 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_44 WHERE venue = "mcg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the player from NGA?
### Context:
CREATE TABLE table_name_17 (name VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_17 WHERE country = "nga" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where is Odjidja-Ofoe, with an undisclosed transfer fee, moving to?
### Context:
CREATE TABLE table_name_64 (moving_to VARCHAR, transfer_fee VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT moving_to FROM table_name_64 WHERE transfer_fee = "undisclosed" AND name = "odjidja-ofoe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country is the player, with an undisclosed transfer fee and moving to Nacional, from?
### Context:
CREATE TABLE table_name_96 (country VARCHAR, transfer_fee VARCHAR, moving_to VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_96 WHERE transfer_fee = "undisclosed" AND moving_to = "nacional" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Odjidja-Ofoe's transfer fee?
### Context:
CREATE TABLE table_name_82 (transfer_fee VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT transfer_fee FROM table_name_82 WHERE name = "odjidja-ofoe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the player from Cod?
### Context:
CREATE TABLE table_name_2 (name VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_2 WHERE country = "cod" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country is the player moving to Hamburger SV from?
### Context:
CREATE TABLE table_name_36 (country VARCHAR, moving_to VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_36 WHERE moving_to = "hamburger sv" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Driver has an Entrant of Arrows Racing Team and Rounds 1-3?
### Context:
CREATE TABLE table_name_25 (driver VARCHAR, entrant VARCHAR, rounds VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_25 WHERE entrant = "arrows racing team" AND rounds = "1-3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Constructor has Rounds, All and Driver, Bruno Giacomelli?
### Context:
CREATE TABLE table_name_50 (constructor VARCHAR, rounds VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_50 WHERE rounds = "all" AND driver = "bruno giacomelli" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the winning score when Damien McGrane was runner-up?
### Context:
CREATE TABLE table_name_39 (winning_score VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT winning_score FROM table_name_39 WHERE runner_s__up = "damien mcgrane" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who were the runners-up at the Alfred Dunhill Links Championship?
### Context:
CREATE TABLE table_name_97 (runner_s__up VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT runner_s__up FROM table_name_97 WHERE tournament = "alfred dunhill links championship" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the highest grid for Laps more than 137 and rank is less than 8
### Context:
CREATE TABLE table_name_89 (grid INTEGER, laps VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_89 WHERE laps > 137 AND rank < 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the total number of rank for Grid less than 20 and dick rathmann and Qual more than 130.92
### Context:
CREATE TABLE table_name_73 (rank VARCHAR, qual VARCHAR, grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT COUNT(rank) FROM table_name_73 WHERE grid < 20 AND driver = "dick rathmann" AND qual > 130.92 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which nation won 1 gold medal and 1 bronze, for a total of 2 medals?
### Context:
CREATE TABLE table_name_70 (nation VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_70 WHERE gold = "1" AND bronze = "1" AND total = 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the Leading scorer when the Home was the Trail blazers?
### Context:
CREATE TABLE table_name_61 (leading_scorer VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT leading_scorer FROM table_name_61 WHERE home = "trail blazers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the sum of NGC number for spiral galaxy and right acension of 08h14m40.4s
### Context:
CREATE TABLE table_name_31 (ngc_number INTEGER, object_type VARCHAR, right_ascension___j2000__ VARCHAR) [/INST]
### Response:
SELECT SUM(ngc_number) FROM table_name_31 WHERE object_type = "spiral galaxy" AND right_ascension___j2000__ = "08h14m40.4s" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the right ascension for open cluster and NGC number more than 2547
### Context:
CREATE TABLE table_name_59 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR) [/INST]
### Response:
SELECT right_ascension___j2000__ FROM table_name_59 WHERE object_type = "open cluster" AND ngc_number > 2547 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the constellation for declination for °45′ and right ascension of 07h58m
### Context:
CREATE TABLE table_name_56 (constellation VARCHAR, declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR) [/INST]
### Response:
SELECT constellation FROM table_name_56 WHERE declination___j2000__ = "°45′" AND right_ascension___j2000__ = "07h58m" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the NGC number for right ascension of 08h11m13.6s
### Context:
CREATE TABLE table_name_92 (ngc_number VARCHAR, right_ascension___j2000__ VARCHAR) [/INST]
### Response:
SELECT ngc_number FROM table_name_92 WHERE right_ascension___j2000__ = "08h11m13.6s" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average crowd when the home team is north melbourne?
### Context:
CREATE TABLE table_name_31 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_31 WHERE home_team = "north melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the crowd total at mcg?
### Context:
CREATE TABLE table_name_45 (crowd VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_45 WHERE venue = "mcg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many Red Breasted Nuthatch coins created before 2007 were minted, on average?
### Context:
CREATE TABLE table_name_42 (mintage INTEGER, animal VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT AVG(mintage) FROM table_name_42 WHERE animal = "red breasted nuthatch" AND year < 2007 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year was the downy woodpecker coin created?
### Context:
CREATE TABLE table_name_46 (year INTEGER, animal VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_46 WHERE animal = "downy woodpecker" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which artist created coins before 2010?
### Context:
CREATE TABLE table_name_40 (artist VARCHAR, year INTEGER) [/INST]
### Response:
SELECT artist FROM table_name_40 WHERE year < 2010 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the game number against the team Boston?
### Context:
CREATE TABLE table_name_3 (game VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT COUNT(game) FROM table_name_3 WHERE team = "boston" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of game 23?
### Context:
CREATE TABLE table_name_27 (date VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_27 WHERE game = 23 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What percentage of Slovenes lived in the village of Roach in 1951?
### Context:
CREATE TABLE table_name_31 (percent_of_slovenes_1951 VARCHAR, village__german_ VARCHAR) [/INST]
### Response:
SELECT percent_of_slovenes_1951 FROM table_name_31 WHERE village__german_ = "roach" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Venue has an Away team of south melbourne?
### Context:
CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_89 WHERE away_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did the Melbourne team score in their away game?
### Context:
CREATE TABLE table_name_3 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_3 WHERE away_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Home team plays at the arden street oval Venue?
### Context:
CREATE TABLE table_name_91 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_91 WHERE venue = "arden street oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Home team Venue for the hawthorn team?
### Context:
CREATE TABLE table_name_58 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_58 WHERE home_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Home team plays at the princes park Venue?
### Context:
CREATE TABLE table_name_29 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_29 WHERE venue = "princes park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Was the game against the Rattlers at the United Sports Training Center a home game or an away game?
### Context:
CREATE TABLE table_name_96 (home_away VARCHAR, opponent VARCHAR, field VARCHAR) [/INST]
### Response:
SELECT home_away FROM table_name_96 WHERE opponent = "rattlers" AND field = "united sports training center" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the opponent for the game at Multi-sport Field?
### Context:
CREATE TABLE table_name_65 (opponent VARCHAR, field VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_65 WHERE field = "multi-sport field" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result of the away game played on August 4?
### Context:
CREATE TABLE table_name_15 (result VARCHAR, home_away VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_15 WHERE home_away = "away" AND date = "august 4" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.