answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT townland FROM table_30120664_1 WHERE poor_law_union = "Fermoy" AND civil_parish = "Ballynoe"
Name the townland for fermoy and ballynoe
CREATE TABLE table_30120664_1 (townland VARCHAR, poor_law_union VARCHAR, civil_parish VARCHAR)
SELECT season FROM table_name_53 WHERE league = "wcjhl" AND assists = 86
In what Season were there 86 Assists in the WCJHL League?
CREATE TABLE table_name_53 (season VARCHAR, league VARCHAR, assists VARCHAR)
SELECT quantity FROM table_name_5 WHERE class = "aw"
What is the quantity of the aw class?
CREATE TABLE table_name_5 (quantity VARCHAR, class VARCHAR)
SELECT home FROM table_name_68 WHERE date = "march 19"
What home is dated march 19?
CREATE TABLE table_name_68 (home VARCHAR, date VARCHAR)
SELECT viewers__in_millions_ FROM table_23255941_1 WHERE directed_by = "Christine Moore"
How many millions of viewers watched the episode directed by Christine Moore?
CREATE TABLE table_23255941_1 (viewers__in_millions_ VARCHAR, directed_by VARCHAR)
SELECT to_par FROM table_name_20 WHERE player = "phil mickelson"
What was Phil Mickelson's score to par?
CREATE TABLE table_name_20 (to_par VARCHAR, player VARCHAR)
SELECT date FROM table_name_10 WHERE tournament = "the jamaica classic"
When was the Jamaica Classic Tournament?
CREATE TABLE table_name_10 (date VARCHAR, tournament VARCHAR)
SELECT report FROM table_1140117_5 WHERE race_name = "XIII Grand Prix de l'Albigeois"
What's the report for the race name, XIII Grand Prix de l'Albigeois?
CREATE TABLE table_1140117_5 (report VARCHAR, race_name VARCHAR)
SELECT apt_type_code, MAX(room_count), MIN(room_count) FROM Apartments GROUP BY apt_type_code
Show each apartment type code, and the maximum and minimum number of rooms for each type.
CREATE TABLE Apartments (apt_type_code VARCHAR, room_count INTEGER)
SELECT date FROM table_name_63 WHERE opponent = "tampa bay storm"
What is the date against the Tampa bay Storm?
CREATE TABLE table_name_63 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(unemployment_rate) FROM table_22815568_12 WHERE population = 34024
Name the unemployment rate for 34024
CREATE TABLE table_22815568_12 (unemployment_rate VARCHAR, population 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 episode FROM table_13943239_1 WHERE viewers__millions_ = "6.06"
What episode of the Pride of Britain Awards had an audience of 6.06 million viewers?
CREATE TABLE table_13943239_1 (episode VARCHAR, viewers__millions_ VARCHAR)
SELECT COUNT(works_number) FROM table_name_51 WHERE type = "0-6-4t" AND name = "gowrie" AND date > 1908
What is the total work number of Gowrie with a 0-6-4t type after 1908?
CREATE TABLE table_name_51 (works_number VARCHAR, date VARCHAR, type VARCHAR, name VARCHAR)
SELECT airportname FROM table_name_3 WHERE city___town = "são filipe" AND iata = "sfl"
What is the name of the airport in São Filipe that has an IATA of sfl?
CREATE TABLE table_name_3 (airportname VARCHAR, city___town VARCHAR, iata VARCHAR)
SELECT evening_gown FROM table_11884814_3 WHERE swimsuit = "9.61"
What was the evening gown score when the swimsuit was 9.61?
CREATE TABLE table_11884814_3 (evening_gown VARCHAR, swimsuit VARCHAR)
SELECT years FROM table_name_78 WHERE magazine = "vaillant and pif"
What years did the magazine Vaillant and Pif run?
CREATE TABLE table_name_78 (years VARCHAR, magazine VARCHAR)
SELECT country FROM table_name_34 WHERE city = "cardiff"
what is the country for the city of cardiff?
CREATE TABLE table_name_34 (country VARCHAR, city VARCHAR)
SELECT format FROM table_name_96 WHERE frequency = "am 980"
What is the Format of AM 980?
CREATE TABLE table_name_96 (format VARCHAR, frequency VARCHAR)
SELECT british FROM table_name_83 WHERE australian = "i, ɪ, ə" AND examples = "œsophagus"
What is British, when Australian is "i, ɪ, ə", and when Examples is "œsophagus"?
CREATE TABLE table_name_83 (british VARCHAR, australian VARCHAR, examples VARCHAR)
SELECT date FROM table_name_90 WHERE venue = "windy hill"
When was Windy Hill used as a venue?
CREATE TABLE table_name_90 (date VARCHAR, venue VARCHAR)
SELECT power_output__kw_ FROM table_name_29 WHERE number_in_class = 5
What is the power output for class 5?
CREATE TABLE table_name_29 (power_output__kw_ VARCHAR, number_in_class VARCHAR)
SELECT fastest_lap FROM table_25322130_3 WHERE round = "3"
Name the fastest lap for round 3
CREATE TABLE table_25322130_3 (fastest_lap VARCHAR, round VARCHAR)
SELECT SUM(rank) FROM table_name_52 WHERE nationality = "japan" AND lane < 7 AND heat < 3
What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3?
CREATE TABLE table_name_52 (rank INTEGER, heat VARCHAR, nationality VARCHAR, lane VARCHAR)
SELECT MIN(stage) FROM table_name_60 WHERE difficulty = "middle" AND start = "els alocs"
What is the lowest stage number that starts with els alocs and has a middle difficulty?
CREATE TABLE table_name_60 (stage INTEGER, difficulty VARCHAR, start VARCHAR)
SELECT COUNT(swimsuit) FROM table_name_39 WHERE evening_gown = 8.329 AND average < 8.497
Name the total number of swimsuits when evening gown is 8.329 and average is less than 8.497
CREATE TABLE table_name_39 (swimsuit VARCHAR, evening_gown VARCHAR, average VARCHAR)
SELECT playoffs FROM table_name_27 WHERE year = "1924/25"
In 1924/25, who was in the playoffs?
CREATE TABLE table_name_27 (playoffs VARCHAR, year VARCHAR)
SELECT mazada FROM table_name_67 WHERE el_samurai = "mazada (16:22)"
Name the MAZADA for El Samurai of mazada (16:22)
CREATE TABLE table_name_67 (mazada VARCHAR, el_samurai VARCHAR)
SELECT date FROM table_name_88 WHERE attendance = "35,763"
I want to know the date with attendance of 35,763
CREATE TABLE table_name_88 (date VARCHAR, attendance VARCHAR)
SELECT COUNT(college_junior_club_team) FROM table_2679061_7 WHERE pick__number = 130
How many teams got pick number 130?
CREATE TABLE table_2679061_7 (college_junior_club_team VARCHAR, pick__number VARCHAR)
SELECT T1.degree_program_id, T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY COUNT(*) DESC LIMIT 1
Find the program which most number of students are enrolled in. List both the id and the summary.
CREATE TABLE Degree_Programs (degree_program_id VARCHAR, degree_summary_name VARCHAR); CREATE TABLE Student_Enrolment (degree_program_id VARCHAR)
SELECT date FROM table_name_91 WHERE winner = "ram vaswani"
Ram Vaswani was a winner on what date?
CREATE TABLE table_name_91 (date VARCHAR, winner VARCHAR)
SELECT MIN(rank) FROM table_name_98 WHERE games > 34 AND season = "2009-10"
Name the least rank when games are more than 34 and the season is 2009-10
CREATE TABLE table_name_98 (rank INTEGER, games VARCHAR, season VARCHAR)
SELECT COUNT(rank) FROM table_name_62 WHERE team = "tau cerámica" AND points = 377 AND games > 21
What's the rank of the Tau Cerámica that has 377 points and more than 21 games?
CREATE TABLE table_name_62 (rank VARCHAR, games VARCHAR, team VARCHAR, points VARCHAR)
SELECT SUM(lane) FROM table_name_20 WHERE name = "george bovell"
Which lane did George Bovell swim in?
CREATE TABLE table_name_20 (lane INTEGER, name VARCHAR)
SELECT country FROM table_name_98 WHERE score = 70 - 71 - 68 = 209
What is the country of the player with a 70-71-68=209 score?
CREATE TABLE table_name_98 (country VARCHAR, score VARCHAR)
SELECT title FROM table_name_21 WHERE representative = "edward h. strobel"
Name the title with representative edward h. strobel
CREATE TABLE table_name_21 (title VARCHAR, representative VARCHAR)
SELECT department_id FROM staff_department_assignments GROUP BY department_id ORDER BY COUNT(*) LIMIT 1
What is the id of the department with the least number of staff?
CREATE TABLE staff_department_assignments (department_id VARCHAR)
SELECT high_assists FROM table_23285761_7 WHERE high_rebounds = "Amar'e Stoudemire (10)"
Who did the high assists in the game where Amar'e Stoudemire (10) did the high rebounds?
CREATE TABLE table_23285761_7 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT MAX(december) FROM table_name_59 WHERE record = "21–7–2" AND game > 30
Which December has a Record of 21–7–2, and a Game larger than 30?
CREATE TABLE table_name_59 (december INTEGER, record VARCHAR, game VARCHAR)
SELECT COUNT(attendance) FROM table_name_81 WHERE date = "november 3, 1968" AND week < 8
What was the attendance on November 3, 1968, that was a week smaller than 8?
CREATE TABLE table_name_81 (attendance VARCHAR, date VARCHAR, week VARCHAR)
SELECT trainer FROM table_name_33 WHERE year = "2013"
Who is the Trainer with the Year of 2013?
CREATE TABLE table_name_33 (trainer VARCHAR, year VARCHAR)
SELECT tag_team FROM table_name_42 WHERE eliminated = "5"
Name Tag Team with a Eliminated of 5?
CREATE TABLE table_name_42 (tag_team VARCHAR, eliminated VARCHAR)
SELECT date FROM table_name_50 WHERE ground = "a" AND opponent = "cartagena"
What is the date ground A and Cartagena as an opponent?
CREATE TABLE table_name_50 (date VARCHAR, ground VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_78 WHERE home_team = "southern"
What is the score for the southern home team?
CREATE TABLE table_name_78 (score VARCHAR, home_team VARCHAR)
SELECT first_class_team FROM table_name_51 WHERE player = "sanath jayasuriya"
What first class team does sanath jayasuriya play for?
CREATE TABLE table_name_51 (first_class_team VARCHAR, player VARCHAR)
SELECT champions FROM table_21632864_1 WHERE fourth_place = "Fujieda City Government"
who got the first position when fujieda city government got the fourth position?
CREATE TABLE table_21632864_1 (champions VARCHAR, fourth_place VARCHAR)
SELECT international_tourist_arrivals__2011_ FROM table_14752049_2 WHERE country = "Senegal"
How many international tourist arrivals were in Senegal in 2011?
CREATE TABLE table_14752049_2 (international_tourist_arrivals__2011_ VARCHAR, country VARCHAR)
SELECT outcome FROM table_name_38 WHERE opponents_in_the_final = "marius călugăru ciprian petre porumb"
What was the outcome of the match opponents in the final of Marius Călugăru Ciprian Petre Porumb?
CREATE TABLE table_name_38 (outcome VARCHAR, opponents_in_the_final VARCHAR)
SELECT MAX(founded) FROM table_24334261_1 WHERE team = "Worcester Tornadoes"
What is the maximum founded year of the Worcester Tornadoes?
CREATE TABLE table_24334261_1 (founded INTEGER, team VARCHAR)
SELECT home_team FROM table_name_14 WHERE tie_no = "10"
What home team has 10 as the tie no?
CREATE TABLE table_name_14 (home_team VARCHAR, tie_no VARCHAR)
SELECT attendance FROM table_name_78 WHERE week = 12
How many were in attendance during week 12?
CREATE TABLE table_name_78 (attendance VARCHAR, week VARCHAR)
SELECT visitor FROM table_name_49 WHERE record = "7–5–3"
Which visitor had a record of 7–5–3?
CREATE TABLE table_name_49 (visitor VARCHAR, record VARCHAR)
SELECT away_team AS score FROM table_name_84 WHERE home_team = "melbourne"
What was the away score when the home team was Melbourne?
CREATE TABLE table_name_84 (away_team VARCHAR, home_team VARCHAR)
SELECT purse FROM table_name_21 WHERE trainer = "aidan o'brien"
What was the purse when the trainer was Aidan O'Brien?
CREATE TABLE table_name_21 (purse VARCHAR, trainer VARCHAR)
SELECT monounsaturated_fat FROM table_name_22 WHERE saturated_fat = "15g"
What is the monounsaturated fat with 15g of saturated fat?
CREATE TABLE table_name_22 (monounsaturated_fat VARCHAR, saturated_fat VARCHAR)
SELECT team__number2 FROM table_name_88 WHERE team__number1 = "liege basket"
Who was the team 2 in the game with a team 1 of Liege Basket?
CREATE TABLE table_name_88 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT venue FROM table_1139835_1 WHERE margin = 4
what is the venue where the margin is 4?
CREATE TABLE table_1139835_1 (venue VARCHAR, margin VARCHAR)
SELECT MAX(multi_lane) FROM table_28723146_2 WHERE category_wise = "Major district roads"
What is the highest value for multi lane if category wise is major district roads?
CREATE TABLE table_28723146_2 (multi_lane INTEGER, category_wise VARCHAR)
SELECT district FROM table_1341865_11 WHERE incumbent = "Donald Ray Matthews"
What district did Donald Ray Matthews belong to?
CREATE TABLE table_1341865_11 (district VARCHAR, incumbent VARCHAR)
SELECT year_s__won FROM table_name_37 WHERE total = 282
What are the years won with a total of 282?
CREATE TABLE table_name_37 (year_s__won VARCHAR, total VARCHAR)
SELECT service_id, event_details FROM EVENTS
List the service id and details for the events.
CREATE TABLE EVENTS (service_id VARCHAR, event_details VARCHAR)
SELECT finale FROM table_name_61 WHERE season = 3
What was the date of the finale for Season 3?
CREATE TABLE table_name_61 (finale VARCHAR, season VARCHAR)
SELECT original_air_date FROM table_14889988_1 WHERE production_code = 176265
What date was the episode with production code 176265 aired?
CREATE TABLE table_14889988_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT bus_power FROM table_name_5 WHERE fieldbus = "controlnet"
What is the bus power for the Controlnet Fieldbus?
CREATE TABLE table_name_5 (bus_power VARCHAR, fieldbus VARCHAR)
SELECT croatia FROM table_name_53 WHERE friendly = "world cup 2006 qualifier" AND 149 = 152
Which Croatia has a Friendly of world cup 2006 qualifier, and a 149 of 152?
CREATE TABLE table_name_53 (croatia VARCHAR, friendly VARCHAR)
SELECT record FROM table_name_89 WHERE february = 10
What is the record after the game on Feb 10?
CREATE TABLE table_name_89 (record VARCHAR, february VARCHAR)
SELECT away_team FROM table_name_41 WHERE home_team = "melbourne"
When melbourne played as the home team, who did they play?
CREATE TABLE table_name_41 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(school) FROM table_11677100_7 WHERE player = "Mike Jones"
How many schools did Mike Jones attend?
CREATE TABLE table_11677100_7 (school VARCHAR, player VARCHAR)
SELECT COUNT(DISTINCT product_type_code) FROM products_for_hire
How many different product types are there?
CREATE TABLE products_for_hire (product_type_code VARCHAR)
SELECT team FROM table_name_20 WHERE player = "joe deane"
What team does Joe Deane play for?
CREATE TABLE table_name_20 (team VARCHAR, player VARCHAR)
SELECT MAX(series__number) FROM table_11630008_6 WHERE season__number = 3
What is the most series number with season 3?
CREATE TABLE table_11630008_6 (series__number INTEGER, season__number VARCHAR)
SELECT college_junior_club_team FROM table_2850912_5 WHERE position = "Right Wing" AND nhl_team = "Chicago Black Hawks"
What college/junior/club team played right wing position with NHL team Chicago Black Hawks?
CREATE TABLE table_2850912_5 (college_junior_club_team VARCHAR, position VARCHAR, nhl_team VARCHAR)
SELECT opponent FROM table_name_19 WHERE location_attendance = "madison square garden"
Who was the opponent at the game at Madison Square Garden?
CREATE TABLE table_name_19 (opponent VARCHAR, location_attendance VARCHAR)
SELECT MIN(sites) FROM table_name_33 WHERE headquarters = "columbus, ga" AND rank < 4
what is the lowest number of sites when the headquarters are in columbus, ga and the rank is smaller than 4?
CREATE TABLE table_name_33 (sites INTEGER, headquarters VARCHAR, rank VARCHAR)
SELECT status FROM table_name_68 WHERE against = 11
What is the status when the against is 11?
CREATE TABLE table_name_68 (status VARCHAR, against VARCHAR)
SELECT MIN(staterooms) FROM table_name_44 WHERE comments = "diesel-electric hybrid engines" AND length = "443 feet" AND guests > 190
Of the ships with diesel-electric hybrid engines, length of 443 feet, and over 190 guests, what is the lowest number of staterooms?
CREATE TABLE table_name_44 (staterooms INTEGER, guests VARCHAR, comments VARCHAR, length VARCHAR)
SELECT MIN(viewers__m_) FROM table_name_69 WHERE share > 13
what is the lowest viewers (m) when the share is more than 13?
CREATE TABLE table_name_69 (viewers__m_ INTEGER, share INTEGER)
SELECT lmp2_winning_driver FROM table_27743641_2 WHERE lmp1_winning_team = "No. 20 Oryx Dyson Racing"
Who was the LMP2 winner when the LMP1 winning team was No. 20 Oryx Dyson Racing?
CREATE TABLE table_27743641_2 (lmp2_winning_driver VARCHAR, lmp1_winning_team VARCHAR)
SELECT north_marquesan FROM table_name_2 WHERE takuu = "/ɾani/"
What kind of North Marquesan has a Takuu of /ɾani/?
CREATE TABLE table_name_2 (north_marquesan VARCHAR, takuu VARCHAR)
SELECT COUNT(province) FROM table_16489766_2 WHERE chinese = "重庆"
What province has the Chinese translation 重庆?
CREATE TABLE table_16489766_2 (province VARCHAR, chinese VARCHAR)
SELECT AVG(round) FROM table_name_90 WHERE college = "notre dame" AND pick__number = "49"
What is the average round for draft pick #49 from Notre Dame?
CREATE TABLE table_name_90 (round INTEGER, college VARCHAR, pick__number VARCHAR)
SELECT SUM(draw) FROM table_name_24 WHERE televoting = 9 AND jury < 10
Televoting of 9, and a Jury smaller than 10 had what sum of draw?
CREATE TABLE table_name_24 (draw INTEGER, televoting VARCHAR, jury VARCHAR)
SELECT 1994 FROM table_name_76 WHERE 2002 = "atp masters series"
What is 1994, when 2002 is ATP Masters Series?
CREATE TABLE table_name_76 (Id VARCHAR)
SELECT SUM(games) FROM table_name_75 WHERE lost > 2 AND points < 0
What's the total of Games with a Lost that's larger than 2, and has Points that's smaller than 0?
CREATE TABLE table_name_75 (games INTEGER, lost VARCHAR, points VARCHAR)
SELECT windows FROM table_1322904_1 WHERE release = "April 8"
Was the release on April 8 available on Windows?
CREATE TABLE table_1322904_1 (windows VARCHAR, release VARCHAR)
SELECT drums FROM table_name_89 WHERE album = "the gray race"
Who played drums for the Gray Race album?
CREATE TABLE table_name_89 (drums VARCHAR, album VARCHAR)
SELECT date FROM table_name_55 WHERE score = "0 – 2"
Which Date has a Score of 0 – 2?
CREATE TABLE table_name_55 (date VARCHAR, score VARCHAR)
SELECT format FROM table_name_19 WHERE region = "united kingdom"
Which format has a region of united kingdom?
CREATE TABLE table_name_19 (format VARCHAR, region VARCHAR)
SELECT COUNT(attendance) FROM table_name_97 WHERE week < 6 AND opponent = "san diego chargers"
What's the attendance of the san diego chargers game before week 6?
CREATE TABLE table_name_97 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_23 WHERE location = "guangzhou" AND score = "1-0"
In guangzhou, who won the game with a score of 1-0?
CREATE TABLE table_name_23 (result VARCHAR, location VARCHAR, score VARCHAR)
SELECT COUNT(first_elected) FROM table_1342359_15 WHERE district = "Kansas 3"
how many first elected with district is kansas 3
CREATE TABLE table_1342359_15 (first_elected VARCHAR, district VARCHAR)
SELECT system FROM table_name_65 WHERE current_version = "1.4e"
What system has a current version of 1.4e?
CREATE TABLE table_name_65 (system VARCHAR, current_version VARCHAR)
SELECT COUNT(tourism_receipts__2003___as__percentage_of_exports_) FROM table_18524_6 WHERE tourism_competitiveness__2011___ttci_ = "3.26"
Name the tourism receipts 2003 for tourism competitiveness 3.26
CREATE TABLE table_18524_6 (tourism_receipts__2003___as__percentage_of_exports_ VARCHAR, tourism_competitiveness__2011___ttci_ VARCHAR)
SELECT denomination FROM table_name_5 WHERE location = "mt lawley"
What denomination is mt lawley?
CREATE TABLE table_name_5 (denomination VARCHAR, location VARCHAR)
SELECT AVG(game) FROM table_name_24 WHERE attendance = "65,666"
What is the average Game where there were 65,666 in attendance?
CREATE TABLE table_name_24 (game INTEGER, attendance VARCHAR)
SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1
What is the name of the artist who produced the shortest song?
CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (artist_name VARCHAR, f_id VARCHAR)
SELECT station_name FROM table_name_63 WHERE arrival = "starting station"
What is the Station Name of the Arrival Starting Station?
CREATE TABLE table_name_63 (station_name VARCHAR, arrival VARCHAR)
SELECT SUM(t__µm_) FROM table_name_26 WHERE technology = "mj"
What is the sum of t (µm), when Technology is MJ?
CREATE TABLE table_name_26 (t__µm_ INTEGER, technology VARCHAR)
SELECT away_team AS score FROM table_name_48 WHERE home_team = "richmond"
What was the score for the opponent against Richmond?
CREATE TABLE table_name_48 (away_team VARCHAR, home_team VARCHAR)