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:
What is the name and number in 1964?
### Context:
CREATE TABLE table_name_1 (number_ VARCHAR, _name VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT number_ & _name FROM table_name_1 WHERE date = "1964"</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 Race has a Date of 31st may 1953, and an Event of grand prix de l'albigeois final?
### Context:
CREATE TABLE table_name_20 (race VARCHAR, date VARCHAR, event VARCHAR)
### Response:
### Response:
SELECT race FROM table_name_20 WHERE date = "31st may 1953" AND event = "grand prix de l'albigeois final"</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 winning span with the rank of 5?
### Context:
CREATE TABLE table_1953516_1 (winning_span VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT winning_span FROM table_1953516_1 WHERE rank = "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 civil liberties 2013 values are associated with a 2010 political rights value of 6, civil liberties 2012 values over 5, and political rights 2011 under 6?
### Context:
CREATE TABLE table_name_42 (civil_liberties_2013 VARCHAR, political_rights_2011 VARCHAR, political_rights_2010 VARCHAR, civil_liberties_2012 VARCHAR)
### Response:
### Response:
SELECT COUNT(civil_liberties_2013) FROM table_name_42 WHERE political_rights_2010 = 6 AND civil_liberties_2012 > 5 AND political_rights_2011 < 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 first and last name of the professor in biology department?
### Context:
CREATE TABLE professor (dept_code VARCHAR, EMP_NUM VARCHAR); CREATE TABLE department (dept_code VARCHAR); CREATE TABLE employee (EMP_FNAME VARCHAR, EMP_LNAME VARCHAR, EMP_NUM VARCHAR)
### Response:
### Response:
SELECT T3.EMP_FNAME, T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = "Biology"</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 character name with voice actor (englbeingh 1997 / saban) being ian james corlett
### Context:
CREATE TABLE table_1410384_1 (character_name VARCHAR, voice_actor__english_1997___saban_ VARCHAR)
### Response:
### Response:
SELECT character_name FROM table_1410384_1 WHERE voice_actor__english_1997___saban_ = "Ian James Corlett"</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 Goals for were recorded when there was a percentage smaller than 0.519 and points greater than 65?
### Context:
CREATE TABLE table_name_62 (goals_for VARCHAR, pct__percentage VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT COUNT(goals_for) FROM table_name_62 WHERE pct__percentage < 0.519 AND points > 65</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:
Im the match where the home team is Melbourne Victory, what was the crowd attendance?
### Context:
CREATE TABLE table_name_97 (crowd VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT COUNT(crowd) FROM table_name_97 WHERE home_team = "melbourne victory"</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 course title of the prerequisite of course Mobile Computing?
### Context:
CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE prereq (prereq_id VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR)
### Response:
### Response:
SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing')</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 unemployment rate for the county with a market income per capita of $20,958?
### Context:
CREATE TABLE table_22815568_2 (unemployment_rate VARCHAR, market_income_per_capita VARCHAR)
### Response:
### Response:
SELECT COUNT(unemployment_rate) FROM table_22815568_2 WHERE market_income_per_capita = "$20,958"</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 Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of world youth championships?
### Context:
CREATE TABLE table_name_72 (venue VARCHAR, competition VARCHAR, year VARCHAR, event VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_72 WHERE year < 2009 AND event = "3000 m" AND competition = "world youth championships"</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 language has 20th century fox as the publisher?
### Context:
CREATE TABLE table_name_52 (language VARCHAR, publisher VARCHAR)
### Response:
### Response:
SELECT language FROM table_name_52 WHERE publisher = "20th century fox"</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 enzyme involved in the disorder of Ornithine Transcarbamylase deficiency?
### Context:
CREATE TABLE table_name_66 (enzyme VARCHAR, disorder VARCHAR)
### Response:
### Response:
SELECT enzyme FROM table_name_66 WHERE disorder = "ornithine transcarbamylase deficiency"</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 Played has Drawn of 2, and a Position larger than 3, and Points smaller than 10?
### Context:
CREATE TABLE table_name_1 (played VARCHAR, points VARCHAR, drawn VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT COUNT(played) FROM table_name_1 WHERE drawn = 2 AND position > 3 AND points < 10</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 when 2441 people were in attendance?
### Context:
CREATE TABLE table_name_17 (score VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_17 WHERE attendance = 2441</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 highest number of matches with less than 2 draws that had an efficiency percent of 25%?
### Context:
CREATE TABLE table_name_46 (matches INTEGER, draws VARCHAR, efficiency__percentage VARCHAR)
### Response:
### Response:
SELECT MAX(matches) FROM table_name_46 WHERE draws < 2 AND efficiency__percentage = "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:
Which country has a to par of e?
### Context:
CREATE TABLE table_name_20 (country VARCHAR, to_par VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_20 WHERE to_par = "e"</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 percentage with number of 1 343
### Context:
CREATE TABLE table_name_11 (percentage___percentage_ VARCHAR, number VARCHAR)
### Response:
### Response:
SELECT percentage___percentage_ FROM table_name_11 WHERE number = "1 343"</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 which championship did John Newcombe play against Ken Rosewall in the final match?
### Context:
CREATE TABLE table_23259077_1 (championship VARCHAR, opponent_in_the_final VARCHAR)
### Response:
### Response:
SELECT championship FROM table_23259077_1 WHERE opponent_in_the_final = "Ken Rosewall"</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:
I want the lowest Laps for time/retired of engine and driver of charles de tornaco
### Context:
CREATE TABLE table_name_22 (laps INTEGER, time_retired VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT MIN(laps) FROM table_name_22 WHERE time_retired = "engine" AND driver = "charles de tornaco"</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 visiting team when the score was 1–3?
### Context:
CREATE TABLE table_name_16 (visitor VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT visitor FROM table_name_16 WHERE score = "1–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:
Which Record has a Game of 61?
### Context:
CREATE TABLE table_name_56 (record VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_56 WHERE game = 61</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 targets are there with an approval date of 1997?
### Context:
CREATE TABLE table_1661124_1 (target VARCHAR, approval_date VARCHAR)
### Response:
### Response:
SELECT COUNT(target) FROM table_1661124_1 WHERE approval_date = 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:
What is Lijsttrekker, when Year is after 1990, and when Chair is "Ingrid Van Engelshoven"?
### Context:
CREATE TABLE table_name_51 (lijsttrekker VARCHAR, year VARCHAR, chair VARCHAR)
### Response:
### Response:
SELECT lijsttrekker FROM table_name_51 WHERE year > 1990 AND chair = "ingrid van engelshoven"</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 average and total transaction amount?
### Context:
CREATE TABLE Financial_transactions (transaction_amount INTEGER)
### Response:
### Response:
SELECT AVG(transaction_amount), SUM(transaction_amount) FROM Financial_transactions</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 average Points For when there are Points Against more than 780, and Points smaller than 0?
### Context:
CREATE TABLE table_name_72 (points_for INTEGER, points_against VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT AVG(points_for) FROM table_name_72 WHERE points_against > 780 AND points < 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's the name of MKD?
### Context:
CREATE TABLE table_name_20 (name VARCHAR, nat VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_20 WHERE nat = "mkd"</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 premierships for the queensland raceway?
### Context:
CREATE TABLE table_name_40 (premierships VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT premierships FROM table_name_40 WHERE venue = "queensland raceway"</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 series 2–3?
### Context:
CREATE TABLE table_27715173_12 (score VARCHAR, series VARCHAR)
### Response:
### Response:
SELECT score FROM table_27715173_12 WHERE series = "2–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 name of the artist who joined latest?
### Context:
CREATE TABLE artist (name VARCHAR, year_join VARCHAR)
### Response:
### Response:
SELECT name FROM artist ORDER BY year_join DESC LIMIT 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 is the rank when the total points is more than 194, round4 is less than 64, round3 is more than 51 and round 2 is less than 66?
### Context:
CREATE TABLE table_name_72 (rank VARCHAR, round2 VARCHAR, round3 VARCHAR, total_points VARCHAR, round4 VARCHAR)
### Response:
### Response:
SELECT COUNT(rank) FROM table_name_72 WHERE total_points > 194 AND round4 < 64 AND round3 > 51 AND round2 < 66</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 district does John Cooksey represent?
### Context:
CREATE TABLE table_1341453_20 (district VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT district FROM table_1341453_20 WHERE incumbent = "John Cooksey"</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 2012 season in Esiliiga more than 4, and more than 0 titles?
### Context:
CREATE TABLE table_name_87 (seasons_in_esiliiga VARCHAR, titles VARCHAR)
### Response:
### Response:
SELECT 2012 FROM table_name_87 WHERE seasons_in_esiliiga > 4 AND titles > 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 Place for the 66 Score?
### Context:
CREATE TABLE table_name_33 (place VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_33 WHERE score = 66</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 guangzhou, who won the game with a score of 1-0?
### Context:
CREATE TABLE table_name_23 (result VARCHAR, location VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_23 WHERE location = "guangzhou" AND score = "1-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 Format of the Frequency CJBX-FM?
### Context:
CREATE TABLE table_name_59 (format VARCHAR, call_sign VARCHAR)
### Response:
### Response:
SELECT format FROM table_name_59 WHERE call_sign = "cjbx-fm"</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 lowest attendance for week 1?
### Context:
CREATE TABLE table_name_48 (attendance INTEGER, week VARCHAR)
### Response:
### Response:
SELECT MIN(attendance) FROM table_name_48 WHERE week = 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 loss has 16-6 as the record?
### Context:
CREATE TABLE table_name_25 (loss VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT loss FROM table_name_25 WHERE record = "16-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 highest goal difference of the club with more than 34 played?
### Context:
CREATE TABLE table_name_54 (goal_difference INTEGER, played INTEGER)
### Response:
### Response:
SELECT MAX(goal_difference) FROM table_name_54 WHERE played > 34</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 opposing team has 20 against?
### Context:
CREATE TABLE table_name_7 (opposing_team VARCHAR, against VARCHAR)
### Response:
### Response:
SELECT opposing_team FROM table_name_7 WHERE against = 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 total points of teams using a ligier js11/15 chassis?
### Context:
CREATE TABLE table_name_18 (points VARCHAR, chassis VARCHAR)
### Response:
### Response:
SELECT COUNT(points) FROM table_name_18 WHERE chassis = "ligier js11/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:
what's the county name for the republican river bridge listed on 1992-06-29?
### Context:
CREATE TABLE table_name_36 (county VARCHAR, listed VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT county FROM table_name_36 WHERE listed = "1992-06-29" AND name = "republican river bridge"</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 Zona Sur's result after being considered for nomination?
### Context:
CREATE TABLE table_name_36 (result VARCHAR, original_title VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_36 WHERE original_title = "zona sur"</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 amount of touchdowns scored on the chart?
### Context:
CREATE TABLE table_14342480_7 (touchdowns INTEGER)
### Response:
### Response:
SELECT MIN(touchdowns) FROM table_14342480_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:
For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description.
### Context:
CREATE TABLE Skills_Required_To_Fix (part_fault_id VARCHAR, skill_id VARCHAR); CREATE TABLE Part_Faults (fault_short_name VARCHAR, part_fault_id VARCHAR); CREATE TABLE Skills (skill_description VARCHAR, skill_id VARCHAR)
### Response:
### Response:
SELECT T1.fault_short_name, T3.skill_description FROM Part_Faults AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id = T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id</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 launch dates are there for digital transmission?
### Context:
CREATE TABLE table_22274142_1 (launch_date VARCHAR, transmission VARCHAR)
### Response:
### Response:
SELECT COUNT(launch_date) FROM table_22274142_1 WHERE transmission = "Digital"</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 silver medals did the nation who received 32 bronze medals receive?
### Context:
CREATE TABLE table_name_61 (silver VARCHAR, bronze VARCHAR)
### Response:
### Response:
SELECT silver FROM table_name_61 WHERE bronze = 32</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 goals that were scored had a place of more than 5, a lost of 11, and goals conceded of less than 45?
### Context:
CREATE TABLE table_name_7 (goals_scored VARCHAR, goals_conceded VARCHAR, place VARCHAR, lost VARCHAR)
### Response:
### Response:
SELECT COUNT(goals_scored) FROM table_name_7 WHERE place > 5 AND lost = 11 AND goals_conceded < 45</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 lowest goal difference of club real betis, who has less than 18 wins?
### Context:
CREATE TABLE table_name_10 (goal_difference INTEGER, club VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT MIN(goal_difference) FROM table_name_10 WHERE club = "real betis" AND wins < 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 bike has a grid greater than 17, laps less than 8, with milos cihak as the rider?
### Context:
CREATE TABLE table_name_24 (bike VARCHAR, rider VARCHAR, grid VARCHAR, laps VARCHAR)
### Response:
### Response:
SELECT bike FROM table_name_24 WHERE grid > 17 AND laps < 8 AND rider = "milos cihak"</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 Poll source has Pat Toomey of 23%?
### Context:
CREATE TABLE table_name_5 (poll_source VARCHAR, pat_toomey VARCHAR)
### Response:
### Response:
SELECT poll_source FROM table_name_5 WHERE pat_toomey = "23%"</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 Place, when Score is "66", when Country is "United States", and when Player is "Dudley Hart"?
### Context:
CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR, score VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_84 WHERE score = 66 AND country = "united states" AND player = "dudley hart"</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 Tournament has a Margin of victory of 1 stroke, and a Date of oct 7, 1990?
### Context:
CREATE TABLE table_name_39 (tournament VARCHAR, margin_of_victory VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_39 WHERE margin_of_victory = "1 stroke" AND date = "oct 7, 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:
Find all the female members of club "Bootup Baltimore". Show the first name and last name.
### Context:
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)
### Response:
### Response:
SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" AND t3.sex = "F"</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 Entrant has a vanwall straight-4 engine?
### Context:
CREATE TABLE table_name_47 (entrant VARCHAR, engine VARCHAR)
### Response:
### Response:
SELECT entrant FROM table_name_47 WHERE engine = "vanwall straight-4"</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 partner made the scores 6–4, 6–1?
### Context:
CREATE TABLE table_name_19 (partner VARCHAR, score_in_the_final VARCHAR)
### Response:
### Response:
SELECT partner FROM table_name_19 WHERE score_in_the_final = "6–4, 6–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:
Who was the driver of the vehicle having class of CM22 and navigator of Macneall?
### Context:
CREATE TABLE table_name_86 (driver VARCHAR, class VARCHAR, navigator VARCHAR)
### Response:
### Response:
SELECT driver FROM table_name_86 WHERE class = "cm22" AND navigator = "macneall"</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 class when there were 325 laps?
### Context:
CREATE TABLE table_name_32 (class VARCHAR, laps VARCHAR)
### Response:
### Response:
SELECT class FROM table_name_32 WHERE laps = 325</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 2008 had a 1998 and 2006 that were a when 2009 was sf?
### Context:
CREATE TABLE table_name_16 (Id VARCHAR)
### Response:
### Response:
SELECT 2008 FROM table_name_16 WHERE 1998 = "a" AND 2009 = "sf" AND 2006 = "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:
How many millions of viewers watched the episode directed by Anthony Hemingway?
### Context:
CREATE TABLE table_11230937_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
### Response:
### Response:
SELECT us_viewers__millions_ FROM table_11230937_2 WHERE directed_by = "Anthony Hemingway"</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 place 4?
### Context:
CREATE TABLE table_name_21 (score VARCHAR, place VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_21 WHERE place = "4"</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:
Tell me the most total for horse of carlson
### Context:
CREATE TABLE table_name_10 (total INTEGER, horse VARCHAR)
### Response:
### Response:
SELECT MAX(total) FROM table_name_10 WHERE horse = "carlson"</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 Character has a Rank of intelligence officer?
### Context:
CREATE TABLE table_name_3 (character VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT character FROM table_name_3 WHERE rank = "intelligence officer"</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 Coach with a Big Ten that is 2nd (79)?
### Context:
CREATE TABLE table_name_72 (coach VARCHAR, big_ten VARCHAR)
### Response:
### Response:
SELECT coach FROM table_name_72 WHERE big_ten = "2nd (79)"</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 number of users in the Nisibon-Yuma within the Del Este district?
### Context:
CREATE TABLE table_20018310_1 (users___number_ VARCHAR, irrigation_district VARCHAR, juntas_de_regantes__wub_ VARCHAR)
### Response:
### Response:
SELECT users___number_ FROM table_20018310_1 WHERE irrigation_district = "Del Este" AND juntas_de_regantes__wub_ = "Nisibon-Yuma"</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 frequency mhz with city of license being chattanooga, tennessee
### Context:
CREATE TABLE table_13998897_1 (frequency_mhz VARCHAR, city_of_license VARCHAR)
### Response:
### Response:
SELECT frequency_mhz FROM table_13998897_1 WHERE city_of_license = "Chattanooga, Tennessee"</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 laps did pere riba ride?
### Context:
CREATE TABLE table_name_52 (laps INTEGER, rider VARCHAR)
### Response:
### Response:
SELECT SUM(laps) FROM table_name_52 WHERE rider = "pere riba"</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:
Jos verstappen jeroen bleekemolen is on Imp2 winning team where all are rnd.
### Context:
CREATE TABLE table_14154271_2 (rnd VARCHAR, lmp2_winning_team VARCHAR)
### Response:
### Response:
SELECT rnd FROM table_14154271_2 WHERE lmp2_winning_team = "Jos Verstappen Jeroen Bleekemolen"</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:
Show the average share count of transactions each each investor, ordered by average share count.
### Context:
CREATE TABLE TRANSACTIONS (investor_id VARCHAR, share_count INTEGER)
### Response:
### Response:
SELECT investor_id, AVG(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY AVG(share_count)</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 record for the game against team @ Minnesota?
### Context:
CREATE TABLE table_27713583_2 (record VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT record FROM table_27713583_2 WHERE team = "@ Minnesota"</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 game that was attended by 69,024?
### Context:
CREATE TABLE table_name_52 (date VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_52 WHERE attendance = "69,024"</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:
Tell me the total number of rank for places less than 94 and points less than 169.8 for japan
### Context:
CREATE TABLE table_name_98 (rank VARCHAR, nation VARCHAR, places VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT COUNT(rank) FROM table_name_98 WHERE places < 94 AND points < 169.8 AND nation = "japan"</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 goals against were scored when the points were smaller than 13, the wins were smaller than 3, and the goals for were smaller than 15?
### Context:
CREATE TABLE table_name_73 (goals_against INTEGER, goals_for VARCHAR, points VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT SUM(goals_against) FROM table_name_73 WHERE points < 13 AND wins < 3 AND goals_for < 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:
How many losses does Central Blues have?
### Context:
CREATE TABLE table_26200568_16 (losses INTEGER, club VARCHAR)
### Response:
### Response:
SELECT MAX(losses) FROM table_26200568_16 WHERE club = "Central Blues"</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 city has riverside ground as the venue, with a year prior to 1998?
### Context:
CREATE TABLE table_name_16 (city VARCHAR, venue VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT city FROM table_name_16 WHERE venue = "riverside ground" AND year < 1998</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 all the albums in 2012.
### Context:
CREATE TABLE Albums (YEAR VARCHAR)
### Response:
### Response:
SELECT * FROM Albums WHERE YEAR = 2012</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 votes did 3rd ranking candidate Mary Louise Lorefice receive?
### Context:
CREATE TABLE table_name_48 (votes VARCHAR, rank VARCHAR, candidate VARCHAR)
### Response:
### Response:
SELECT COUNT(votes) FROM table_name_48 WHERE rank = "3rd" AND candidate = "mary louise lorefice"</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:
The venue of Rome has which date?
### Context:
CREATE TABLE table_name_84 (date VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_84 WHERE venue = "rome"</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 recipients that won for David Duchovny role/episode?
### Context:
CREATE TABLE table_name_30 (recipients_and_nominees VARCHAR, role_episode VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT recipients_and_nominees FROM table_name_30 WHERE role_episode = "david duchovny" AND result = "won"</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 Player has a Pick # lower than 223 and a Defensive End Position?
### Context:
CREATE TABLE table_name_31 (player VARCHAR, pick__number VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_31 WHERE pick__number < 223 AND position = "defensive end"</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 music did Mario & Karina perform?
### Context:
CREATE TABLE table_name_30 (music VARCHAR, couple VARCHAR)
### Response:
### Response:
SELECT music FROM table_name_30 WHERE couple = "mario & karina"</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 Olin Dutra's score?
### Context:
CREATE TABLE table_name_88 (score VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_88 WHERE player = "olin dutra"</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 of the Player wtih Year(s) won of 1983?
### Context:
CREATE TABLE table_name_11 (to_par INTEGER, year_s__won VARCHAR)
### Response:
### Response:
SELECT AVG(to_par) FROM table_name_11 WHERE year_s__won = "1983"</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 average down (up to kbit/s) when the provider is willy.tel and the up (kbit/s) is more than 1984?
### Context:
CREATE TABLE table_name_73 (down__up_to_kbit_s_ INTEGER, provider VARCHAR, up__up_to_kbit_s_ VARCHAR)
### Response:
### Response:
SELECT AVG(down__up_to_kbit_s_) FROM table_name_73 WHERE provider = "willy.tel" AND up__up_to_kbit_s_ > 1984</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 from Great Britain in lane 5?
### Context:
CREATE TABLE table_name_28 (name VARCHAR, nationality VARCHAR, lane VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_28 WHERE nationality = "great britain" AND lane = 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 country had the total 18,900 (r)?
### Context:
CREATE TABLE table_10586064_2 (county VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT county FROM table_10586064_2 WHERE total = "18,900 (R)"</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 circuit was for the german grand prix?
### Context:
CREATE TABLE table_name_5 (circuit VARCHAR, race VARCHAR)
### Response:
### Response:
SELECT circuit FROM table_name_5 WHERE race = "german 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 modern german standard wording for the german based writing system 2 phrase "wie mir die vergewwe wu uns schuldich sinn."?
### Context:
CREATE TABLE table_181240_1 (modern_german__standard_wording_ VARCHAR, writing_system_2__german_based_ VARCHAR)
### Response:
### Response:
SELECT modern_german__standard_wording_ FROM table_181240_1 WHERE writing_system_2__german_based_ = "wie mir die vergewwe wu uns schuldich sinn."</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 number corresponds to the quantity of 24?
### Context:
CREATE TABLE table_name_50 (number_s_ VARCHAR, quantity VARCHAR)
### Response:
### Response:
SELECT number_s_ FROM table_name_50 WHERE quantity = "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:
What is the national rank of Windstream?
### Context:
CREATE TABLE table_21926985_2 (national_rank INTEGER, company_name VARCHAR)
### Response:
### Response:
SELECT MIN(national_rank) FROM table_21926985_2 WHERE company_name = "Windstream"</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 Kilgore's (R) percentage when Potts (I) polled at 1%?
### Context:
CREATE TABLE table_name_95 (kilgore__r_ VARCHAR, potts__i_ VARCHAR)
### Response:
### Response:
SELECT kilgore__r_ FROM table_name_95 WHERE potts__i_ = "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 was the series standing for games over 4?
### Context:
CREATE TABLE table_name_2 (series VARCHAR, game INTEGER)
### Response:
### Response:
SELECT series FROM table_name_2 WHERE game > 4</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 Silver has a Total larger than 9, and a Gold of 14?
### Context:
CREATE TABLE table_name_44 (silver VARCHAR, total VARCHAR, gold VARCHAR)
### Response:
### Response:
SELECT COUNT(silver) FROM table_name_44 WHERE total > 9 AND gold = 14</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 years have a Rank-Final smaller than 7, and a Competition Description of olympic games, and a Score-Final smaller than 186.525?
### Context:
CREATE TABLE table_name_22 (year INTEGER, score_final VARCHAR, rank_final VARCHAR, competition_description VARCHAR)
### Response:
### Response:
SELECT SUM(year) FROM table_name_22 WHERE rank_final < 7 AND competition_description = "olympic games" AND score_final < 186.525</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 poles had 78 points?
### Context:
CREATE TABLE table_20396_1 (poles VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT COUNT(poles) FROM table_20396_1 WHERE points = "78"</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 area of Cromwell Primary school, which has a state authority?
### Context:
CREATE TABLE table_name_96 (area VARCHAR, authority VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT area FROM table_name_96 WHERE authority = "state" AND name = "cromwell primary school"</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 Third has a Second of agnieszka ogrodniczek?
### Context:
CREATE TABLE table_name_11 (third VARCHAR, second VARCHAR)
### Response:
### Response:
SELECT third FROM table_name_11 WHERE second = "agnieszka ogrodniczek"</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 average wins has Top-25 less than 0?
### Context:
CREATE TABLE table_name_66 (wins INTEGER, top_25 INTEGER)
### Response:
### Response:
SELECT AVG(wins) FROM table_name_66 WHERE top_25 < 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 was the week 2 before Lara Leverence was week 3?
### Context:
CREATE TABLE table_name_40 (week_2 VARCHAR, week_3 VARCHAR)
### Response:
### Response:
SELECT week_2 FROM table_name_40 WHERE week_3 = "lara leverence"</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 Score has a Set 1 of 25–16?
### Context:
CREATE TABLE table_name_97 (score VARCHAR, set_1 VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_97 WHERE set_1 = "25–16"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.