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_71 (third VARCHAR, lead VARCHAR)
### Question:
In which third did angel garcia lead?
### Answer:
SELECT third FROM table_name_71 WHERE lead = "angel garcia"
|
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 (year INTEGER, points VARCHAR, chassis VARCHAR, entrant VARCHAR)
### Question:
What was the latest year that a Bardahl entrant had a Kurtis Kraft 500c chassis with no more than 0 points?
### Answer:
SELECT MAX(year) FROM table_name_35 WHERE chassis = "kurtis kraft 500c" AND entrant = "bardahl" AND points < 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_name_39 (tournament VARCHAR)
### Question:
What is 2011, when Tournament is "Year-End Ranking"?
### Answer:
SELECT 2011 FROM table_name_39 WHERE tournament = "year-end ranking"
|
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_27455867_1 (audition_city VARCHAR, audition_venue VARCHAR)
### Question:
In how many different audition cities were the Bridgestone arena auditions held?
### Answer:
SELECT COUNT(audition_city) FROM table_27455867_1 WHERE audition_venue = "Bridgestone Arena"
|
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_22360_3 (silver INTEGER, discipline VARCHAR)
### Question:
Name the silver for baseball
### Answer:
SELECT MIN(silver) FROM table_22360_3 WHERE discipline = "Baseball"
|
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 (result VARCHAR, score VARCHAR)
### Question:
WHAT IS THE RESULT WITH A SCORE OF 70-73?
### Answer:
SELECT result FROM table_name_81 WHERE score = "70-73"
|
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_27539272_5 (points INTEGER)
### Question:
what is the maximum number of points?
### Answer:
SELECT MAX(points) FROM table_27539272_5
|
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_232458_1 (population__2010_census_ VARCHAR, pop_density__per_km²_ VARCHAR)
### Question:
If the population density is 7,447.32, what is the population total number?
### Answer:
SELECT COUNT(population__2010_census_) FROM table_232458_1 WHERE pop_density__per_km²_ = "7,447.32"
|
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_30058355_2 (fri_26_aug VARCHAR, mon_22_aug VARCHAR)
### Question:
What is shown for fri 26 aug when mon 22 aug is —— no time?
### Answer:
SELECT fri_26_aug FROM table_30058355_2 WHERE mon_22_aug = "—— No Time"
|
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 (first_elected VARCHAR, state VARCHAR, member VARCHAR)
### Question:
What is the year First elected, when the State is vic, and when the Member is Hon Don Chipp?
### Answer:
SELECT first_elected FROM table_name_21 WHERE state = "vic" AND member = "hon don chipp"
|
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_29 (date VARCHAR, set_2 VARCHAR)
### Question:
What is Date, when Set 2 is 25-13?
### Answer:
SELECT date FROM table_name_29 WHERE set_2 = "25-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_66 (event VARCHAR, year VARCHAR, position VARCHAR)
### Question:
What event was in a year later than 2007 and in the 88th position?
### Answer:
SELECT event FROM table_name_66 WHERE year > 2007 AND position = "88th"
|
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_26214389_3 (Non VARCHAR, year VARCHAR)
### Question:
If the year is 2001, what are the non qatari female?
### Answer:
SELECT Non AS qatari_female FROM table_26214389_3 WHERE year = 2001
|
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_22171978_1 (founded VARCHAR, institution VARCHAR)
### Question:
What year was the ateneo de manila university founded?
### Answer:
SELECT founded FROM table_22171978_1 WHERE institution = "Ateneo de Manila 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_57 (writer_s_ VARCHAR, recipient VARCHAR)
### Question:
Who was the writer when Parkville Pictures Ltd was the recipient?
### Answer:
SELECT writer_s_ FROM table_name_57 WHERE recipient = "parkville pictures ltd"
|
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 (result VARCHAR, date VARCHAR)
### Question:
What was the Result on May 30?
### Answer:
SELECT result FROM table_name_66 WHERE date = "may 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_4 (player VARCHAR, position VARCHAR)
### Question:
The Position of Centre is what Player?
### Answer:
SELECT player FROM table_name_4 WHERE position = "centre"
|
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_13 (away_team VARCHAR, home_team VARCHAR)
### Question:
Who was home team South Melbourne's opponent?
### Answer:
SELECT away_team FROM table_name_13 WHERE home_team = "south melbourne"
|
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_15463188_16 (school_club_team VARCHAR, number VARCHAR)
### Question:
Name the school/club team for 9
### Answer:
SELECT school_club_team FROM table_15463188_16 WHERE number = "9"
|
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_10 (goals_for VARCHAR, lost VARCHAR, position VARCHAR)
### Question:
how many times is lost less than 7 and the position 2?
### Answer:
SELECT COUNT(goals_for) FROM table_name_10 WHERE lost < 7 AND position = 2
|
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 (rank INTEGER, state VARCHAR, mountain_peak VARCHAR)
### Question:
Where does Mount Chamberlin, located in Alaska, rank on the chart?
### Answer:
SELECT SUM(rank) FROM table_name_37 WHERE state = "alaska" AND mountain_peak = "mount chamberlin"
|
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_4 (Id VARCHAR)
### Question:
What is the 1994 when QF is 1999?
### Answer:
SELECT 1994 FROM table_name_4 WHERE 1999 = "qf"
|
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 (character VARCHAR, artist VARCHAR, year VARCHAR)
### Question:
who is the character when the artist is take and the year is before 2006?
### Answer:
SELECT character FROM table_name_75 WHERE artist = "take" AND year < 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_25869317_1 (gdp__ppp__per_capita INTEGER)
### Question:
What is the lowest GDP (ppp) per capita?
### Answer:
SELECT MIN(gdp__ppp__per_capita) FROM table_25869317_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_1 (entrant VARCHAR, tyre VARCHAR, constructor VARCHAR)
### Question:
What entrant has a P tyre and was constructed by Alfa Romeo?
### Answer:
SELECT entrant FROM table_name_1 WHERE tyre = "p" AND constructor = "alfa romeo"
|
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_14655917_1 (date VARCHAR, opponent VARCHAR)
### Question:
What day were the Denver Broncos the opponent?
### Answer:
SELECT date FROM table_14655917_1 WHERE opponent = "Denver Broncos"
|
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 (away_team VARCHAR, tie_no VARCHAR, score VARCHAR)
### Question:
Which Away has a Tie no of replay, and a Score of 2–0?
### Answer:
SELECT away_team FROM table_name_93 WHERE tie_no = "replay" AND score = "2–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_21091162_1 (date VARCHAR, opponent VARCHAR)
### Question:
How many dates have boston college as the opponent?
### Answer:
SELECT COUNT(date) FROM table_21091162_1 WHERE opponent = "Boston College"
|
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 (character VARCHAR, category VARCHAR, award VARCHAR)
### Question:
Which character was in the sexiest female category of the British Soap Awards?
### Answer:
SELECT character FROM table_name_59 WHERE category = "sexiest female" AND award = "british soap awards"
|
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 (year_named VARCHAR, diameter__km_ VARCHAR)
### Question:
What was the year when the diameter was 729 km?
### Answer:
SELECT year_named FROM table_name_59 WHERE diameter__km_ = 729
|
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_28634206_1 (country VARCHAR, miss_universe VARCHAR)
### Question:
Which country has had 6 miss universe's?
### Answer:
SELECT country FROM table_28634206_1 WHERE miss_universe = "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_32 (lomavren VARCHAR, persian VARCHAR)
### Question:
What is the Lomavren associated with a Persian of se?
### Answer:
SELECT lomavren FROM table_name_32 WHERE persian = "se"
|
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_23624542_4 (week INTEGER, attendance VARCHAR)
### Question:
What week has an attendance of 10402
### Answer:
SELECT MIN(week) FROM table_23624542_4 WHERE attendance = 10402
|
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 (Id VARCHAR)
### Question:
What is 2001, when 2007 is "1R", and when 2008 is "Q1"?
### Answer:
SELECT 2001 FROM table_name_99 WHERE 2007 = "1r" AND 2008 = "q1"
|
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 (match VARCHAR, city_country VARCHAR, year VARCHAR)
### Question:
How many matches have a City/Country of karachi, pakistan, and a Year larger than 1996?
### Answer:
SELECT COUNT(match) FROM table_name_63 WHERE city_country = "karachi, pakistan" AND year > 1996
|
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 (score VARCHAR, date VARCHAR)
### Question:
What was the score on 10 November 2006?
### Answer:
SELECT score FROM table_name_79 WHERE date = "10 november 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_name_11 (date VARCHAR, attendance VARCHAR)
### Question:
What date has attendance listed as 45,024?
### Answer:
SELECT date FROM table_name_11 WHERE attendance = "45,024"
|
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_97 (team__number1 VARCHAR, team__number2 VARCHAR)
### Question:
What is the team #1 that has unics kazan for team #2?
### Answer:
SELECT team__number1 FROM table_name_97 WHERE team__number2 = "unics kazan"
|
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_45 (weight VARCHAR, name VARCHAR)
### Question:
What is the Weight for the Name Billy Miller Category:Articles with hcards?
### Answer:
SELECT weight FROM table_name_45 WHERE name = "billy miller category:articles with hcards"
|
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_1341930_40 (incumbent VARCHAR, first_elected VARCHAR)
### Question:
Name the incumbent for first elected 1956
### Answer:
SELECT incumbent FROM table_1341930_40 WHERE first_elected = 1956
|
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_1676073_12 (club VARCHAR, points_against VARCHAR)
### Question:
What clubs had 608 points against?
### Answer:
SELECT club FROM table_1676073_12 WHERE points_against = "608"
|
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 (catalog VARCHAR, year VARCHAR, issued_title VARCHAR, label VARCHAR)
### Question:
What is the name of the catalog issued with the title of 1958 Miles on the Sony label at a year prior to 2006?
### Answer:
SELECT catalog FROM table_name_62 WHERE issued_title = "1958 miles" AND label = "sony" AND year < 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_name_5 (state VARCHAR, royal_house VARCHAR)
### Question:
Which state has a royal house of Jiang?
### Answer:
SELECT state FROM table_name_5 WHERE royal_house = "jiang"
|
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_34 (name VARCHAR, best VARCHAR)
### Question:
What is the name of the racer with a best time of 57.546?
### Answer:
SELECT name FROM table_name_34 WHERE best = "57.546"
|
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 teachers (classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
### Question:
How many teachers does the student named CHRISSY NABOZNY have?
### Answer:
SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "CHRISSY" AND T1.lastname = "NABOZNY"
|
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_14752049_2 (change__2009_to_2010_ VARCHAR, country VARCHAR)
### Question:
What are the changes from 2009 to 2010 in Tunisia?
### Answer:
SELECT change__2009_to_2010_ FROM table_14752049_2 WHERE country = "Tunisia"
|
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_90 (incumbent VARCHAR, results VARCHAR, first_elected VARCHAR)
### Question:
Who is the incumbent that has been in office since before 1996 and was again re-elected?
### Answer:
SELECT incumbent FROM table_name_90 WHERE results = "re-elected" AND first_elected < 1996
|
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_73 (date VARCHAR, attendance VARCHAR)
### Question:
Which date had 67,472 in attendance?
### Answer:
SELECT date FROM table_name_73 WHERE attendance = "67,472"
|
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 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
### Question:
Which driver had 3 Laps and grids less than 15?
### Answer:
SELECT driver FROM table_name_83 WHERE laps = 3 AND grid < 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_32 (home_team VARCHAR, venue VARCHAR)
### Question:
Which home team has a venue of windy hill?
### Answer:
SELECT home_team FROM table_name_32 WHERE venue = "windy hill"
|
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_17 (player VARCHAR, home_town VARCHAR)
### Question:
Which player's home town is Swift Current, AB?
### Answer:
SELECT player FROM table_name_17 WHERE home_town = "swift current, ab"
|
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_5 (second VARCHAR, premier VARCHAR, first VARCHAR, season VARCHAR)
### Question:
What is the total number of Second, when First is greater than 18, when Season is 1992-93, and when Premier is greater than 16?
### Answer:
SELECT COUNT(second) FROM table_name_5 WHERE first > 18 AND season = "1992-93" AND premier > 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_name_1 (player VARCHAR, school_club_team_country VARCHAR)
### Question:
Which player plays for Illinois?
### Answer:
SELECT player FROM table_name_1 WHERE school_club_team_country = "illinois"
|
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 (visiting_team VARCHAR, date VARCHAR)
### Question:
Who was the visiting team on December 6?
### Answer:
SELECT visiting_team FROM table_name_31 WHERE date = "december 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_23286112_12 (series VARCHAR, date VARCHAR)
### Question:
Which series were played on April 18?
### Answer:
SELECT series FROM table_23286112_12 WHERE date = "April 18"
|
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 (city_code VARCHAR)
### Question:
Find the code of city where most of students are living in.
### Answer:
SELECT city_code FROM student GROUP BY city_code ORDER BY COUNT(*) DESC 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_21436373_11 (result_games VARCHAR, type_of_record VARCHAR)
### Question:
Name the result for total attendance-regular season
### Answer:
SELECT result_games FROM table_21436373_11 WHERE type_of_record = "Total attendance-Regular season"
|
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_24 (co_drivers VARCHAR, year VARCHAR)
### Question:
Who was the Co-Driver of the winner of 1992's race?
### Answer:
SELECT co_drivers FROM table_name_24 WHERE year = 1992
|
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_60 (result VARCHAR, choreographer_s_ VARCHAR)
### Question:
What is the result of choreographer bjørn holthe?
### Answer:
SELECT result FROM table_name_60 WHERE choreographer_s_ = "bjørn holthe"
|
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_1547951_3 (partner VARCHAR, opponents VARCHAR)
### Question:
Name the partner for mark woodforde martina navratilova
### Answer:
SELECT partner FROM table_1547951_3 WHERE opponents = "Mark Woodforde Martina Navratilova"
|
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_178398_1 (sub_parish__sogn_ VARCHAR, location_of_the_church VARCHAR)
### Question:
What is the sub-parish of the church located in Fortun?
### Answer:
SELECT sub_parish__sogn_ FROM table_178398_1 WHERE location_of_the_church = "Fortun"
|
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_49 (points INTEGER, place VARCHAR, draw VARCHAR)
### Question:
What is the average number of points for places over 7 and having a draw order of 4?
### Answer:
SELECT AVG(points) FROM table_name_49 WHERE place > 7 AND draw = 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_36 (away_team VARCHAR, home_team VARCHAR)
### Question:
Who was the away team during the game when the home team was the new zealand breakers?
### Answer:
SELECT away_team FROM table_name_36 WHERE home_team = "new zealand breakers"
|
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 (pl_g VARCHAR, player VARCHAR, fa_yc VARCHAR, cl_g VARCHAR, cl_apps VARCHAR)
### Question:
What is the total PL G of player pennant, who has less than 7 CL G, less than 7 CL apps, and a FA YC of 0?
### Answer:
SELECT COUNT(pl_g) FROM table_name_74 WHERE cl_g < 7 AND cl_apps < 7 AND fa_yc = 0 AND player = "pennant"
|
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_1733457_1 (bush_percentage VARCHAR, others_number VARCHAR)
### Question:
Name the bush% for where others # is 90
### Answer:
SELECT bush_percentage FROM table_1733457_1 WHERE others_number = 90
|
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_25 (year INTEGER, winner VARCHAR, score VARCHAR)
### Question:
What was the earliest year during which the winner was Matthew King, and during which the score was higher than 270?
### Answer:
SELECT MIN(year) FROM table_name_25 WHERE winner = "matthew king" AND score > 270
|
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_16105186_2 (mid_atlantic_south__washington VARCHAR, _dc_ VARCHAR, alaska___juneau__ VARCHAR, california__san_francisco_ VARCHAR)
### Question:
What was the emission rating in Mid-Atlantic South for the vehicle that was rated 90 g/mi (56 g/km) in Alaska and 110 g/mi (68 g/km) in California?
### Answer:
SELECT mid_atlantic_south__washington, _dc_ FROM table_16105186_2 WHERE alaska___juneau__ = "90 g/mi (56 g/km)" AND california__san_francisco_ = "110 g/mi (68 g/km)"
|
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 (opened INTEGER, line_name VARCHAR, last_extension VARCHAR)
### Question:
What is the average opened year of line e, which had their last extension before 2003?
### Answer:
SELECT AVG(opened) FROM table_name_40 WHERE line_name = "line e" AND last_extension < 2003
|
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 (date VARCHAR, blue_coalition VARCHAR)
### Question:
On what Date is the Blue Coalition 8,80%?
### Answer:
SELECT date FROM table_name_62 WHERE blue_coalition = "8,80%"
|
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_26 (sport VARCHAR, name VARCHAR)
### Question:
What sport has Ma Yuxi in it?
### Answer:
SELECT sport FROM table_name_26 WHERE name = "ma yuxi"
|
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_25355501_2 (march_27_29 VARCHAR, june_10_11 VARCHAR)
### Question:
march 27-29 where june 10-11 is 127?
### Answer:
SELECT march_27_29 FROM table_25355501_2 WHERE june_10_11 = "127"
|
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 (magnitude VARCHAR, epicenter VARCHAR)
### Question:
What is the magnitude of the earthquake with an epicenter in biskra province?
### Answer:
SELECT magnitude FROM table_name_6 WHERE epicenter = "biskra province"
|
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_71 (wins INTEGER, manufacturer VARCHAR, rank VARCHAR)
### Question:
Manufacturer of honda, and a Rank of 8 had what highest wins?
### Answer:
SELECT MAX(wins) FROM table_name_71 WHERE manufacturer = "honda" AND rank = 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 grants (grant_amount VARCHAR, grant_end_date INTEGER); CREATE TABLE Grants (grant_amount VARCHAR, grant_id VARCHAR); CREATE TABLE Documents (grant_id VARCHAR, sent_date INTEGER)
### Question:
What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'?
### Answer:
SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id WHERE T2.sent_date < '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date > '1989-03-16 18:27: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_name_85 (decision VARCHAR, date VARCHAR)
### Question:
Which Decision has a Date of april 25?
### Answer:
SELECT decision FROM table_name_85 WHERE date = "april 25"
|
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 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
### Question:
Which Silver has a Nation of china, and a Bronze smaller than 7?
### Answer:
SELECT SUM(silver) FROM table_name_2 WHERE nation = "china" AND bronze < 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_86 (total INTEGER, silver VARCHAR, rank VARCHAR)
### Question:
How many total medals does rank 3 with less than 40 silver medals?
### Answer:
SELECT MAX(total) FROM table_name_86 WHERE silver < 40 AND rank = 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_58 (to_par INTEGER, score VARCHAR)
### Question:
What is the To par of the Player with a Score of 70-71=141?
### Answer:
SELECT AVG(to_par) FROM table_name_58 WHERE score = 70 - 71 = 141
|
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 (score VARCHAR, tie_no VARCHAR)
### Question:
What was the score at the Tie no. 1 game?
### Answer:
SELECT score FROM table_name_37 WHERE tie_no = "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_33 (uci_protour_points VARCHAR, cyclist VARCHAR)
### Question:
What is Davide Rebellin' UCI ProTour Points?
### Answer:
SELECT uci_protour_points FROM table_name_33 WHERE cyclist = "davide rebellin"
|
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_33 (fa_cup_goals INTEGER, league_goals VARCHAR, other_goals VARCHAR, fl_cup_goals VARCHAR)
### Question:
What is the average FA Cup Goal value for players that have 0 Other goals, 0 FL Cup goals, and fewer than 39 League goals?
### Answer:
SELECT AVG(fa_cup_goals) FROM table_name_33 WHERE other_goals = 0 AND fl_cup_goals = 0 AND league_goals < 39
|
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_25794138_1 (capacity INTEGER, stadium VARCHAR)
### Question:
What was the maximum capacity of larry gomes stadium?
### Answer:
SELECT MAX(capacity) FROM table_25794138_1 WHERE stadium = "Larry Gomes stadium"
|
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_25 (smoke_point VARCHAR, monounsaturated_fat VARCHAR)
### Question:
Name the smoke point for monosaturated fat of 30g
### Answer:
SELECT smoke_point FROM table_name_25 WHERE monounsaturated_fat = "30g"
|
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 (max_torque__nm__at_rpm VARCHAR, model VARCHAR)
### Question:
What is the max torque of model 1.4 16v?
### Answer:
SELECT max_torque__nm__at_rpm FROM table_name_82 WHERE model = "1.4 16v"
|
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 employment (People_ID VARCHAR, Company_ID VARCHAR); CREATE TABLE company (Company_ID VARCHAR, Sales_in_Billion INTEGER); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
### Question:
Show the names of employees that work for companies with sales bigger than 200.
### Answer:
SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID WHERE T3.Sales_in_Billion > 200
|
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_89 (season_outcome VARCHAR, school VARCHAR)
### Question:
Name the season outcome for smyrna
### Answer:
SELECT season_outcome FROM table_name_89 WHERE school = "smyrna"
|
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_9 (years VARCHAR, decile VARCHAR, name VARCHAR)
### Question:
What years does Kakahi school, with a decile of 3, have?
### Answer:
SELECT years FROM table_name_9 WHERE decile = 3 AND name = "kakahi 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 student (dept_code VARCHAR, stu_gpa INTEGER)
### Question:
Find the max, average, and minimum gpa of all students in each department.
### Answer:
SELECT MAX(stu_gpa), AVG(stu_gpa), MIN(stu_gpa), dept_code FROM student GROUP BY dept_code
|
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 (december INTEGER, game VARCHAR)
### Question:
What is the average December, when Game is "36"?
### Answer:
SELECT AVG(december) FROM table_name_39 WHERE game = 36
|
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 (venue VARCHAR, opposing_teams VARCHAR)
### Question:
What venue has Scotland as the opposing teams?
### Answer:
SELECT venue FROM table_name_95 WHERE opposing_teams = "scotland"
|
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 (valid_poll INTEGER, constituency VARCHAR)
### Question:
Name the least valid poll for munster
### Answer:
SELECT MIN(valid_poll) FROM table_name_50 WHERE constituency = "munster"
|
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_2186447_1 (opponents VARCHAR, score VARCHAR)
### Question:
Who was playing when the score was 5–7, 6–7 (4–7)?
### Answer:
SELECT opponents FROM table_2186447_1 WHERE score = "5–7, 6–7 (4–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_61 (home_team VARCHAR, date VARCHAR)
### Question:
Which home team played on April 5, 2008?
### Answer:
SELECT home_team FROM table_name_61 WHERE date = "april 5, 2008"
|
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 Templates (template_type_code VARCHAR)
### Question:
Show all template type codes with less than three templates.
### Answer:
SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING COUNT(*) < 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_81 (player VARCHAR, position VARCHAR)
### Question:
Which player is a shooting guard?
### Answer:
SELECT player FROM table_name_81 WHERE position = "shooting guard"
|
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 FLIGHTS (Airline VARCHAR, DestAirport VARCHAR); CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR)
### Question:
How many 'United Airlines' flights go to Airport 'ASY'?
### Answer:
SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.DestAirport = "ASY"
|
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 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
### Question:
When Gary Player was the runner-up, what was the margin of victory?
### Answer:
SELECT margin_of_victory FROM table_name_28 WHERE runner_s__up = "gary player"
|
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_84 (opponent VARCHAR, round VARCHAR)
### Question:
What team was the opponent when the round was sf?
### Answer:
SELECT opponent FROM table_name_84 WHERE round = "sf"
|
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 (away_team VARCHAR, home_team VARCHAR)
### Question:
What was the score for the away team when the home team was Fitzroy?
### Answer:
SELECT away_team AS score FROM table_name_38 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 table_name_83 (icao VARCHAR, iata VARCHAR)
### Question:
What shows for ICAO when the IATA is sin?
### Answer:
SELECT icao FROM table_name_83 WHERE iata = "sin"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.