inputs stringlengths 400 1.34k |
|---|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many points are there, when the grade is A?
### Context:
CREATE TABLE table_name_92 (points INTEGER, grade VARCHAR)
### Response:
### Response:
SELECT MAX(points) FROM table_name_92 WHERE grade = "a"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Find the number of complaints with Product Failure type for each complaint status.
### Context:
CREATE TABLE complaints (complaint_status_code VARCHAR, complaint_type_code VARCHAR)
### Response:
### Response:
SELECT complaint_status_code, COUNT(*) FROM complaints WHERE complaint_type_code = "Product Failure" GROUP BY complaint_status_code</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Where was the combat of 2009-09-16?
### Context:
CREATE TABLE table_name_80 (location VARCHAR, circumstances VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_80 WHERE circumstances = "combat" AND date = "2009-09-16"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Rank has a Qual of 145.144?
### Context:
CREATE TABLE table_name_68 (rank VARCHAR, qual VARCHAR)
### Response:
### Response:
SELECT rank FROM table_name_68 WHERE qual = "145.144"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the score composer of the film released in 1967?
### Context:
CREATE TABLE table_name_5 (score_composer VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT score_composer FROM table_name_5 WHERE year = 1967</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which game has a result of 113-106?
### Context:
CREATE TABLE table_name_29 (game VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT game FROM table_name_29 WHERE result = "113-106"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Find the market shares and names of furnitures which no any company is producing in our records.
### Context:
CREATE TABLE furniture (Market_Rate VARCHAR, name VARCHAR, Furniture_ID VARCHAR); CREATE TABLE furniture_manufacte (Market_Rate VARCHAR, name VARCHAR, Furniture_ID VARCHAR)
### Response:
### Response:
SELECT Market_Rate, name FROM furniture WHERE NOT Furniture_ID IN (SELECT Furniture_ID FROM furniture_manufacte)</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the IATA for the chennai international airport?
### Context:
CREATE TABLE table_name_96 (iata VARCHAR, airport VARCHAR)
### Response:
### Response:
SELECT iata FROM table_name_96 WHERE airport = "chennai international airport"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the Location/Attendance on september 11?
### Context:
CREATE TABLE table_name_3 (location_attendance VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT location_attendance FROM table_name_3 WHERE date = "september 11"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the number of points of palamós cf, which has less than 21 wins and less than 40 goals?
### Context:
CREATE TABLE table_name_60 (points VARCHAR, goals_for VARCHAR, wins VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT COUNT(points) FROM table_name_60 WHERE wins < 21 AND club = "palamós cf" AND goals_for < 40</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the preliminary average for the one who had a semifinal average of 8.966 (3)?
### Context:
CREATE TABLE table_16323766_3 (preliminary_average VARCHAR, semifinal_average VARCHAR)
### Response:
### Response:
SELECT preliminary_average FROM table_16323766_3 WHERE semifinal_average = "8.966 (3)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the pos with more than 1 tier during Pokal Slovenije 1. round?
### Context:
CREATE TABLE table_name_20 (pos VARCHAR, tier VARCHAR, cup_competitions VARCHAR)
### Response:
### Response:
SELECT pos FROM table_name_20 WHERE tier > 1 AND cup_competitions = "pokal slovenije 1. round"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the result for the match with entry Match Reports?
### Context:
CREATE TABLE table_name_69 (result VARCHAR, match VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_69 WHERE match = "match reports"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many top division titles does Club Guadalajara have, with more than 42 seasons in Liga MX?
### Context:
CREATE TABLE table_name_66 (top_division_titles INTEGER, number_of_seasons_in_liga_mx VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT SUM(top_division_titles) FROM table_name_66 WHERE number_of_seasons_in_liga_mx > 42 AND club = "guadalajara"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Mintage of the 12.61 g Weight Ruby-Throated Hummingbird?
### Context:
CREATE TABLE table_name_88 (mintage VARCHAR, weight VARCHAR, theme VARCHAR)
### Response:
### Response:
SELECT COUNT(mintage) FROM table_name_88 WHERE weight = "12.61 g" AND theme = "ruby-throated hummingbird"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the independent regional force when alliance is (r) iván norambuena ( udi )?
### Context:
CREATE TABLE table_2651755_1 (independent_regional_force VARCHAR, alliance VARCHAR)
### Response:
### Response:
SELECT independent_regional_force FROM table_2651755_1 WHERE alliance = "(R) Iván Norambuena ( UDI )"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
in how many of the arkansas colomel the county was pope
### Context:
CREATE TABLE table_29458735_5 (colonel VARCHAR, county VARCHAR)
### Response:
### Response:
SELECT COUNT(colonel) FROM table_29458735_5 WHERE county = "Pope"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who are the rowers for Australia?
### Context:
CREATE TABLE table_name_54 (rowers VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT rowers FROM table_name_54 WHERE country = "australia"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many penalties were there in the game with a G.F. of 40?
### Context:
CREATE TABLE table_name_20 (penalties VARCHAR, gf VARCHAR)
### Response:
### Response:
SELECT penalties FROM table_name_20 WHERE gf = "40"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Home Team on April 13 with a Road Team of St. Louis?
### Context:
CREATE TABLE table_name_8 (home_team VARCHAR, road_team VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_8 WHERE road_team = "st. louis" AND date = "april 13"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many losing points does Llandudno RFC have?
### Context:
CREATE TABLE table_14058433_3 (losing_bonus VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT losing_bonus FROM table_14058433_3 WHERE club = "Llandudno RFC"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What districts of Bihar have a sex ratio in 1991 of 864?
### Context:
CREATE TABLE table_19589113_5 (districts_of_bihar VARCHAR, sex_ratio_‡_1991 VARCHAR)
### Response:
### Response:
SELECT districts_of_bihar FROM table_19589113_5 WHERE sex_ratio_‡_1991 = 864</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Video has an Aspect of 16:9?
### Context:
CREATE TABLE table_name_14 (video VARCHAR, aspect VARCHAR)
### Response:
### Response:
SELECT video FROM table_name_14 WHERE aspect = "16:9"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the To Par that has a 69-69-73=211 score?
### Context:
CREATE TABLE table_name_35 (to_par VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_name_35 WHERE score = 69 - 69 - 73 = 211</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the first star of the game with record of 17-11-5?
### Context:
CREATE TABLE table_27537518_6 (first_star VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT first_star FROM table_27537518_6 WHERE record = "17-11-5"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the centennial for 1992 akimel
### Context:
CREATE TABLE table_15977768_1 (centennial VARCHAR, akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river VARCHAR)
### Response:
### Response:
SELECT centennial FROM table_15977768_1 WHERE akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river = "1992"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What team did he compete for in the GP3 series?
### Context:
CREATE TABLE table_20500097_1 (team VARCHAR, series VARCHAR)
### Response:
### Response:
SELECT team FROM table_20500097_1 WHERE series = "GP3 series"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the highest Pl GP with a Reg GP over 18?
### Context:
CREATE TABLE table_name_22 (pl_gp INTEGER, reg_gp INTEGER)
### Response:
### Response:
SELECT MAX(pl_gp) FROM table_name_22 WHERE reg_gp > 18</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the attendance when the record was 1-1?
### Context:
CREATE TABLE table_13258972_2 (attendance VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT attendance FROM table_13258972_2 WHERE record = "1-1"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What years did the player with the jersey number bigger than 20 play?
### Context:
CREATE TABLE table_name_5 (years VARCHAR, jersey_number_s_ INTEGER)
### Response:
### Response:
SELECT years FROM table_name_5 WHERE jersey_number_s_ > 20</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the least dynamo when spartak is more than 9, competition is totals and draw is more than 24?
### Context:
CREATE TABLE table_name_12 (dynamo INTEGER, draw VARCHAR, spartak VARCHAR, competition VARCHAR)
### Response:
### Response:
SELECT MIN(dynamo) FROM table_name_12 WHERE spartak > 9 AND competition = "totals" AND draw > 24</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
WHich Color commentatorhas a Studio host of gary tanguay & eric frede?
### Context:
CREATE TABLE table_name_3 (color_commentator_s_ VARCHAR, studio_host VARCHAR)
### Response:
### Response:
SELECT color_commentator_s_ FROM table_name_3 WHERE studio_host = "gary tanguay & eric frede"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Persian word has the same meaning as the Domari word na?
### Context:
CREATE TABLE table_name_84 (persian VARCHAR, domari VARCHAR)
### Response:
### Response:
SELECT persian FROM table_name_84 WHERE domari = "na"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
If the team is Billy Ballew Motorsports, what is the race time?
### Context:
CREATE TABLE table_2260452_1 (race_time VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT race_time FROM table_2260452_1 WHERE team = "Billy Ballew Motorsports"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the player with a bowling best of 2/43?
### Context:
CREATE TABLE table_15893020_2 (player VARCHAR, best_bowling VARCHAR)
### Response:
### Response:
SELECT player FROM table_15893020_2 WHERE best_bowling = "2/43"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When did the New England Patriots play as the visiting team?
### Context:
CREATE TABLE table_name_23 (date VARCHAR, visiting_team VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_23 WHERE visiting_team = "new england patriots"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many different sizes (in acres) are noted for Rathcoola East?
### Context:
CREATE TABLE table_30120566_1 (area__acres__ VARCHAR, townland VARCHAR)
### Response:
### Response:
SELECT COUNT(area__acres__) FROM table_30120566_1 WHERE townland = "Rathcoola East"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is the artist of the album Soul?
### Context:
CREATE TABLE table_name_18 (artist VARCHAR, album VARCHAR)
### Response:
### Response:
SELECT artist FROM table_name_18 WHERE album = "soul"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many distinct claim outcome codes are there?
### Context:
CREATE TABLE claims_processing (claim_outcome_code VARCHAR)
### Response:
### Response:
SELECT COUNT(DISTINCT claim_outcome_code) FROM claims_processing</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the nationality of Mattias Modig?
### Context:
CREATE TABLE table_name_86 (nationality VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_86 WHERE player = "mattias modig"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the car number for 1997
### Context:
CREATE TABLE table_1688640_4 (car__number VARCHAR, year_started VARCHAR)
### Response:
### Response:
SELECT car__number FROM table_1688640_4 WHERE year_started = 1997</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How much Rank has Points larger than 282.5?
### Context:
CREATE TABLE table_name_11 (rank VARCHAR, points INTEGER)
### Response:
### Response:
SELECT COUNT(rank) FROM table_name_11 WHERE points > 282.5</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What team was the home team when Luton Town was the home team?
### Context:
CREATE TABLE table_name_49 (home_team VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_49 WHERE away_team = "luton town"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Can you tell me the Attendance that has the Date of april 12?
### Context:
CREATE TABLE table_name_63 (attendance VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT attendance FROM table_name_63 WHERE date = "april 12"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what's the circuit with rnd being 5
### Context:
CREATE TABLE table_14638077_2 (circuit VARCHAR, rnd VARCHAR)
### Response:
### Response:
SELECT circuit FROM table_14638077_2 WHERE rnd = 5</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many artists do we have?
### Context:
CREATE TABLE artist (Id VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM artist</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What day was the attendance at the staples center 18,176?
### Context:
CREATE TABLE table_13619135_7 (date VARCHAR, location_attendance VARCHAR)
### Response:
### Response:
SELECT date FROM table_13619135_7 WHERE location_attendance = "Staples Center 18,176"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the successor for the reason for change being "died January 16, 1944?
### Context:
CREATE TABLE table_2159537_3 (successor VARCHAR, reason_for_change VARCHAR)
### Response:
### Response:
SELECT successor FROM table_2159537_3 WHERE reason_for_change = "Died January 16, 1944"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Russian name with lbr as the Latin 3-letter code?
### Context:
CREATE TABLE table_name_86 (russian_name VARCHAR, latin_3_letter_code VARCHAR)
### Response:
### Response:
SELECT russian_name FROM table_name_86 WHERE latin_3_letter_code = "lbr"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the title of the July 2 song that is downloaded as Crazy Frog?
### Context:
CREATE TABLE table_name_5 (title VARCHAR, download VARCHAR, issue_date VARCHAR)
### Response:
### Response:
SELECT title FROM table_name_5 WHERE download = "crazy frog" AND issue_date = "july 2"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When the standard speed (6th gear) is 114, what is the minimum rpm?
### Context:
CREATE TABLE table_19704392_1 (rpm INTEGER, standard_speed__6th_gear_ VARCHAR)
### Response:
### Response:
SELECT MIN(rpm) FROM table_19704392_1 WHERE standard_speed__6th_gear_ = "114"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which is the Authority that has a Roll of 70?
### Context:
CREATE TABLE table_name_4 (authority VARCHAR, roll VARCHAR)
### Response:
### Response:
SELECT authority FROM table_name_4 WHERE roll = "70"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score for the home team St Kilda?
### Context:
CREATE TABLE table_name_60 (home_team VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_60 WHERE home_team = "st kilda"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the name of the episode where the season number is 13?
### Context:
CREATE TABLE table_23114705_3 (title VARCHAR, no_in_season VARCHAR)
### Response:
### Response:
SELECT title FROM table_23114705_3 WHERE no_in_season = 13</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What score has august 25 as the date?
### Context:
CREATE TABLE table_name_49 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_49 WHERE date = "august 25"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What name is on the Republican ticket when the American Labor ticket was spencer c. young?
### Context:
CREATE TABLE table_name_37 (republican_ticket VARCHAR, american_labor_ticket VARCHAR)
### Response:
### Response:
SELECT republican_ticket FROM table_name_37 WHERE american_labor_ticket = "spencer c. young"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What round has the highest Res loss, and a time of 40:00?
### Context:
CREATE TABLE table_name_36 (round INTEGER, res VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT MAX(round) FROM table_name_36 WHERE res = "loss" AND time = "40:00"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which date had 67,472 in attendance?
### Context:
CREATE TABLE table_name_73 (date VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_73 WHERE attendance = "67,472"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Opponent, when Attendance is 58,836?
### Context:
CREATE TABLE table_name_19 (opponent VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_19 WHERE attendance = "58,836"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the title of the German film that is originally called Mama, Ich Lebe?
### Context:
CREATE TABLE table_name_14 (film_title_used_in_nomination VARCHAR, language VARCHAR, original_name VARCHAR)
### Response:
### Response:
SELECT film_title_used_in_nomination FROM table_name_14 WHERE language = "german" AND original_name = "mama, ich lebe"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Result has a Year larger than 2003, and an Award of best supporting actress?
### Context:
CREATE TABLE table_name_32 (result VARCHAR, year VARCHAR, award VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_32 WHERE year > 2003 AND award = "best supporting actress"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
List the cities which have more than one airport and number of airports.
### Context:
CREATE TABLE airports (city VARCHAR)
### Response:
### Response:
SELECT city, COUNT(*) FROM airports GROUP BY city HAVING COUNT(*) > 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What GEO ID has a longitude of -102.693028?
### Context:
CREATE TABLE table_name_83 (geo_id VARCHAR, longitude VARCHAR)
### Response:
### Response:
SELECT geo_id FROM table_name_83 WHERE longitude = -102.693028</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the weekly rank for a share of 9 and 9.42 million viewers?
### Context:
CREATE TABLE table_name_53 (weekly_rank___number_ VARCHAR, share VARCHAR, viewers__m_ VARCHAR)
### Response:
### Response:
SELECT weekly_rank___number_ FROM table_name_53 WHERE share = 9 AND viewers__m_ = 9.42</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which hometown is the played Dajuan Wagner from?
### Context:
CREATE TABLE table_name_11 (hometown VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT hometown FROM table_name_11 WHERE player = "dajuan wagner"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many times was Mike McIntyre elected?
### Context:
CREATE TABLE table_1805191_34 (results VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT COUNT(results) FROM table_1805191_34 WHERE incumbent = "Mike McIntyre"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When did they win 7 races?
### Context:
CREATE TABLE table_24937583_1 (seasons VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT seasons FROM table_24937583_1 WHERE wins = 7</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is every composer for the media named Hall of Dreams?
### Context:
CREATE TABLE table_23829490_1 (composer VARCHAR, name_of_the_media VARCHAR)
### Response:
### Response:
SELECT composer FROM table_23829490_1 WHERE name_of_the_media = "Hall Of Dreams"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the opening day net gross a Reliance Entertainment movie before 2011 had?
### Context:
CREATE TABLE table_name_90 (opening_day_net_gross INTEGER, studio_s_ VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT SUM(opening_day_net_gross) FROM table_name_90 WHERE studio_s_ = "reliance entertainment" AND year < 2011</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which High rebounds has a Score of w 81-69?
### Context:
CREATE TABLE table_name_62 (high_rebounds VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT high_rebounds FROM table_name_62 WHERE score = "w 81-69"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the year when the note is supporting and the title is rokumeikan?
### Context:
CREATE TABLE table_name_5 (year VARCHAR, note VARCHAR, title VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_5 WHERE note = "supporting" AND title = "rokumeikan"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the home team of the game where the Grizzlies were the visitor team and Rudy Gay (21) was the leading scorer?
### Context:
CREATE TABLE table_name_83 (home VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)
### Response:
### Response:
SELECT home FROM table_name_83 WHERE visitor = "grizzlies" AND leading_scorer = "rudy gay (21)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Avg/G has a Gain of 16, and a Name of barnes, freddie, and a Loss smaller than 2?
### Context:
CREATE TABLE table_name_91 (avg_g INTEGER, loss VARCHAR, gain VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT SUM(avg_g) FROM table_name_91 WHERE gain = 16 AND name = "barnes, freddie" AND loss < 2</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the value in 2010 for an airport ranked higher than 3 located in Cluj-Napoca?
### Context:
CREATE TABLE table_name_84 (city VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT COUNT(2010) FROM table_name_84 WHERE city = "cluj-napoca" AND rank > 3</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What catalog has june 1990 as the date?
### Context:
CREATE TABLE table_name_73 (catalog VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT catalog FROM table_name_73 WHERE date = "june 1990"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Opponent, when High Rebounds is "Pierson (6)"?
### Context:
CREATE TABLE table_name_67 (opponent VARCHAR, high_rebounds VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_67 WHERE high_rebounds = "pierson (6)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the least number of podiums for a formula BMW Americas series?
### Context:
CREATE TABLE table_24330803_1 (podiums INTEGER, series VARCHAR)
### Response:
### Response:
SELECT MIN(podiums) FROM table_24330803_1 WHERE series = "Formula BMW Americas"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When was Too Hop to Handle released?
### Context:
CREATE TABLE table_name_68 (release_date VARCHAR, title VARCHAR)
### Response:
### Response:
SELECT release_date FROM table_name_68 WHERE title = "too hop to handle"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which major metropolitan area had a land area of 23.80?
### Context:
CREATE TABLE table_22916979_1 (metropolitan_area VARCHAR, land_area__mi_2__ VARCHAR)
### Response:
### Response:
SELECT metropolitan_area FROM table_22916979_1 WHERE land_area__mi_2__ = "23.80"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
WHAT IS THE WORLDWIDE BOX OFFICE FOR BRAVE?
### Context:
CREATE TABLE table_name_41 (worldwide VARCHAR, film VARCHAR)
### Response:
### Response:
SELECT worldwide FROM table_name_41 WHERE film = "brave"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Opponent of the game after Week 3 with a Result of L 10–6?
### Context:
CREATE TABLE table_name_86 (opponent VARCHAR, week VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_86 WHERE week > 3 AND result = "l 10–6"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is 2009, when 2004 is 2R, and when 1993 is A?
### Context:
CREATE TABLE table_name_81 (Id VARCHAR)
### Response:
### Response:
SELECT 2009 FROM table_name_81 WHERE 2004 = "2r" AND 1993 = "a"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the rank when the col is larger than 0?
### Context:
CREATE TABLE table_name_7 (rank VARCHAR, col__m_ INTEGER)
### Response:
### Response:
SELECT COUNT(rank) FROM table_name_7 WHERE col__m_ > 0</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the name of the title winner in the ring light heavyweight (175) division?
### Context:
CREATE TABLE table_12206918_2 (name VARCHAR, titles VARCHAR)
### Response:
### Response:
SELECT name FROM table_12206918_2 WHERE titles = "The Ring Light heavyweight (175)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What date was the 200m breaststroke event?
### Context:
CREATE TABLE table_name_53 (date VARCHAR, event VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_53 WHERE event = "200m breaststroke"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the pole position of the Hungarian Grand Prix?
### Context:
CREATE TABLE table_name_41 (pole_position VARCHAR, grand_prix VARCHAR)
### Response:
### Response:
SELECT pole_position FROM table_name_41 WHERE grand_prix = "hungarian grand prix"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the club that has played 22 rounds, has a drawn score of 0, has lost 14, and whose losing BP is 5?
### Context:
CREATE TABLE table_name_96 (club VARCHAR, losing_bp VARCHAR, lost VARCHAR, played VARCHAR, drawn VARCHAR)
### Response:
### Response:
SELECT club FROM table_name_96 WHERE played = "22" AND drawn = "0" AND lost = "14" AND losing_bp = "5"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which School/Club Team has a Player of jud buechler?
### Context:
CREATE TABLE table_name_16 (school_club_team VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT school_club_team FROM table_name_16 WHERE player = "jud buechler"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the year elected in District 15?
### Context:
CREATE TABLE table_name_56 (elected VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT elected FROM table_name_56 WHERE district = 15</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When waikaia is the electorate what is the highest by-election?
### Context:
CREATE TABLE table_28898948_3 (by_election INTEGER, electorate VARCHAR)
### Response:
### Response:
SELECT MAX(by_election) FROM table_28898948_3 WHERE electorate = "Waikaia"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total when there were less than 0 bronze?
### Context:
CREATE TABLE table_name_24 (total VARCHAR, bronze INTEGER)
### Response:
### Response:
SELECT COUNT(total) FROM table_name_24 WHERE bronze < 0</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When party did the incumbent in the Arkansas 5 district belong to?
### Context:
CREATE TABLE table_1341897_6 (party VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT party FROM table_1341897_6 WHERE district = "Arkansas 5"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What result has texas longhorns as the opponent?
### Context:
CREATE TABLE table_name_47 (result VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_47 WHERE opponent = "texas longhorns"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many top 10's did Pearson have the year he was in 8th position?
### Context:
CREATE TABLE table_2626564_2 (top_10 INTEGER, position VARCHAR)
### Response:
### Response:
SELECT MIN(top_10) FROM table_2626564_2 WHERE position = "8th"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What date has postponed (rain) rescheduled for august 7 as the score?
### Context:
CREATE TABLE table_name_27 (date VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_27 WHERE score = "postponed (rain) rescheduled for august 7"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Place of Player with To par of +6 and Score of 78-70-74=222?
### Context:
CREATE TABLE table_name_79 (place VARCHAR, to_par VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_79 WHERE to_par = "+6" AND score = 78 - 70 - 74 = 222</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Seat has a Season 6 of kevin o'leary?
### Context:
CREATE TABLE table_name_85 (seat INTEGER, season_6 VARCHAR)
### Response:
### Response:
SELECT MAX(seat) FROM table_name_85 WHERE season_6 = "kevin o'leary"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the end date when Alex Bodry was the minister?
### Context:
CREATE TABLE table_name_11 (end_date VARCHAR, minister VARCHAR)
### Response:
### Response:
SELECT end_date FROM table_name_11 WHERE minister = "alex bodry"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who had a date of 19-02-2003?
### Context:
CREATE TABLE table_name_23 (player VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_23 WHERE date = "19-02-2003"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What years did the Utah Jazz Player from Southern Methodist, Play?
### Context:
CREATE TABLE table_name_52 (years_for_jazz VARCHAR, school_club_team VARCHAR)
### Response:
### Response:
SELECT years_for_jazz FROM table_name_52 WHERE school_club_team = "southern methodist"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.