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 are the points in the season with 47 games and 28 goals?
### Context:
CREATE TABLE table_name_38 (points VARCHAR, goals VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_38 WHERE goals = "28" AND games = "47" </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 goals were there in game 47?
### Context:
CREATE TABLE table_name_29 (goals VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT goals FROM table_name_29 WHERE games = "47" </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 much Snatch has a Total (kg) smaller than 257?
### Context:
CREATE TABLE table_name_79 (snatch INTEGER, total__kg_ INTEGER) [/INST]
### Response:
SELECT SUM(snatch) FROM table_name_79 WHERE total__kg_ < 257 </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 Snatch has a Clean & Jerk of 180, and a Bodyweight smaller than 69.83?
### Context:
CREATE TABLE table_name_25 (snatch INTEGER, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR) [/INST]
### Response:
SELECT MIN(snatch) FROM table_name_25 WHERE clean_ & _jerk = 180 AND bodyweight < 69.83 </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 military deaths when there are 78 military and/or civilian wounded and more than 27 total deaths?
### Context:
CREATE TABLE table_name_41 (military_deaths VARCHAR, military_and_or_civilian_wounded VARCHAR, total_deaths VARCHAR) [/INST]
### Response:
SELECT COUNT(military_deaths) FROM table_name_41 WHERE military_and_or_civilian_wounded = "78" AND total_deaths > 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:
What is the average number of military deaths when there are fewer than 38 civilian deaths (including foreigners) and 33 military and/or civilian wounded?
### Context:
CREATE TABLE table_name_22 (military_deaths INTEGER, civilian_deaths__including_foreigners_ VARCHAR, military_and_or_civilian_wounded VARCHAR) [/INST]
### Response:
SELECT AVG(military_deaths) FROM table_name_22 WHERE civilian_deaths__including_foreigners_ < 38 AND military_and_or_civilian_wounded = "33" </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 casualties when there are 12 total deaths and more than 1 military death?
### Context:
CREATE TABLE table_name_47 (total_casualties VARCHAR, total_deaths VARCHAR, military_deaths VARCHAR) [/INST]
### Response:
SELECT total_casualties FROM table_name_47 WHERE total_deaths = 12 AND military_deaths > 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:
which Total has a Score points of 11?
### Context:
CREATE TABLE table_name_13 (total VARCHAR, score_points VARCHAR) [/INST]
### Response:
SELECT total FROM table_name_13 WHERE score_points = "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 Total has an olympic bronze medalist?
### Context:
CREATE TABLE table_name_27 (total VARCHAR, rank_points VARCHAR) [/INST]
### Response:
SELECT total FROM table_name_27 WHERE rank_points = "olympic bronze medalist" </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 Shooter has Score points of olympic silver medalist?
### Context:
CREATE TABLE table_name_40 (shooter VARCHAR, score_points VARCHAR) [/INST]
### Response:
SELECT shooter FROM table_name_40 WHERE score_points = "olympic silver medalist" </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 Rank points which have an Event of wc beijing, and Score points of 13, and a Total of 18?
### Context:
CREATE TABLE table_name_75 (rank_points VARCHAR, total VARCHAR, event VARCHAR, score_points VARCHAR) [/INST]
### Response:
SELECT rank_points FROM table_name_75 WHERE event = "wc beijing" AND score_points = "13" AND total = "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 is the Film title used in nomination of Cilvēka Bērns?
### Context:
CREATE TABLE table_name_91 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT film_title_used_in_nomination FROM table_name_91 WHERE original_title = "cilvēka bērns" </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 Original Title of the 1992 (65th) Film
### Context:
CREATE TABLE table_name_61 (original_title VARCHAR, year__ceremony_ VARCHAR) [/INST]
### Response:
SELECT original_title FROM table_name_61 WHERE year__ceremony_ = "1992 (65th)" </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 Director of Gulf Stream Under the Iceberg?
### Context:
CREATE TABLE table_name_55 (director VARCHAR, film_title_used_in_nomination VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_55 WHERE film_title_used_in_nomination = "gulf stream under the iceberg" </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 Original Title of the movie directed by Aigars Grauba?
### Context:
CREATE TABLE table_name_36 (original_title VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT original_title FROM table_name_36 WHERE director = "aigars grauba" </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 British letter with o /oʊ/?
### Context:
CREATE TABLE table_name_55 (british VARCHAR, letter VARCHAR) [/INST]
### Response:
SELECT british FROM table_name_55 WHERE letter = "o /oʊ/" </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 letter has the British aɪ?
### Context:
CREATE TABLE table_name_40 (letter VARCHAR, british VARCHAR) [/INST]
### Response:
SELECT letter FROM table_name_40 WHERE british = "aɪ" </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 does American have if Australia has əʉ?
### Context:
CREATE TABLE table_name_65 (american VARCHAR, australian VARCHAR) [/INST]
### Response:
SELECT american FROM table_name_65 WHERE australian = "əʉ" </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 British letter if American is ə?
### Context:
CREATE TABLE table_name_10 (british VARCHAR, american VARCHAR) [/INST]
### Response:
SELECT british FROM table_name_10 WHERE american = "ə" </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 Australian letter with a British of ɪ and a letter of æ /i/??
### Context:
CREATE TABLE table_name_67 (australian VARCHAR, british VARCHAR, letter VARCHAR) [/INST]
### Response:
SELECT australian FROM table_name_67 WHERE british = "ɪ" AND letter = "æ /i/" </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 sheffield united's away team?
### Context:
CREATE TABLE table_name_74 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_74 WHERE home_team = "sheffield united" </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 Away team of middlesbrough?
### Context:
CREATE TABLE table_name_67 (attendance VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_67 WHERE away_team = "middlesbrough" </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 Score has an Away team of middlesbrough?
### Context:
CREATE TABLE table_name_98 (score VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_98 WHERE away_team = "middlesbrough" </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 YEARS AS TALLEST WITH 01.0 10 light street?
### Context:
CREATE TABLE table_name_81 (years_as_tallest VARCHAR, street_address VARCHAR) [/INST]
### Response:
SELECT years_as_tallest FROM table_name_81 WHERE street_address = "01.0 10 light street" </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 FLOOR NUMBERS WITH 01.0 10 light street?
### Context:
CREATE TABLE table_name_57 (floors INTEGER, street_address VARCHAR) [/INST]
### Response:
SELECT SUM(floors) FROM table_name_57 WHERE street_address = "01.0 10 light street" </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 YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street?
### Context:
CREATE TABLE table_name_10 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR) [/INST]
### Response:
SELECT years_as_tallest FROM table_name_10 WHERE floors < 24 AND street_address = "05.0 210 north charles street" </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 WITH 01.0 10 light street?
### Context:
CREATE TABLE table_name_63 (name VARCHAR, street_address VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_63 WHERE street_address = "01.0 10 light street" </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 with a Height of m (ft 1in)?
### Context:
CREATE TABLE table_name_20 (name VARCHAR, height VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_20 WHERE height = "m (ft 1in)" </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 Tatyana Gubina's Weight?
### Context:
CREATE TABLE table_name_43 (weight VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT weight FROM table_name_43 WHERE name = "tatyana gubina" </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 Alyona Klimenko's Pos.?
### Context:
CREATE TABLE table_name_86 (pos VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT pos FROM table_name_86 WHERE name = "alyona klimenko" </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 third places has a total greater than 2 and a rank less than 2?
### Context:
CREATE TABLE table_name_23 (third_place VARCHAR, total VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT third_place FROM table_name_23 WHERE total > 2 AND rank < 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 number for R Bacon in Passaic County?
### Context:
CREATE TABLE table_name_98 (r_bacon VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT r_bacon FROM table_name_98 WHERE county = "passaic" </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 number for D. Shulman if C. Abate has 728 (43%)
### Context:
CREATE TABLE table_name_9 (d_shulman VARCHAR, c_abate VARCHAR) [/INST]
### Response:
SELECT d_shulman FROM table_name_9 WHERE c_abate = "728 (43%)" </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 county has 728 (43%) listed under C. Abate?
### Context:
CREATE TABLE table_name_4 (county VARCHAR, c_abate VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_4 WHERE c_abate = "728 (43%)" </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 are the numbers for D. Shulman in Warren County?
### Context:
CREATE TABLE table_name_12 (d_shulman VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT d_shulman FROM table_name_12 WHERE county = "warren" </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 County has Precincts of 90/90?
### Context:
CREATE TABLE table_name_51 (county VARCHAR, precincts VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_51 WHERE precincts = "90/90" </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 county has 438 (4%) listed under R. Bacon?
### Context:
CREATE TABLE table_name_92 (county VARCHAR, r_bacon VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_92 WHERE r_bacon = "438 (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:
What is the format of the album Pacific Ocean Blue in 1991?
### Context:
CREATE TABLE table_name_57 (format VARCHAR, album VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_57 WHERE album = "pacific ocean blue" AND year = 1991 </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 artist with catalog number ZK 34354?
### Context:
CREATE TABLE table_name_38 (artist VARCHAR, catalog__number VARCHAR) [/INST]
### Response:
SELECT artist FROM table_name_38 WHERE catalog__number = "zk 34354" </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 James Stanton?
### Context:
CREATE TABLE table_name_19 (height VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT height FROM table_name_19 WHERE name = "james stanton" </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 is on the roster for the Sydney University Lions?
### Context:
CREATE TABLE table_name_58 (name VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_58 WHERE club = "sydney university lions" </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 height of player James Stanton?
### Context:
CREATE TABLE table_name_63 (height VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT height FROM table_name_63 WHERE name = "james stanton" </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 draft after round 2, is from the United States and has picked less than 113?
### Context:
CREATE TABLE table_name_89 (draft INTEGER, pick VARCHAR, round VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT MAX(draft) FROM table_name_89 WHERE round > 2 AND nationality = "united states" AND pick < 113 </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 draft with a pick larger than 42, and player Grant Eakin after round 8?
### Context:
CREATE TABLE table_name_45 (draft INTEGER, round VARCHAR, pick VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT AVG(draft) FROM table_name_45 WHERE pick > 42 AND player = "grant eakin" AND round > 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:
What venue was the 2000 AFC Asian Cup qualification held at?
### Context:
CREATE TABLE table_name_9 (venue VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_9 WHERE competition = "2000 afc asian 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 were the lowest goals when the matches were smaller than 29?
### Context:
CREATE TABLE table_name_40 (goals INTEGER, matches INTEGER) [/INST]
### Response:
SELECT MIN(goals) FROM table_name_40 WHERE matches < 29 </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 match for goals larger than 36?
### Context:
CREATE TABLE table_name_42 (matches INTEGER, goals INTEGER) [/INST]
### Response:
SELECT MIN(matches) FROM table_name_42 WHERE goals > 36 </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:
For the 2013 completion schedule, what is the total S.no.?
### Context:
CREATE TABLE table_name_53 (sno INTEGER, completion_schedule VARCHAR) [/INST]
### Response:
SELECT SUM(sno) FROM table_name_53 WHERE completion_schedule = "2013" </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 completion schedule for himachal pradesh state with a total capacity (MW) of 800?
### Context:
CREATE TABLE table_name_96 (completion_schedule VARCHAR, state VARCHAR, total_capacity__mw_ VARCHAR) [/INST]
### Response:
SELECT completion_schedule FROM table_name_96 WHERE state = "himachal pradesh" AND total_capacity__mw_ = 800 </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 completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.?
### Context:
CREATE TABLE table_name_9 (sno INTEGER, state VARCHAR, completion_schedule VARCHAR) [/INST]
### Response:
SELECT MIN(sno) FROM table_name_9 WHERE state = "jammu & kashmir" AND completion_schedule = "2016" </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 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011?
### Context:
CREATE TABLE table_name_32 (tournament VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_32 WHERE 2012 = "a" AND 2011 = "1r" AND tournament = "shanghai masters" </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 2011 value of the paris masters, which had A in 2008, A in 2012, A in 2009?
### Context:
CREATE TABLE table_name_34 (tournament VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_34 WHERE 2008 = "a" AND 2012 = "a" AND 2009 = "a" AND tournament = "paris masters" </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 2012 of the hamburg masters?
### Context:
CREATE TABLE table_name_45 (tournament VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_45 WHERE tournament = "hamburg masters" </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 2008 value of the hamburg masters?
### Context:
CREATE TABLE table_name_30 (tournament VARCHAR) [/INST]
### Response:
SELECT 2008 FROM table_name_30 WHERE tournament = "hamburg masters" </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 2009 value with lq in 2012, 2r in 2011, and lq in 2008?
### Context:
CREATE TABLE table_name_19 (Id VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_19 WHERE 2012 = "lq" AND 2011 = "2r" AND 2008 = "lq" </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 2010 value of the monte carlo masters, which had A in 2012?
### Context:
CREATE TABLE table_name_97 (tournament VARCHAR) [/INST]
### Response:
SELECT 2010 FROM table_name_97 WHERE 2012 = "a" AND tournament = "monte carlo masters" </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 quantity when the DRG was E 62 01–E 62 05?
### Context:
CREATE TABLE table_name_93 (quantity VARCHAR, drg_number_s_ VARCHAR) [/INST]
### Response:
SELECT COUNT(quantity) FROM table_name_93 WHERE drg_number_s_ = "e 62 01–e 62 05" </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 in the final has a Partnering of graydon oliver?
### Context:
CREATE TABLE table_name_88 (opponent_in_the_final VARCHAR, partnering VARCHAR) [/INST]
### Response:
SELECT opponent_in_the_final FROM table_name_88 WHERE partnering = "graydon oliver" </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 Score has a Partnering of dmitry tursunov?
### Context:
CREATE TABLE table_name_63 (score VARCHAR, partnering VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_63 WHERE partnering = "dmitry tursunov" </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 Score has an Opponent in the final of chris haggard robbie koenig?
### Context:
CREATE TABLE table_name_17 (score VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_17 WHERE opponent_in_the_final = "chris haggard robbie koenig" </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 Partnering has a Score of 7–6 7 , 6–1?
### Context:
CREATE TABLE table_name_11 (partnering VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT partnering FROM table_name_11 WHERE score = "7–6 7 , 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:
Name the Surface that of Tournament of valencia , spain?
### Context:
CREATE TABLE table_name_92 (surface VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_92 WHERE tournament = "valencia , spain" </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 in the final on july 4, 2005?
### Context:
CREATE TABLE table_name_52 (opponent_in_the_final VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent_in_the_final FROM table_name_52 WHERE date = "july 4, 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 Result F–A on 21 February 2009, when the league position was 1st?
### Context:
CREATE TABLE table_name_55 (result_f_a VARCHAR, league_position VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result_f_a FROM table_name_55 WHERE league_position = "1st" AND date = "21 february 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 club does John Westin play for?
### Context:
CREATE TABLE table_name_99 (college_junior_club_team__league_ VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT college_junior_club_team__league_ FROM table_name_99 WHERE player = "john westin" </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:
In what round was a left wing drafted?
### Context:
CREATE TABLE table_name_58 (round VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_58 WHERE position = "left wing" </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 was drafted in Round 5?
### Context:
CREATE TABLE table_name_30 (player VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_30 WHERE round = 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:
Where did the player who won in 1991 finish?
### Context:
CREATE TABLE table_name_1 (finish VARCHAR, year_s__won VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_1 WHERE year_s__won = "1991" </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 is from scotland?
### Context:
CREATE TABLE table_name_24 (player VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_24 WHERE country = "scotland" </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 are the Lyrics (l) / Music (m) when the draw was 5?
### Context:
CREATE TABLE table_name_60 (lyrics__l____music__m_ VARCHAR, draw VARCHAR) [/INST]
### Response:
SELECT lyrics__l____music__m_ FROM table_name_60 WHERE draw = 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 score has friendly as the competition?
### Context:
CREATE TABLE table_name_11 (score VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_11 WHERE competition = "friendly" </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:
Playing against Chelmsford City on 15 November 1986, who was the home team?
### Context:
CREATE TABLE table_name_6 (home_team VARCHAR, date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_6 WHERE date = "15 november 1986" AND away_team = "chelmsford city" </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 Lincoln City was the away team what is the tie number?
### Context:
CREATE TABLE table_name_21 (tie_no VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_21 WHERE away_team = "lincoln city" </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 game played that had Rochdale as the away team?
### Context:
CREATE TABLE table_name_95 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_95 WHERE away_team = "rochdale" </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:
Scunthorpe United as the home team has what tie number?
### Context:
CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_52 WHERE home_team = "scunthorpe united" </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:
The game played on 6 December 1986 had what score?
### Context:
CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_12 WHERE date = "6 december 1986" </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 TYPE WITH 124?
### Context:
CREATE TABLE table_name_56 (type VARCHAR, quantity VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_56 WHERE quantity = "124" </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 Score, when Total is "28:42"?
### Context:
CREATE TABLE table_name_32 (score VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_32 WHERE total = "28:42" </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 Date, when Set 1 is "20:22"?
### Context:
CREATE TABLE table_name_49 (date VARCHAR, set_1 VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_49 WHERE set_1 = "20:22" </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 Set 1, when Set 2 is "21:18"?
### Context:
CREATE TABLE table_name_48 (set_1 VARCHAR, set_2 VARCHAR) [/INST]
### Response:
SELECT set_1 FROM table_name_48 WHERE set_2 = "21: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 is Set 2, when Total is "52:44"?
### Context:
CREATE TABLE table_name_81 (set_2 VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT set_2 FROM table_name_81 WHERE total = "52:44" </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 away team with a 4 tie no.?
### Context:
CREATE TABLE table_name_57 (away_team VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_57 WHERE tie_no = "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:
What is the date southampton was the away team?
### Context:
CREATE TABLE table_name_52 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_52 WHERE away_team = "southampton" </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 home team tottenham hotspur?
### Context:
CREATE TABLE table_name_94 (score VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_94 WHERE home_team = "tottenham hotspur" </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 of the game on 16 december 1987?
### Context:
CREATE TABLE table_name_36 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_36 WHERE date = "16 december 1987" </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 played against the away team hereford united?
### Context:
CREATE TABLE table_name_16 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_16 WHERE away_team = "hereford united" </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 played against away team hereford united?
### Context:
CREATE TABLE table_name_4 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_4 WHERE away_team = "hereford united" </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 club was in Position 1 in 1959-1960?
### Context:
CREATE TABLE table_name_59 (clubs VARCHAR, position_in_1959_1960 VARCHAR) [/INST]
### Response:
SELECT clubs FROM table_name_59 WHERE position_in_1959_1960 = "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:
In which season did the évora settlements join the league?
### Context:
CREATE TABLE table_name_28 (season_joined_league VARCHAR, settlements VARCHAR) [/INST]
### Response:
SELECT season_joined_league FROM table_name_28 WHERE settlements = "évora" </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 position in 1959-1960 for the club that had 14 seasons at this level?
### Context:
CREATE TABLE table_name_45 (position_in_1959_1960 VARCHAR, seasons_at_this_level VARCHAR) [/INST]
### Response:
SELECT position_in_1959_1960 FROM table_name_45 WHERE seasons_at_this_level = "14 seasons" </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 position in 1959-1960 for the Sporting De Braga club?
### Context:
CREATE TABLE table_name_19 (position_in_1959_1960 VARCHAR, clubs VARCHAR) [/INST]
### Response:
SELECT position_in_1959_1960 FROM table_name_19 WHERE clubs = "sporting de braga" </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 "season joined league" for the club that had 15 seasons at this level?
### Context:
CREATE TABLE table_name_54 (season_joined_league VARCHAR, seasons_at_this_level VARCHAR) [/INST]
### Response:
SELECT season_joined_league FROM table_name_54 WHERE seasons_at_this_level = "15 seasons" </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 has a score of 71-66-72-72=281?
### Context:
CREATE TABLE table_name_79 (country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_79 WHERE score = 71 - 66 - 72 - 72 = 281 </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 amount of money that Payne Stewart has?
### Context:
CREATE TABLE table_name_90 (money___ INTEGER, player VARCHAR) [/INST]
### Response:
SELECT SUM(money___) AS £__ FROM table_name_90 WHERE player = "payne stewart" </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 has player Nick Faldo?
### Context:
CREATE TABLE table_name_92 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_92 WHERE player = "nick faldo" </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 to par for the score 64-73-74-69=280?
### Context:
CREATE TABLE table_name_40 (to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_40 WHERE score = 64 - 73 - 74 - 69 = 280 </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 rank for China Eastern Airlines, Korean Air with more passengers than 97,055?
### Context:
CREATE TABLE table_name_89 (rank INTEGER, carriers VARCHAR, passengers VARCHAR) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_89 WHERE carriers = "china eastern airlines, korean air" AND passengers > 97 OFFSET 055 </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 rank for passengers more than 73,754?
### Context:
CREATE TABLE table_name_45 (rank INTEGER, passengers INTEGER) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_45 WHERE passengers > 73 OFFSET 754 </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 carrier is ranked 20?
### Context:
CREATE TABLE table_name_19 (carriers VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT carriers FROM table_name_19 WHERE rank = 20 </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 rank when there are fewer than 124,296 passengers?
### Context:
CREATE TABLE table_name_4 (rank INTEGER, passengers INTEGER) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_4 WHERE passengers < 124 OFFSET 296 </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.