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:
Which position has a club of Meralomas and a player named David Biddle?
### Context:
CREATE TABLE table_name_59 (position VARCHAR, club_province VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_59 WHERE club_province = "meralomas" AND player = "david biddle" </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 number of caps for Meralomas with positions of centre?
### Context:
CREATE TABLE table_name_75 (caps INTEGER, club_province VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT AVG(caps) FROM table_name_75 WHERE club_province = "meralomas" AND position = "centre" </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 are the scorers when the score is 9-2?
### Context:
CREATE TABLE table_name_4 (scorers VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT scorers FROM table_name_4 WHERE score = "9-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 smallest population in a region greater than 9?
### Context:
CREATE TABLE table_name_94 (population INTEGER, region INTEGER) [/INST]
### Response:
SELECT MIN(population) FROM table_name_94 WHERE region > 9 </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 area for code 98030 with population over 312?
### Context:
CREATE TABLE table_name_80 (area__km_2__ INTEGER, code VARCHAR, population VARCHAR) [/INST]
### Response:
SELECT AVG(area__km_2__) FROM table_name_80 WHERE code = 98030 AND population > 312 </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 attendance on may 28?
### Context:
CREATE TABLE table_name_62 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_62 WHERE date = "may 28" </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 the Date of 4 Oct 2009, who was the Runner(s)-up?
### Context:
CREATE TABLE table_name_83 (runner_s__up VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT runner_s__up FROM table_name_83 WHERE date = "4 oct 2009" </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 the Date of 2 Aug 2009, who was the Runner(s)-up?
### Context:
CREATE TABLE table_name_52 (runner_s__up VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT runner_s__up FROM table_name_52 WHERE date = "2 aug 2009" </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 was on the Date 6 Sep 2009?
### Context:
CREATE TABLE table_name_23 (tournament VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_23 WHERE date = "6 sep 2009" </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 for the Mynavi ABC Championship Tournament?
### Context:
CREATE TABLE table_name_55 (winning_score VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT winning_score FROM table_name_55 WHERE tournament = "mynavi abc 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:
What was the Winning score when the Margin of victory is 5 strokes and the Date was 6 Sep 2009?
### Context:
CREATE TABLE table_name_29 (winning_score VARCHAR, margin_of_victory VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT winning_score FROM table_name_29 WHERE margin_of_victory = "5 strokes" AND date = "6 sep 2009" </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 Runner(s)-up on the Date 4 Oct 2009?
### Context:
CREATE TABLE table_name_66 (runner_s__up VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT runner_s__up FROM table_name_66 WHERE date = "4 oct 2009" </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 with third place of stefan edberg?
### Context:
CREATE TABLE table_name_33 (score VARCHAR, third_place VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_33 WHERE third_place = "stefan edberg" </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 runner-up for algarve tournament
### Context:
CREATE TABLE table_name_40 (runner_up VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_name_40 WHERE tournament = "algarve" </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 to know the tournament that has a third place of magnus gustafsson
### Context:
CREATE TABLE table_name_25 (tournament VARCHAR, third_place VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_25 WHERE third_place = "magnus gustafsson" </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 winner when the third place was fernando meligeni?
### Context:
CREATE TABLE table_name_11 (winner VARCHAR, third_place VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_11 WHERE third_place = "fernando meligeni" </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 tournament for patrick rafter winning
### Context:
CREATE TABLE table_name_3 (tournament VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_3 WHERE winner = "patrick rafter" </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 owner in 1996 of trainer Nick Zito?
### Context:
CREATE TABLE table_name_10 (owner VARCHAR, trainer VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT owner FROM table_name_10 WHERE trainer = "nick zito" AND year = "1996" </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 did jockey Ramon Dominguez have a distance of 1-1/16?
### Context:
CREATE TABLE table_name_40 (year VARCHAR, distance VARCHAR, jockey VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_40 WHERE distance = "1-1/16" AND jockey = "ramon dominguez" </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 owner of the trainer Steve Klesaris?
### Context:
CREATE TABLE table_name_80 (owner VARCHAR, trainer VARCHAR) [/INST]
### Response:
SELECT owner FROM table_name_80 WHERE trainer = "steve klesaris" </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 owner of the Raglan Road winner?
### Context:
CREATE TABLE table_name_43 (owner VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT owner FROM table_name_43 WHERE winner = "raglan road" </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 Burning Roma the winner?
### Context:
CREATE TABLE table_name_2 (year VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_2 WHERE winner = "burning roma" </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 win/loss of coach Peter German?
### Context:
CREATE TABLE table_name_23 (win_loss VARCHAR, coach VARCHAR) [/INST]
### Response:
SELECT win_loss FROM table_name_23 WHERE coach = "peter german" </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 tyre was before 1995 with 142 laps?
### Context:
CREATE TABLE table_name_14 (tyres VARCHAR, year VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT tyres FROM table_name_14 WHERE year < 1995 AND laps = 142 </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 tyres has more than 5 laps with team nissan motorsports international?
### Context:
CREATE TABLE table_name_89 (tyres VARCHAR, laps VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT tyres FROM table_name_89 WHERE laps > 5 AND team = "nissan motorsports international" </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 position that has m tyres and 352 or more laps?
### Context:
CREATE TABLE table_name_56 (pos VARCHAR, tyres VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT pos FROM table_name_56 WHERE tyres = "m" AND laps > 352 </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 team 2 when the team 1 is sestese(e16)?
### Context:
CREATE TABLE table_name_29 (team_2 VARCHAR, team_1 VARCHAR) [/INST]
### Response:
SELECT team_2 FROM table_name_29 WHERE team_1 = "sestese(e16)" </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 largest base pair with a Strain of unspecified?
### Context:
CREATE TABLE table_name_2 (base_pairs INTEGER, strain VARCHAR) [/INST]
### Response:
SELECT MAX(base_pairs) FROM table_name_2 WHERE strain = "unspecified" </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 lowst base pair with a Species of borrelia garinii, and a Genes larger than 832?
### Context:
CREATE TABLE table_name_21 (base_pairs INTEGER, species VARCHAR, genes VARCHAR) [/INST]
### Response:
SELECT MIN(base_pairs) FROM table_name_21 WHERE species = "borrelia garinii" AND genes > 832 </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 type has an unspecified species and less than 367 genes?
### Context:
CREATE TABLE table_name_65 (type VARCHAR, species VARCHAR, genes VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_65 WHERE species = "unspecified" AND genes < 367 </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 base pair has 832 genes?
### Context:
CREATE TABLE table_name_79 (base_pairs VARCHAR, genes VARCHAR) [/INST]
### Response:
SELECT base_pairs FROM table_name_79 WHERE genes = 832 </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 competition was ranked 9?
### Context:
CREATE TABLE table_name_53 (competition VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_53 WHERE rank = 9 </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 sum of draws with 274-357 goals?
### Context:
CREATE TABLE table_name_94 (drawn INTEGER, goals VARCHAR) [/INST]
### Response:
SELECT SUM(drawn) FROM table_name_94 WHERE goals = "274-357" </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 lowest played 2 number with less than 83 losses and less than 65 draws with Chernomorets Novorossiysk in season 8?
### Context:
CREATE TABLE table_name_65 (played_2 INTEGER, drawn VARCHAR, club_1 VARCHAR, lost VARCHAR, seasons VARCHAR) [/INST]
### Response:
SELECT MIN(played_2) FROM table_name_65 WHERE lost > 83 AND seasons = 8 AND club_1 = "chernomorets novorossiysk" AND drawn < 65 </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 rank number with 562-506 goals before season 13?
### Context:
CREATE TABLE table_name_88 (rank VARCHAR, goals VARCHAR, seasons VARCHAR) [/INST]
### Response:
SELECT COUNT(rank) FROM table_name_88 WHERE goals = "562-506" AND seasons < 13 </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 seasons have goals of 261-338 with more than 111 losses?
### Context:
CREATE TABLE table_name_77 (seasons VARCHAR, goals VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT COUNT(seasons) FROM table_name_77 WHERE goals = "261-338" AND lost > 111 </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 season number with 57 draws, rank 20, and more than 1 spell?
### Context:
CREATE TABLE table_name_28 (seasons INTEGER, spells VARCHAR, drawn VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MAX(seasons) FROM table_name_28 WHERE drawn = 57 AND rank = 20 AND spells > 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 was the results of the game at Doha?
### Context:
CREATE TABLE table_name_51 (result VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_51 WHERE venue = "doha" </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 score during the competition of 1998 fifa world cup qualification?
### Context:
CREATE TABLE table_name_42 (score VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_42 WHERE competition = "1998 fifa world cup qualification" </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 competition that took place on October 1, 1994?
### Context:
CREATE TABLE table_name_45 (competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_45 WHERE date = "october 1, 1994" </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 competition that had a 2-2 result?
### Context:
CREATE TABLE table_name_58 (competition VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_58 WHERE result = "2-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:
Where did the competition take place that had a 4-2 result?
### Context:
CREATE TABLE table_name_46 (venue VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_46 WHERE result = "4-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:
Where was the competition that took place that had a 5-1 result?
### Context:
CREATE TABLE table_name_7 (venue VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_7 WHERE result = "5-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:
Tell me the highest goals with tries less than 1 and fullback position
### Context:
CREATE TABLE table_name_5 (goals INTEGER, tries VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT MAX(goals) FROM table_name_5 WHERE tries < 1 AND position = "fullback" </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 lowest tries for goals more than 0 with centre position and points less than 54
### Context:
CREATE TABLE table_name_40 (tries INTEGER, points VARCHAR, goals VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT MIN(tries) FROM table_name_40 WHERE goals > 0 AND position = "centre" AND points < 54 </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 to know the player with tries more than 1 and position of hooker with points less than 54
### Context:
CREATE TABLE table_name_18 (player VARCHAR, position VARCHAR, tries VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_18 WHERE tries > 1 AND points < 54 AND position = "hooker" </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 player with points larger than 36 and goals more than 0 with tries of 12
### Context:
CREATE TABLE table_name_56 (player VARCHAR, tries VARCHAR, points VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_56 WHERE points > 36 AND goals > 0 AND tries = 12 </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 Tournament was the 2010 Olympic Games?
### Context:
CREATE TABLE table_name_58 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_58 WHERE 2010 = "olympic games" </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 width had an entered service year of 2010?
### Context:
CREATE TABLE table_name_3 (width VARCHAR, entered_service VARCHAR) [/INST]
### Response:
SELECT width FROM table_name_3 WHERE entered_service = 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 most recent built year when the year of entering service was more recent than 2003, and the knots is less than 27?
### Context:
CREATE TABLE table_name_44 (built INTEGER, entered_service VARCHAR, knots VARCHAR) [/INST]
### Response:
SELECT MAX(built) FROM table_name_44 WHERE entered_service > 2003 AND knots < 27 </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 knots did the Ms Moby Vincent have when passengers was less than 1.6?
### Context:
CREATE TABLE table_name_11 (knots VARCHAR, ship VARCHAR, passengers VARCHAR) [/INST]
### Response:
SELECT COUNT(knots) FROM table_name_11 WHERE ship = "ms moby vincent" AND passengers < 1.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:
Where did Richmond play as the away team?
### Context:
CREATE TABLE table_name_51 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_51 WHERE away_team = "richmond" </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:
When the phillies 1:15 pm played on April 9, what was the attendance?
### Context:
CREATE TABLE table_name_21 (attendance VARCHAR, opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_21 WHERE opponent = "phillies 1:15 pm" AND date = "april 9" </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:
When was there a score of 5-1?
### Context:
CREATE TABLE table_name_42 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_42 WHERE score = "5-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 average number of silvers for nations with over 1 bronze medal?
### Context:
CREATE TABLE table_name_62 (silver INTEGER, bronze INTEGER) [/INST]
### Response:
SELECT AVG(silver) FROM table_name_62 WHERE bronze > 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 Interregnum ended for Count Palatine of Saxony of frederick augustus i, elector of saxony?
### Context:
CREATE TABLE table_name_37 (interregnum_ended VARCHAR, count_palatine_of_saxony VARCHAR) [/INST]
### Response:
SELECT interregnum_ended FROM table_name_37 WHERE count_palatine_of_saxony = "frederick augustus i, elector of saxony" </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 Interregnum ended for Count Palatine of Saxony of john george ii, elector of saxony?
### Context:
CREATE TABLE table_name_69 (interregnum_ended VARCHAR, count_palatine_of_saxony VARCHAR) [/INST]
### Response:
SELECT interregnum_ended FROM table_name_69 WHERE count_palatine_of_saxony = "john george ii, elector of saxony" </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 duration for Count Palatine of the Rhine of charles albert, elector of bavaria?
### Context:
CREATE TABLE table_name_53 (duration VARCHAR, count_palatine_of_the_rhine VARCHAR) [/INST]
### Response:
SELECT duration FROM table_name_53 WHERE count_palatine_of_the_rhine = "charles albert, elector of bavaria" </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 Count Palatine of the Rhine with a Interregnum began of 2 april 1657 death of ferdinand iii?
### Context:
CREATE TABLE table_name_65 (count_palatine_of_the_rhine VARCHAR, interregnum_began VARCHAR) [/INST]
### Response:
SELECT count_palatine_of_the_rhine FROM table_name_65 WHERE interregnum_began = "2 april 1657 death of ferdinand iii" </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 Interregnum ended for the person with a Duration of 3 months, 6 days?
### Context:
CREATE TABLE table_name_78 (interregnum_ended VARCHAR, duration VARCHAR) [/INST]
### Response:
SELECT interregnum_ended FROM table_name_78 WHERE duration = "3 months, 6 days" </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 crowd size when the home team was Hawthorn?
### Context:
CREATE TABLE table_name_53 (crowd VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_53 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 is the total share with Timeslot of 8:30 p.m., anAir Date of march 27, 2008, and a Rank greater than 65?
### Context:
CREATE TABLE table_name_25 (share INTEGER, rank__overall_ VARCHAR, timeslot VARCHAR, air_date VARCHAR) [/INST]
### Response:
SELECT SUM(share) FROM table_name_25 WHERE timeslot = "8:30 p.m." AND air_date = "march 27, 2008" AND rank__overall_ > 65 </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 total number of Viewers with a Rank (Night) of n/a, and a Timeslot of 8:30 p.m.?
### Context:
CREATE TABLE table_name_80 (viewers__m_ VARCHAR, rank__night_ VARCHAR, timeslot VARCHAR) [/INST]
### Response:
SELECT COUNT(viewers__m_) FROM table_name_80 WHERE rank__night_ = "n/a" AND timeslot = "8:30 p.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:
How many people attended the game when Calgary was the home team and the decision was McLean?
### Context:
CREATE TABLE table_name_11 (attendance VARCHAR, decision VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_11 WHERE decision = "mclean" AND home = "calgary" </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 of the game when Los Angeles was the home team?
### Context:
CREATE TABLE table_name_38 (record VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_38 WHERE home = "los angeles" </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 of the game with a score of 1 – 5?
### Context:
CREATE TABLE table_name_39 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_39 WHERE score = "1 – 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 is the least number of people to attend a game when Los Angeles was the home team?
### Context:
CREATE TABLE table_name_97 (attendance INTEGER, home VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_97 WHERE home = "los angeles" </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 runner- up when the tournament is santiago?
### Context:
CREATE TABLE table_name_96 (runner_up VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_name_96 WHERE tournament = "santiago" </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 when the runner-up is richard krajicek?
### Context:
CREATE TABLE table_name_54 (score VARCHAR, runner_up VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_54 WHERE runner_up = "richard krajicek" </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 tournament when the score is 7-6(0), 6-3?
### Context:
CREATE TABLE table_name_48 (tournament VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_48 WHERE score = "7-6(0), 6-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:
who is third place when the tournament is delray beach?
### Context:
CREATE TABLE table_name_77 (third_place VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT third_place FROM table_name_77 WHERE tournament = "delray beach" </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 score in the Continental Qualifier on February 23, 2003?
### Context:
CREATE TABLE table_name_63 (score VARCHAR, competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_63 WHERE competition = "continental qualifier" AND date = "february 23, 2003" </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 score for the World Cup Qualifier?
### Context:
CREATE TABLE table_name_72 (score VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_72 WHERE competition = "world cup qualifier" </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 result on February 18, 2003?
### Context:
CREATE TABLE table_name_61 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_61 WHERE date = "february 18, 2003" </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:
When was the ship that had a fate of 'converted to laker, 1961; still in service' commissioned?
### Context:
CREATE TABLE table_name_14 (commissioned VARCHAR, fate VARCHAR) [/INST]
### Response:
SELECT commissioned FROM table_name_14 WHERE fate = "converted to laker, 1961; still in service" </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:
When was the ship originally named sachem finally decommissioned?
### Context:
CREATE TABLE table_name_94 (final_decommission VARCHAR, original_name VARCHAR) [/INST]
### Response:
SELECT final_decommission FROM table_name_94 WHERE original_name = "sachem" </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 away team score in the game against Richmond?
### Context:
CREATE TABLE table_name_69 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_69 WHERE home_team = "richmond" </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 no 0 results and multiples ties?
### Context:
CREATE TABLE table_name_41 (player VARCHAR, no_result VARCHAR, tied VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_41 WHERE no_result = 0 AND tied > 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:
What is the low no result with more than 5 loss and a win ration lesser than 58.06?
### Context:
CREATE TABLE table_name_80 (no_result INTEGER, lost VARCHAR, _percentage_win_ VARCHAR, a_ VARCHAR) [/INST]
### Response:
SELECT MIN(no_result) FROM table_name_80 WHERE lost > 5 AND _percentage_win_[a_] < 58.06 </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 opponent for may 12
### Context:
CREATE TABLE table_name_73 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_73 WHERE date = "may 12" </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 for Loss of schilling (5–2)
### Context:
CREATE TABLE table_name_31 (date VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_31 WHERE loss = "schilling (5–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:
Name the record for may 31
### Context:
CREATE TABLE table_name_64 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_64 WHERE date = "may 31" </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 highest average for the contestant having an interview score of 8.46?
### Context:
CREATE TABLE table_name_84 (average INTEGER, interview VARCHAR) [/INST]
### Response:
SELECT MAX(average) FROM table_name_84 WHERE interview = 8.46 </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 day had a time of 29.816?
### Context:
CREATE TABLE table_name_45 (date VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_45 WHERE time = "29.816" </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 kind of car has the NASCAR Camping World Truck Series record?
### Context:
CREATE TABLE table_name_7 (car_make VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT car_make FROM table_name_7 WHERE record = "nascar camping world truck series" </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 it a home game on the date of April 6?
### Context:
CREATE TABLE table_name_6 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_6 WHERE date = "april 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:
What was the date when the home team was Dallas?
### Context:
CREATE TABLE table_name_28 (date VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_28 WHERE home = "dallas" </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 Rhett Mclane's highest pick number?
### Context:
CREATE TABLE table_name_94 (pick__number INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(pick__number) FROM table_name_94 WHERE player = "rhett mclane" </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 Colorado College's lowest pick number?
### Context:
CREATE TABLE table_name_9 (pick__number INTEGER, college VARCHAR) [/INST]
### Response:
SELECT MIN(pick__number) FROM table_name_9 WHERE college = "colorado" </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 player belongs to Northwestern College?
### Context:
CREATE TABLE table_name_34 (player VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_34 WHERE college = "northwestern" </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 CFL Team is Pascal Masson on?
### Context:
CREATE TABLE table_name_76 (cfl_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT cfl_team FROM table_name_76 WHERE player = "pascal masson" </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's the number & name for the date after 1954?
### Context:
CREATE TABLE table_name_28 (number_ VARCHAR, _name VARCHAR, date INTEGER) [/INST]
### Response:
SELECT number_ & _name FROM table_name_28 WHERE date > 1954 </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's the date for princess royal class locomotive trust?
### Context:
CREATE TABLE table_name_77 (date VARCHAR, owner_s_ VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_77 WHERE owner_s_ = "princess royal class locomotive trust" </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's the number & name for the description peckett 0-4-0st?
### Context:
CREATE TABLE table_name_72 (number_ VARCHAR, _name VARCHAR, description VARCHAR) [/INST]
### Response:
SELECT number_ & _name FROM table_name_72 WHERE description = "peckett 0-4-0st" </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's the number & name for a description of lms fowler class 3f 0-6-0t?
### Context:
CREATE TABLE table_name_10 (number_ VARCHAR, _name VARCHAR, description VARCHAR) [/INST]
### Response:
SELECT number_ & _name FROM table_name_10 WHERE description = "lms fowler class 3f 0-6-0t" </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 drive 74 laps in a grid larger than 9?
### Context:
CREATE TABLE table_name_25 (driver VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_25 WHERE laps = 74 AND grid > 9 </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 player for St. Mary's team?
### Context:
CREATE TABLE table_name_48 (player VARCHAR, school_club_team_country VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_48 WHERE school_club_team_country = "st. mary's" </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 tall is the player from Mississippi
### Context:
CREATE TABLE table_name_15 (height_in_ft VARCHAR, school_club_team_country VARCHAR) [/INST]
### Response:
SELECT height_in_ft FROM table_name_15 WHERE school_club_team_country = "mississippi" </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 player number for the player from Centenary?
### Context:
CREATE TABLE table_name_66 (no_s_ VARCHAR, school_club_team_country VARCHAR) [/INST]
### Response:
SELECT no_s_ FROM table_name_66 WHERE school_club_team_country = "centenary" </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 tall is player 42 from Long Beach State?
### Context:
CREATE TABLE table_name_69 (height_in_ft VARCHAR, no_s_ VARCHAR, school_club_team_country VARCHAR) [/INST]
### Response:
SELECT height_in_ft FROM table_name_69 WHERE no_s_ = "42" AND school_club_team_country = "long beach state" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.