text
stringlengths 293
1.24k
|
---|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_69 (interregnum_ended VARCHAR, count_palatine_of_saxony VARCHAR)
### Question:
What is the Interregnum ended for Count Palatine of Saxony of john george ii, elector of saxony?
### Answer:
SELECT interregnum_ended FROM table_name_69 WHERE count_palatine_of_saxony = "john george ii, elector of saxony"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_95 (round INTEGER, pick VARCHAR, position VARCHAR, name VARCHAR)
### Question:
What is the total round when DB was the position, and the pick less than 21, and Jeff Welch as the name?
### Answer:
SELECT SUM(round) FROM table_name_95 WHERE position = "db" AND name = "jeff welch" AND pick < 21
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_95 (winning__percentage INTEGER, lost VARCHAR, goals_for VARCHAR)
### Question:
What is the lowest win percentage for teams with more than 23 losses and more than 386 goals for?
### Answer:
SELECT MIN(winning__percentage) FROM table_name_95 WHERE lost > 23 AND goals_for > 386
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_98 (surface VARCHAR, date VARCHAR)
### Question:
The game played 31 May 2010 was played on what surface?
### Answer:
SELECT surface FROM table_name_98 WHERE date = "31 may 2010"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (opp_team VARCHAR, big_ten_team VARCHAR)
### Question:
Who was Purdue's opponent?
### Answer:
SELECT opp_team FROM table_name_19 WHERE big_ten_team = "purdue"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (municipal_code INTEGER, party VARCHAR, area VARCHAR)
### Question:
What's the Municipal code of the FRP Party with an area of 100?
### Answer:
SELECT SUM(municipal_code) FROM table_name_35 WHERE party = "frp" AND area = 100
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE phone (Hardware_Model_name VARCHAR, screen_mode VARCHAR); CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR)
### Question:
List the hardware model name for the phons that were produced by "Nokia Corporation" but whose screen mode type is not Text.
### Answer:
SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name = "Nokia Corporation" AND T1.Type <> "Text"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11465521_2 (tv VARCHAR, opponent VARCHAR)
### Question:
Which channel had the game against the Minnesota Vikings?
### Answer:
SELECT tv FROM table_11465521_2 WHERE opponent = "Minnesota Vikings"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_16 (region VARCHAR, city VARCHAR)
### Question:
What region is the city of Philadelphia located in?
### Answer:
SELECT region FROM table_name_16 WHERE city = "philadelphia"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_7 (venue VARCHAR, notes VARCHAR, competition VARCHAR)
### Question:
What venue did the European Championships' 400 m Hurdles take place?
### Answer:
SELECT venue FROM table_name_7 WHERE notes = "400 m hurdles" AND competition = "european championships"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_8 (position VARCHAR, player VARCHAR)
### Question:
Tell me the position of chris clark
### Answer:
SELECT position FROM table_name_8 WHERE player = "chris clark"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_21530474_1 (region_s_ VARCHAR, chassis_code VARCHAR)
### Question:
Name the regions for usf45
### Answer:
SELECT region_s_ FROM table_21530474_1 WHERE chassis_code = "USF45"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_32 (round VARCHAR, home_team VARCHAR)
### Question:
What round did the home team Pohang Steelers play?
### Answer:
SELECT round FROM table_name_32 WHERE home_team = "pohang steelers"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_80 (competition VARCHAR, venue VARCHAR)
### Question:
What is the competition that was at serravalle, san marino?
### Answer:
SELECT competition FROM table_name_80 WHERE venue = "serravalle, san marino"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_67 (country VARCHAR, icao VARCHAR)
### Question:
What Country has a ICAO of EKCH?
### Answer:
SELECT country FROM table_name_67 WHERE icao = "ekch"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_75 (total INTEGER, silver INTEGER)
### Question:
What is the smallest total for a nation with more than 1 silver?
### Answer:
SELECT MIN(total) FROM table_name_75 WHERE silver > 1
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_66 (score VARCHAR, attendance VARCHAR)
### Question:
What is Score, when Attendance is "349"?
### Answer:
SELECT score FROM table_name_66 WHERE attendance = "349"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_79 (position VARCHAR, cross_code_debut VARCHAR)
### Question:
What position has a Cross-code debut of 1st ru test v ireland?
### Answer:
SELECT position FROM table_name_79 WHERE cross_code_debut = "1st ru test v ireland"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_40 (appointed_by VARCHAR, termination_of_mission VARCHAR)
### Question:
Which Appointed has Termination of Mission on april 7, 2005?
### Answer:
SELECT appointed_by FROM table_name_40 WHERE termination_of_mission = "april 7, 2005"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (year INTEGER, round_1 VARCHAR, money__$_ VARCHAR)
### Question:
Round 1 of 66, and a Money ($) larger than 400,000 has what sum of year?
### Answer:
SELECT SUM(year) FROM table_name_19 WHERE round_1 = "66" AND money__$_ > 400 OFFSET 000
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_36 (nationality VARCHAR, lane VARCHAR, time VARCHAR)
### Question:
Which Nationality has a Lane of 5, and a Time of 7:08.04?
### Answer:
SELECT nationality FROM table_name_36 WHERE lane = 5 AND time = "7:08.04"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_50 (against INTEGER, wins VARCHAR, draws VARCHAR, losses VARCHAR)
### Question:
Which Against has a Draws larger than 0, a Losses smaller than 16, and a Wins smaller than 4?
### Answer:
SELECT MAX(against) FROM table_name_50 WHERE draws > 0 AND losses < 16 AND wins < 4
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2401326_1 (bush_percentage VARCHAR, kerry_percentage VARCHAR)
### Question:
What's percentage voted for Busg in the county where Kerry got 37.6%?
### Answer:
SELECT bush_percentage FROM table_2401326_1 WHERE kerry_percentage = "37.6%"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_40 (constituency_number VARCHAR, number_of_electorates__2009_ INTEGER)
### Question:
What is the constituency number with electorates (2009) number larger than 152,958?
### Answer:
SELECT constituency_number FROM table_name_40 WHERE number_of_electorates__2009_ > 152 OFFSET 958
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_7 (result VARCHAR, venue VARCHAR, game VARCHAR)
### Question:
What is the result of the game with a game number greater than 6 and an away venue?
### Answer:
SELECT result FROM table_name_7 WHERE venue = "away" AND game > 6
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_11 (total_points VARCHAR, seasons VARCHAR)
### Question:
What is the total for 1984 for the team with 100 points total and more than 3 seasons?
### Answer:
SELECT SUM(1984) FROM table_name_11 WHERE total_points = 100 AND seasons > 3
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10082596_1 (founded INTEGER, school VARCHAR)
### Question:
In what year was Lindenwood University founded?
### Answer:
SELECT MIN(founded) FROM table_10082596_1 WHERE school = "Lindenwood University"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_31 (year_s__won VARCHAR, total INTEGER)
### Question:
Which Year(s) won has a Total larger than 295?
### Answer:
SELECT year_s__won FROM table_name_31 WHERE total > 295
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_99 (producer VARCHAR, location VARCHAR)
### Question:
What company is the producer at the poolavadi location
### Answer:
SELECT producer FROM table_name_99 WHERE location = "poolavadi"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1969577_3 (founded INTEGER, nickname VARCHAR)
### Question:
When was the school whose students are nicknamed Rams founded?
### Answer:
SELECT MAX(founded) FROM table_1969577_3 WHERE nickname = "Rams"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_21 (type VARCHAR, company VARCHAR)
### Question:
Which Type has a Company of epcor?
### Answer:
SELECT type FROM table_name_21 WHERE company = "epcor"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2226817_6 (no_in_season INTEGER, no_in_series VARCHAR)
### Question:
What's the season number of the episode with series number 84?
### Answer:
SELECT MIN(no_in_season) FROM table_2226817_6 WHERE no_in_series = 84
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_52 (finals INTEGER, pre_season INTEGER)
### Question:
Which Finals have a Pre-Season larger than 0?
### Answer:
SELECT MIN(finals) FROM table_name_52 WHERE pre_season > 0
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE takes (course_id VARCHAR, id VARCHAR); CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR)
### Question:
Find the name of students who took some course offered by Statistics department.
### Answer:
SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics'
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_61 (player VARCHAR, to_par VARCHAR, score VARCHAR)
### Question:
What player has a To par of –2, and a Score of 73-65=138?
### Answer:
SELECT player FROM table_name_61 WHERE to_par = "–2" AND score = 73 - 65 = 138
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_81 (record VARCHAR, date VARCHAR, decision VARCHAR, home VARCHAR)
### Question:
What record has a decision of parent, Philadelphia as the home, with december 12 as the date?
### Answer:
SELECT record FROM table_name_81 WHERE decision = "parent" AND home = "philadelphia" AND date = "december 12"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11210576_4 (character VARCHAR, fate VARCHAR)
### Question:
what's the character with fate being deceased: knife wound
### Answer:
SELECT character FROM table_11210576_4 WHERE fate = "Deceased: Knife Wound"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_62 (power_rpm VARCHAR, torque__nm__rpm VARCHAR)
### Question:
Name the power for when the torque is n·m (lb·ft)/*n·m (lb·ft) @1750
### Answer:
SELECT power_rpm FROM table_name_62 WHERE torque__nm__rpm = "n·m (lb·ft)/*n·m (lb·ft) @1750"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23224961_1 (season VARCHAR, oberpfalz VARCHAR)
### Question:
When spvgg vohenstrauß is the oberpfalz what is the season?
### Answer:
SELECT season FROM table_23224961_1 WHERE oberpfalz = "SpVgg Vohenstrauß"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_91 (match VARCHAR, points VARCHAR)
### Question:
What match had 8 points?
### Answer:
SELECT match FROM table_name_91 WHERE points = "8"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2409041_5 (written_by VARCHAR, original_air_date VARCHAR)
### Question:
Who wrote the episode that originally aired on January 15, 1993?
### Answer:
SELECT written_by FROM table_2409041_5 WHERE original_air_date = "January 15, 1993"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_59 (attendance INTEGER, home VARCHAR, points VARCHAR)
### Question:
Which Attendance has a Home of philadelphia, and Points smaller than 23?
### Answer:
SELECT SUM(attendance) FROM table_name_59 WHERE home = "philadelphia" AND points < 23
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_39 (points VARCHAR, series VARCHAR, poles VARCHAR)
### Question:
What is the sum of Points with a Series of italian formula renault 2.0, and Poles smaller than 0?
### Answer:
SELECT COUNT(points) FROM table_name_39 WHERE series = "italian formula renault 2.0" AND poles < 0
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18600760_1 (ansi_code INTEGER, township VARCHAR)
### Question:
Name the ansi code fore ashtabula
### Answer:
SELECT MIN(ansi_code) FROM table_18600760_1 WHERE township = "Ashtabula"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR); CREATE TABLE driverstandings (driverid VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR)
### Question:
Find all the forenames of distinct drivers who won in position 1 as driver standing and had more than 20 points?
### Answer:
SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_30 (pick INTEGER, name VARCHAR, overall VARCHAR)
### Question:
What is the lowest draft pick number for mark doak who had an overall pick smaller than 147?
### Answer:
SELECT MIN(pick) FROM table_name_30 WHERE name = "mark doak" AND overall < 147
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_47 (date VARCHAR, visitor VARCHAR, score VARCHAR)
### Question:
When did Montreal visit and have a score of 1-4?
### Answer:
SELECT date FROM table_name_47 WHERE visitor = "montreal" AND score = "1-4"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_91 (elevated VARCHAR, cardinalatial_order_and_title VARCHAR)
### Question:
What was the date of elevation for the cardinal given the order and title of Cardinal-Priest of S. Pudenziana?
### Answer:
SELECT elevated FROM table_name_91 WHERE cardinalatial_order_and_title = "cardinal-priest of s. pudenziana"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_48 (athlete VARCHAR, result VARCHAR)
### Question:
What was the athlete with a final result of 4.30?
### Answer:
SELECT athlete FROM table_name_48 WHERE result = "4.30"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_96 (roll INTEGER, name VARCHAR, gender VARCHAR, authority VARCHAR)
### Question:
Name the highest roll for coed and authority of state integrated with sacred heart school
### Answer:
SELECT MAX(roll) FROM table_name_96 WHERE gender = "coed" AND authority = "state integrated" AND name = "sacred heart school"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (qual VARCHAR, year VARCHAR)
### Question:
What is the Qual listed on the Year of 1954?
### Answer:
SELECT qual FROM table_name_38 WHERE year = "1954"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (name VARCHAR, listed VARCHAR, county VARCHAR)
### Question:
What name has a listed of 03/31/1989 in spartanburg county?
### Answer:
SELECT name FROM table_name_19 WHERE listed = "03/31/1989" AND county = "spartanburg"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_28 (annual_interchanges__millions__2011_12 INTEGER, number_of_platforms VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR, rank VARCHAR, location VARCHAR)
### Question:
What's the average annual interchange for a rank over 26 in liverpool with an annual entry/exit less than 14.209 and more than 10 platforms?
### Answer:
SELECT AVG(annual_interchanges__millions__2011_12) FROM table_name_28 WHERE rank > 26 AND location = "liverpool" AND annual_entry_exit__millions__2011_12 < 14.209 AND number_of_platforms > 10
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14603212_1 (school_year VARCHAR, class_aAA VARCHAR, Wimberley VARCHAR, class_a VARCHAR)
### Question:
If class a is canadian and class aaa is wimberley, which possible school years could this fall on?
### Answer:
SELECT school_year FROM table_14603212_1 WHERE class_aAA = Wimberley AND class_a = "Canadian"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_82 (avg_g VARCHAR, gp_gs VARCHAR, effic VARCHAR)
### Question:
Avg/G that has a GP-GS of 13–13, and a Effic smaller than 114.23 has what total of numbers?
### Answer:
SELECT COUNT(avg_g) FROM table_name_82 WHERE gp_gs = "13–13" AND effic < 114.23
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_93 (born___died VARCHAR, connection_with_australia VARCHAR)
### Question:
What is the Born–Died for the person whose family moved to Australia at age 6?
### Answer:
SELECT born___died FROM table_name_93 WHERE connection_with_australia = "family moved to australia at age 6"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1992924_3 (spokesperson VARCHAR, year_s_ VARCHAR)
### Question:
how many spokesperson where in 2004
### Answer:
SELECT COUNT(spokesperson) FROM table_1992924_3 WHERE year_s_ = 2004
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Apartments (apt_number VARCHAR, apt_type_code VARCHAR)
### Question:
Return the apartment numbers of the apartments with type code "Flat".
### Answer:
SELECT apt_number FROM Apartments WHERE apt_type_code = "Flat"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_98 (rank INTEGER, games VARCHAR, season VARCHAR)
### Question:
Name the least rank when games are more than 34 and the season is 2009-10
### Answer:
SELECT MIN(rank) FROM table_name_98 WHERE games > 34 AND season = "2009-10"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE department (head VARCHAR, departmentID VARCHAR)
### Question:
What is the employee id of the head whose department has the least number of employees?
### Answer:
SELECT head FROM department GROUP BY departmentID ORDER BY COUNT(departmentID) LIMIT 1
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_48 (cup_apps INTEGER, league_apps INTEGER)
### Question:
How many cop apps in the season with fewer than 12 league apps?
### Answer:
SELECT SUM(cup_apps) FROM table_name_48 WHERE league_apps < 12
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_39 (points INTEGER, drawn VARCHAR, position VARCHAR, lost VARCHAR)
### Question:
what is the highest points when position is higher than 6, lost is less than 12 and drawn is less than 1?
### Answer:
SELECT MAX(points) FROM table_name_39 WHERE position > 6 AND lost < 12 AND drawn < 1
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10812293_4 (high_points VARCHAR, date VARCHAR)
### Question:
Who was the scoring leader and how many points did he get in games on December 23?
### Answer:
SELECT high_points FROM table_10812293_4 WHERE date = "December 23"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_94 (round VARCHAR, event VARCHAR)
### Question:
Which round has pain and glory 2006 as the event?
### Answer:
SELECT round FROM table_name_94 WHERE event = "pain and glory 2006"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22368322_2 (tier_1_ratio VARCHAR, institution VARCHAR)
### Question:
Name the tier 1 ratio for irish life and permanent
### Answer:
SELECT tier_1_ratio FROM table_22368322_2 WHERE institution = "Irish Life and Permanent"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR)
### Question:
List the name of tracks belongs to genre Rock or genre Jazz.
### Answer:
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock" OR T1.name = "Jazz"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_15 (country VARCHAR, player VARCHAR)
### Question:
What country does Gary Koch play for?
### Answer:
SELECT country FROM table_name_15 WHERE player = "gary koch"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_14 (result VARCHAR, date VARCHAR)
### Question:
What was the result on 29/09/07?
### Answer:
SELECT result FROM table_name_14 WHERE date = "29/09/07"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_74 (venue VARCHAR, winner VARCHAR, crowd VARCHAR)
### Question:
When Sydney Roosters won with a Crown of more than 7,426, what was the Venue?
### Answer:
SELECT venue FROM table_name_74 WHERE winner = "sydney roosters" AND crowd > 7 OFFSET 426
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15187735_11 (segment_c VARCHAR, series_ep VARCHAR)
### Question:
What is the name of series episode 11-02's segment c?
### Answer:
SELECT segment_c FROM table_15187735_11 WHERE series_ep = "11-02"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_63 (government VARCHAR, number VARCHAR)
### Question:
Which government is number 6?
### Answer:
SELECT government FROM table_name_63 WHERE number = 6
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_2 (team_1 VARCHAR, team_2 VARCHAR)
### Question:
Which team was team 1 that had a team 2 that was la nuova piovese (veneto a)?
### Answer:
SELECT team_1 FROM table_name_2 WHERE team_2 = "la nuova piovese (veneto a)"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1941183_2 (game_site VARCHAR, opponent VARCHAR)
### Question:
In how many locations was the game against Barcelona Dragons played?
### Answer:
SELECT COUNT(game_site) FROM table_1941183_2 WHERE opponent = "Barcelona Dragons"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_66 (against INTEGER, status VARCHAR, venue VARCHAR)
### Question:
Which the lowest Against has a Status of tour match, and a Venue of ravenhill , belfast?
### Answer:
SELECT MIN(against) FROM table_name_66 WHERE status = "tour match" AND venue = "ravenhill , belfast"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_21 (tv_network_s_ VARCHAR, alternate_title_translation VARCHAR)
### Question:
What TV network is the series aistrų žemė aired on?
### Answer:
SELECT tv_network_s_ FROM table_name_21 WHERE alternate_title_translation = "aistrų žemė"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_78 (song_title VARCHAR, chart_peak VARCHAR, track VARCHAR)
### Question:
What was the title of the song that peaked the charts at #1 with track 20?
### Answer:
SELECT song_title FROM table_name_78 WHERE chart_peak = "#1" AND track = 20
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_74 (wins INTEGER, goal_difference VARCHAR, goals_against VARCHAR, points VARCHAR)
### Question:
What is the highest wins entry with fewer than 51 goals, more than 39 points, and a goal difference smaller than 13?
### Answer:
SELECT MAX(wins) FROM table_name_74 WHERE goals_against < 51 AND points > 39 AND goal_difference < 13
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_6 (competition VARCHAR, date VARCHAR)
### Question:
Name the competition for 13 december 2012
### Answer:
SELECT competition FROM table_name_6 WHERE date = "13 december 2012"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_18 (score VARCHAR, result VARCHAR, style VARCHAR)
### Question:
Which Score has a Result of third place, and a Style of cha-cha-cha?
### Answer:
SELECT score FROM table_name_18 WHERE result = "third place" AND style = "cha-cha-cha"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_37 (opponent VARCHAR, week VARCHAR, date VARCHAR)
### Question:
Who was the opponent in the game played after Week 4 on October 15, 2000?
### Answer:
SELECT opponent FROM table_name_37 WHERE week > 4 AND date = "october 15, 2000"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_83 (record VARCHAR, loss VARCHAR)
### Question:
Which Record that has a Loss of mays (0-3)?
### Answer:
SELECT record FROM table_name_83 WHERE loss = "mays (0-3)"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_74 (greek_designation VARCHAR, us_state_district VARCHAR, charter_date VARCHAR)
### Question:
What's the greek designation of the new york chapter with a charter date of april 23, 2005?
### Answer:
SELECT greek_designation FROM table_name_74 WHERE us_state_district = "new york" AND charter_date = "april 23, 2005"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_64 (nation VARCHAR, name VARCHAR)
### Question:
What nation are carolina hermann / daniel hermann from?
### Answer:
SELECT nation FROM table_name_64 WHERE name = "carolina hermann / daniel hermann"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_22 (year_won VARCHAR, country VARCHAR, to_par VARCHAR)
### Question:
What is the year won by Australia with a to par bigger than 16?
### Answer:
SELECT COUNT(year_won) FROM table_name_22 WHERE country = "australia" AND to_par > 16
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2182562_2 (winnings VARCHAR, starts VARCHAR)
### Question:
How high was the amount of winnings (in $) in the year with 15 starts?
### Answer:
SELECT winnings FROM table_2182562_2 WHERE starts = 15
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_28 (Id VARCHAR)
### Question:
What is 2004, when 2009 is "A"?
### Answer:
SELECT 2004 FROM table_name_28 WHERE 2009 = "a"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_27 (home_team VARCHAR)
### Question:
What was fitzroy's score at home?
### Answer:
SELECT home_team AS score FROM table_name_27 WHERE home_team = "fitzroy"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE student (stu_num VARCHAR); CREATE TABLE enroll (stu_num VARCHAR)
### Question:
What is the first name of students who got grade C in any class?
### Answer:
SELECT DISTINCT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE enroll_grade = 'C'
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_80 (literacy_rate___percentage____2001_census VARCHAR, _percentage_increase VARCHAR)
### Question:
What was the literacy rate published in the 2001 census for the state that saw a 12.66% increase?
### Answer:
SELECT literacy_rate___percentage____2001_census FROM table_name_80 WHERE _percentage_increase = "12.66%"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_78 (position INTEGER, lost VARCHAR, played VARCHAR)
### Question:
How much Position has a Lost of 8, and a Played larger than 14?
### Answer:
SELECT SUM(position) FROM table_name_78 WHERE lost = 8 AND played > 14
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341884_20 (district VARCHAR, incumbent VARCHAR)
### Question:
How many districts represented Edwin E. Willis?
### Answer:
SELECT COUNT(district) FROM table_1341884_20 WHERE incumbent = "Edwin E. Willis"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_16 (points VARCHAR, attendance VARCHAR)
### Question:
For the game with 6,126 in attendance, how many points did both teams have in the standings?
### Answer:
SELECT COUNT(points) FROM table_name_16 WHERE attendance = 6 OFFSET 126
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_67 (opponent VARCHAR, week VARCHAR)
### Question:
Who was the opponent during week 8?
### Answer:
SELECT opponent FROM table_name_67 WHERE week = 8
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, department_id VARCHAR)
### Question:
display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara.
### Answer:
SELECT first_name, last_name, hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = "Clara")
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19753079_36 (party VARCHAR, district VARCHAR)
### Question:
Name the total party for north carolina 7
### Answer:
SELECT COUNT(party) FROM table_19753079_36 WHERE district = "North Carolina 7"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_69 (date VARCHAR, event_circuit VARCHAR)
### Question:
what is the date of barbagallo raceway?
### Answer:
SELECT date FROM table_name_69 WHERE event_circuit = "barbagallo raceway"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_39 (investment_income VARCHAR, other_social_security_benefits VARCHAR, occupational_pensions VARCHAR, working_tax_credit VARCHAR)
### Question:
Occupational pensions of 7%, and a Working tax credit of 2%, and a Other social security benefits of 6% has what investment income?
### Answer:
SELECT investment_income FROM table_name_39 WHERE occupational_pensions = "7%" AND working_tax_credit = "2%" AND other_social_security_benefits = "6%"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1276219_1 (phillips VARCHAR, dance VARCHAR, week__number VARCHAR)
### Question:
How was times was the dance the jive and the week # was 10?
### Answer:
SELECT COUNT(phillips) FROM table_1276219_1 WHERE dance = "Jive" AND week__number = "10"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_39 (jockey VARCHAR, trainer VARCHAR, odds VARCHAR)
### Question:
Who is the Jockey that has Nick Zito as Trainer and Odds of 34-1?
### Answer:
SELECT jockey FROM table_name_39 WHERE trainer = "nick zito" AND odds = "34-1"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_56 (year VARCHAR, league VARCHAR, playoffs VARCHAR)
### Question:
when did the usl a-league have conference finals?
### Answer:
SELECT year FROM table_name_56 WHERE league = "usl a-league" AND playoffs = "conference finals"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.