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:
When was the incumbent first elected in the district where the result was a democratic-republican gain?
### Context:
CREATE TABLE table_2668401_17 (first_elected VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_2668401_17 WHERE result = "Democratic-Republican gain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 district was the incumbent Edwin Gray?
### Context:
CREATE TABLE table_2668401_17 (district VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT district FROM table_2668401_17 WHERE incumbent = "Edwin Gray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 incumbent from the Virginia 10 district first elected?
### Context:
CREATE TABLE table_2668401_17 (first_elected VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_2668401_17 WHERE district = "Virginia 10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result for walter jones (dr) 99.0% henry lee (f) 1.0%
### Context:
CREATE TABLE table_2668387_18 (result VARCHAR, candidates VARCHAR) [/INST]
### Response:
SELECT result FROM table_2668387_18 WHERE candidates = "Walter Jones (DR) 99.0% Henry Lee (F) 1.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:
Name the district for matthew clay
### Context:
CREATE TABLE table_2668387_18 (district VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT district FROM table_2668387_18 WHERE incumbent = "Matthew Clay" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of first elected for john smith
### Context:
CREATE TABLE table_2668387_18 (first_elected VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT COUNT(first_elected) FROM table_2668387_18 WHERE incumbent = "John Smith" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 incumbent for virginia 18
### Context:
CREATE TABLE table_2668387_18 (incumbent VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT incumbent FROM table_2668387_18 WHERE district = "Virginia 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:
Name the district for john randolph (dr)
### Context:
CREATE TABLE table_2668387_18 (district VARCHAR, candidates VARCHAR) [/INST]
### Response:
SELECT district FROM table_2668387_18 WHERE candidates = "John Randolph (DR)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 incumbent for virginia 4
### Context:
CREATE TABLE table_2668387_18 (incumbent VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT incumbent FROM table_2668387_18 WHERE district = "Virginia 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:
When was the earliest person elected?
### Context:
CREATE TABLE table_2668420_17 (first_elected INTEGER) [/INST]
### Response:
SELECT MIN(first_elected) FROM table_2668420_17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 party was re-elected to Virginia 12?
### Context:
CREATE TABLE table_2668420_17 (party VARCHAR, result VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT party FROM table_2668420_17 WHERE result = "Re-elected" AND district = "Virginia 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 is the latest first elected?
### Context:
CREATE TABLE table_2668405_17 (first_elected INTEGER) [/INST]
### Response:
SELECT MAX(first_elected) FROM table_2668405_17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 times were the candidates leven powell (f) 63.8% roger west (dr) 36.4%?
### Context:
CREATE TABLE table_2668405_17 (first_elected VARCHAR, candidates VARCHAR) [/INST]
### Response:
SELECT COUNT(first_elected) FROM table_2668405_17 WHERE candidates = "Leven Powell (F) 63.8% Roger West (DR) 36.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 district with the candidates leven powell (f) 63.8% roger west (dr) 36.4%?
### Context:
CREATE TABLE table_2668405_17 (district VARCHAR, candidates VARCHAR) [/INST]
### Response:
SELECT district FROM table_2668405_17 WHERE candidates = "Leven Powell (F) 63.8% Roger West (DR) 36.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 district with the incumbent john nicholas?
### Context:
CREATE TABLE table_2668405_17 (district VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT district FROM table_2668405_17 WHERE incumbent = "John Nicholas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were in district virginia 6?
### Context:
CREATE TABLE table_2668405_17 (candidates VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT COUNT(candidates) FROM table_2668405_17 WHERE district = "Virginia 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:
If the district is Virginia 8, who is the Incumbent?
### Context:
CREATE TABLE table_2668416_18 (incumbent VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT incumbent FROM table_2668416_18 WHERE district = "Virginia 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:
If the district is Virginia 17, who are the candidates?
### Context:
CREATE TABLE table_2668416_18 (candidates VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT candidates FROM table_2668416_18 WHERE district = "Virginia 17" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 how many different parts was the incumbent Abraham B. Venable?
### Context:
CREATE TABLE table_2668416_18 (party VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT COUNT(party) FROM table_2668416_18 WHERE incumbent = "Abraham B. Venable" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date for the mount panorama circuit?
### Context:
CREATE TABLE table_26686908_2 (date VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT date FROM table_26686908_2 WHERE circuit = "Mount Panorama circuit" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location for the date 7–10 october?
### Context:
CREATE TABLE table_26686908_2 (city___state VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT city___state FROM table_26686908_2 WHERE date = "7–10 October" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 handled production for the race when the championship went to david wall and challenge was jordan ormsby?
### Context:
CREATE TABLE table_26686908_2 (production VARCHAR, championship VARCHAR, challenge VARCHAR) [/INST]
### Response:
SELECT production FROM table_26686908_2 WHERE championship = "David Wall" AND challenge = "Jordan Ormsby" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city and state hosted the adelaide street circuit?
### Context:
CREATE TABLE table_26686908_2 (city___state VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT city___state FROM table_26686908_2 WHERE circuit = "Adelaide Street circuit" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 circuit was held on 25–28 march?
### Context:
CREATE TABLE table_26686908_2 (circuit VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_26686908_2 WHERE date = "25–28 March" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 productions are shown for rd 2?
### Context:
CREATE TABLE table_26686908_2 (production VARCHAR, rd VARCHAR) [/INST]
### Response:
SELECT COUNT(production) FROM table_26686908_2 WHERE rd = "Rd 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 writers for 46 in series
### Context:
CREATE TABLE table_26702078_1 (writer_s_ VARCHAR, no_in_series VARCHAR) [/INST]
### Response:
SELECT writer_s_ FROM table_26702078_1 WHERE no_in_series = 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:
Name the production code for 60 number in series
### Context:
CREATE TABLE table_26702078_1 (production_code VARCHAR, no_in_series VARCHAR) [/INST]
### Response:
SELECT production_code FROM table_26702078_1 WHERE no_in_series = 60 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title of the episode with the director pamela fryman and the production code 2alh07?
### Context:
CREATE TABLE table_26701861_1 (title VARCHAR, director VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT title FROM table_26701861_1 WHERE director = "Pamela Fryman" AND production_code = "2ALH07" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 occurence has the matrix sim marked as 0.925?
### Context:
CREATE TABLE table_26708105_2 (occurrence VARCHAR, matrix_sim VARCHAR) [/INST]
### Response:
SELECT occurrence FROM table_26708105_2 WHERE matrix_sim = "0.925" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 detailed family information where the sequence is aagtact?
### Context:
CREATE TABLE table_26708105_2 (detailed_family_information VARCHAR, sequence VARCHAR) [/INST]
### Response:
SELECT COUNT(detailed_family_information) FROM table_26708105_2 WHERE sequence = "aAGTAct" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 occurence has 0.925 listed as the matrix sim?
### Context:
CREATE TABLE table_26708105_2 (occurrence INTEGER, matrix_sim VARCHAR) [/INST]
### Response:
SELECT MAX(occurrence) FROM table_26708105_2 WHERE matrix_sim = "0.925" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 conserved in mus musculus listing for sequence aagtact?
### Context:
CREATE TABLE table_26708105_2 (conserved_in_mus_musculus VARCHAR, sequence VARCHAR) [/INST]
### Response:
SELECT conserved_in_mus_musculus FROM table_26708105_2 WHERE sequence = "aAGTAct" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nt identity when the species is drosophilia melanogaster?
### Context:
CREATE TABLE table_26708105_5 (nt_identity VARCHAR, species VARCHAR) [/INST]
### Response:
SELECT nt_identity FROM table_26708105_5 WHERE species = "Drosophilia melanogaster" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 protein name when aa length is 202 aa?
### Context:
CREATE TABLE table_26708105_5 (protein_name VARCHAR, aa_length VARCHAR) [/INST]
### Response:
SELECT protein_name FROM table_26708105_5 WHERE aa_length = "202 aa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 protein name when the e-value is 2.50e-41?
### Context:
CREATE TABLE table_26708105_5 (protein_name VARCHAR, e_value VARCHAR) [/INST]
### Response:
SELECT protein_name FROM table_26708105_5 WHERE e_value = "2.50E-41" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 aa length when the protein name is c11orf73?
### Context:
CREATE TABLE table_26708105_5 (aa_length VARCHAR, protein_name VARCHAR) [/INST]
### Response:
SELECT aa_length FROM table_26708105_5 WHERE protein_name = "C11orf73" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 times is the accession number xp_001843282?
### Context:
CREATE TABLE table_26708105_5 (common_name VARCHAR, accession_number VARCHAR) [/INST]
### Response:
SELECT COUNT(common_name) FROM table_26708105_5 WHERE accession_number = "XP_001843282" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 titles have U.S. viewers 1.66 million.
### Context:
CREATE TABLE table_26736040_1 (title VARCHAR, us_viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT COUNT(title) FROM table_26736040_1 WHERE us_viewers__millions_ = "1.66" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 every title when U.S. viewers is 1.04 million.
### Context:
CREATE TABLE table_26736040_1 (title VARCHAR, us_viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT title FROM table_26736040_1 WHERE us_viewers__millions_ = "1.04" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number in series with director as Phil Abraham?
### Context:
CREATE TABLE table_26736040_1 (no_in_series INTEGER, directed_by VARCHAR) [/INST]
### Response:
SELECT MAX(no_in_series) FROM table_26736040_1 WHERE directed_by = "Phil Abraham" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entries for number in series when director is Bryan Cranston?
### Context:
CREATE TABLE table_26736040_1 (no_in_series VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT COUNT(no_in_series) FROM table_26736040_1 WHERE directed_by = "Bryan Cranston" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 earliest episode that was watched by 1.32 million viewers?
### Context:
CREATE TABLE table_26736342_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT MIN(no_in_series) FROM table_26736342_1 WHERE us_viewers__millions_ = "1.32" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 latest episode written by John Shiban & Thomas Schnauz?
### Context:
CREATE TABLE table_26736342_1 (no_in_series INTEGER, written_by VARCHAR) [/INST]
### Response:
SELECT MAX(no_in_series) FROM table_26736342_1 WHERE written_by = "John Shiban & Thomas Schnauz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 directed the eposide that was watched by 1.95 million US viewers?
### Context:
CREATE TABLE table_26736342_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_26736342_1 WHERE us_viewers__millions_ = "1.95" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episodes are there for the three darts challenge with Sharon Osbourne?
### Context:
CREATE TABLE table_26733129_1 (episode_number INTEGER, three_darts_challenge VARCHAR) [/INST]
### Response:
SELECT MAX(episode_number) FROM table_26733129_1 WHERE three_darts_challenge = "Sharon Osbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 musical performances aired on 5 April 2010?
### Context:
CREATE TABLE table_26733129_1 (musical_performance VARCHAR, air_date VARCHAR) [/INST]
### Response:
SELECT musical_performance FROM table_26733129_1 WHERE air_date = "5 April 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 were the guests that aired on 7 June 2010?
### Context:
CREATE TABLE table_26733129_1 (guests VARCHAR, air_date VARCHAR) [/INST]
### Response:
SELECT guests FROM table_26733129_1 WHERE air_date = "7 June 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:
Who was in the three darts challenge that aired on 10 may 2010?
### Context:
CREATE TABLE table_26733129_1 (three_darts_challenge VARCHAR, air_date VARCHAR) [/INST]
### Response:
SELECT three_darts_challenge FROM table_26733129_1 WHERE air_date = "10 May 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:
Name the ends lost for canada
### Context:
CREATE TABLE table_26745426_2 (Ends VARCHAR, country VARCHAR, Canada VARCHAR) [/INST]
### Response:
SELECT Ends AS lost FROM table_26745426_2 WHERE country = Canada </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of ends lost for 6 stolen ends
### Context:
CREATE TABLE table_26745426_2 (Ends VARCHAR, stolen_ends VARCHAR) [/INST]
### Response:
SELECT COUNT(Ends) AS lost FROM table_26745426_2 WHERE stolen_ends = 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:
When gniazdo is polish what is proto-slavic?
### Context:
CREATE TABLE table_26757_4 (proto_slavic VARCHAR, polish VARCHAR) [/INST]
### Response:
SELECT proto_slavic FROM table_26757_4 WHERE polish = "gniazdo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 рука / ruka is the serbo-croatian what is the macedonian?
### Context:
CREATE TABLE table_26757_4 (macedonian VARCHAR, serbo_croatian VARCHAR) [/INST]
### Response:
SELECT macedonian FROM table_26757_4 WHERE serbo_croatian = "рука / ruka" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 риба (ríba) is the macedonian what is the proto-slavic?
### Context:
CREATE TABLE table_26757_4 (proto_slavic VARCHAR, macedonian VARCHAR) [/INST]
### Response:
SELECT proto_slavic FROM table_26757_4 WHERE macedonian = "риба (ríba)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 гн(иј)ездо / gn(ij)ezdo is the serbo-croatian how many proto-slavics are there?
### Context:
CREATE TABLE table_26757_4 (proto_slavic VARCHAR, serbo_croatian VARCHAR) [/INST]
### Response:
SELECT COUNT(proto_slavic) FROM table_26757_4 WHERE serbo_croatian = "гн(иј)ездо / gn(ij)ezdo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 рыба (rýba) is the belarusian how many slovenes are there?
### Context:
CREATE TABLE table_26757_4 (slovene VARCHAR, belarusian VARCHAR) [/INST]
### Response:
SELECT COUNT(slovene) FROM table_26757_4 WHERE belarusian = "рыба (rýba)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 вуха (vúkha) is the belarusian how many slovaks are there?
### Context:
CREATE TABLE table_26757_4 (slovak VARCHAR, belarusian VARCHAR) [/INST]
### Response:
SELECT COUNT(slovak) FROM table_26757_4 WHERE belarusian = "вуха (vúkha)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 only route that runs to bhavnagar?
### Context:
CREATE TABLE table_26745820_5 (vivek_express__15905_15906 VARCHAR, kanyakumari VARCHAR) [/INST]
### Response:
SELECT vivek_express__15905_15906 FROM table_26745820_5 WHERE kanyakumari = "Bhavnagar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 every original air date for the number in season of 7?
### Context:
CREATE TABLE table_26748314_1 (original_air_date VARCHAR, no_in_season VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_26748314_1 WHERE no_in_season = 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the number of participating parties when registered voters totaled 643629?
### Context:
CREATE TABLE table_2676980_4 (participating_parties VARCHAR, registered_voters VARCHAR) [/INST]
### Response:
SELECT COUNT(participating_parties) FROM table_2676980_4 WHERE registered_voters = 643629 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 electoral district when total candidates were 35?
### Context:
CREATE TABLE table_2676980_4 (electoral_district VARCHAR, total_candidates VARCHAR) [/INST]
### Response:
SELECT electoral_district FROM table_2676980_4 WHERE total_candidates = 35 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of seats in congress when the electoral district is Ucayali?
### Context:
CREATE TABLE table_2676980_4 (seats_in_congress VARCHAR, electoral_district VARCHAR) [/INST]
### Response:
SELECT COUNT(seats_in_congress) FROM table_2676980_4 WHERE electoral_district = "Ucayali" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of seats in congress when the candidates per party is 6?
### Context:
CREATE TABLE table_2676980_4 (seats_in_congress VARCHAR, candidates_per_party VARCHAR) [/INST]
### Response:
SELECT COUNT(seats_in_congress) FROM table_2676980_4 WHERE candidates_per_party = 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 is the number of total candidates when registered voters is 47742?
### Context:
CREATE TABLE table_2676980_4 (total_candidates VARCHAR, registered_voters VARCHAR) [/INST]
### Response:
SELECT total_candidates FROM table_2676980_4 WHERE registered_voters = 47742 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does the judge who serves Beacon Falls , Naugatuck , Middlebury , Prospect reside?
### Context:
CREATE TABLE table_26758262_1 (judges_residence VARCHAR, municipalities_served VARCHAR) [/INST]
### Response:
SELECT judges_residence FROM table_26758262_1 WHERE municipalities_served = "Beacon Falls , Naugatuck , Middlebury , Prospect" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 district is the court located in Tolland?
### Context:
CREATE TABLE table_26758262_1 (district INTEGER, location_of_court VARCHAR) [/INST]
### Response:
SELECT MAX(district) FROM table_26758262_1 WHERE location_of_court = "Tolland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does the judge whose court is in Groton reside?
### Context:
CREATE TABLE table_26758262_1 (judges_residence VARCHAR, location_of_court VARCHAR) [/INST]
### Response:
SELECT judges_residence FROM table_26758262_1 WHERE location_of_court = "Groton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nhl team for the player john maclean?
### Context:
CREATE TABLE table_2679061_1 (nhl_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nhl_team FROM table_2679061_1 WHERE player = "John MacLean" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the position defence and the college/junior/club team is ottawa 67's (ohl)?
### Context:
CREATE TABLE table_2679061_1 (player VARCHAR, position VARCHAR, college_junior_club_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_2679061_1 WHERE position = "Defence" AND college_junior_club_team = "Ottawa 67's (OHL)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college/junior/club team for the player alfie turcotte?
### Context:
CREATE TABLE table_2679061_1 (college_junior_club_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT college_junior_club_team FROM table_2679061_1 WHERE player = "Alfie Turcotte" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college/junior/club team of the Buffalo Sabres?
### Context:
CREATE TABLE table_2679061_10 (college_junior_club_team VARCHAR, nhl_team VARCHAR) [/INST]
### Response:
SELECT college_junior_club_team FROM table_2679061_10 WHERE nhl_team = "Buffalo Sabres" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Reine Karlsson's nationality?
### Context:
CREATE TABLE table_2679061_10 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_2679061_10 WHERE player = "Reine Karlsson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 players were drafted by the Philadelphia Flyers?
### Context:
CREATE TABLE table_2679061_11 (nationality VARCHAR, nhl_team VARCHAR) [/INST]
### Response:
SELECT COUNT(nationality) FROM table_2679061_11 WHERE nhl_team = "Philadelphia Flyers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 picks did the Chicago Black Hawks get?
### Context:
CREATE TABLE table_2679061_11 (pick__number VARCHAR, nhl_team VARCHAR) [/INST]
### Response:
SELECT COUNT(pick__number) FROM table_2679061_11 WHERE nhl_team = "Chicago Black Hawks" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team had pick 203?
### Context:
CREATE TABLE table_2679061_11 (nhl_team VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT nhl_team FROM table_2679061_11 WHERE pick__number = 203 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 school did harold duvall attend?
### Context:
CREATE TABLE table_2679061_12 (college_junior_club_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT college_junior_club_team FROM table_2679061_12 WHERE player = "Harold Duvall" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
List the position for the boston bruins.
### Context:
CREATE TABLE table_2679061_12 (position VARCHAR, nhl_team VARCHAR) [/INST]
### Response:
SELECT position FROM table_2679061_12 WHERE nhl_team = "Boston Bruins" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 drafted to litvinov (czechoslovakia)?
### Context:
CREATE TABLE table_2679061_12 (player VARCHAR, college_junior_club_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_2679061_12 WHERE college_junior_club_team = "Litvinov (Czechoslovakia)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does peter mcgeough cover?
### Context:
CREATE TABLE table_2679061_12 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_2679061_12 WHERE player = "Peter McGeough" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was drafted by the Minnesota North Stars?
### Context:
CREATE TABLE table_2679061_4 (player VARCHAR, nhl_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_2679061_4 WHERE nhl_team = "Minnesota North Stars" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nationality of Bob Essensa?
### Context:
CREATE TABLE table_2679061_4 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_2679061_4 WHERE player = "Bob Essensa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the player from the Regina Pats (WHL)?
### Context:
CREATE TABLE table_2679061_4 (position VARCHAR, college_junior_club_team VARCHAR) [/INST]
### Response:
SELECT position FROM table_2679061_4 WHERE college_junior_club_team = "Regina Pats (WHL)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number pick was the player from HIFK Helsinki (Finland)?
### Context:
CREATE TABLE table_2679061_4 (pick__number VARCHAR, college_junior_club_team VARCHAR) [/INST]
### Response:
SELECT pick__number FROM table_2679061_4 WHERE college_junior_club_team = "HIFK Helsinki (Finland)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team drafted Esa Tikkanen?
### Context:
CREATE TABLE table_2679061_4 (nhl_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nhl_team FROM table_2679061_4 WHERE player = "Esa Tikkanen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nationality of player picked no. 168?
### Context:
CREATE TABLE table_2679061_9 (nationality VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_2679061_9 WHERE pick__number = 168 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nationality of player picked no. 179?
### Context:
CREATE TABLE table_2679061_9 (nationality VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_2679061_9 WHERE pick__number = 179 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player who played for Hartford Whalers NHL Team?
### Context:
CREATE TABLE table_2679061_9 (player VARCHAR, nhl_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_2679061_9 WHERE nhl_team = "Hartford Whalers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the player who played for New York Islanders NHL Team?
### Context:
CREATE TABLE table_2679061_9 (position VARCHAR, nhl_team VARCHAR) [/INST]
### Response:
SELECT position FROM table_2679061_9 WHERE nhl_team = "New York Islanders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nationality of player Cliff Abrecht?
### Context:
CREATE TABLE table_2679061_9 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_2679061_9 WHERE player = "Cliff Abrecht" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of poles?
### Context:
CREATE TABLE table_26794530_1 (poles INTEGER) [/INST]
### Response:
SELECT MAX(poles) FROM table_26794530_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:
How many f/laps were there when he scored 170 points?
### Context:
CREATE TABLE table_26794530_1 (f_laps VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(f_laps) FROM table_26794530_1 WHERE points = "170" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 there were 30 races and the final placing was 13th, how many points were scored?
### Context:
CREATE TABLE table_26794530_1 (points VARCHAR, final_placing VARCHAR, races VARCHAR) [/INST]
### Response:
SELECT points FROM table_26794530_1 WHERE final_placing = "13th" AND races = 30 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is associated with draft number 155?
### Context:
CREATE TABLE table_2679061_8 (nhl_team VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT nhl_team FROM table_2679061_8 WHERE pick__number = 155 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 production code for the number 5 series ?
### Context:
CREATE TABLE table_26801821_1 (production_code VARCHAR, no_in_series VARCHAR) [/INST]
### Response:
SELECT production_code FROM table_26801821_1 WHERE no_in_series = 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 number of the series written by Teresa Lin?
### Context:
CREATE TABLE table_26801821_1 (no_in_series VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT COUNT(no_in_series) FROM table_26801821_1 WHERE written_by = "Teresa Lin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 series # had 0.852 U.S. viewers(millions)?
### Context:
CREATE TABLE table_26808178_3 (series__number INTEGER, us_viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT MAX(series__number) FROM table_26808178_3 WHERE us_viewers__millions_ = "0.852" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 original air date had 0.871 U.S. viewers (millions)?
### Context:
CREATE TABLE table_26808178_3 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_26808178_3 WHERE us_viewers__millions_ = "0.871" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 series # had 0.645 U.S. viewers(millions)?
### Context:
CREATE TABLE table_26808178_3 (series__number INTEGER, us_viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT MAX(series__number) FROM table_26808178_3 WHERE us_viewers__millions_ = "0.645" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 12th is the final placing what is the wins?
### Context:
CREATE TABLE table_26815674_1 (wins VARCHAR, final_placing VARCHAR) [/INST]
### Response:
SELECT wins FROM table_26815674_1 WHERE final_placing = "12th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 24th is the final placing how many wins are there?
### Context:
CREATE TABLE table_26815674_1 (wins VARCHAR, final_placing VARCHAR) [/INST]
### Response:
SELECT COUNT(wins) FROM table_26815674_1 WHERE final_placing = "24th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 overall amount of wins?
### Context:
CREATE TABLE table_26815674_1 (wins INTEGER) [/INST]
### Response:
SELECT MIN(wins) FROM table_26815674_1 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.