answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT civil_parish FROM table_30120664_1 WHERE townland = "Garryduff"
name the civil parish for garryduff
CREATE TABLE table_30120664_1 (civil_parish VARCHAR, townland VARCHAR)
SELECT no_in_series FROM table_24223834_3 WHERE us_viewers__in_millions_ = "2.528"
What episode number in the series had 2.528 million u.s. viewers?
CREATE TABLE table_24223834_3 (no_in_series VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT COUNT(jockey) FROM table_14981555_3 WHERE date = "17 Feb 2007"
How many different jockeys ran on 17 Feb 2007?
CREATE TABLE table_14981555_3 (jockey VARCHAR, date VARCHAR)
SELECT district FROM table_1341577_22 WHERE first_elected = 1952
What is the district for 1952?
CREATE TABLE table_1341577_22 (district VARCHAR, first_elected VARCHAR)
SELECT SUM(attendance) FROM table_name_14 WHERE date = "2 may 2007"
How many people attended on 2 may 2007?
CREATE TABLE table_name_14 (attendance INTEGER, date VARCHAR)
SELECT MAX(points) FROM table_name_34 WHERE grid < 13 AND time_retired = "+7.538 secs"
What is the biggest points when the grid is less than 13 and the time/retired is +7.538 secs?
CREATE TABLE table_name_34 (points INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT time___mt__ FROM table_name_13 WHERE opponent = "kansas city chiefs" AND date = "nov 11"
What is the (MT) time which has kansas city chiefs as an opponent on nov 11?
CREATE TABLE table_name_13 (time___mt__ VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT term_end FROM table_name_78 WHERE political_party = "albanian fascist party" AND term_start = "12 april 1939"
What is Term End, when Political Party is Albanian Fascist Party, and when Term Start is 12 April 1939?
CREATE TABLE table_name_78 (term_end VARCHAR, political_party VARCHAR, term_start VARCHAR)
SELECT COUNT(silver) FROM table_name_44 WHERE nation = "united states" AND total > 1
how many times is the nation listed as united states with the total more than 1?
CREATE TABLE table_name_44 (silver VARCHAR, nation VARCHAR, total VARCHAR)
SELECT english_title FROM table_1893815_1 WHERE album_number = "2nd"
Name the english title for album # 2nd
CREATE TABLE table_1893815_1 (english_title VARCHAR, album_number VARCHAR)
SELECT total FROM table_182298_5 WHERE mens_open = 7
How many are the total winners if 7 won the Men's Open?
CREATE TABLE table_182298_5 (total VARCHAR, mens_open VARCHAR)
SELECT icao FROM table_name_63 WHERE iata = "ath"
Which ICAO's IATA is ath?
CREATE TABLE table_name_63 (icao VARCHAR, iata VARCHAR)
SELECT score FROM table_name_88 WHERE opponent = "@ braves" AND loss = "pelfrey (2–5)"
Opponent of @ braves, and a Loss of pelfrey (2–5) had what score?
CREATE TABLE table_name_88 (score VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT player FROM table_name_56 WHERE score = 77 - 68 = 145
Who is the player with a 77-68=145 score?
CREATE TABLE table_name_56 (player VARCHAR, score VARCHAR)
SELECT moving_from FROM table_name_63 WHERE country = "fra"
What moving has fra as the country?
CREATE TABLE table_name_63 (moving_from VARCHAR, country VARCHAR)
SELECT MAX(league_goals) FROM table_name_67 WHERE total_goals < 1 AND fa_cup_goals > 0
Tell me the highest league goals with total goals less than 1 and FA cups more than 0
CREATE TABLE table_name_67 (league_goals INTEGER, total_goals VARCHAR, fa_cup_goals VARCHAR)
SELECT date FROM table_name_60 WHERE record = "18–10–2"
What was the date of the game with the record of 18–10–2?
CREATE TABLE table_name_60 (date VARCHAR, record VARCHAR)
SELECT production_code FROM table_24649082_1 WHERE written_by = "J. H. Wyman & Jeff Pinkner"
What is the production code for the episode written by J. H. Wyman & Jeff Pinkner?
CREATE TABLE table_24649082_1 (production_code VARCHAR, written_by VARCHAR)
SELECT COUNT(wins) FROM table_name_92 WHERE draws < 0
What's the total wins when the draws are less than 0?
CREATE TABLE table_name_92 (wins VARCHAR, draws INTEGER)
SELECT MIN(extra_points_1_point) FROM table_name_95 WHERE player = "walter shaw"
Which Extra points 1 point is the lowest one that has a Player of walter shaw?
CREATE TABLE table_name_95 (extra_points_1_point INTEGER, player VARCHAR)
SELECT score_in_the_final FROM table_name_92 WHERE date > 1984 AND outcome = "winner" AND opponent_in_the_final = "víctor pecci"
What was the score in the final, that Víctor Pecci was the opponent and winner after 1984?
CREATE TABLE table_name_92 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR, date VARCHAR, outcome VARCHAR)
SELECT original_air_date FROM table_23225927_1 WHERE no_in_season = 22
If the number in the season is 22, what is the original air date?
CREATE TABLE table_23225927_1 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT COUNT(silver) FROM table_name_6 WHERE rank = 6
What is the total number of silver with rank number 6?
CREATE TABLE table_name_6 (silver VARCHAR, rank VARCHAR)
SELECT circuit FROM table_name_64 WHERE round > 2 AND state_territory = "victoria"
What circuit was after round 2 in Victoria?
CREATE TABLE table_name_64 (circuit VARCHAR, round VARCHAR, state_territory VARCHAR)
SELECT district FROM table_25030512_41 WHERE first_elected = 1994
Name the district for 1994
CREATE TABLE table_25030512_41 (district VARCHAR, first_elected VARCHAR)
SELECT title FROM table_name_29 WHERE state = "qin"
What was the title for the state of qin?
CREATE TABLE table_name_29 (title VARCHAR, state VARCHAR)
SELECT date FROM table_name_89 WHERE result = "l 33–14"
What is the Date of the game with a Result of L 33–14?
CREATE TABLE table_name_89 (date VARCHAR, result VARCHAR)
SELECT COUNT(year_to_april) FROM table_18304259_1 WHERE ebit__£m_ = "24.5"
Name the total number of year to april for ebit being 24.5
CREATE TABLE table_18304259_1 (year_to_april VARCHAR, ebit__£m_ VARCHAR)
SELECT last_meeting FROM table_2846320_4 WHERE name_of_rivalry = "Iron Bowl"
when was the ending time where the enemy met in the iron bowl
CREATE TABLE table_2846320_4 (last_meeting VARCHAR, name_of_rivalry VARCHAR)
SELECT venue FROM table_name_78 WHERE date = "august 20, 2004"
Where was the game held on August 20, 2004?
CREATE TABLE table_name_78 (venue VARCHAR, date VARCHAR)
SELECT ceremony FROM table_name_69 WHERE nominee = "jayant"
In which ceremony was Jayant nominated for an award?
CREATE TABLE table_name_69 (ceremony VARCHAR, nominee VARCHAR)
SELECT tyre FROM table_name_81 WHERE entrant = "scuderia milano"
what is the tyre when the entrant is scuderia milano?
CREATE TABLE table_name_81 (tyre VARCHAR, entrant VARCHAR)
SELECT age, COUNT(*) FROM Student GROUP BY age
Show all ages and corresponding number of students.
CREATE TABLE Student (age VARCHAR)
SELECT date_of_birth FROM table_12134383_1 WHERE end_of_term = "5July1978"
what's the date of birth with end of term being 5july1978
CREATE TABLE table_12134383_1 (date_of_birth VARCHAR, end_of_term VARCHAR)
SELECT MIN(wins) FROM table_name_95 WHERE class = "125cc" AND year < 1966
Class of 125cc, and a Year smaller than 1966 had what lowest wins?
CREATE TABLE table_name_95 (wins INTEGER, class VARCHAR, year VARCHAR)
SELECT away_team FROM table_name_1 WHERE venue = "victoria park"
Who was the away team at Victoria Park?
CREATE TABLE table_name_1 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(record) FROM table_15869204_5 WHERE game = 27
Name the total number of record for 27
CREATE TABLE table_15869204_5 (record VARCHAR, game VARCHAR)
SELECT type FROM table_name_14 WHERE rank < 70 AND province = "british columbia" AND capacity___mw__ > 2 OFFSET 480
what is the type when the rank is smaller than 70, the province is british columbia and the capacity (mw) is more than 2,480?
CREATE TABLE table_name_14 (type VARCHAR, capacity___mw__ VARCHAR, rank VARCHAR, province VARCHAR)
SELECT AVG(crowd) FROM table_name_9 WHERE venue = "corio oval"
What is the average crowd size for corio oval?
CREATE TABLE table_name_9 (crowd INTEGER, venue VARCHAR)
SELECT phonetic_realisation FROM table_name_61 WHERE without_niqqud = "as final letter: ו or יו"
If a variant without niqqud is as final letter: ו or יו, what is the phonetic realisation?
CREATE TABLE table_name_61 (phonetic_realisation VARCHAR, without_niqqud VARCHAR)
SELECT surface FROM table_name_99 WHERE opponent = "oleksandra kravets"
Which Surface has an Opponent of oleksandra kravets?
CREATE TABLE table_name_99 (surface VARCHAR, opponent VARCHAR)
SELECT tries_for FROM table_17941032_1 WHERE tries_against = "60"
When 60 is the tries against what is the tries for?
CREATE TABLE table_17941032_1 (tries_for VARCHAR, tries_against VARCHAR)
SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5
What are the name of courses that have at least five enrollments?
CREATE TABLE ENROLLED_IN (CID VARCHAR); CREATE TABLE COURSE (CName VARCHAR, CID VARCHAR)
SELECT region FROM table_name_4 WHERE host = "university of colorado"
The University of Colorado hosted what region?
CREATE TABLE table_name_4 (region VARCHAR, host VARCHAR)
SELECT chassis FROM table_name_93 WHERE engine = "maserati straight-6" AND points > 0 AND year = 1955
What kind of Chassis supports a Maserati Straight-6 engine with Points greater than 0 and built in the year 1955?
CREATE TABLE table_name_93 (chassis VARCHAR, year VARCHAR, engine VARCHAR, points VARCHAR)
SELECT segment_c FROM table_15187735_11 WHERE series_ep = "11-02"
What is the name of series episode 11-02's segment c?
CREATE TABLE table_15187735_11 (segment_c VARCHAR, series_ep VARCHAR)
SELECT company FROM table_name_76 WHERE release_date = "2008-09-18 18 september 2008"
Who is the company that released the album on 2008-09-18 18 September 2008?
CREATE TABLE table_name_76 (company VARCHAR, release_date VARCHAR)
SELECT T2.customer_name, T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'Order' INTERSECT SELECT T2.customer_name, T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_cod...
What are the name and payment method of customers who have both mailshots in 'Order' outcome and mailshots in 'No Response' outcome.
CREATE TABLE customers (customer_name VARCHAR, payment_method VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR, outcome_code VARCHAR)
SELECT opponents FROM table_name_3 WHERE wicket_partnership = "5th"
Who was the opponents of the 5th Wicket Partnership?
CREATE TABLE table_name_3 (opponents VARCHAR, wicket_partnership VARCHAR)
SELECT final_score FROM table_24126606_2 WHERE week = 5
Name the final score for week 5
CREATE TABLE table_24126606_2 (final_score VARCHAR, week VARCHAR)
SELECT COUNT(draws) FROM table_name_44 WHERE points = 30 AND goals_against < 33
How many Draws have 30 Points, and less than 33 Goals against?
CREATE TABLE table_name_44 (draws VARCHAR, points VARCHAR, goals_against VARCHAR)
SELECT season FROM table_name_76 WHERE opponent = "source: . last updated: 28 june 2007."
What is Season, when Opponent is source: . last updated: 28 june 2007.?
CREATE TABLE table_name_76 (season VARCHAR, opponent VARCHAR)
SELECT COUNT(bush_number) FROM table_2401326_1 WHERE bush_percentage = "69.7%"
How many different counts of the votes for Bush are there in the county where he got 69.7% of the votes?
CREATE TABLE table_2401326_1 (bush_number VARCHAR, bush_percentage VARCHAR)
SELECT COUNT(swimsuit) FROM table_name_32 WHERE evening_gown > 9 AND interview > 8.405
How many swimsuits have an Evening Gown larger than 9, and an Interview larger than 8.405?
CREATE TABLE table_name_32 (swimsuit VARCHAR, evening_gown VARCHAR, interview VARCHAR)
SELECT birth_place FROM table_name_83 WHERE monarchs_served = "george v" AND entered_office = "23 october 1922"
What is the birth place of the prime minister who served George V and entered office on 23 October 1922?
CREATE TABLE table_name_83 (birth_place VARCHAR, monarchs_served VARCHAR, entered_office VARCHAR)
SELECT cospar_id FROM table_18161217_2 WHERE satellite = "Kosmos 2379"
What it the international designation for the kosmos 2379 satellite?
CREATE TABLE table_18161217_2 (cospar_id VARCHAR, satellite VARCHAR)
SELECT density__hab__km²__ FROM table_name_4 WHERE population_censo_2007_hab_ = "336.293*"
What is the density (hab/km²) with a population censo 2007(hab) of 336.293*?
CREATE TABLE table_name_4 (density__hab__km²__ VARCHAR, population_censo_2007_hab_ VARCHAR)
SELECT COUNT(silver) FROM table_name_85 WHERE total = 30 AND bronze > 10
what is the total silver when total is 30 and bronze is more than 10?
CREATE TABLE table_name_85 (silver VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT COUNT(bronze) FROM table_name_76 WHERE rank = "9"
Which Bronze has a Rank of 9?
CREATE TABLE table_name_76 (bronze VARCHAR, rank VARCHAR)
SELECT SUM(yards) FROM table_name_60 WHERE asst = 19 AND totaltk = 60 AND sack > 0
What is the total of yards when asst. is 19, totaltk is 60 and sack is more than 0?
CREATE TABLE table_name_60 (yards INTEGER, sack VARCHAR, asst VARCHAR, totaltk VARCHAR)
SELECT rowers FROM table_name_33 WHERE notes = "fa" AND time = "6:41.45"
Who are the rowers with a time of 6:41.45 and notes of FA?
CREATE TABLE table_name_33 (rowers VARCHAR, notes VARCHAR, time VARCHAR)
SELECT 2008 AS _12 FROM table_name_80 WHERE 2007 = "a" AND tournament = "us open"
Which 2008-12 has a 2007 of A, and a Tournament of us open?
CREATE TABLE table_name_80 (tournament VARCHAR)
SELECT _number FROM table_2602958_4 WHERE prod_code = 175020
Which episodein season 3 had 175020 for a production code?
CREATE TABLE table_2602958_4 (_number VARCHAR, prod_code VARCHAR)
SELECT date FROM table_17355408_7 WHERE high_assists = "Chauncey Billups (6)"
Chauncey Billups (6) had a high assist on what date?
CREATE TABLE table_17355408_7 (date VARCHAR, high_assists VARCHAR)
SELECT country FROM table_name_73 WHERE airport = "nnamdi azikiwe international airport"
Which country is the nnamdi azikiwe international airport in?
CREATE TABLE table_name_73 (country VARCHAR, airport VARCHAR)
SELECT points_for FROM table_name_88 WHERE losing_bonus = "2" AND lost = "8" AND club = "rhyl and district rfc"
What is Points For, when Losing Bonus is "2", when Lost is "8", and when Club is "Rhyl And District RFC"?
CREATE TABLE table_name_88 (points_for VARCHAR, club VARCHAR, losing_bonus VARCHAR, lost VARCHAR)
SELECT county_team FROM table_name_8 WHERE club_team_s_ = "thurles sarsfields"
What country team had Thurles Sarsfields?
CREATE TABLE table_name_8 (county_team VARCHAR, club_team_s_ VARCHAR)
SELECT colors FROM table_29612224_1 WHERE location = "Tolono, Illinois"
What are the team colors from Tolono, Illinois?
CREATE TABLE table_29612224_1 (colors VARCHAR, location VARCHAR)
SELECT engine FROM table_name_27 WHERE points = 0 AND chassis = "porsche 718" AND year = 1961
what is the engine that saw 0 points, and a Chassis of porsche 718, in 1961?
CREATE TABLE table_name_27 (engine VARCHAR, year VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT time FROM table_name_88 WHERE machine = "honda 1000cc" AND rider_s_ = "bruce anstey"
What time did bruce anstey complete in a honda 1000cc?
CREATE TABLE table_name_88 (time VARCHAR, machine VARCHAR, rider_s_ VARCHAR)
SELECT surface FROM table_name_23 WHERE score_in_final = "3-6, 6-3, 6-2"
What is Surface, when Score in Final is 3-6, 6-3, 6-2?
CREATE TABLE table_name_23 (surface VARCHAR, score_in_final VARCHAR)
SELECT COUNT(competition_finish) FROM table_name_43 WHERE total = 90 AND rank_by_average > 5
Name the total number of competition finish with total of 90 and rank by average more than 5
CREATE TABLE table_name_43 (competition_finish VARCHAR, total VARCHAR, rank_by_average VARCHAR)
SELECT winner FROM table_22050544_1 WHERE elapsed_time = "12 h 42 min"
Who is the winner with an elapsed time of 12 h 42 min?
CREATE TABLE table_22050544_1 (winner VARCHAR, elapsed_time VARCHAR)
SELECT MIN(bronze) FROM table_name_51 WHERE nation = "soviet union" AND total < 11
what is the least bronze when the nation is soviet union and the total is less than 11?
CREATE TABLE table_name_51 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT competition FROM table_name_59 WHERE venue = "singapore"
What's the competition that happened in Singapore?
CREATE TABLE table_name_59 (competition VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_77 WHERE home_team = "carlton"
What away team did Carlton play?
CREATE TABLE table_name_77 (away_team VARCHAR, home_team VARCHAR)
SELECT years_for_rockets FROM table_11734041_20 WHERE position = "Guard / Forward"
what's the years for rockets where position is guard / forward
CREATE TABLE table_11734041_20 (years_for_rockets VARCHAR, position VARCHAR)
SELECT attendance FROM table_name_21 WHERE opponent = "pittsburgh steelers"
How many people attended the game against the pittsburgh steelers?
CREATE TABLE table_name_21 (attendance VARCHAR, opponent VARCHAR)
SELECT origin FROM table_name_15 WHERE train_no = "15929/30"
From where did Train No. 15929/30 originate?
CREATE TABLE table_name_15 (origin VARCHAR, train_no VARCHAR)
SELECT district FROM table_1341865_40 WHERE incumbent = "Albert W. Johnson"
What district is incumbent albert w. johnson from?
CREATE TABLE table_1341865_40 (district VARCHAR, incumbent VARCHAR)
SELECT AVG(january) FROM table_name_2 WHERE game = 50
Which January has a Game of 50?
CREATE TABLE table_name_2 (january INTEGER, game VARCHAR)
SELECT date FROM table_name_88 WHERE total = "60–77"
On what date was the total 60–77?
CREATE TABLE table_name_88 (date VARCHAR, total VARCHAR)
SELECT COUNT(verbal_noun) FROM table_12784134_1 WHERE basic_stem__root_ = "-bil-"
What's the number of verbal nouns with the basic stem (root) -bil-?
CREATE TABLE table_12784134_1 (verbal_noun VARCHAR, basic_stem__root_ VARCHAR)
SELECT SUM(points) FROM table_name_28 WHERE driver = "scott riggs" AND laps > 400
What was Scott Riggs points when he had more than 400 laps?
CREATE TABLE table_name_28 (points INTEGER, driver VARCHAR, laps VARCHAR)
SELECT japanese_title FROM table_2144389_9 WHERE _number = 5
When 5 is the number what is the japanese title?
CREATE TABLE table_2144389_9 (japanese_title VARCHAR, _number VARCHAR)
SELECT home_team FROM table_name_15 WHERE away_team = "hawthorn"
Who was the home team when the away team was Hawthorn?
CREATE TABLE table_name_15 (home_team VARCHAR, away_team VARCHAR)
SELECT AVG(silver) FROM table_name_79 WHERE bronze = 3 AND total > 4
What is the average number of silver medals of the nation with 3 bronzes and more than 4 total medals?
CREATE TABLE table_name_79 (silver INTEGER, bronze VARCHAR, total VARCHAR)
SELECT votes FROM table_name_55 WHERE gender = "♂" AND religion = "☪" AND candidate_name = "khalil chawka"
Khalil chawka has a gender of ♂, a religion of ☪, and how many votes?
CREATE TABLE table_name_55 (votes VARCHAR, candidate_name VARCHAR, gender VARCHAR, religion VARCHAR)
SELECT language FROM table_name_50 WHERE television_service = "cartello promozionale sky hd"
What is the language of the television service cartello promozionale sky hd?
CREATE TABLE table_name_50 (language VARCHAR, television_service VARCHAR)
SELECT COUNT(draw) FROM table_name_64 WHERE performer = "miranda" AND points < 48
What is the total number of draws for songs performed by Miranda with fewer than 48 points?
CREATE TABLE table_name_64 (draw VARCHAR, performer VARCHAR, points VARCHAR)
SELECT first_party FROM table_name_18 WHERE second_member = "hon. rowland hill" AND election = "1857"
What is the first party with second member Hon. Rowland Hill, in the 1857 election?
CREATE TABLE table_name_18 (first_party VARCHAR, second_member VARCHAR, election VARCHAR)
SELECT position FROM table_name_1 WHERE nationality = "ukraine"
What is the position of the player from the Ukraine?
CREATE TABLE table_name_1 (position VARCHAR, nationality VARCHAR)
SELECT decision FROM table_name_5 WHERE visitor = "calgary" AND score = "2 – 1" AND series = "4 – 3"
Which Decision has a Visitor of calgary, a Score of 2 – 1, and a Series of 4 – 3?
CREATE TABLE table_name_5 (decision VARCHAR, series VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT location FROM table_name_97 WHERE event = "the national"
What's the location of the National event?
CREATE TABLE table_name_97 (location VARCHAR, event VARCHAR)
SELECT home FROM table_name_94 WHERE away = "toronto rebels"
What is the Home with an Away that is toronto rebels?
CREATE TABLE table_name_94 (home VARCHAR, away VARCHAR)
SELECT born_died FROM table_name_60 WHERE term_end = "19 january 1943"
What is Born-Died, when Term End is 19 January 1943?
CREATE TABLE table_name_60 (born_died VARCHAR, term_end VARCHAR)
SELECT member FROM table_10054296_1 WHERE chapters = 12
Name the member that has 12 chapters
CREATE TABLE table_10054296_1 (member VARCHAR, chapters VARCHAR)
SELECT COUNT(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = "Computer Info. Systems"
How many courses are offered by the Computer Info. Systems department?
CREATE TABLE course (dept_code VARCHAR); CREATE TABLE department (dept_code VARCHAR)
SELECT AVG(votes) FROM table_name_15 WHERE governorate = "hewler"
Which Votes has a Governorate of hewler?
CREATE TABLE table_name_15 (votes INTEGER, governorate VARCHAR)
SELECT opponent FROM table_name_75 WHERE method = "decision" AND record = "5-3"
What opponent uses the method of decision and a 5-3 record?
CREATE TABLE table_name_75 (opponent VARCHAR, method VARCHAR, record VARCHAR)