answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT comp FROM table_name_3 WHERE score = "489.5"
What is the Comp of the Shooter with a Score of 489.5?
CREATE TABLE table_name_3 (comp VARCHAR, score VARCHAR)
SELECT party FROM table_1346137_4 WHERE incumbent = "Richard S. Whaley"
What was the winning party when the incumbent was richard s. whaley?
CREATE TABLE table_1346137_4 (party VARCHAR, incumbent VARCHAR)
SELECT segment_a FROM table_15187735_13 WHERE episode = 162
Name the segment a for 162
CREATE TABLE table_15187735_13 (segment_a VARCHAR, episode VARCHAR)
SELECT round FROM table_name_21 WHERE opponent = "sergis kyratzis"
What is the round when the match was against sergis kyratzis?
CREATE TABLE table_name_21 (round VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_33 WHERE venue = "punt road oval"
What date was the game played at Punt Road Oval?
CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR)
SELECT high_assists FROM table_11964154_11 WHERE high_rebounds = "Nick Collison (15)"
Who had the high assists when the high rebounds were from Nick Collison (15)?
CREATE TABLE table_11964154_11 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT 2013 FROM table_name_22 WHERE 2010 = "1r"
Name the 2013 for 2010 of 1r
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT director FROM table_name_74 WHERE title = "chaser on the rocks"
Who was the director of Chaser on the Rocks?
CREATE TABLE table_name_74 (director VARCHAR, title VARCHAR)
SELECT AVG(lost) FROM table_name_62 WHERE goals_against > 57 AND position < 17 AND drawn = 8 AND team = "hyde united"
What is the average number lost for hyde united when they had a smaller position than 17, 8 draws, and more than 57 goals against?
CREATE TABLE table_name_62 (lost INTEGER, team VARCHAR, drawn VARCHAR, goals_against VARCHAR, position VARCHAR)
SELECT MIN(played) FROM table_name_58 WHERE position > 6 AND goals_against = 61 AND lost < 16
What is the lowest played that has a position greater than 6, 61 as the goals against, with a loss less than 16?
CREATE TABLE table_name_58 (played INTEGER, lost VARCHAR, position VARCHAR, goals_against VARCHAR)
SELECT election FROM table_286271_1 WHERE _percentage_of_popular_vote = "4.48%"
Name the election for the percent of popular vote being 4.48%
CREATE TABLE table_286271_1 (election VARCHAR, _percentage_of_popular_vote VARCHAR)
SELECT stops FROM table_2385460_1 WHERE stations = 36
Name the stops for stations 36
CREATE TABLE table_2385460_1 (stops VARCHAR, stations VARCHAR)
SELECT wednesday FROM table_11748792_2 WHERE series = "Big Brother 13"
Who is the Wednesday presenter of the show Big Brother 13?
CREATE TABLE table_11748792_2 (wednesday VARCHAR, series VARCHAR)
SELECT name FROM table_name_13 WHERE authority = "state"
Which name has an authority of state?
CREATE TABLE table_name_13 (name VARCHAR, authority VARCHAR)
SELECT COUNT(*) FROM aircraft
How many aircrafts are there?
CREATE TABLE aircraft (Id VARCHAR)
SELECT country FROM table_237199_1 WHERE company_name = "Doosan Infracore"
Which country has doosan infracore as then company name?
CREATE TABLE table_237199_1 (country VARCHAR, company_name VARCHAR)
SELECT COUNT(results) FROM table_1805191_39 WHERE district = "Pennsylvania 11"
In district Pennsylvania 11, what was the total numbers of results?
CREATE TABLE table_1805191_39 (results VARCHAR, district VARCHAR)
SELECT player FROM table_10015132_9 WHERE school_club_team = "Westchester High School"
Who are all of the players on the Westchester High School club team?
CREATE TABLE table_10015132_9 (player VARCHAR, school_club_team VARCHAR)
SELECT score FROM table_27712702_9 WHERE date = "January 8"
What was the score of the January 8 game?
CREATE TABLE table_27712702_9 (score VARCHAR, date VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_9 WHERE country = "bulgaria"
Which movie originated in Bulgaria?
CREATE TABLE table_name_9 (film_title_used_in_nomination VARCHAR, country VARCHAR)
SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1
What is the id of the problem log that is created most recently?
CREATE TABLE problem_log (problem_log_id VARCHAR, log_entry_date VARCHAR)
SELECT driver FROM table_name_18 WHERE year = "1955"
What is the name of the driver in 1955?
CREATE TABLE table_name_18 (driver VARCHAR, year VARCHAR)
SELECT home_team AS score FROM table_name_11 WHERE crowd > 30 OFFSET 100
What is the home team score when the crowd was larger than 30,100?
CREATE TABLE table_name_11 (home_team VARCHAR, crowd INTEGER)
SELECT 2010 AS _population_density FROM table_name_83 WHERE municipio = "ponce"
what is the 2010 population density for municipio ponce?
CREATE TABLE table_name_83 (municipio VARCHAR)
SELECT high_assists FROM table_name_83 WHERE team = "@ milwaukee"
What is High Assists, when Team is "@ Milwaukee"?
CREATE TABLE table_name_83 (high_assists VARCHAR, team VARCHAR)
SELECT SUM(gross_tonnage) FROM table_name_75 WHERE material = "wood" AND date_commissioned > 1846 AND ship = "esk"
Name the sum of gross tonnage for wood on date more tahn 1846 for comissioned and ship of esk
CREATE TABLE table_name_75 (gross_tonnage INTEGER, ship VARCHAR, material VARCHAR, date_commissioned VARCHAR)
SELECT rank FROM table_name_14 WHERE team = "roma"
What Rank has a Team of roma?
CREATE TABLE table_name_14 (rank VARCHAR, team VARCHAR)
SELECT written_by FROM table_27169029_1 WHERE original_air_date = "September 26, 2010"
Who wrote the episode that aired on September 26, 2010?
CREATE TABLE table_27169029_1 (written_by VARCHAR, original_air_date VARCHAR)
SELECT unix_shell FROM table_14465871_1 WHERE powershell__cmdlet_ = "Select-String"
What are the names of all unix shell with PowerShell (Cmdlet) of select-string?
CREATE TABLE table_14465871_1 (unix_shell VARCHAR, powershell__cmdlet_ VARCHAR)
SELECT lost FROM table_name_33 WHERE "club" = "club"
Which Lost has a Club of club?
CREATE TABLE table_name_33 (lost VARCHAR)
SELECT record FROM table_name_72 WHERE nationality = "bahamas" AND games = "2012 hamilton"
What is the Record of the 2012 Hamilton Games from Bahamas?
CREATE TABLE table_name_72 (record VARCHAR, nationality VARCHAR, games VARCHAR)
SELECT score FROM table_23248940_6 WHERE date = "November 10"
What is every score when date is November 10?
CREATE TABLE table_23248940_6 (score VARCHAR, date VARCHAR)
SELECT quantity_made FROM table_name_67 WHERE class = "waterford"
What is the quantity made of the locomotive with a Waterford class?
CREATE TABLE table_name_67 (quantity_made VARCHAR, class VARCHAR)
SELECT MAX(grid) FROM table_name_9 WHERE manufacturer = "suzuki" AND time_retired = "+1:01.894"
What is the grid for the rider who rides a Suzuki and has the time of +1:01.894?
CREATE TABLE table_name_9 (grid INTEGER, manufacturer VARCHAR, time_retired VARCHAR)
SELECT date FROM table_name_66 WHERE home_team = "richmond"
What is the date when Richmond was the home team?
CREATE TABLE table_name_66 (date VARCHAR, home_team VARCHAR)
SELECT title FROM table_name_28 WHERE translation = "vesoul"
Which title has the Translation of vesoul?
CREATE TABLE table_name_28 (title VARCHAR, translation VARCHAR)
SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = "JetBlue Airways"
How many flights does airline 'JetBlue Airways' have?
CREATE TABLE FLIGHTS (Airline VARCHAR); CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR)
SELECT MIN(points) FROM table_name_56 WHERE games > 5
What is the low point total when there are over 5 games?
CREATE TABLE table_name_56 (points INTEGER, games INTEGER)
SELECT bus_width__bits_ FROM table_142573_1 WHERE bandwidth__mb_s_ = 3200
Name the bus width bits when bandwidth mb/s is 3200
CREATE TABLE table_142573_1 (bus_width__bits_ VARCHAR, bandwidth__mb_s_ VARCHAR)
SELECT first_pref_votes FROM table_name_49 WHERE _percentage_of_seats = "0.8"
Which First Pref votes have a % of seats of 0.8?
CREATE TABLE table_name_49 (first_pref_votes VARCHAR, _percentage_of_seats VARCHAR)
SELECT team FROM table_name_57 WHERE qual_1 = "1:20.139"
What is Team when Qual 1 is 1:20.139?
CREATE TABLE table_name_57 (team VARCHAR, qual_1 VARCHAR)
SELECT record FROM table_18894744_6 WHERE date = "July 1"
What was the record on the game played on July 1?
CREATE TABLE table_18894744_6 (record VARCHAR, date VARCHAR)
SELECT MIN(heat) FROM table_name_40 WHERE time = "1:02.85" AND lane > 7
What is the lowest heat that had a time of 1:02.85 in a lane larger than 7?
CREATE TABLE table_name_40 (heat INTEGER, time VARCHAR, lane VARCHAR)
SELECT fastest_lap FROM table_26920192_5 WHERE circuit = "Magione"
Who had the fastest lap for the circuit magione?
CREATE TABLE table_26920192_5 (fastest_lap VARCHAR, circuit VARCHAR)
SELECT final_score FROM table_name_9 WHERE visiting_team = "indianapolis colts" AND stadium = "giants stadium"
What was the final score for the game at giants stadium when the indianapolis colts were the visiting team?
CREATE TABLE table_name_9 (final_score VARCHAR, visiting_team VARCHAR, stadium VARCHAR)
SELECT winning_team FROM table_name_35 WHERE date = "january 28, 2006"
What is the Winning team on january 28, 2006?
CREATE TABLE table_name_35 (winning_team VARCHAR, date VARCHAR)
SELECT COUNT(reg_gp) FROM table_name_62 WHERE player = "nathan barrett" AND rd__number < 8
How many reg GP for nathan barrett in a round less than 8?
CREATE TABLE table_name_62 (reg_gp VARCHAR, player VARCHAR, rd__number VARCHAR)
SELECT french FROM table_15040_8 WHERE german = "filtern"
What is the French word where the German word is filtern?
CREATE TABLE table_15040_8 (french VARCHAR, german VARCHAR)
SELECT MAX(assists) FROM table_28461589_2 WHERE games_played = 25
What is the most number of assists for players with exactly 25 games played?
CREATE TABLE table_28461589_2 (assists INTEGER, games_played VARCHAR)
SELECT college_junior_club_team FROM table_2781227_4 WHERE player = "Adam Wiesel"
For player is adam wiesel mention all the college/junior/club team
CREATE TABLE table_2781227_4 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT score FROM table_name_16 WHERE place = "4"
What is the Score of the game of the Player in Place 4?
CREATE TABLE table_name_16 (score VARCHAR, place VARCHAR)
SELECT home_team AS score FROM table_name_22 WHERE home_team = "north melbourne"
What was North Melbourne's score when they were the home team?
CREATE TABLE table_name_22 (home_team VARCHAR)
SELECT score FROM table_name_42 WHERE away_team = "arsenal"
What is the score for the game in which Arsenal was the away team?
CREATE TABLE table_name_42 (score VARCHAR, away_team VARCHAR)
SELECT AVG(against) FROM table_name_65 WHERE points = 6 AND played < 9
Which average Against has Points of 6, and a Played smaller than 9?
CREATE TABLE table_name_65 (against INTEGER, points VARCHAR, played VARCHAR)
SELECT date FROM table_name_10 WHERE no_built = 5 AND wheels = "4-4-2t"
On what date were 5 built with 4-4-2t wheels?
CREATE TABLE table_name_10 (date VARCHAR, no_built VARCHAR, wheels VARCHAR)
SELECT MAX(position) FROM table_name_97 WHERE goals_against = 24 AND played < 30
Which Position has 24 Goals against, and a Played smaller than 30?
CREATE TABLE table_name_97 (position INTEGER, goals_against VARCHAR, played VARCHAR)
SELECT termini FROM table_name_19 WHERE direction = "east west" AND remarks = "replaced by us 59"
What is the terminini of the highway with an east west direction and remarks that it was replaced by us 59?
CREATE TABLE table_name_19 (termini VARCHAR, direction VARCHAR, remarks VARCHAR)
SELECT proto_polynesian FROM table_name_69 WHERE number = "five"
WHich Proto-Polynesian has a Number of five?
CREATE TABLE table_name_69 (proto_polynesian VARCHAR, number VARCHAR)
SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2
Show the name of the party that has at least two records.
CREATE TABLE party (Party VARCHAR)
SELECT date FROM table_name_63 WHERE tournament = "bmw open"
Which Date has a Tournament of bmw open?
CREATE TABLE table_name_63 (date VARCHAR, tournament VARCHAR)
SELECT independent_socialist_ticket FROM table_name_75 WHERE liberal_ticket = "edward goodell"
Who was the Independent Socialist candidate who ran against the Liberal candidate Edward Goodell?
CREATE TABLE table_name_75 (independent_socialist_ticket VARCHAR, liberal_ticket VARCHAR)
SELECT real_name FROM table_name_28 WHERE function__figure_ = "pilot of the silent attack kayak"
What is the real name of the person who is a pilot of the silent attack kayak?
CREATE TABLE table_name_28 (real_name VARCHAR, function__figure_ VARCHAR)
SELECT MAX(top_10) FROM table_name_9 WHERE cuts_made > 1 AND events = 8
For majors with 8 events played and more than 1 made cut, what is the most top-10s recorded?
CREATE TABLE table_name_9 (top_10 INTEGER, cuts_made VARCHAR, events VARCHAR)
SELECT driving_force_gt FROM table_name_2 WHERE gt_force = "no" AND driving_force_pro = "no" AND g27_racing_wheel = "no"
GT Force of no, and a Driving Force Pro of no, and a G27 Racing Wheel of no has what driving force gt?
CREATE TABLE table_name_2 (driving_force_gt VARCHAR, g27_racing_wheel VARCHAR, gt_force VARCHAR, driving_force_pro VARCHAR)
SELECT MAX(pick__number) FROM table_name_34 WHERE player = "corrie d'alessio" AND rd__number > 6
What's the largest pick number for corrie d'alessio with a rd number over 6?
CREATE TABLE table_name_34 (pick__number INTEGER, player VARCHAR, rd__number VARCHAR)
SELECT score FROM table_name_74 WHERE home_team = "afc hornchurch"
What was the score for home team AFC Hornchurch?
CREATE TABLE table_name_74 (score VARCHAR, home_team VARCHAR)
SELECT SUM(points) FROM table_name_67 WHERE score = "2–7"
What were the Points in the game with a Score of 2–7?
CREATE TABLE table_name_67 (points INTEGER, score VARCHAR)
SELECT indonesia_super_series_2008 FROM table_2544694_3 WHERE runner_up = "Semi-Finalist" AND 780000 = "6420.00"
Which series occurred in which the semi-finalist was runner-up and the 7800.00 was 6420.00?
CREATE TABLE table_2544694_3 (indonesia_super_series_2008 VARCHAR, runner_up VARCHAR)
SELECT SUM(rank) FROM table_name_53 WHERE nation = "south korea" AND silver > 0
Which Rank has a Nation of south korea, and a Silver larger than 0?
CREATE TABLE table_name_53 (rank INTEGER, nation VARCHAR, silver VARCHAR)
SELECT COUNT(frequency) FROM table_13869651_3 WHERE part_number_s_ = "ADO540BIAA5DO"
How many different frequencies does the model with part number ado540biaa5do?
CREATE TABLE table_13869651_3 (frequency VARCHAR, part_number_s_ VARCHAR)
SELECT competition FROM table_name_71 WHERE year = 1978
What was the competition in 1978?
CREATE TABLE table_name_71 (competition VARCHAR, year VARCHAR)
SELECT division_record FROM table_name_48 WHERE team = "panthers"
What is the Panthers' Division Record?
CREATE TABLE table_name_48 (division_record VARCHAR, team VARCHAR)
SELECT termination_of_mission FROM table_name_76 WHERE appointed_by = "franklin pierce"
Name the termination of mission for appointed by of franklin pierce
CREATE TABLE table_name_76 (termination_of_mission VARCHAR, appointed_by VARCHAR)
SELECT place FROM table_name_99 WHERE country = "trinidad and tobago"
Where did Trinidad and Tobago play?
CREATE TABLE table_name_99 (place VARCHAR, country VARCHAR)
SELECT most_recent_cyclist FROM table_18676973_3 WHERE rank = "12"
When 12 is the rank who is the most recent cyclist?
CREATE TABLE table_18676973_3 (most_recent_cyclist VARCHAR, rank VARCHAR)
SELECT isbn FROM table_name_48 WHERE year = 1999
What is the ISBN in 1999?
CREATE TABLE table_name_48 (isbn VARCHAR, year VARCHAR)
SELECT timeslot FROM table_16072430_1 WHERE air_date = "February 22, 2008"
What are the timeslot(s) for broadcast on February 22, 2008?
CREATE TABLE table_16072430_1 (timeslot VARCHAR, air_date VARCHAR)
SELECT first_elected FROM table_1341865_23 WHERE party = "Republican"
Name the first elected for the republican party
CREATE TABLE table_1341865_23 (first_elected VARCHAR, party VARCHAR)
SELECT venue FROM table_name_3 WHERE goal > 3 AND competition = "2011 afc asian cup"
Which Venue has a Goal larger than 3, and a Competition of 2011 afc asian cup?
CREATE TABLE table_name_3 (venue VARCHAR, goal VARCHAR, competition VARCHAR)
SELECT SUM(crowd) FROM table_name_88 WHERE venue = "arden street oval"
In the match where the venue was arden street oval, what was the crowd attendance?
CREATE TABLE table_name_88 (crowd INTEGER, venue VARCHAR)
SELECT age_30_39 FROM table_169693_1 WHERE age_10_19 = 380
Name the age 30-39 and age 10-19 380
CREATE TABLE table_169693_1 (age_30_39 VARCHAR, age_10_19 VARCHAR)
SELECT COUNT(results) FROM table_24865763_2 WHERE circuit = "Algarve" AND gt1_winning_team = "No. 50 Larbre Compétition"
How many results did the GT1 Winning Team No. 50 Larbre Compétition on the Algarve circuit?
CREATE TABLE table_24865763_2 (results VARCHAR, circuit VARCHAR, gt1_winning_team VARCHAR)
SELECT manner_of_departure FROM table_29414946_3 WHERE outgoing_manager = "Geninho"
Why did Geninho leave as manager?
CREATE TABLE table_29414946_3 (manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT Name FROM phone WHERE Carrier = "Sprint" OR Carrier = "TMobile"
Show the names of phones with carrier either "Sprint" or "TMobile".
CREATE TABLE phone (Name VARCHAR, Carrier VARCHAR)
SELECT AVG(popular_votes) FROM table_name_35 WHERE percentage = "4.94%" AND year > 1990
Name the average popular votes in years after 1990 with percentage of 4.94%
CREATE TABLE table_name_35 (popular_votes INTEGER, percentage VARCHAR, year VARCHAR)
SELECT MIN(capacity) FROM table_name_96 WHERE stadium = "stadion mladina"
What is the lowest capacity that has stadion mladina as the stadium?
CREATE TABLE table_name_96 (capacity INTEGER, stadium VARCHAR)
SELECT score FROM table_name_60 WHERE winner = "keith clearwater (1)"
What is the score from the winner Keith Clearwater (1)?
CREATE TABLE table_name_60 (score VARCHAR, winner VARCHAR)
SELECT MAX(team_wins) FROM table_name_48 WHERE nation = "sweden" AND individual_wins < 1
Which Team Win is from sweden and has a Individual win smaller than 1
CREATE TABLE table_name_48 (team_wins INTEGER, nation VARCHAR, individual_wins VARCHAR)
SELECT administrative_county FROM table_14925084_1 WHERE area_1961__statute_acres_ = 422372
Name the administrative county being area of 422372
CREATE TABLE table_14925084_1 (administrative_county VARCHAR, area_1961__statute_acres_ VARCHAR)
SELECT winners FROM table_name_47 WHERE third_place = "0" AND team = "minas"
How many winners did Minas, which has 0 third places, have?
CREATE TABLE table_name_47 (winners VARCHAR, third_place VARCHAR, team VARCHAR)
SELECT tournament FROM table_name_58 WHERE events > 11 AND top_5 = 0 AND top_25 = 2
What is the name of the tournament with 11 or more events a top-5 of 0 and a top-25 of 2?
CREATE TABLE table_name_58 (tournament VARCHAR, top_25 VARCHAR, events VARCHAR, top_5 VARCHAR)
SELECT res FROM table_name_7 WHERE record = "3–1"
Record of 3–1 had what Res?
CREATE TABLE table_name_7 (res VARCHAR, record VARCHAR)
SELECT runs FROM table_name_13 WHERE opponent = "new south wales" AND season = "2002/03"
How many runs did they get against new south wales in 2002/03?
CREATE TABLE table_name_13 (runs VARCHAR, opponent VARCHAR, season VARCHAR)
SELECT rnd FROM table_13657883_2 WHERE gto_winning_team = "#48 Greenwood Racing"
What round was the gto winning team #48 greenwood racing?
CREATE TABLE table_13657883_2 (rnd VARCHAR, gto_winning_team VARCHAR)
SELECT chassis FROM table_1771753_3 WHERE average_speed__mph_ = "169.182"
When 169.182 is the average speed miles per hour what is the chassis?
CREATE TABLE table_1771753_3 (chassis VARCHAR, average_speed__mph_ VARCHAR)
SELECT delay FROM table_1500146_1 WHERE scientific_linux_release = "5.10"
Name the delay when scientific linux release is 5.10
CREATE TABLE table_1500146_1 (delay VARCHAR, scientific_linux_release VARCHAR)
SELECT AVG(zone) FROM table_name_64 WHERE stations = "waddon marsh tram stop"
Name the average zone for waddon marsh tram stop
CREATE TABLE table_name_64 (zone INTEGER, stations VARCHAR)
SELECT student_id FROM students WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)
List the id of students who never attends courses?
CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE students (student_id VARCHAR)
SELECT COUNT(episode) FROM table_27039190_3 WHERE viewers = "4.44m"
How many episodes had 4.44m viewers?
CREATE TABLE table_27039190_3 (episode VARCHAR, viewers VARCHAR)
SELECT circumstances FROM table_name_25 WHERE date = "2009-03-14"
What happened on 2009-03-14?
CREATE TABLE table_name_25 (circumstances VARCHAR, date VARCHAR)