question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many nationalities does athlete Casey Jacobsen have?
CREATE TABLE table_16494599_10 (nationality VARCHAR, player VARCHAR)
SELECT COUNT(nationality) FROM table_16494599_10 WHERE player = "Casey Jacobsen"
What is the Chinese name of the player in Index F10?
CREATE TABLE table_name_73 (Chinese VARCHAR, index VARCHAR)
SELECT Chinese AS name FROM table_name_73 WHERE index = "f10"
What numbered episode was directed by greg colton and written by patrick meighan?
CREATE TABLE table_28210383_1 (no__episode__number_ VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT no__episode__number_ FROM table_28210383_1 WHERE directed_by = "Greg Colton" AND written_by = "Patrick Meighan"
What is the average number of losses for teams with 0 draws and 0 byes?
CREATE TABLE table_name_78 (losses INTEGER, draws VARCHAR, byes VARCHAR)
SELECT AVG(losses) FROM table_name_78 WHERE draws = 0 AND byes < 0
What is the district for the party federalist and the candidates are william craik (f) 51.0% benjamin edwards 49.0%?
CREATE TABLE table_2668416_7 (district VARCHAR, party VARCHAR, candidates VARCHAR)
SELECT district FROM table_2668416_7 WHERE party = "Federalist" AND candidates = "William Craik (F) 51.0% Benjamin Edwards 49.0%"
What is the sum shot % when the country is finland, and an ends lost is larger than 49?
CREATE TABLE table_name_72 (shot__percentage INTEGER, country VARCHAR, ends_lost VARCHAR)
SELECT SUM(shot__percentage) FROM table_name_72 WHERE country = "finland" AND ends_lost > 49
How many days were the station of Soyuz 35 in flight down were in orbit?
CREATE TABLE table_245800_2 (duration__days_ VARCHAR, flight_down VARCHAR)
SELECT duration__days_ FROM table_245800_2 WHERE flight_down = "Soyuz 35"
Who was the opponent for game 73?
CREATE TABLE table_name_10 (opponent VARCHAR, game VARCHAR)
SELECT opponent FROM table_name_10 WHERE game = "73"
What average Total has a Gold award of 13 and a Bronze award less than 13?
CREATE TABLE table_name_84 (total INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT AVG(total) FROM table_name_84 WHERE gold = 13 AND bronze < 13
In what Round was a Defensive Tackle Pick # less than 19?
CREATE TABLE table_name_1 (round VARCHAR, position VARCHAR, pick__number VARCHAR)
SELECT COUNT(round) FROM table_name_1 WHERE position = "defensive tackle" AND pick__number < 19
What did the loss come from a Club of mumbles rfc?
CREATE TABLE table_name_92 (lost VARCHAR, club VARCHAR)
SELECT lost FROM table_name_92 WHERE club = "mumbles rfc"
Name the open cup for 2010
CREATE TABLE table_15672920_1 (open_cup VARCHAR, year VARCHAR)
SELECT open_cup FROM table_15672920_1 WHERE year = 2010
Which average money has a Score of 69-72-72-72=285?
CREATE TABLE table_name_38 (money___ INTEGER, score VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_38 WHERE score = 69 - 72 - 72 - 72 = 285
What is the 2nd verb for chena?
CREATE TABLE table_name_7 (verb VARCHAR)
SELECT 2 AS __f_ FROM table_name_7 WHERE verb = "chena"
Where is California Lutheran University located?
CREATE TABLE table_14976504_2 (location VARCHAR, institution VARCHAR)
SELECT COUNT(location) FROM table_14976504_2 WHERE institution = "California Lutheran University"
What's the zodiac sing for the month abbreviated as มี.ค.?
CREATE TABLE table_180802_2 (zodiac_sign VARCHAR, abbr VARCHAR)
SELECT zodiac_sign FROM table_180802_2 WHERE abbr = "มี.ค."
Name the playoffs for 2nd round open cup
CREATE TABLE table_14240688_1 (playoffs VARCHAR, open_cup VARCHAR)
SELECT playoffs FROM table_14240688_1 WHERE open_cup = "2nd Round"
What is the total number of medals when the Bronze, Silver, and Gold medals are smaller than 1?
CREATE TABLE table_name_61 (total VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT COUNT(total) FROM table_name_61 WHERE bronze < 1 AND silver < 1 AND gold < 1
Who went on a rampage in Baghdad?
CREATE TABLE table_name_85 (perpetrator VARCHAR, location VARCHAR)
SELECT perpetrator FROM table_name_85 WHERE location = "baghdad"
Name the party of georgia 4
CREATE TABLE table_1341604_11 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1341604_11 WHERE district = "Georgia 4"
How many categories of Senate Seats does Emile Roemer have?
CREATE TABLE table_158282_1 (senate_seats VARCHAR, political_leader VARCHAR)
SELECT COUNT(senate_seats) FROM table_158282_1 WHERE political_leader = "Emile Roemer"
Which memeber has a first elected of 1972, alp as the party, vic as the state, and an electorate of gellibrand?
CREATE TABLE table_name_70 (member VARCHAR, electorate VARCHAR, state VARCHAR, first_elected VARCHAR, party VARCHAR)
SELECT member FROM table_name_70 WHERE first_elected = "1972" AND party = "alp" AND state = "vic" AND electorate = "gellibrand"
What is the second leg for Team 1 Servette?
CREATE TABLE table_name_54 (team_1 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_54 WHERE team_1 = "servette"
What is the average total of player Simon Donnelly, with a Scottish Cup greater than 0?
CREATE TABLE table_name_2 (total INTEGER, player VARCHAR, scottish_cup VARCHAR)
SELECT AVG(total) FROM table_name_2 WHERE player = "simon donnelly" AND scottish_cup > 0
How many blocks did tye'sha fluker have?
CREATE TABLE table_24856332_4 (blocks INTEGER, player VARCHAR)
SELECT MIN(blocks) FROM table_24856332_4 WHERE player = "Tye'sha Fluker"
If the points is 15, what is the fin. pos?
CREATE TABLE table_17330069_1 (fin_pos VARCHAR, points VARCHAR)
SELECT COUNT(fin_pos) FROM table_17330069_1 WHERE points = "15"
who held the fastes lap in Phoenix, Arizona?
CREATE TABLE table_2454550_1 (fastest_lap VARCHAR, location VARCHAR)
SELECT fastest_lap FROM table_2454550_1 WHERE location = "Phoenix, Arizona"
What is the Date of the tournament with a Score of 6-1 6-3?
CREATE TABLE table_name_22 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_22 WHERE score = "6-1 6-3"
What was the date for game 9?
CREATE TABLE table_20760407_1 (date VARCHAR, game VARCHAR)
SELECT date FROM table_20760407_1 WHERE game = 9
What state had william bigler (d) as a successor)
CREATE TABLE table_2417308_3 (state__class_ VARCHAR, successor VARCHAR)
SELECT state__class_ FROM table_2417308_3 WHERE successor = "William Bigler (D)"
Name the most kirdistan list for diyala
CREATE TABLE table_24440361_1 (total_kurdistan_list INTEGER, governorate VARCHAR)
SELECT MAX(total_kurdistan_list) FROM table_24440361_1 WHERE governorate = "Diyala"
What is the tax source system code related to the benefits and overpayments? List the code and the benifit id, order by benifit id.
CREATE TABLE CMI_Cross_References (source_system_code VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Benefits_Overpayments (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR)
SELECT T1.source_system_code, T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id ORDER BY T2.council_tax_id
Who owns the horse with a post position of less than 4 with jockey todd pletcher?
CREATE TABLE table_name_99 (owner VARCHAR, post_position VARCHAR, jockey VARCHAR)
SELECT owner FROM table_name_99 WHERE post_position < 4 AND jockey = "todd pletcher"
What is the Class for the ERP W of more than 2 and the call sign of w223au?
CREATE TABLE table_name_50 (class VARCHAR, erp_w VARCHAR, call_sign VARCHAR)
SELECT class FROM table_name_50 WHERE erp_w > 2 AND call_sign = "w223au"
What is the Birthdate of leon tuck?
CREATE TABLE table_name_29 (birthdate VARCHAR, name VARCHAR)
SELECT birthdate FROM table_name_29 WHERE name = "leon tuck"
What is the sum of the number of districts (kecamatan) in the geographical unit of java with more than 4 recencies (kabupaten) and less than 8,577 villages?
CREATE TABLE table_name_4 (number_of_districts__kecamatan_ INTEGER, villages VARCHAR, geographical_unit VARCHAR, number_of_regencies__kabupaten_ VARCHAR)
SELECT SUM(number_of_districts__kecamatan_) FROM table_name_4 WHERE geographical_unit = "java" AND number_of_regencies__kabupaten_ > 4 AND villages < 8 OFFSET 577
What region has a transmitter located at Mount Sugarloaf?
CREATE TABLE table_name_1 (region_served VARCHAR, transmitter_location VARCHAR)
SELECT region_served FROM table_name_1 WHERE transmitter_location = "mount sugarloaf"
Which opponent has an attendance of 40,560?
CREATE TABLE table_name_32 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_32 WHERE attendance = "40,560"
Tiger Woods has played less than 21 events and is what rank?
CREATE TABLE table_name_90 (rank VARCHAR, player VARCHAR, events VARCHAR)
SELECT COUNT(rank) FROM table_name_90 WHERE player = "tiger woods" AND events < 21
what is the to par for Dave hill?
CREATE TABLE table_name_52 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_52 WHERE player = "dave hill"
What date was the match on a hard surface with a score of 6–4, 2–6, 3–6?
CREATE TABLE table_name_83 (date VARCHAR, surface VARCHAR, score VARCHAR)
SELECT date FROM table_name_83 WHERE surface = "hard" AND score = "6–4, 2–6, 3–6"
What city had a rank before 3 and primary carrier JetBlue Airways?
CREATE TABLE table_name_78 (city VARCHAR, rank VARCHAR, carriers VARCHAR)
SELECT city FROM table_name_78 WHERE rank < 3 AND carriers = "jetblue airways"
Who were the children of Benjamin Harrison?
CREATE TABLE table_24143253_5 (children_together VARCHAR, name VARCHAR)
SELECT children_together FROM table_24143253_5 WHERE name = "Benjamin Harrison"
What conditions had both prolonged bleeding times and prolonged partial thromboplastin times
CREATE TABLE table_1099080_1 (condition VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR)
SELECT condition FROM table_1099080_1 WHERE partial_thromboplastin_time = "Prolonged" AND bleeding_time = "Prolonged"
What Viewers (m) has a Rating of 1.7, and an Episode of the game of life?
CREATE TABLE table_name_54 (viewers__m_ INTEGER, rating VARCHAR, episode VARCHAR)
SELECT MAX(viewers__m_) FROM table_name_54 WHERE rating = "1.7" AND episode = "the game of life"
Name the report for raymond sommer
CREATE TABLE table_name_66 (report VARCHAR, winning_driver VARCHAR)
SELECT report FROM table_name_66 WHERE winning_driver = "raymond sommer"
What are the meanings of the flag whose name transliterates to semërka?
CREATE TABLE table_29997112_3 (meaning VARCHAR, transliteration VARCHAR)
SELECT meaning FROM table_29997112_3 WHERE transliteration = "semërka"
What was the record after the game in which Rosales (1-1) took the loss?
CREATE TABLE table_name_95 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_95 WHERE loss = "rosales (1-1)"
What is the total number of Total, when To Par is "7"?
CREATE TABLE table_name_50 (total VARCHAR, to_par VARCHAR)
SELECT COUNT(total) FROM table_name_50 WHERE to_par = 7
Who is the constructor for driver alan jones using a chassis of fw06 fw07?
CREATE TABLE table_name_93 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_93 WHERE chassis = "fw06 fw07" AND driver = "alan jones"
Who was the Winner of the French Polynesia Billabong Pro Event?
CREATE TABLE table_name_29 (winner VARCHAR, event VARCHAR, country VARCHAR)
SELECT winner FROM table_name_29 WHERE event = "billabong pro" AND country = "french polynesia"
What subjunctive has the indicative of se måchan(t)?
CREATE TABLE table_name_77 (subjunctive VARCHAR, indicative VARCHAR)
SELECT subjunctive FROM table_name_77 WHERE indicative = "se måchan(t)"
What is the weekly rank of the episode with a 14 share whose original airdate was April 20, 2010?
CREATE TABLE table_25391981_20 (weekly_rank VARCHAR, share VARCHAR, original_airdate VARCHAR)
SELECT weekly_rank FROM table_25391981_20 WHERE share = "14" AND original_airdate = "April 20, 2010"
What is the result when the method was decision (unanimous), and Chris Wilson was the opponent?
CREATE TABLE table_name_43 (res VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_43 WHERE method = "decision (unanimous)" AND opponent = "chris wilson"
Where is Bluetongue Stadium located?
CREATE TABLE table_1301373_1 (location VARCHAR, stadium VARCHAR)
SELECT location FROM table_1301373_1 WHERE stadium = "Bluetongue stadium"
What is the recorded date of track 8?
CREATE TABLE table_name_73 (recorded VARCHAR, track VARCHAR)
SELECT recorded FROM table_name_73 WHERE track = 8
When the face value is 42¢, what was the issue's date?
CREATE TABLE table_15635768_1 (date_of_issue VARCHAR, face_value VARCHAR)
SELECT date_of_issue FROM table_15635768_1 WHERE face_value = "42¢"
What was the bleeding time for factor xii deficiency
CREATE TABLE table_1099080_1 (bleeding_time VARCHAR, condition VARCHAR)
SELECT bleeding_time FROM table_1099080_1 WHERE condition = "Factor XII deficiency"
WHAT IS THE HOME TEAM ON APRIL 25?
CREATE TABLE table_name_52 (home_team VARCHAR, date VARCHAR)
SELECT home_team FROM table_name_52 WHERE date = "april 25"
Which FA Cup goals have a League goals of 18, and a Club of sheffield united?
CREATE TABLE table_name_20 (fa_cup_goals INTEGER, league_goals VARCHAR, club VARCHAR)
SELECT MAX(fa_cup_goals) FROM table_name_20 WHERE league_goals = "18" AND club = "sheffield united"
Name The Ground on 18 january 1998?
CREATE TABLE table_name_25 (ground VARCHAR, date VARCHAR)
SELECT ground FROM table_name_25 WHERE date = "18 january 1998"
In how many rounds did USC participate in?
CREATE TABLE table_name_72 (round VARCHAR, college VARCHAR)
SELECT COUNT(round) FROM table_name_72 WHERE college = "usc"
Which Location has an Enrollment larger than 543?
CREATE TABLE table_name_62 (location VARCHAR, enrollment INTEGER)
SELECT location FROM table_name_62 WHERE enrollment > 543
What is the license for Jriver Media Center?
CREATE TABLE table_name_91 (license VARCHAR, name VARCHAR)
SELECT license FROM table_name_91 WHERE name = "jriver media center"
What is Choreographer(s), when Chosen is Mary Murphy, and when Style is Contemporary?
CREATE TABLE table_name_36 (choreographer_s_ VARCHAR, chosen_by VARCHAR, style VARCHAR)
SELECT choreographer_s_ FROM table_name_36 WHERE chosen_by = "mary murphy" AND style = "contemporary"
What was the score for game number 30?
CREATE TABLE table_name_71 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_71 WHERE game = 30
What is the Director of Children of Sarajevo?
CREATE TABLE table_name_39 (director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT director FROM table_name_39 WHERE film_title_used_in_nomination = "children of sarajevo"
what's the thursday iuppiter (jupiter) with friday venus (venus) being vendredi
CREATE TABLE table_1277350_1 (thursday_iuppiter__jupiter_ VARCHAR, friday_venus__venus_ VARCHAR)
SELECT thursday_iuppiter__jupiter_ FROM table_1277350_1 WHERE friday_venus__venus_ = "vendredi"
For what year is the SAR no. 874?
CREATE TABLE table_29753553_1 (year VARCHAR, sar_no VARCHAR)
SELECT year FROM table_29753553_1 WHERE sar_no = 874
What is Country, when Year(s) Won is "1962"?
CREATE TABLE table_name_78 (country VARCHAR, year_s__won VARCHAR)
SELECT country FROM table_name_78 WHERE year_s__won = "1962"
What day was wayne brady performer 2, ryan stiles performer 4, and an episode number greater than 5?
CREATE TABLE table_name_78 (date VARCHAR, performer_2 VARCHAR, performer_4 VARCHAR, episode VARCHAR)
SELECT date FROM table_name_78 WHERE performer_4 = "ryan stiles" AND episode > 5 AND performer_2 = "wayne brady"
What's the number of the 1.0.9 release version?
CREATE TABLE table_28540539_2 (version VARCHAR, release VARCHAR)
SELECT COUNT(version) FROM table_28540539_2 WHERE release = "1.0.9"
What bridge in Sheridan county was built in 1915?
CREATE TABLE table_name_30 (name VARCHAR, county VARCHAR, built VARCHAR)
SELECT name FROM table_name_30 WHERE county = "sheridan" AND built = "1915"
How many sources are there for south africa?
CREATE TABLE table_29487895_2 (source_s_ VARCHAR, country___region VARCHAR)
SELECT COUNT(source_s_) FROM table_29487895_2 WHERE country___region = "South Africa"
Which address has both members younger than 30 and members older than 40?
CREATE TABLE member (address VARCHAR, age INTEGER)
SELECT address FROM member WHERE age < 30 INTERSECT SELECT address FROM member WHERE age > 40
What was Robin's score when she was eliminated?
CREATE TABLE table_21234111_10 (robin VARCHAR, result VARCHAR)
SELECT robin FROM table_21234111_10 WHERE result = "Eliminated"
What was the location of the game with a score of 113-106?
CREATE TABLE table_name_13 (location_attendance VARCHAR, score VARCHAR)
SELECT location_attendance FROM table_name_13 WHERE score = "113-106"
How many years were they nominated for outstanding musical?
CREATE TABLE table_name_93 (year VARCHAR, nominee VARCHAR)
SELECT COUNT(year) FROM table_name_93 WHERE nominee = "outstanding musical"
What is the final number of apps with 2 goals?
CREATE TABLE table_name_90 (apps VARCHAR, goals VARCHAR)
SELECT COUNT(apps) FROM table_name_90 WHERE goals = 2
what's the race name with date being september 7
CREATE TABLE table_14638077_2 (race_name VARCHAR, date VARCHAR)
SELECT race_name FROM table_14638077_2 WHERE date = "September 7"
Tell me the left team for josh vanlandingham
CREATE TABLE table_name_60 (left_team VARCHAR, name VARCHAR)
SELECT left_team FROM table_name_60 WHERE name = "josh vanlandingham"
What is the highest numbered grid with a time or retired time of 52:52.1881?
CREATE TABLE table_name_91 (grid INTEGER, time_retired VARCHAR)
SELECT MAX(grid) FROM table_name_91 WHERE time_retired = "52:52.1881"
Find the name of customers who are living in Colorado?
CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE addresses (address_id VARCHAR, state_province_county VARCHAR)
SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = "Colorado"
What country was the player in t10 place with a score of 66-72-70=207?
CREATE TABLE table_name_12 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT country FROM table_name_12 WHERE place = "t10" AND score = 66 - 72 - 70 = 207
How many for percentages are there when the against percentage is 35,782 (69)?
CREATE TABLE table_1289762_1 (for___percentage_ VARCHAR, against___percentage_ VARCHAR)
SELECT for___percentage_ FROM table_1289762_1 WHERE against___percentage_ = "35,782 (69)"
What is the 2007-08 season at Stadio Silvio Piola?
CREATE TABLE table_name_75 (stadium VARCHAR)
SELECT 2007 AS _08_season FROM table_name_75 WHERE stadium = "stadio silvio piola"
What is the stolen ends against for a bank ends f/a of 4/7, and a country of china?
CREATE TABLE table_name_36 (stolen_ends_against VARCHAR, blank_ends_f_a VARCHAR, country VARCHAR)
SELECT stolen_ends_against FROM table_name_36 WHERE blank_ends_f_a = "4/7" AND country = "china"
Name the total number for mens single for 2002/2003
CREATE TABLE table_12193259_1 (mens_singles VARCHAR, season VARCHAR)
SELECT COUNT(mens_singles) FROM table_12193259_1 WHERE season = "2002/2003"
What was the attendance on August 8?
CREATE TABLE table_name_47 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_47 WHERE date = "august 8"
Which race was Matra the constructor?
CREATE TABLE table_name_90 (race_name VARCHAR, constructor VARCHAR)
SELECT race_name FROM table_name_90 WHERE constructor = "matra"
Which wins have less than 1 bye?
CREATE TABLE table_name_29 (wins INTEGER, byes INTEGER)
SELECT MAX(wins) FROM table_name_29 WHERE byes < 1
What was the Jets week 17 attendance?
CREATE TABLE table_name_21 (attendance VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_21 WHERE week = 17
What is every value for TDP if model is x53xx?
CREATE TABLE table_2467150_2 (tdp VARCHAR, model__list_ VARCHAR)
SELECT tdp FROM table_2467150_2 WHERE model__list_ = "X53xx"
What is the protein name when the e-value is 2.50e-41?
CREATE TABLE table_26708105_5 (protein_name VARCHAR, e_value VARCHAR)
SELECT protein_name FROM table_26708105_5 WHERE e_value = "2.50E-41"
what is the sweet for voice actor saki fujita?
CREATE TABLE table_26615633_3 (sweet VARCHAR, voice_actor VARCHAR)
SELECT sweet FROM table_26615633_3 WHERE voice_actor = "Saki Fujita"
Name the championship for hard surface 7–5, 6–4
CREATE TABLE table_24638867_6 (championship VARCHAR, score VARCHAR, surface VARCHAR)
SELECT championship FROM table_24638867_6 WHERE score = "7–5, 6–4" AND surface = "Hard"
Who was the draft pick for Kansas City Chiefs?
CREATE TABLE table_2508633_9 (player VARCHAR, nfl_team VARCHAR)
SELECT player FROM table_2508633_9 WHERE nfl_team = "Kansas City Chiefs"
What is the smallest total that has under 3 golds, more than 0 silvers and bronzes?
CREATE TABLE table_name_36 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT MIN(total) FROM table_name_36 WHERE gold < 3 AND bronze > 0 AND silver > 0
What was Collingwood's score when they played against North Melbourne at home?
CREATE TABLE table_name_12 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_12 WHERE away_team = "north melbourne"
How many clubs have total medals less than 10?
CREATE TABLE club_rank (Total INTEGER)
SELECT COUNT(*) FROM club_rank WHERE Total < 10