question
stringlengths
17
201
answer
stringlengths
21
400
context
stringlengths
32
286
Which task had Cathy as the hand grenade user?
SELECT task_no FROM table_name_98 WHERE hand_grenade_user = "cathy"
CREATE TABLE table_name_98 (task_no VARCHAR, hand_grenade_user VARCHAR)
Show publishers with a book published in 1989 and a book in 1990.
SELECT publisher FROM book_club WHERE YEAR = 1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR = 1990
CREATE TABLE book_club (publisher VARCHAR, YEAR VARCHAR)
What are all the positions for the rockets in 2008?
SELECT position FROM table_11734041_7 WHERE years_for_rockets = "2008"
CREATE TABLE table_11734041_7 (position VARCHAR, years_for_rockets VARCHAR)
Which city has an ICAO of Oejn?
SELECT city FROM table_name_61 WHERE icao = "oejn"
CREATE TABLE table_name_61 (city VARCHAR, icao VARCHAR)
Who directed the episode that was viewed by 2.57 million people in the U.S.?
SELECT directed_by FROM table_11820086_1 WHERE us_viewers__millions_ = "2.57"
CREATE TABLE table_11820086_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
What date was the game against manchester city when they had a league position of 2nd?
SELECT date FROM table_name_22 WHERE h___a = "a" AND league_position = "2nd" AND opponents = "manchester city"
CREATE TABLE table_name_22 (date VARCHAR, opponents VARCHAR, h___a VARCHAR, league_position VARCHAR)
What is the Story Title that has Albers as the Letterer?
SELECT story_title FROM table_name_60 WHERE letterer_s = "albers"
CREATE TABLE table_name_60 (story_title VARCHAR, letterer_s VARCHAR)
Who was the 3rd place team at Pardubice?
SELECT 3 AS rd_place FROM table_name_41 WHERE venue = "pardubice"
CREATE TABLE table_name_41 (venue VARCHAR)
What is the station that is transmitted at 20 kw and has a frequency of 48 uhf?
SELECT television_station FROM table_1601792_4 WHERE transmitted = "20 kW" AND frequency = "48 UHF"
CREATE TABLE table_1601792_4 (television_station VARCHAR, transmitted VARCHAR, frequency VARCHAR)
For score 7–6 (7–3) , 6–4 please mention total number of outcome
SELECT COUNT(outcome) FROM table_27877656_7 WHERE score = "7–6 (7–3) , 6–4"
CREATE TABLE table_27877656_7 (outcome VARCHAR, score VARCHAR)
What is the top grid that roger williamson lapped less than 7?
SELECT MAX(grid) FROM table_name_73 WHERE driver = "roger williamson" AND laps < 7
CREATE TABLE table_name_73 (grid INTEGER, driver VARCHAR, laps VARCHAR)
Which Opposition has a Year smaller than 1911, and a Venue of old trafford?
SELECT opposition FROM table_name_51 WHERE year < 1911 AND venue = "old trafford"
CREATE TABLE table_name_51 (opposition VARCHAR, year VARCHAR, venue VARCHAR)
What was the conference record in the season where the Pandas had an overall record of 33-4-1?
SELECT conf_record FROM table_27069503_2 WHERE overall = "33-4-1"
CREATE TABLE table_27069503_2 (conf_record VARCHAR, overall VARCHAR)
What is the average drawn of the team with a difference of 4 and more than 13 losses?
SELECT AVG(drawn) FROM table_name_30 WHERE difference = "4" AND lost > 13
CREATE TABLE table_name_30 (drawn INTEGER, difference VARCHAR, lost VARCHAR)
Which player had a total of 152?
SELECT player FROM table_name_60 WHERE total = "152"
CREATE TABLE table_name_60 (player VARCHAR, total VARCHAR)
Which lap number had Olivier Panis as a driver?
SELECT laps FROM table_name_98 WHERE driver = "olivier panis"
CREATE TABLE table_name_98 (laps VARCHAR, driver VARCHAR)
Name the years with authority of state and decile more than 6 with roll less than 33
SELECT years FROM table_name_40 WHERE authority = "state" AND decile > 6 AND roll < 33
CREATE TABLE table_name_40 (years VARCHAR, roll VARCHAR, authority VARCHAR, decile VARCHAR)
Which Kickoff (ET) has a Result of w 34–23?
SELECT kickoff__et_ FROM table_name_67 WHERE result = "w 34–23"
CREATE TABLE table_name_67 (kickoff__et_ VARCHAR, result VARCHAR)
Which faith has a name of Belswains?
SELECT faith FROM table_name_40 WHERE name = "belswains"
CREATE TABLE table_name_40 (faith VARCHAR, name VARCHAR)
What is the displacement of the engine that has a Redline rpm higher than 4750, from 2005?
SELECT displacement FROM table_name_29 WHERE redline__rpm_ > 4750 AND year = 2005
CREATE TABLE table_name_29 (displacement VARCHAR, redline__rpm_ VARCHAR, year VARCHAR)
Which Number has a Name of cooper, c. kenneth, and a Year End larger than 1984?
SELECT AVG(number) FROM table_name_90 WHERE name = "cooper, c. kenneth" AND year_end > 1984
CREATE TABLE table_name_90 (number INTEGER, name VARCHAR, year_end VARCHAR)
Which visitor has a Los Angeles home?
SELECT visitor FROM table_name_20 WHERE home = "los angeles"
CREATE TABLE table_name_20 (visitor VARCHAR, home VARCHAR)
What is set 3 on week 6?
SELECT set_3 FROM table_name_1 WHERE week = 6
CREATE TABLE table_name_1 (set_3 VARCHAR, week VARCHAR)
What is the Kana of the Province with a Korean name of Chungcheong-Namdo?
SELECT kana FROM table_name_2 WHERE korean_name = "chungcheong-namdo"
CREATE TABLE table_name_2 (kana VARCHAR, korean_name VARCHAR)
Which tournament had a final score of 6–3, 6–2?
SELECT tournament FROM table_name_65 WHERE score_in_the_final = "6–3, 6–2"
CREATE TABLE table_name_65 (tournament VARCHAR, score_in_the_final VARCHAR)
What was the highest election with third party member Sir Robert Price, BT, and first party member conservative?
SELECT MAX(election) FROM table_name_97 WHERE third_member = "sir robert price, bt" AND first_party = "conservative"
CREATE TABLE table_name_97 (election INTEGER, third_member VARCHAR, first_party VARCHAR)
What Time elapsed has 14 February 2011 as the Closest approach?
SELECT time_elapsed FROM table_name_11 WHERE closest_approach = "14 february 2011"
CREATE TABLE table_name_11 (time_elapsed VARCHAR, closest_approach VARCHAR)
What's the 2nd leg for team 2 san francisco?
SELECT 2 AS nd_leg FROM table_name_62 WHERE team_2 = "san francisco"
CREATE TABLE table_name_62 (team_2 VARCHAR)
What is the minimum snatch score?
SELECT MIN(snatch) FROM body_builder
CREATE TABLE body_builder (snatch INTEGER)
How big was the crowd of the Home team of Collingwood?
SELECT MAX(crowd) FROM table_name_92 WHERE home_team = "collingwood"
CREATE TABLE table_name_92 (crowd INTEGER, home_team VARCHAR)
Name the least ends won for pf being 78
SELECT MIN(Ends) AS won FROM table_25107064_2 WHERE pf = 78
CREATE TABLE table_25107064_2 (Ends INTEGER, pf VARCHAR)
Which aggregate has ajax as the club?
SELECT aggregate FROM table_name_49 WHERE club = "ajax"
CREATE TABLE table_name_49 (aggregate VARCHAR, club VARCHAR)
What is Director Erik Matti's Producer?
SELECT producer FROM table_name_57 WHERE director = "erik matti"
CREATE TABLE table_name_57 (producer VARCHAR, director VARCHAR)
What district has a constituency of 60?
SELECT district FROM table_name_27 WHERE constituency_number = "60"
CREATE TABLE table_name_27 (district VARCHAR, constituency_number VARCHAR)
What is the lowest overall amount of no votes?
SELECT MIN(no_votes) FROM table_256286_13
CREATE TABLE table_256286_13 (no_votes INTEGER)
What is the quarterfinal week for Austin Anderson?
SELECT MIN(qtr_final__week_) FROM table_27529608_21 WHERE name_name_of_act = "Austin Anderson"
CREATE TABLE table_27529608_21 (qtr_final__week_ INTEGER, name_name_of_act VARCHAR)
What is the country of player ian woosnam?
SELECT country FROM table_name_93 WHERE player = "ian woosnam"
CREATE TABLE table_name_93 (country VARCHAR, player VARCHAR)
Where the mantra is "oṃ yaṃ vāyuve namaḥ", what is the direction of the guardian?
SELECT direction FROM table_100518_1 WHERE mantra = "Oṃ Yaṃ Vāyuve Namaḥ"
CREATE TABLE table_100518_1 (direction VARCHAR, mantra VARCHAR)
Team 1, Everton, has what as a 1st leg?
SELECT 1 AS st_leg FROM table_name_6 WHERE team_1 = "everton"
CREATE TABLE table_name_6 (team_1 VARCHAR)
When was the ship that had a fate of 'converted to laker, 1961; still in service' commissioned?
SELECT commissioned FROM table_name_14 WHERE fate = "converted to laker, 1961; still in service"
CREATE TABLE table_name_14 (commissioned VARCHAR, fate VARCHAR)
what's the race winner with location being jacarepaguá
SELECT race AS Winner FROM table_1140074_2 WHERE location = "Jacarepaguá"
CREATE TABLE table_1140074_2 (race VARCHAR, location VARCHAR)
On average, what is the number of silver medals for nations ranking higher than 7, with a total of 6 medals and fewer than 2 bronze medals?
SELECT AVG(silver) FROM table_name_38 WHERE rank > 7 AND total = 6 AND bronze < 2
CREATE TABLE table_name_38 (silver INTEGER, bronze VARCHAR, rank VARCHAR, total VARCHAR)
What was Stacy Compton's position?
SELECT pos FROM table_name_31 WHERE driver = "stacy compton"
CREATE TABLE table_name_31 (pos VARCHAR, driver VARCHAR)
What's the platform that has Rockstar Games as the developer?
SELECT platform_s_ FROM table_name_33 WHERE developer_s_ = "rockstar games"
CREATE TABLE table_name_33 (platform_s_ VARCHAR, developer_s_ VARCHAR)
What is the total share of transactions?
SELECT SUM(share_count) FROM TRANSACTIONS
CREATE TABLE TRANSACTIONS (share_count INTEGER)
What's the nationality of Louisiana Tech?
SELECT nationality FROM table_name_10 WHERE college = "louisiana tech"
CREATE TABLE table_name_10 (nationality VARCHAR, college VARCHAR)
How many field goals did duncan thompson have?
SELECT field_goals FROM table_name_8 WHERE player = "duncan thompson"
CREATE TABLE table_name_8 (field_goals VARCHAR, player VARCHAR)
What is the highest total number of medals for a team ranked smaller than 1 and had 20 gold medals?
SELECT MAX(total) FROM table_name_40 WHERE gold = 20 AND rank < 1
CREATE TABLE table_name_40 (total INTEGER, gold VARCHAR, rank VARCHAR)
What is the rank for less than 6 plays?
SELECT SUM(rank) FROM table_name_47 WHERE played < 6
CREATE TABLE table_name_47 (rank INTEGER, played INTEGER)
Who was picked for the draft by St. Louis Blues?
SELECT player FROM table_2886617_9 WHERE nhl_team = "St. Louis Blues"
CREATE TABLE table_2886617_9 (player VARCHAR, nhl_team VARCHAR)
Can you tell me the average Attendance that has the Scorers of steven, johnston, walters, mccoist, i.ferguson?
SELECT AVG(attendance) FROM table_name_10 WHERE scorers = "steven, johnston, walters, mccoist, i.ferguson"
CREATE TABLE table_name_10 (attendance INTEGER, scorers VARCHAR)
List the file size and format for all songs that have resolution lower than 800.
SELECT DISTINCT T1.file_size, T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800
CREATE TABLE song (f_id VARCHAR, resolution INTEGER); CREATE TABLE files (file_size VARCHAR, formats VARCHAR, f_id VARCHAR)
What is the least number of laps for the constructor Ferrari and where the grid number was less than 4?
SELECT MIN(laps) FROM table_name_64 WHERE constructor = "ferrari" AND grid < 4
CREATE TABLE table_name_64 (laps INTEGER, constructor VARCHAR, grid VARCHAR)
How many skaters have a Rank in FS of 3, and a Rank in SP larger than 4?
SELECT COUNT(final_rank) FROM table_name_37 WHERE rank_in_fs = 3 AND rank_in_sp > 4
CREATE TABLE table_name_37 (final_rank VARCHAR, rank_in_fs VARCHAR, rank_in_sp VARCHAR)
How many wins does he get when he starts at 10?
SELECT wins FROM table_2169966_1 WHERE starts = 10
CREATE TABLE table_2169966_1 (wins VARCHAR, starts VARCHAR)
Name the Trofeo Fast team for roberto visentini
SELECT trofeo_fast_team FROM table_name_58 WHERE winner = "roberto visentini"
CREATE TABLE table_name_58 (trofeo_fast_team VARCHAR, winner VARCHAR)
Who many dates are in position 9 and the sellout is 81%?
SELECT COUNT(dates__mdy_) FROM table_16331025_2 WHERE position = 9 AND sellout___percentage_ = "81%"
CREATE TABLE table_16331025_2 (dates__mdy_ VARCHAR, position VARCHAR, sellout___percentage_ VARCHAR)
For which tournaments was the score 135 (-7)?
SELECT tournament FROM table_11622829_1 WHERE score = "135 (-7)"
CREATE TABLE table_11622829_1 (tournament VARCHAR, score VARCHAR)
Name the opponent for december 8
SELECT opponent FROM table_17924362_1 WHERE date = "December 8"
CREATE TABLE table_17924362_1 (opponent VARCHAR, date VARCHAR)
What is the sum of Rank that when the Singapore Cup is 0 (1), and the Name is masrezwan masturi?
SELECT SUM(rank) FROM table_name_80 WHERE singapore_cup = "0 (1)" AND name = "masrezwan masturi"
CREATE TABLE table_name_80 (rank INTEGER, singapore_cup VARCHAR, name VARCHAR)
What date was the location attendance at&t center 18,797, and a game earlier than 57?
SELECT date FROM table_name_24 WHERE location_attendance = "at&t center 18,797" AND game < 57
CREATE TABLE table_name_24 (date VARCHAR, location_attendance VARCHAR, game VARCHAR)
What is the lowest number of seats from the election with 27.0% of votes?
SELECT MIN(seats) FROM table_name_55 WHERE share_of_votes = "27.0%"
CREATE TABLE table_name_55 (seats INTEGER, share_of_votes VARCHAR)
What date did the Colts play New York Jets?
SELECT date FROM table_14945608_1 WHERE opponent = "New York Jets"
CREATE TABLE table_14945608_1 (date VARCHAR, opponent VARCHAR)
What is the name of the customer that made the order with the largest quantity?
SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = (SELECT MAX(order_quantity) FROM order_items)
CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE order_items (order_quantity INTEGER); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)
What was the Winning score for the Mynavi ABC Championship Tournament?
SELECT winning_score FROM table_name_55 WHERE tournament = "mynavi abc championship"
CREATE TABLE table_name_55 (winning_score VARCHAR, tournament VARCHAR)
What RolePlay actor played the same role Alison Pargeter played in the original production?
SELECT roleplay FROM table_17827271_1 WHERE actor_in_original_production = "Alison Pargeter"
CREATE TABLE table_17827271_1 (roleplay VARCHAR, actor_in_original_production VARCHAR)
What date was the ship 'Wyandotte' launched?
SELECT launched FROM table_name_45 WHERE ship = "wyandotte"
CREATE TABLE table_name_45 (launched VARCHAR, ship VARCHAR)
Who is the Constructor for round 5?
SELECT constructor FROM table_name_58 WHERE rounds = "5"
CREATE TABLE table_name_58 (constructor VARCHAR, rounds VARCHAR)
What is the series # on airdate September 21, 2002?
SELECT series__number FROM table_2655016_9 WHERE original_air_date = "September 21, 2002"
CREATE TABLE table_2655016_9 (series__number VARCHAR, original_air_date VARCHAR)
Where was the fight that lasted 3 rounds and was won or loss by a decision?
SELECT location FROM table_name_65 WHERE round = 3 AND method = "decision"
CREATE TABLE table_name_65 (location VARCHAR, round VARCHAR, method VARCHAR)
Which home team had a visitor of Chicago Black Hawks with a score of 2–3?
SELECT home FROM table_name_87 WHERE visitor = "chicago black hawks" AND score = "2–3"
CREATE TABLE table_name_87 (home VARCHAR, visitor VARCHAR, score VARCHAR)
When itogon, benguet is the city/municipality and 1st class is the income classification how many measurements of population in 2010?
SELECT COUNT(population__2010_) FROM table_29289372_1 WHERE income_classification = "1st Class" AND city_municipality = "Itogon, Benguet"
CREATE TABLE table_29289372_1 (population__2010_ VARCHAR, income_classification VARCHAR, city_municipality VARCHAR)
Which Name has a Height (m) of 2980?
SELECT name FROM table_name_63 WHERE height__m_ = 2980
CREATE TABLE table_name_63 (name VARCHAR, height__m_ VARCHAR)
How many no outs are there for an average of 43.70?
SELECT not_out FROM table_20367820_16 WHERE average = "43.70"
CREATE TABLE table_20367820_16 (not_out VARCHAR, average VARCHAR)
What's the location when the opponent was Lyoto Machida?
SELECT location FROM table_name_15 WHERE opponent = "lyoto machida"
CREATE TABLE table_name_15 (location VARCHAR, opponent VARCHAR)
The wildcats belong to what school?
SELECT school FROM table_name_38 WHERE team = "wildcats"
CREATE TABLE table_name_38 (school VARCHAR, team VARCHAR)
Which 2012 has a 2009 smaller than 3.38?
SELECT AVG(2012) FROM table_name_33 WHERE 2009 < 3.38
CREATE TABLE table_name_33 (Id VARCHAR)
what is the highest % hydropower when the % oil is less than 24.5, country is united arab emirates and the % nuclear power is 0?
SELECT MAX(_percentage_hydropower) FROM table_name_80 WHERE _percentage_oil < 24.5 AND country = "united arab emirates" AND _percentage_nuclear_power < 0
CREATE TABLE table_name_80 (_percentage_hydropower INTEGER, _percentage_nuclear_power VARCHAR, _percentage_oil VARCHAR, country VARCHAR)
What is the total react number with a time less than 20.05 and a lane less than 6?
SELECT COUNT(react) FROM table_name_53 WHERE time < 20.05 AND lane < 6
CREATE TABLE table_name_53 (react VARCHAR, time VARCHAR, lane VARCHAR)
what's the acronym with department being department of finance kagawaran ng pananalapi
SELECT acronym FROM table_1331313_1 WHERE department = "department of Finance Kagawaran ng Pananalapi"
CREATE TABLE table_1331313_1 (acronym VARCHAR, department VARCHAR)
Which Points have a Club of cf calvo sotelo, and a Goal Difference larger than -3?
SELECT MAX(points) FROM table_name_9 WHERE club = "cf calvo sotelo" AND goal_difference > -3
CREATE TABLE table_name_9 (points INTEGER, club VARCHAR, goal_difference VARCHAR)
What is the brand in Metro Manila?
SELECT branding FROM table_19215259_1 WHERE location = "Metro Manila"
CREATE TABLE table_19215259_1 (branding VARCHAR, location VARCHAR)
What is the score for game 38?
SELECT score FROM table_name_1 WHERE game = 38
CREATE TABLE table_name_1 (score VARCHAR, game VARCHAR)
what is the mascot when the school is warsaw?
SELECT mascot FROM table_name_25 WHERE school = "warsaw"
CREATE TABLE table_name_25 (mascot VARCHAR, school VARCHAR)
What was the loss of the game when the record was 32–34?
SELECT loss FROM table_name_52 WHERE record = "32–34"
CREATE TABLE table_name_52 (loss VARCHAR, record VARCHAR)
Which committees have delegates from both democratic party and liberal party?
SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Liberal"
CREATE TABLE election (Committee VARCHAR, Party VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Party VARCHAR)
How many different total points does the couple ranked at number 5 have?
SELECT COUNT(total) FROM table_19744915_22 WHERE rank = 5
CREATE TABLE table_19744915_22 (total VARCHAR, rank VARCHAR)
How long in miles (km) was the race that lasted 3:07:53?
SELECT miles__km_ FROM table_2266976_1 WHERE race_time = "3:07:53"
CREATE TABLE table_2266976_1 (miles__km_ VARCHAR, race_time VARCHAR)
What were the winnings for the score of 66-64-67-71=268?
SELECT winnings__$_ FROM table_28498999_4 WHERE score = 66 - 64 - 67 - 71 = 268
CREATE TABLE table_28498999_4 (winnings__$_ VARCHAR, score VARCHAR)
List the number of locations for the team known as the billikens.
SELECT COUNT(location) FROM table_2419754_1 WHERE nickname = "Billikens"
CREATE TABLE table_2419754_1 (location VARCHAR, nickname VARCHAR)
How long was the great manchester run?
SELECT distance FROM table_26166836_1 WHERE road_race = "Great Manchester Run"
CREATE TABLE table_26166836_1 (distance VARCHAR, road_race VARCHAR)
How many entries are there for class when the prior experience is shasta h.s.
SELECT COUNT(class) FROM table_14342210_13 WHERE prior_experience = "Shasta H.S."
CREATE TABLE table_14342210_13 (class VARCHAR, prior_experience VARCHAR)
What was the final score for the Thurrock?
SELECT score1 FROM table_name_99 WHERE opponent = "thurrock"
CREATE TABLE table_name_99 (score1 VARCHAR, opponent VARCHAR)
What place did Jerry Barber of the United States come in at?
SELECT place FROM table_name_92 WHERE country = "united states" AND player = "jerry barber"
CREATE TABLE table_name_92 (place VARCHAR, country VARCHAR, player VARCHAR)
How many codes have a density of 621.68, and a Land area (hectares) larger than 75.28?
SELECT SUM(code) FROM table_name_24 WHERE density__inh_km²_ = 621.68 AND land_area__hectares_ > 75.28
CREATE TABLE table_name_24 (code INTEGER, density__inh_km²_ VARCHAR, land_area__hectares_ VARCHAR)
How may draws did libertad have?
SELECT COUNT(draws) FROM table_14889048_2 WHERE team = "Libertad"
CREATE TABLE table_14889048_2 (draws VARCHAR, team VARCHAR)
What is the decile of the school with a roll larger than 513?
SELECT SUM(decile) FROM table_name_36 WHERE roll > 513
CREATE TABLE table_name_36 (decile INTEGER, roll INTEGER)
What is the name of the tournament played 13 November 2000?
SELECT tournament FROM table_name_35 WHERE date = "13 november 2000"
CREATE TABLE table_name_35 (tournament VARCHAR, date VARCHAR)
Which FCC info has a ERP W smaller than 222, and a Call sign of k297ai?
SELECT fcc_info FROM table_name_35 WHERE erp_w < 222 AND call_sign = "k297ai"
CREATE TABLE table_name_35 (fcc_info VARCHAR, erp_w VARCHAR, call_sign VARCHAR)
What is the host year of city "Taizhou ( Zhejiang )"?
SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T1.city = "Taizhou ( Zhejiang )"
CREATE TABLE city (city_id VARCHAR, city VARCHAR); CREATE TABLE hosting_city (year VARCHAR, host_city VARCHAR)