question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the total number of years when Mika Miyazato won the silver?
CREATE TABLE table_name_11 (year VARCHAR, silver VARCHAR)
SELECT COUNT(year) FROM table_name_11 WHERE silver = "mika miyazato"
What date was the game played at Punt Road Oval?
CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_33 WHERE venue = "punt road oval"
What was the method for the resolution of the fight at UFC 160?
CREATE TABLE table_name_33 (method VARCHAR, event VARCHAR)
SELECT method FROM table_name_33 WHERE event = "ufc 160"
What is the total number of silver medals for nations with 5 total medals and more than 3 gold medals?
CREATE TABLE table_name_22 (silver VARCHAR, total VARCHAR, gold VARCHAR)
SELECT COUNT(silver) FROM table_name_22 WHERE total = 5 AND gold > 3
What is the round number of Jessie Rezansoff, who plays right wing?
CREATE TABLE table_name_43 (round INTEGER, position VARCHAR, player VARCHAR)
SELECT SUM(round) FROM table_name_43 WHERE position = "right wing" AND player = "jessie rezansoff"
WHAT IS THE NHL TEAM OF FINLAND?
CREATE TABLE table_name_71 (nhl_team VARCHAR, nationality VARCHAR)
SELECT nhl_team FROM table_name_71 WHERE nationality = "finland"
What is the quantity preserved when 4 were made of class F-21?
CREATE TABLE table_name_76 (quantity_preserved VARCHAR, quantity_made VARCHAR, class VARCHAR)
SELECT quantity_preserved FROM table_name_76 WHERE quantity_made = "4" AND class = "f-21"
How many millions of U.S viewers are there when the director is andy wolk?
CREATE TABLE table_29747178_2 (us_viewers__million_ VARCHAR, directed_by VARCHAR)
SELECT us_viewers__million_ FROM table_29747178_2 WHERE directed_by = "Andy Wolk"
What city has a Result of brisbane broncos def. halifax blue sox?
CREATE TABLE table_name_22 (city VARCHAR, result VARCHAR)
SELECT city FROM table_name_22 WHERE result = "brisbane broncos def. halifax blue sox"
What opponent has a loss of McCaskill (9-11)?
CREATE TABLE table_name_10 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_10 WHERE loss = "mccaskill (9-11)"
What is the highest number of bills cosponsored associated with under 24 bills sponsored and under 16 amendments sponsored?
CREATE TABLE table_name_22 (all_bills_cosponsored INTEGER, all_bills_sponsored VARCHAR, all_amendments_sponsored VARCHAR)
SELECT MAX(all_bills_cosponsored) FROM table_name_22 WHERE all_bills_sponsored < 24 AND all_amendments_sponsored < 16
What are the years when the grizzles had a player who attended UCLA?
CREATE TABLE table_name_71 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)
SELECT years_for_grizzlies FROM table_name_71 WHERE school_club_team = "ucla"
What is the lowest total of the player with a t41 finish?
CREATE TABLE table_name_25 (total INTEGER, finish VARCHAR)
SELECT MIN(total) FROM table_name_25 WHERE finish = "t41"
What are all the teams with an average of 15.89?
CREATE TABLE table_2482547_5 (team_s_ VARCHAR, average VARCHAR)
SELECT team_s_ FROM table_2482547_5 WHERE average = "15.89"
Show the country name and capital of all countries.
CREATE TABLE country (Country_name VARCHAR, Capital VARCHAR)
SELECT Country_name, Capital FROM country
With original artist of Tina Turner, what is the week number?
CREATE TABLE table_21501565_1 (week__number VARCHAR, original_artist VARCHAR)
SELECT week__number FROM table_21501565_1 WHERE original_artist = "Tina Turner"
Call sign k216fo has what average ERP W?
CREATE TABLE table_name_76 (erp_w INTEGER, call_sign VARCHAR)
SELECT AVG(erp_w) FROM table_name_76 WHERE call_sign = "k216fo"
What is the lowest rank with less than 1 gold, 0 silver, 1 bronze, and a total less than 1?
CREATE TABLE table_name_75 (rank INTEGER, total VARCHAR, bronze VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT MIN(rank) FROM table_name_75 WHERE gold < 1 AND silver = 0 AND bronze = 1 AND total < 1
On November 14, 2007, how many different Republican: Jeff Sessions are there?
CREATE TABLE table_16751596_12 (republican VARCHAR, dates_administered VARCHAR)
SELECT COUNT(republican) AS :_jeff_sessions FROM table_16751596_12 WHERE dates_administered = "November 14, 2007"
WHat was the score for Phil Mickelson when he placed t3?
CREATE TABLE table_name_60 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT score FROM table_name_60 WHERE place = "t3" AND player = "phil mickelson"
what is the title of the episode where b b is 20/16
CREATE TABLE table_19485888_1 (title__french_____english_ VARCHAR, b_b_ VARCHAR, _corresponds_to_tf1s_broadcast_schedule VARCHAR)
SELECT title__french_____english_ FROM table_19485888_1 WHERE b_b_ = _corresponds_to_tf1s_broadcast_schedule = 20 / 16
What language does Raj Kamal speak?
CREATE TABLE table_name_62 (language VARCHAR, music_director VARCHAR)
SELECT language FROM table_name_62 WHERE music_director = "raj kamal"
Name the episode for viewers bigger than 5.63 and the households rating is 4.5/7
CREATE TABLE table_name_62 (episode VARCHAR, viewers__m_ VARCHAR, households__rating_share_ VARCHAR)
SELECT episode FROM table_name_62 WHERE viewers__m_ > 5.63 AND households__rating_share_ = "4.5/7"
How many events resulted in a top-25 less than 2?
CREATE TABLE table_name_13 (events VARCHAR, top_25 INTEGER)
SELECT COUNT(events) FROM table_name_13 WHERE top_25 < 2
Name the number of played for 16
CREATE TABLE table_14876228_1 (played VARCHAR, scored VARCHAR)
SELECT COUNT(played) FROM table_14876228_1 WHERE scored = 16
Which studio grossed $83,531,958 and ranked lower than 13?
CREATE TABLE table_name_34 (studio VARCHAR, rank VARCHAR, gross VARCHAR)
SELECT studio FROM table_name_34 WHERE rank > 13 AND gross = "$83,531,958"
What is the Frequency of Gosford when the Callsign of 2cfm?
CREATE TABLE table_name_5 (frequency VARCHAR, area_served VARCHAR, callsign VARCHAR)
SELECT frequency FROM table_name_5 WHERE area_served = "gosford" AND callsign = "2cfm"
Nantyglo RFC had 546 points for and how many points?
CREATE TABLE table_13741576_6 (points VARCHAR, points_for VARCHAR)
SELECT points FROM table_13741576_6 WHERE points_for = "546"
What was the resting potential with an AP duration of 1.0 and a median giant fiber cell type?
CREATE TABLE table_name_69 (resting_potential__mv_ VARCHAR, ap_duration__ms_ VARCHAR, cell_type VARCHAR)
SELECT resting_potential__mv_ FROM table_name_69 WHERE ap_duration__ms_ = "1.0" AND cell_type = "median giant fiber"
What was the 2010 population of frankfort which has a rank smaller than 14?
CREATE TABLE table_name_26 (city VARCHAR, rank VARCHAR)
SELECT AVG(2010 AS _pop) FROM table_name_26 WHERE city = "frankfort" AND rank < 14
how many times is the pole position niki lauda and the race is monaco grand prix?
CREATE TABLE table_1140085_2 (rnd VARCHAR, pole_position VARCHAR, race VARCHAR)
SELECT COUNT(rnd) FROM table_1140085_2 WHERE pole_position = "Niki Lauda" AND race = "Monaco Grand Prix"
What is the verb for Khola?
CREATE TABLE table_name_1 (verb VARCHAR)
SELECT 3 AS __f_ FROM table_name_1 WHERE verb = "khola"
What driver has a Time/Retired of 2:16:38.0?
CREATE TABLE table_name_19 (driver VARCHAR, time_retired VARCHAR)
SELECT driver FROM table_name_19 WHERE time_retired = "2:16:38.0"
When did the consort who had talal i as a spouse die?
CREATE TABLE table_name_98 (died VARCHAR, spouse_to VARCHAR)
SELECT died FROM table_name_98 WHERE spouse_to = "talal i"
What is Alex Poythress height?
CREATE TABLE table_name_78 (height VARCHAR, player VARCHAR)
SELECT height FROM table_name_78 WHERE player = "alex poythress"
When sault ste. marie greyhounds (oha) is the college, junior, or club team how many nationalities are there?
CREATE TABLE table_1965650_9 (nationality VARCHAR, college_junior_club_team VARCHAR)
SELECT COUNT(nationality) FROM table_1965650_9 WHERE college_junior_club_team = "Sault Ste. Marie Greyhounds (OHA)"
List the names of companies in descending order of market value.
CREATE TABLE Companies (name VARCHAR, Market_Value_billion VARCHAR)
SELECT name FROM Companies ORDER BY Market_Value_billion DESC
Who was part of Club Munster with 1 try?
CREATE TABLE table_name_38 (name VARCHAR, tries VARCHAR, club VARCHAR)
SELECT name FROM table_name_38 WHERE tries = 1 AND club = "munster"
What was the date of death for a rank below 14 and age of 103 years, 148 days?
CREATE TABLE table_name_61 (death_date VARCHAR, rank VARCHAR, age__as_of_1_february_2014_ VARCHAR)
SELECT death_date FROM table_name_61 WHERE rank < 14 AND age__as_of_1_february_2014_ = "103 years, 148 days"
Tell me the overall rank for heat rank of 8
CREATE TABLE table_name_60 (overall_rank VARCHAR, heat_rank VARCHAR)
SELECT overall_rank FROM table_name_60 WHERE heat_rank = 8
What is the Set 5 if Set 2 is 25-20?
CREATE TABLE table_name_44 (set_5 VARCHAR, set_2 VARCHAR)
SELECT set_5 FROM table_name_44 WHERE set_2 = "25-20"
What álbum was in the year 1996?
CREATE TABLE table_name_65 (álbum VARCHAR, year VARCHAR)
SELECT álbum FROM table_name_65 WHERE year = 1996
Name the sum of spectators for time more than 20.05 and team #2 of estonia
CREATE TABLE table_name_66 (spectators INTEGER, time___cest__ VARCHAR, team__number2 VARCHAR)
SELECT SUM(spectators) FROM table_name_66 WHERE time___cest__ > 20.05 AND team__number2 = "estonia"
What is the Total for the Player who won after 1983 with less than 4 To par?
CREATE TABLE table_name_66 (total INTEGER, to_par VARCHAR, year_won VARCHAR)
SELECT AVG(total) FROM table_name_66 WHERE to_par < 4 AND year_won > 1983
What stake has 16 wards/branches in Arkansas?
CREATE TABLE table_name_97 (stake VARCHAR, wards__branches_in_arkansas VARCHAR)
SELECT stake FROM table_name_97 WHERE wards__branches_in_arkansas = 16
What number identifies Chris Gatling?
CREATE TABLE table_15621965_7 (no INTEGER, player VARCHAR)
SELECT MAX(no) FROM table_15621965_7 WHERE player = "Chris Gatling"
how is called the township where the latitude is 47.377790
CREATE TABLE table_18600760_19 (township VARCHAR, latitude VARCHAR)
SELECT township FROM table_18600760_19 WHERE latitude = "47.377790"
Name the least runners with dist of 10.5
CREATE TABLE table_name_34 (runners INTEGER, dist__f_ VARCHAR)
SELECT MIN(runners) FROM table_name_34 WHERE dist__f_ = 10.5
What is the losses average when the against is greater than 1255 and wins is 0 and the draws less than 0?
CREATE TABLE table_name_43 (losses INTEGER, draws VARCHAR, against VARCHAR, wins VARCHAR)
SELECT AVG(losses) FROM table_name_43 WHERE against > 1255 AND wins = 0 AND draws < 0
I want the team for replaced by mark mcghee
CREATE TABLE table_name_95 (team VARCHAR, replaced_by VARCHAR)
SELECT team FROM table_name_95 WHERE replaced_by = "mark mcghee"
Name the city of license for call sign of k215es
CREATE TABLE table_name_7 (city_of_license VARCHAR, call_sign VARCHAR)
SELECT city_of_license FROM table_name_7 WHERE call_sign = "k215es"
What is the tournament that had Grand Slam Tournaments in 1976?
CREATE TABLE table_name_13 (tournament VARCHAR)
SELECT tournament FROM table_name_13 WHERE 1976 = "grand slam tournaments"
Name the district for william j. driver
CREATE TABLE table_1342426_5 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1342426_5 WHERE incumbent = "William J. Driver"
What is the record on February 23?
CREATE TABLE table_name_82 (record VARCHAR, february VARCHAR)
SELECT record FROM table_name_82 WHERE february = 23
What is the sum of Total ranking 9 and a Gold more than 6
CREATE TABLE table_name_74 (total INTEGER, rank VARCHAR, gold VARCHAR)
SELECT SUM(total) FROM table_name_74 WHERE rank = "9" AND gold > 6
What team had a high points of west (20)?
CREATE TABLE table_name_65 (team VARCHAR, high_points VARCHAR)
SELECT team FROM table_name_65 WHERE high_points = "west (20)"
I want to know the method for opponent of jerry bohlander
CREATE TABLE table_name_71 (method VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_71 WHERE opponent = "jerry bohlander"
Show ids for all the male faculty.
CREATE TABLE Faculty (FacID VARCHAR, Sex VARCHAR)
SELECT FacID FROM Faculty WHERE Sex = 'M'
What was the record at the game that had a score of 7-10?
CREATE TABLE table_name_76 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_76 WHERE score = "7-10"
What player is a lock with 1 cap?
CREATE TABLE table_name_16 (player VARCHAR, position VARCHAR, caps VARCHAR)
SELECT player FROM table_name_16 WHERE position = "lock" AND caps = 1
Who scored the high points on the date November 2?
CREATE TABLE table_17058116_5 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_17058116_5 WHERE date = "November 2"
What was the result of the Competition of friendly?
CREATE TABLE table_name_61 (result VARCHAR, competition VARCHAR)
SELECT result FROM table_name_61 WHERE competition = "friendly"
what is the attendance on december 14, 2003?
CREATE TABLE table_name_34 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_34 WHERE date = "december 14, 2003"
What average lost has points greater than 108?
CREATE TABLE table_name_49 (lost INTEGER, points INTEGER)
SELECT AVG(lost) FROM table_name_49 WHERE points > 108
What is the 1989 number when the 200 number is less than 52.8 in Arizona, New Mexico, and Utah
CREATE TABLE table_name_41 (location VARCHAR)
SELECT SUM(1989) FROM table_name_41 WHERE 2000 < 52.8 AND location = "arizona, new mexico, and utah"
What is the three-mora word with a low tone accented mora and a one mora of 2?
CREATE TABLE table_name_18 (three_mora_word VARCHAR, one_mora VARCHAR, accented_mora VARCHAR)
SELECT three_mora_word FROM table_name_18 WHERE NOT accented_mora = "low tone" AND one_mora = "2"
What is the name of the winner on 18 may?
CREATE TABLE table_name_21 (winner VARCHAR, date VARCHAR)
SELECT winner FROM table_name_21 WHERE date = "18 may"
When fleetwood is the city/town how many sets of population are there?
CREATE TABLE table_23248420_1 (population VARCHAR, city_town VARCHAR)
SELECT COUNT(population) FROM table_23248420_1 WHERE city_town = "Fleetwood"
Find the state of the college which player Charles is attending.
CREATE TABLE tryout (cName VARCHAR, pID VARCHAR); CREATE TABLE player (pID VARCHAR, pName VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)
SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID WHERE T3.pName = 'Charles'
What is the name of the Entrant that has a Chassis of lotus 25
CREATE TABLE table_name_39 (entrant VARCHAR, chassis VARCHAR)
SELECT entrant FROM table_name_39 WHERE chassis = "lotus 25"
What is the percentage democrats with 2/4 democrat/republican?
CREATE TABLE table_name_57 (percentage_democrats VARCHAR, democratic__republican VARCHAR)
SELECT percentage_democrats FROM table_name_57 WHERE democratic__republican = "2/4"
What was the rank with the qual of 115.095?
CREATE TABLE table_name_86 (rank VARCHAR, qual VARCHAR)
SELECT rank FROM table_name_86 WHERE qual = "115.095"
when was the episode with production code "2arg24" originally aired?
CREATE TABLE table_27332038_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_27332038_1 WHERE production_code = "2ARG24"
How many Draws have a South West DFL of tyrendarra, and less than 10 wins?
CREATE TABLE table_name_83 (draws INTEGER, south_west_dfl VARCHAR, wins VARCHAR)
SELECT SUM(draws) FROM table_name_83 WHERE south_west_dfl = "tyrendarra" AND wins < 10
What leading man earlier than 1932 was directed by archie mayo?
CREATE TABLE table_name_1 (leading_man VARCHAR, year VARCHAR, director VARCHAR)
SELECT leading_man FROM table_name_1 WHERE year < 1932 AND director = "archie mayo"
Name the outgoing manager for position in table being 11th
CREATE TABLE table_17039232_3 (outgoing_manager VARCHAR, position_in_table VARCHAR)
SELECT outgoing_manager FROM table_17039232_3 WHERE position_in_table = "11th"
Who constructed the car with a grid larger than 20 that got in an accident?
CREATE TABLE table_name_1 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT constructor FROM table_name_1 WHERE grid > 20 AND time_retired = "accident"
What is Score, when Outcome is "winner", when Partnering is "Nicole Sewell", and when Opponent in Final is "Victoria Davies / Kate Warne-Holland"?
CREATE TABLE table_name_50 (score VARCHAR, opponent_in_final VARCHAR, outcome VARCHAR, partnering VARCHAR)
SELECT score FROM table_name_50 WHERE outcome = "winner" AND partnering = "nicole sewell" AND opponent_in_final = "victoria davies / kate warne-holland"
Who was the opponent in the game held on February 4?
CREATE TABLE table_22883210_8 (team VARCHAR, date VARCHAR)
SELECT team FROM table_22883210_8 WHERE date = "February 4"
what is the company when the country is greece and the author is aeschylus?
CREATE TABLE table_name_28 (company VARCHAR, country VARCHAR, author VARCHAR)
SELECT company FROM table_name_28 WHERE country = "greece" AND author = "aeschylus"
What are the lowest points for the engines of the Lamborghini v12 and the Chassis on Minardi m191b?
CREATE TABLE table_name_48 (points INTEGER, engine VARCHAR, chassis VARCHAR)
SELECT MIN(points) FROM table_name_48 WHERE engine = "lamborghini v12" AND chassis = "minardi m191b"
Tell me the sum of longitude for diameter being 22.6 and latitude less than -12.4
CREATE TABLE table_name_65 (longitude INTEGER, diameter__km_ VARCHAR, latitude VARCHAR)
SELECT SUM(longitude) FROM table_name_65 WHERE diameter__km_ = 22.6 AND latitude < -12.4
what is the result when the date is august 24, 1997?
CREATE TABLE table_name_52 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_52 WHERE date = "august 24, 1997"
If the English translation is hello girl, what was the language?
CREATE TABLE table_19249824_1 (language VARCHAR, english_translation VARCHAR)
SELECT language FROM table_19249824_1 WHERE english_translation = "Hello girl"
Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'.
CREATE TABLE camera_lens (id VARCHAR, brand VARCHAR); CREATE TABLE mountain (name VARCHAR, prominence VARCHAR, id VARCHAR); CREATE TABLE photos (mountain_id VARCHAR, camera_lens_id VARCHAR); CREATE TABLE mountain (name VARCHAR, prominence VARCHAR)
SELECT name, prominence FROM mountain EXCEPT SELECT T1.name, T1.prominence FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T3.brand = 'Sigma'
What was the title of the episode written by Keith Temple?
CREATE TABLE table_21025437_5 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_21025437_5 WHERE written_by = "Keith Temple"
Which style led to a score given by Tor Floysvik of 8?
CREATE TABLE table_28677723_9 (style VARCHAR, tor_fløysvik VARCHAR)
SELECT style FROM table_28677723_9 WHERE tor_fløysvik = 8
Name the last title for 2012
CREATE TABLE table_2454589_1 (last_title VARCHAR, first_season_in_current_spell VARCHAR)
SELECT last_title FROM table_2454589_1 WHERE first_season_in_current_spell = 2012
What Report has the Date of June 5, 2005?
CREATE TABLE table_name_6 (report VARCHAR, date VARCHAR)
SELECT report FROM table_name_6 WHERE date = "june 5, 2005"
Who was their opponent in game 4?
CREATE TABLE table_name_77 (opponent VARCHAR, game VARCHAR)
SELECT opponent FROM table_name_77 WHERE game = "4"
What is the Draw for match 10, and the team was skra warszawa?
CREATE TABLE table_name_76 (draw VARCHAR, match VARCHAR, team VARCHAR)
SELECT draw FROM table_name_76 WHERE match = "10" AND team = "skra warszawa"
How much did the away team Geelong score?
CREATE TABLE table_name_53 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_53 WHERE away_team = "geelong"
Which Score has a Result of 2–1, and a Competition of friendly, and a Goal smaller than 17?
CREATE TABLE table_name_21 (score VARCHAR, goal VARCHAR, result VARCHAR, competition VARCHAR)
SELECT score FROM table_name_21 WHERE result = "2–1" AND competition = "friendly" AND goal < 17
At which track was Frank Kimmel the Pole Winner of the Pennsylvania 200?
CREATE TABLE table_name_80 (track VARCHAR, pole_winner VARCHAR, event_name VARCHAR)
SELECT track FROM table_name_80 WHERE pole_winner = "frank kimmel" AND event_name = "pennsylvania 200"
List all candidates in the democratic party where the election had the incumbent Frank Chelf running.
CREATE TABLE table_1342218_17 (candidates VARCHAR, party VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1342218_17 WHERE party = "Democratic" AND incumbent = "Frank Chelf"
What is Score, when Player is "Tom Lehman"?
CREATE TABLE table_name_1 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_1 WHERE player = "tom lehman"
What is every reason for change for the Washington 3rd District?
CREATE TABLE table_2159571_2 (reason_for_change VARCHAR, district VARCHAR)
SELECT reason_for_change FROM table_2159571_2 WHERE district = "Washington 3rd"
How many different results were there for the number of votes fro Obama in the county where he got 27.8% of the votes?
CREATE TABLE table_20350118_1 (obama_number VARCHAR, obama_percentage VARCHAR)
SELECT COUNT(obama_number) FROM table_20350118_1 WHERE obama_percentage = "27.8%"
The tournament Buick Classic occured on what dates?
CREATE TABLE table_1507431_1 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_1507431_1 WHERE tournament = "Buick Classic"
which providence's soccer stadium was founded in 2005?
CREATE TABLE table_27369069_1 (province VARCHAR, founded VARCHAR)
SELECT province FROM table_27369069_1 WHERE founded = 2005