answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT venue FROM table_name_30 WHERE away_team = "st kilda"
What venue does st kilda play at as the away team?
CREATE TABLE table_name_30 (venue VARCHAR, away_team VARCHAR)
SELECT tournament FROM table_name_79 WHERE 2004 = "1r" AND 1998 = "2r"
Which tournament had a performance of 1R in 2004 and 2R in 1998?
CREATE TABLE table_name_79 (tournament VARCHAR)
SELECT high_rebounds FROM table_name_52 WHERE team = "chicago"
Who had the most rebounds in the game against Chicago?
CREATE TABLE table_name_52 (high_rebounds VARCHAR, team VARCHAR)
SELECT state FROM table_name_48 WHERE term_in_office = "1984–1996" AND party = "labor" AND member = "robert tickner"
Which state has a Term in office of 1984–1996, a Party of labor, and a Member of robert tickner?
CREATE TABLE table_name_48 (state VARCHAR, member VARCHAR, term_in_office VARCHAR, party VARCHAR)
SELECT regulations FROM table_name_13 WHERE winning_drivers = "carlos arzani"
What regulations have carlos arzani as the winning driver?
CREATE TABLE table_name_13 (regulations VARCHAR, winning_drivers VARCHAR)
SELECT college_junior_club_team FROM table_1013129_11 WHERE player = "Per Gustafsson"
What club team is Per Gustafsson play for?
CREATE TABLE table_1013129_11 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT MIN(position) FROM table_name_40 WHERE total < 16.65 AND a_score = 7.4
What is the Position of the person with a total less than 16.65 and an A score of 7.4?
CREATE TABLE table_name_40 (position INTEGER, total VARCHAR, a_score VARCHAR)
SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100
Find the distinct winery of wines having price between 50 and 100.
CREATE TABLE WINE (Winery VARCHAR, Price INTEGER)
SELECT COUNT(drawn) FROM table_name_43 WHERE goals_against > 74 AND lost < 20 AND played > 38
How much Drawn has Goals Against larger than 74, and a Lost smaller than 20, and a Played larger than 38?
CREATE TABLE table_name_43 (drawn VARCHAR, played VARCHAR, goals_against VARCHAR, lost VARCHAR)
SELECT COUNT(rank) FROM table_name_67 WHERE lane = 4
Can you tell me the Total number of Rankthat has the Lane of 4?
CREATE TABLE table_name_67 (rank VARCHAR, lane VARCHAR)
SELECT MIN(silver) FROM table_name_77 WHERE bronze > 1 AND sport = "total" AND gold < 1
What is the lowest Silver in the Total Sport has less than 1 Gold and more than 1 Bronze?
CREATE TABLE table_name_77 (silver INTEGER, gold VARCHAR, bronze VARCHAR, sport VARCHAR)
SELECT MAX(attendance) FROM table_name_75 WHERE date = "august 10, 1963" AND week > 1
What is the largest attendance on august 10, 1963, and a week larger than 1?
CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT AVG(frequency) FROM table_name_87 WHERE type = "norteño" AND brand = "la cotorra"
What is the average Frequency, when Type is "Norteño", and when Brand is "La Cotorra"?
CREATE TABLE table_name_87 (frequency INTEGER, type VARCHAR, brand VARCHAR)
SELECT MAX(date) FROM table_name_4 WHERE description = "br-built inspection saloon"
What is the latest death with a description of BR-Built inspection saloon?
CREATE TABLE table_name_4 (date INTEGER, description VARCHAR)
SELECT patient FROM stay WHERE room = 111 ORDER BY staystart DESC LIMIT 1
Find the patient who most recently stayed in room 111.
CREATE TABLE stay (patient VARCHAR, room VARCHAR, staystart VARCHAR)
SELECT hdtv FROM table_name_60 WHERE content = "music"
What is the HDTV of the Music Content Channel?
CREATE TABLE table_name_60 (hdtv VARCHAR, content VARCHAR)
SELECT tries_for FROM table_name_13 WHERE points_against = "263"
How many tries for does the team with 263 points against have?
CREATE TABLE table_name_13 (tries_for VARCHAR, points_against VARCHAR)
SELECT country FROM table_name_97 WHERE label = "debemur morti prod."
What country is the Debemur Morti prod. label from?
CREATE TABLE table_name_97 (country VARCHAR, label VARCHAR)
SELECT AVG(attendance) FROM table_name_97 WHERE date = "october 16, 1955" AND week < 4
What is the average attendance for the game before week 4 that was on october 16, 1955?
CREATE TABLE table_name_97 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT score FROM table_name_24 WHERE surface = "grass"
What was the score of the game that was played on a grass surface?
CREATE TABLE table_name_24 (score VARCHAR, surface VARCHAR)
SELECT report FROM table_19850806_3 WHERE rd = "9"
Which report is where rd. is 9?
CREATE TABLE table_19850806_3 (report VARCHAR, rd VARCHAR)
SELECT AVG(draw) FROM table_name_68 WHERE televote < 633 AND artist = "vilma voroblevaitė" AND place > 14
What draw average has a televote less than 633 and Vilma Voroblevaitė as artist and the place is greater than 14?
CREATE TABLE table_name_68 (draw INTEGER, place VARCHAR, televote VARCHAR, artist VARCHAR)
SELECT name, TIME, service FROM train
Show the name, time, and service for all trains.
CREATE TABLE train (name VARCHAR, TIME VARCHAR, service VARCHAR)
SELECT COUNT(round) FROM table_name_33 WHERE position = "center" AND player = "denis arkhipov"
What is the total number of rounds that Center position Denis Arkhipov have?
CREATE TABLE table_name_33 (round VARCHAR, position VARCHAR, player VARCHAR)
SELECT drivetrain FROM table_21530474_1 WHERE engine_code = "1UR-FSE" AND chassis_code = "USF41"
Name the drivetrain for 1ur-fse for usf41
CREATE TABLE table_21530474_1 (drivetrain VARCHAR, engine_code VARCHAR, chassis_code VARCHAR)
SELECT stadium FROM table_name_71 WHERE final_score = "35-62"
Where was the game played when the final score was 35-62?
CREATE TABLE table_name_71 (stadium VARCHAR, final_score VARCHAR)
SELECT team_nickname FROM table_28211213_2 WHERE affiliation = "Private/ Nonsectarian"
When private/ nonsectarian is the the affiliation what is the team nickname?
CREATE TABLE table_28211213_2 (team_nickname VARCHAR, affiliation VARCHAR)
SELECT manufacturer FROM table_name_14 WHERE year > 1969 AND finish = 34
Which manufacturer was used after 1969 with a finish position of 34?
CREATE TABLE table_name_14 (manufacturer VARCHAR, year VARCHAR, finish VARCHAR)
SELECT score FROM table_name_48 WHERE date = "september 11"
Name the score for september 11
CREATE TABLE table_name_48 (score VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_56 WHERE date = "december 3"
On December 3, where was the game held and how many were in attendance?
CREATE TABLE table_name_56 (location_attendance VARCHAR, date VARCHAR)
SELECT AVG(attendance) FROM table_name_16 WHERE result = "w 30-23"
What is the average Attendance at a game with a Result of w 30-23?
CREATE TABLE table_name_16 (attendance INTEGER, result VARCHAR)
SELECT time FROM table_name_15 WHERE week = 2
What time was the game in week 2?
CREATE TABLE table_name_15 (time VARCHAR, week VARCHAR)
SELECT COUNT(podium) FROM table_name_42 WHERE race = 14 AND flap > 1
On Race 14 when the FLap is larger than 1, what is the podium number?
CREATE TABLE table_name_42 (podium VARCHAR, race VARCHAR, flap VARCHAR)
SELECT worst_dancer_s_ FROM table_name_43 WHERE lowest_score = 14
Which of the Worst dancer(s) has the Lowest score of 14?
CREATE TABLE table_name_43 (worst_dancer_s_ VARCHAR, lowest_score VARCHAR)
SELECT try_bonus FROM table_name_56 WHERE points_for = "608"
What was the try bonus when the points for was 608?
CREATE TABLE table_name_56 (try_bonus VARCHAR, points_for VARCHAR)
SELECT no3 FROM table_name_98 WHERE no2 = "delfina" AND final = "pedro"
Who was number 3 that had a number 2 of Delfina and a Final of Pedro?
CREATE TABLE table_name_98 (no3 VARCHAR, no2 VARCHAR, final VARCHAR)
SELECT MIN(year) FROM table_name_74 WHERE nominee = "indonesian idol" AND result = "won"
What was the earliest year that Indonesian Idol won?
CREATE TABLE table_name_74 (year INTEGER, nominee VARCHAR, result VARCHAR)
SELECT round FROM table_25505246_7 WHERE against = "Austria"
What kind of round was played when Hanne Skak Jensen faced Austria?
CREATE TABLE table_25505246_7 (round VARCHAR, against VARCHAR)
SELECT province_region FROM table_name_91 WHERE icao = "rjtq"
What province/region is RJTQ located?
CREATE TABLE table_name_91 (province_region VARCHAR, icao VARCHAR)
SELECT production_code FROM table_21304155_1 WHERE directed_by = "David Solomon"
What is the production code of the episode directed by David Solomon?
CREATE TABLE table_21304155_1 (production_code VARCHAR, directed_by VARCHAR)
SELECT coding FROM table_name_48 WHERE variant_id = "abd'1a 3"
Which coding's variant id is abd'1a 3?
CREATE TABLE table_name_48 (coding VARCHAR, variant_id VARCHAR)
SELECT series FROM table_name_72 WHERE poles = "0" AND races = "17"
Which Series has Poles of 0, and Races of 17?
CREATE TABLE table_name_72 (series VARCHAR, poles VARCHAR, races VARCHAR)
SELECT source FROM table_name_86 WHERE rank = 78
Can you tell me the Source that has the Rank of 78?
CREATE TABLE table_name_86 (source VARCHAR, rank VARCHAR)
SELECT date FROM table_name_52 WHERE score = "3-1" AND attendance = "32 590"
Name the Date which has a Score of 3-1 and Attendances of 32 590?
CREATE TABLE table_name_52 (date VARCHAR, score VARCHAR, attendance VARCHAR)
SELECT decision FROM table_name_14 WHERE visitor = "tampa bay"
What was the decision when Tampa Bay was the visitor?
CREATE TABLE table_name_14 (decision VARCHAR, visitor VARCHAR)
SELECT vehlefanz FROM table_11680175_1 WHERE bärenklau = "1.288"
What was the number for Vehlefanz where Bärenklau is 1.288?
CREATE TABLE table_11680175_1 (vehlefanz VARCHAR, bärenklau VARCHAR)
SELECT player FROM table_name_70 WHERE place = "1"
What is Player, when Place is "1"?
CREATE TABLE table_name_70 (player VARCHAR, place VARCHAR)
SELECT attendance FROM table_name_49 WHERE date = "november 19, 1990"
What is the attendance of the November 19, 1990 game?
CREATE TABLE table_name_49 (attendance VARCHAR, date VARCHAR)
SELECT winner FROM table_name_74 WHERE time = "1:12.00" AND jockey = "melvin a. holland"
Who is the Winner with a Time of 1:12.00 and Melvin A. Holland as the Jockey?
CREATE TABLE table_name_74 (winner VARCHAR, time VARCHAR, jockey VARCHAR)
SELECT time_retired FROM table_name_51 WHERE driver = "toulo de graffenried"
what is the time/retired when the driver is toulo de graffenried?
CREATE TABLE table_name_51 (time_retired VARCHAR, driver VARCHAR)
SELECT score FROM table_name_94 WHERE tournament = "pingguo"
What is the Score of the Pingguo Tournament?
CREATE TABLE table_name_94 (score VARCHAR, tournament VARCHAR)
SELECT event FROM table_name_89 WHERE opponent = "ryan bow"
What event had the opponent Ryan Bow?
CREATE TABLE table_name_89 (event VARCHAR, opponent VARCHAR)
SELECT COUNT(total) FROM table_name_35 WHERE nation = "germany" AND silver < 1
What is the total number of Total when Germany is the nation with less than 1 silver?
CREATE TABLE table_name_35 (total VARCHAR, nation VARCHAR, silver VARCHAR)
SELECT fossil_record FROM table_name_33 WHERE discovery___publication_of_name = "1994/2003"
Tell me the fossil record for name of 1994/2003
CREATE TABLE table_name_33 (fossil_record VARCHAR, discovery___publication_of_name VARCHAR)
SELECT ns FROM table_name_11 WHERE normal_total = "102"
Name the NS with normal total of 102
CREATE TABLE table_name_11 (ns VARCHAR, normal_total VARCHAR)
SELECT method FROM table_name_60 WHERE opponent = "stanislav nuschik"
Tell me the method for stanislav nuschik
CREATE TABLE table_name_60 (method VARCHAR, opponent VARCHAR)
SELECT name FROM table_24990183_7 WHERE rank = 17
If the rank is 17, what are the names?
CREATE TABLE table_24990183_7 (name VARCHAR, rank VARCHAR)
SELECT home_team FROM table_name_28 WHERE away_team = "richmond"
What home team has an Away team of richmond?
CREATE TABLE table_name_28 (home_team VARCHAR, away_team VARCHAR)
SELECT save FROM table_name_86 WHERE opponent = "braves" AND date = "may 15"
Name the save for braves for may 15
CREATE TABLE table_name_86 (save VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT SUM(total) FROM table_name_87 WHERE silver > 1 AND nation = "germany (ger)" AND gold < 1
What is the sum of Total, when Silver is greater than 1, when Nation is Germany (GER), and when Gold is less than 1?
CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%'
Which movies have 'Deleted Scenes' as a substring in the special feature?
CREATE TABLE film (title VARCHAR, special_features VARCHAR)
SELECT record FROM table_name_4 WHERE location_attendance = "izod center 16,911"
What is Record, when Location Attendance is "Izod Center 16,911"?
CREATE TABLE table_name_4 (record VARCHAR, location_attendance VARCHAR)
SELECT event FROM table_name_25 WHERE pursuit = "18th" AND sprint = "20th"
Name the event with pursuit of 18th and sprint of 20th
CREATE TABLE table_name_25 (event VARCHAR, pursuit VARCHAR, sprint VARCHAR)
SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) LIMIT 1
Show the transaction type code that occurs the fewest times.
CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR)
SELECT social_ao FROM table_name_83 WHERE external_co = "simonas savickas" AND internal_co = "pieter kuijsten"
What Social AO has an External CO of simonas savickas, and an Internal CO of pieter kuijsten?
CREATE TABLE table_name_83 (social_ao VARCHAR, external_co VARCHAR, internal_co VARCHAR)
SELECT MIN(points) FROM table_name_19 WHERE year < 1960 AND entrant = "simoniz"
What is the least amount of points the entrant Simoniz received before 1960?
CREATE TABLE table_name_19 (points INTEGER, year VARCHAR, entrant VARCHAR)
SELECT MAX(total) FROM table_28634206_1 WHERE country = "Russia"
How many placements in total does russia have?
CREATE TABLE table_28634206_1 (total INTEGER, country VARCHAR)
SELECT us_viewers__millions_ FROM table_26914076_2 WHERE directed_by = "Christine Moore"
Name the us viewers directed by christine moore
CREATE TABLE table_26914076_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
SELECT COUNT(week) FROM table_name_46 WHERE attendance < 21 OFFSET 097
What week had an Attendance smaller than 21,097?
CREATE TABLE table_name_46 (week VARCHAR, attendance INTEGER)
SELECT MAX(laps) FROM table_name_56 WHERE time = "accident" AND bike = "suzuki gsx-r1000"
What is the highest number of laps with an accident time and a suzuki gsx-r1000 bike?
CREATE TABLE table_name_56 (laps INTEGER, time VARCHAR, bike VARCHAR)
SELECT rank FROM table_name_94 WHERE time = "4:00.191"
What rank has a Time of 4:00.191?
CREATE TABLE table_name_94 (rank VARCHAR, time VARCHAR)
SELECT constellation FROM table_177766_1 WHERE area__sqdeg_ = "245.375"
What is the name of this constellation with an area of 245.375 sq. deg.?
CREATE TABLE table_177766_1 (constellation VARCHAR, area__sqdeg_ VARCHAR)
SELECT COUNT(enrollment) FROM table_name_99 WHERE institution = "mcgill university" AND capacity < 25 OFFSET 012
What's the total enrollment ofr Mcgill University that has a capacity less than 25,012?
CREATE TABLE table_name_99 (enrollment VARCHAR, institution VARCHAR, capacity VARCHAR)
SELECT name FROM table_name_44 WHERE state = "yan"
Which name has a state of Yan?
CREATE TABLE table_name_44 (name VARCHAR, state VARCHAR)
SELECT score FROM table_name_67 WHERE to_par = "+1" AND country = "sweden"
Which Score has a To par of +1 in sweden?
CREATE TABLE table_name_67 (score VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT directed_by FROM table_19929970_1 WHERE production_code = "4AKJ01"
Who directed the episode with production code 4akj01?
CREATE TABLE table_19929970_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT COUNT(laps) FROM table_name_32 WHERE time_retired = "+ 4 laps" AND grid > 20
I want the total number of Laps for time/retired for + 4 Laps and grid more than 20
CREATE TABLE table_name_32 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT episode FROM table_26250199_1 WHERE order__number = "10"
In which episode is the order number 10?
CREATE TABLE table_26250199_1 (episode VARCHAR, order__number VARCHAR)
SELECT tied FROM table_name_84 WHERE "venue" = "venue"
What venue had a tie?
CREATE TABLE table_name_84 (tied VARCHAR)
SELECT SUM(number_of_households) FROM table_name_58 WHERE county = "ottawa"
How many households are in Ottawa?
CREATE TABLE table_name_58 (number_of_households INTEGER, county VARCHAR)
SELECT outcome FROM table_name_96 WHERE score_in_the_final = "4–6, 5–7"
Which Outcome has a Score in the final of 4–6, 5–7?
CREATE TABLE table_name_96 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT year_s__of_manufacture FROM table_name_13 WHERE quantity = 2 AND type = "b n2t"
Which Year(s) of manufacture has a Quantity of 2, and a Type of b n2t?
CREATE TABLE table_name_13 (year_s__of_manufacture VARCHAR, quantity VARCHAR, type VARCHAR)
SELECT race FROM table_name_27 WHERE jockey = "d. beadman" AND result = "4th"
Which race has D. Beadman for the jockey and a 4th place result?
CREATE TABLE table_name_27 (race VARCHAR, jockey VARCHAR, result VARCHAR)
SELECT catalog_number FROM table_11222744_3 WHERE title = "Super Callanetics"
What is the catalog number of the title called "super callanetics"?
CREATE TABLE table_11222744_3 (catalog_number VARCHAR, title VARCHAR)
SELECT no FROM table_26202812_7 WHERE score_in_the_final = "7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)"
Which match was the final score 7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)?
CREATE TABLE table_26202812_7 (no VARCHAR, score_in_the_final VARCHAR)
SELECT country FROM table_name_19 WHERE player = "arjun atwal"
Which Country has a Player of arjun atwal?
CREATE TABLE table_name_19 (country VARCHAR, player VARCHAR)
SELECT song_choice FROM table_26250176_1 WHERE result = "Bottom 3"
What song was used resulting in the bottom 3?
CREATE TABLE table_26250176_1 (song_choice VARCHAR, result VARCHAR)
SELECT area_km² FROM table_name_45 WHERE country = "japan"
What is Japan's Area km²?
CREATE TABLE table_name_45 (area_km² VARCHAR, country VARCHAR)
SELECT municipality FROM table_157826_1 WHERE county = "Finnmark" AND population > 6187.0
Which municipalities located in the county of Finnmark have populations bigger than 6187.0?
CREATE TABLE table_157826_1 (municipality VARCHAR, county VARCHAR, population VARCHAR)
SELECT name FROM table_name_32 WHERE lane < 7 AND time = "2:19.86"
Who had a lane number smaller than 7 and a time of 2:19.86?
CREATE TABLE table_name_32 (name VARCHAR, lane VARCHAR, time VARCHAR)
SELECT COUNT(written_by) FROM table_22580855_1 WHERE directed_by = "Jonathan Herron"
How many writers write the episode whose director is Jonathan Herron?
CREATE TABLE table_22580855_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT SUM(attendance) FROM table_name_96 WHERE opponent = "virginia"
What was the attendance when the opponent was virginia?
CREATE TABLE table_name_96 (attendance INTEGER, opponent VARCHAR)
SELECT MIN(year) FROM table_name_98 WHERE engine = "porsche v12" AND pts < 0
What is the oldest model Porsche v12 that has points less than or equal to 0.
CREATE TABLE table_name_98 (year INTEGER, engine VARCHAR, pts VARCHAR)
SELECT operational_owner_s_ FROM table_1057316_1 WHERE build_date = "April 1892"
Who were the operational owners during the construction date of April 1892?
CREATE TABLE table_1057316_1 (operational_owner_s_ VARCHAR, build_date VARCHAR)
SELECT mult_1 FROM table_27277284_27 WHERE frequency = "1900MHz"
What are the possible multipliers for 1900MHz processors?
CREATE TABLE table_27277284_27 (mult_1 VARCHAR, frequency VARCHAR)
SELECT series FROM table_23286158_11 WHERE high_rebounds = "Marcus Camby (11)"
What series had high rebounds with Marcus Camby (11)?
CREATE TABLE table_23286158_11 (series VARCHAR, high_rebounds VARCHAR)
SELECT directed_by FROM table_2618152_1 WHERE production_code = "E0208"
The episode with the production code E0208 is directed by who?
CREATE TABLE table_2618152_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT SUM(silver) FROM table_name_92 WHERE gold = 4 AND nation = "belarus (blr)" AND bronze > 4
How many silver medals does Belarus (blr) along with 4 gold and 4 bronze?
CREATE TABLE table_name_92 (silver INTEGER, bronze VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT english FROM table_name_88 WHERE character = "lin ming kuan (林明寬)"
What is the English character for Lin Ming Kuan (林明寬)?
CREATE TABLE table_name_88 (english VARCHAR, character VARCHAR)
SELECT payment_method_code, COUNT(*) FROM INVOICES GROUP BY payment_method_code
Show all payment method codes and the number of orders for each code.
CREATE TABLE INVOICES (payment_method_code VARCHAR)