question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the original air date for production code 1ark79?
CREATE TABLE table_22835602_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_22835602_1 WHERE production_code = "1ARK79"
Name the date for zi yan jie zheng opponent
CREATE TABLE table_name_64 (date VARCHAR, opponents VARCHAR)
SELECT date FROM table_name_64 WHERE opponents = "zi yan jie zheng"
What is the total with a rank less than 5, gold larger than 5 and bronze larger than 8?
CREATE TABLE table_name_89 (total INTEGER, bronze VARCHAR, rank VARCHAR, gold VARCHAR)
SELECT SUM(total) FROM table_name_89 WHERE rank < 5 AND gold > 5 AND bronze > 8
How many total interview subjects wererthere when the centerfold model was Tamara Witmer?
CREATE TABLE table_1566852_6 (interview_subject VARCHAR, centerfold_model VARCHAR)
SELECT COUNT(interview_subject) FROM table_1566852_6 WHERE centerfold_model = "Tamara Witmer"
Name the womens doubles when mens doubles is charalambos kazilas stepan partemian
CREATE TABLE table_14903881_1 (womens_doubles VARCHAR, mens_doubles VARCHAR)
SELECT womens_doubles FROM table_14903881_1 WHERE mens_doubles = "Charalambos Kazilas Stepan Partemian"
What is the founding date if the letters are κψκ?
CREATE TABLE table_2538117_7 (founding_date VARCHAR, letters VARCHAR)
SELECT founding_date FROM table_2538117_7 WHERE letters = "ΚΨΚ"
Who's the Socialist ticket with a Socialist Labor ticket of charles m. carlson?
CREATE TABLE table_name_89 (socialist_ticket VARCHAR, socialist_labor_ticket VARCHAR)
SELECT socialist_ticket FROM table_name_89 WHERE socialist_labor_ticket = "charles m. carlson"
what is the title when the rank is less than 17 and the worldwide gross is $299,288,605?
CREATE TABLE table_name_11 (title VARCHAR, rank VARCHAR, worldwide_gross VARCHAR)
SELECT title FROM table_name_11 WHERE rank < 17 AND worldwide_gross = "$299,288,605"
Who was the home team when the record was 21–45–8–5?
CREATE TABLE table_name_56 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_56 WHERE record = "21–45–8–5"
When 20' 58.50 107.929mph is Friday August 27th What is Tuesday 24th August?
CREATE TABLE table_26986076_5 (tues_24_aug VARCHAR, fri_27_aug VARCHAR)
SELECT tues_24_aug FROM table_26986076_5 WHERE fri_27_aug = "20' 58.50 107.929mph"
What country is the Jiufotang Formation located in?
CREATE TABLE table_name_59 (location VARCHAR, unit VARCHAR)
SELECT location FROM table_name_59 WHERE unit = "jiufotang formation"
What is the displacement for the model 1400?
CREATE TABLE table_name_88 (displacement VARCHAR, model VARCHAR)
SELECT displacement FROM table_name_88 WHERE model = "1400"
What is Winner, when Location is Connie Mack Stadium, and when Year is 1946?
CREATE TABLE table_name_98 (winner VARCHAR, location VARCHAR, year VARCHAR)
SELECT winner FROM table_name_98 WHERE location = "connie mack stadium" AND year = 1946
what is the built when s.r. number is less than 2033, lb&sc number is less than 18, notes is i2 and withdrawal is cannot handle non-empty timestamp argument! 1935?
CREATE TABLE table_name_48 (built VARCHAR, withdrawal VARCHAR, notes VARCHAR, sr_number VARCHAR, lb VARCHAR, sc_number VARCHAR)
SELECT built FROM table_name_48 WHERE sr_number < 2033 AND lb & sc_number < 18 AND notes = "i2" AND withdrawal = "cannot handle non-empty timestamp argument! 1935"
How many heavy attacks did the 450 Luftflotte 2 conduct?
CREATE TABLE table_name_29 (heavy_attacks VARCHAR, luftflotte_2_sorties VARCHAR)
SELECT COUNT(heavy_attacks) FROM table_name_29 WHERE luftflotte_2_sorties = 450
When was the result 0–3?
CREATE TABLE table_name_48 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_48 WHERE result = "0–3"
Who was the opponent of the match on 2006-04-08?
CREATE TABLE table_name_47 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_47 WHERE date = "2006-04-08"
What was the location and where did the team play game number 32?
CREATE TABLE table_17104539_12 (location_attendance VARCHAR, game VARCHAR)
SELECT location_attendance FROM table_17104539_12 WHERE game = 32
What is the trademark listed for the molecular target : dna-binding?
CREATE TABLE table_12715053_1 (trademark VARCHAR, molecular_target VARCHAR)
SELECT trademark FROM table_12715053_1 WHERE molecular_target = "DNA-Binding"
What is the lowest heat for the United states with a mark of 51.85 pb and lane higher than 6?
CREATE TABLE table_name_43 (heat INTEGER, lane VARCHAR, country VARCHAR, mark VARCHAR)
SELECT MIN(heat) FROM table_name_43 WHERE country = "united states" AND mark = "51.85 pb" AND lane > 6
WHAT IS THE OPENING WITH A WORLDWIDE NUMBER OF $559,852,396?
CREATE TABLE table_name_85 (opening VARCHAR, worldwide VARCHAR)
SELECT opening FROM table_name_85 WHERE worldwide = "$559,852,396"
Whose talent was ballet en pointe?
CREATE TABLE table_name_56 (name VARCHAR, talent VARCHAR)
SELECT name FROM table_name_56 WHERE talent = "ballet en pointe"
What capital has an S.Number under 7, and a Name of janapada of Punia?
CREATE TABLE table_name_89 (capital VARCHAR, sno VARCHAR, name_of_janapada VARCHAR)
SELECT capital FROM table_name_89 WHERE sno < 7 AND name_of_janapada = "punia"
Name the most tier 1 capital for irish nationwide
CREATE TABLE table_22368322_2 (_€_million VARCHAR, tier_1_capital INTEGER, institution VARCHAR)
SELECT MAX(tier_1_capital), _€_million FROM table_22368322_2 WHERE institution = "Irish Nationwide"
What's the bronze medal count of Spain that has less than 39 Gold, 3 silver, and a rank better than 35?
CREATE TABLE table_name_27 (bronze VARCHAR, nation VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT bronze FROM table_name_27 WHERE gold < 39 AND silver = 3 AND rank < 35 AND nation = "spain"
What week was themed disco?
CREATE TABLE table_21501511_1 (week__number VARCHAR, theme VARCHAR)
SELECT week__number FROM table_21501511_1 WHERE theme = "Disco"
What is the lowest pick # of John Ayres?
CREATE TABLE table_name_15 (pick__number INTEGER, name VARCHAR)
SELECT MIN(pick__number) FROM table_name_15 WHERE name = "john ayres"
Show ids for all documents in type CV without expense budgets.
CREATE TABLE Documents_with_expenses (document_id VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_type_code VARCHAR)
SELECT document_id FROM Documents WHERE document_type_code = "CV" EXCEPT SELECT document_id FROM Documents_with_expenses
What is the venue when the result is 2-0, and the score is 1 goal, and the competition is 1980 afc asian cup?
CREATE TABLE table_name_60 (venue VARCHAR, competition VARCHAR, result VARCHAR, score VARCHAR)
SELECT venue FROM table_name_60 WHERE result = "2-0" AND score = "1 goal" AND competition = "1980 afc asian cup"
Name the D 45 √ when it has D 41√ of r 20
CREATE TABLE table_name_62 (d_45_√ VARCHAR, d_41_√ VARCHAR)
SELECT d_45_√ FROM table_name_62 WHERE d_41_√ = "r 20"
Which opponent has a Date of 16 february 2003?
CREATE TABLE table_name_83 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_83 WHERE date = "16 february 2003"
What is the total PL G of player pennant, who has less than 7 CL G, less than 7 CL apps, and a FA YC of 0?
CREATE TABLE table_name_74 (pl_g VARCHAR, player VARCHAR, fa_yc VARCHAR, cl_g VARCHAR, cl_apps VARCHAR)
SELECT COUNT(pl_g) FROM table_name_74 WHERE cl_g < 7 AND cl_apps < 7 AND fa_yc = 0 AND player = "pennant"
What was the average attendance when Chicago Bears were the home team?
CREATE TABLE table_name_22 (attendance INTEGER, home VARCHAR)
SELECT AVG(attendance) FROM table_name_22 WHERE home = "chicago bears"
What is the series No when the season 4 # is 18?
CREATE TABLE table_28195898_1 (MIN VARCHAR, _number VARCHAR)
SELECT MIN AS № FROM table_28195898_1 WHERE _number = 18
what is games when the losses is more than 1, percent is 0.5 and wins is 2?
CREATE TABLE table_name_36 (games VARCHAR, wins VARCHAR, losses VARCHAR, percent VARCHAR)
SELECT games FROM table_name_36 WHERE losses > 1 AND percent = 0.5 AND wins = 2
how many types of organization were founded in san diego state university?
CREATE TABLE table_2538117_2 (type VARCHAR, founding_university VARCHAR)
SELECT COUNT(type) FROM table_2538117_2 WHERE founding_university = "San Diego State University"
What is the place of player sergio garcía, who has £77,500?
CREATE TABLE table_name_45 (place VARCHAR, money___£__ VARCHAR, player VARCHAR)
SELECT place FROM table_name_45 WHERE money___£__ = "77,500" AND player = "sergio garcía"
What is the total average for 1990-1995, and goals less than 90?
CREATE TABLE table_name_40 (average VARCHAR, career VARCHAR, goals VARCHAR)
SELECT COUNT(average) FROM table_name_40 WHERE career = "1990-1995" AND goals < 90
What's the margin of victory during the Pocono Northeast Classic?
CREATE TABLE table_name_55 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT margin_of_victory FROM table_name_55 WHERE tournament = "pocono northeast classic"
What is the strike rate for the player with an average of 32.78?
CREATE TABLE table_28846752_12 (strike_rate VARCHAR, average VARCHAR)
SELECT strike_rate FROM table_28846752_12 WHERE average = "32.78"
What venue has don bradman (nsw) as the player?
CREATE TABLE table_name_7 (venue VARCHAR, player VARCHAR)
SELECT venue FROM table_name_7 WHERE player = "don bradman (nsw)"
Find the ship type that are used by both ships with Panama and Malta flags.
CREATE TABLE ship (TYPE VARCHAR, flag VARCHAR)
SELECT TYPE FROM ship WHERE flag = 'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag = 'Malta'
What time did Channel 4 air an episode number larger than 106 with the title of Marry Me A Little?
CREATE TABLE table_name_74 (time_of_airing_on_channel_4 VARCHAR, episode_number VARCHAR, title VARCHAR)
SELECT time_of_airing_on_channel_4 FROM table_name_74 WHERE episode_number > 106 AND title = "marry me a little"
How many different kinds of information sources are there for injury accidents?
CREATE TABLE injury_accident (SOURCE VARCHAR)
SELECT COUNT(DISTINCT SOURCE) FROM injury_accident
What year was she on a 350cc class bike, ranked 16th, with over 0 wins?
CREATE TABLE table_name_85 (year INTEGER, wins VARCHAR, class VARCHAR, rank VARCHAR)
SELECT SUM(year) FROM table_name_85 WHERE class = "350cc" AND rank = "16th" AND wins > 0
What was the total against in uefa champions league/european cup with more than 1 draw?
CREATE TABLE table_name_75 (against INTEGER, competition VARCHAR, draw VARCHAR)
SELECT SUM(against) FROM table_name_75 WHERE competition = "uefa champions league/european cup" AND draw > 1
What is the average access count of documents?
CREATE TABLE documents (access_count INTEGER)
SELECT AVG(access_count) FROM documents
Which general election had a pq majority and a 44.75% of the popular vote?
CREATE TABLE table_106367_2 (general_election VARCHAR, result VARCHAR, _percentage_of_popular_vote VARCHAR)
SELECT general_election FROM table_106367_2 WHERE result = "PQ majority" AND _percentage_of_popular_vote = "44.75%"
Which team had a score of 103-96?
CREATE TABLE table_name_29 (team VARCHAR, score VARCHAR)
SELECT team FROM table_name_29 WHERE score = "103-96"
Which is the highest bronze at Chinese Taipei when the rank was higher than 5 and total was smaller than 1?
CREATE TABLE table_name_89 (bronze INTEGER, total VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT MAX(bronze) FROM table_name_89 WHERE rank > 5 AND nation = "chinese taipei" AND total < 1
What is Result, when Original Title is "Tiānmǎ Cháfáng (天馬茶房)"?
CREATE TABLE table_name_47 (result VARCHAR, original_title VARCHAR)
SELECT result FROM table_name_47 WHERE original_title = "tiānmǎ cháfáng (天馬茶房)"
Name the market value for rhb capital
CREATE TABLE table_19112_3 (market_value__billion_$_ VARCHAR, company VARCHAR)
SELECT market_value__billion_$_ FROM table_19112_3 WHERE company = "RHB Capital"
Name the average events for miller barber
CREATE TABLE table_name_27 (events INTEGER, player VARCHAR)
SELECT AVG(events) FROM table_name_27 WHERE player = "miller barber"
How many bronzes have a Nation of jamaica (jam), and a Total smaller than 7?
CREATE TABLE table_name_6 (bronze VARCHAR, nation VARCHAR, total VARCHAR)
SELECT COUNT(bronze) FROM table_name_6 WHERE nation = "jamaica (jam)" AND total < 7
What is the average number of silver medals for rank 2 and more than 1 bronze medal?
CREATE TABLE table_name_15 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT AVG(silver) FROM table_name_15 WHERE rank = 2 AND bronze > 1
Who is the competitor from France with 10 starts?
CREATE TABLE table_19487922_1 (name VARCHAR, country VARCHAR, race_entries__starts_ VARCHAR)
SELECT name FROM table_19487922_1 WHERE country = "France" AND race_entries__starts_ = "10"
What are the maximum, minimum and average home games each stadium held?
CREATE TABLE stadium (home_games INTEGER)
SELECT MAX(home_games), MIN(home_games), AVG(home_games) FROM stadium
What is the release date with par116 as the cat. #?
CREATE TABLE table_name_96 (release_date VARCHAR, cat__number VARCHAR)
SELECT release_date FROM table_name_96 WHERE cat__number = "par116"
What Pick number is Rich Burtness?
CREATE TABLE table_name_26 (pick INTEGER, name VARCHAR)
SELECT AVG(pick) FROM table_name_26 WHERE name = "rich burtness"
What is Group Song, when Name is Alice 林芯糸?
CREATE TABLE table_name_29 (Group VARCHAR, name VARCHAR)
SELECT Group AS song FROM table_name_29 WHERE name = "alice 林芯糸"
Name the least attendance with visitor of edmonton
CREATE TABLE table_name_98 (attendance INTEGER, visitor VARCHAR)
SELECT MIN(attendance) FROM table_name_98 WHERE visitor = "edmonton"
Show the name of the shop that has the most kind of devices in stock.
CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_ID VARCHAR)
SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1
On what date was the surface clay with Cyril Saulnier as the opponent in the final?
CREATE TABLE table_name_28 (date VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_28 WHERE surface = "clay" AND opponent_in_the_final = "cyril saulnier"
What was the max points you when when you place 9th?
CREATE TABLE table_17289224_1 (points INTEGER, final_placing VARCHAR)
SELECT MAX(points) FROM table_17289224_1 WHERE final_placing = "9th"
What venue had a draw?
CREATE TABLE table_name_77 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_77 WHERE result = "draw"
What is the extra when the result is 4th at the NCAA Championships?
CREATE TABLE table_name_28 (extra VARCHAR, result VARCHAR, tournament VARCHAR)
SELECT extra FROM table_name_28 WHERE result = "4th" AND tournament = "ncaa championships"
In how many episodes did Sean's team include Jeremy Clarkson and James McQuillan?
CREATE TABLE table_23292220_8 (episode VARCHAR, seans_team VARCHAR)
SELECT COUNT(episode) FROM table_23292220_8 WHERE seans_team = "Jeremy Clarkson and James McQuillan"
Show the minister who took office after 1961 or before 1959.
CREATE TABLE party (minister VARCHAR, took_office VARCHAR)
SELECT minister FROM party WHERE took_office > 1961 OR took_office < 1959
Show all student IDs with more than total 10 hours per week on all sports played.
CREATE TABLE Sportsinfo (StuID VARCHAR, hoursperweek INTEGER)
SELECT StuID FROM Sportsinfo GROUP BY StuID HAVING SUM(hoursperweek) > 10
What school has the Kansas City Royals for a team?
CREATE TABLE table_name_27 (school VARCHAR, team VARCHAR)
SELECT school FROM table_name_27 WHERE team = "kansas city royals"
What is the attendance in a week larter than 4, on December 6, 1992?
CREATE TABLE table_name_80 (attendance VARCHAR, week VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_80 WHERE week > 4 AND date = "december 6, 1992"
What is the original air date of the episode with the production code 1115?
CREATE TABLE table_18367694_2 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_18367694_2 WHERE production_code = 1115
What was the extra info for the Commonwealth Games?
CREATE TABLE table_name_90 (extra VARCHAR, tournament VARCHAR)
SELECT extra FROM table_name_90 WHERE tournament = "commonwealth games"
What is the maximum average associated with a total of 221902?
CREATE TABLE table_2472711_32 (average INTEGER, total VARCHAR)
SELECT MAX(average) FROM table_2472711_32 WHERE total = 221902
Name the new adherents per year for buddhism
CREATE TABLE table_28137918_5 (new_adherents_per_year VARCHAR, religion VARCHAR)
SELECT new_adherents_per_year FROM table_28137918_5 WHERE religion = "Buddhism"
What is the number of the cars with horsepower more than 150?
CREATE TABLE CARS_DATA (horsepower INTEGER)
SELECT COUNT(*) FROM CARS_DATA WHERE horsepower > 150
What party has a term of office of 1951–1966, and a State of sa?
CREATE TABLE table_name_29 (party VARCHAR, term_of_office VARCHAR, state VARCHAR)
SELECT party FROM table_name_29 WHERE term_of_office = "1951–1966" AND state = "sa"
What FA trophys have tony hemmings as the player, with a league greater than 15?
CREATE TABLE table_name_98 (fa_trophy INTEGER, player VARCHAR, league VARCHAR)
SELECT SUM(fa_trophy) FROM table_name_98 WHERE player = "tony hemmings" AND league > 15
how many townships where pop (2010) and ater is 0.818
CREATE TABLE table_18600760_2 (pop__2010_ VARCHAR, water__sqmi_ VARCHAR)
SELECT COUNT(pop__2010_) FROM table_18600760_2 WHERE water__sqmi_ = "0.818"
What is the highest score for match 2 where the score for match 4 is 0 and the total score is 5?
CREATE TABLE table_24538140_2 (match2 INTEGER, match4 VARCHAR, total VARCHAR)
SELECT MAX(match2) FROM table_24538140_2 WHERE match4 = 0 AND total = 5
Which attendance has 9 as the tie no.?
CREATE TABLE table_name_43 (attendance VARCHAR, tie_no VARCHAR)
SELECT attendance FROM table_name_43 WHERE tie_no = 9
Which vacancy occurred on 16 February 2009?
CREATE TABLE table_18788823_5 (position_in_table VARCHAR, date_of_vacancy VARCHAR)
SELECT position_in_table FROM table_18788823_5 WHERE date_of_vacancy = "16 February 2009"
What name has 100 w. pender st. as the address?
CREATE TABLE table_name_6 (name VARCHAR, street_address VARCHAR)
SELECT name FROM table_name_6 WHERE street_address = "100 w. pender st."
On average, when were the transcripts printed?
CREATE TABLE Transcripts (transcript_date INTEGER)
SELECT AVG(transcript_date) FROM Transcripts
Which authority had a role of 651?
CREATE TABLE table_name_18 (authority VARCHAR, roll VARCHAR)
SELECT authority FROM table_name_18 WHERE roll = 651
Which team had car number 15?
CREATE TABLE table_name_72 (team VARCHAR, car_no VARCHAR)
SELECT team FROM table_name_72 WHERE car_no = "15"
What was the outcome in mari andersson's tournament?
CREATE TABLE table_name_41 (outcome VARCHAR, opponent VARCHAR)
SELECT outcome FROM table_name_41 WHERE opponent = "mari andersson"
When the PCT route available is yes and the maximum term is 10 years, what are the available conversions from patent applications?
CREATE TABLE table_2279413_1 (conversion_from_patent_application VARCHAR, maximum_term VARCHAR, pct_route_available VARCHAR)
SELECT conversion_from_patent_application FROM table_2279413_1 WHERE maximum_term = "10 years" AND pct_route_available = "Yes"
What is the home team at the Junction Oval venue?
CREATE TABLE table_name_14 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_14 WHERE venue = "junction oval"
With a Try Bonus of 8, what is the Tries Against?
CREATE TABLE table_name_47 (tries_against VARCHAR, try_bonus VARCHAR)
SELECT tries_against FROM table_name_47 WHERE try_bonus = "8"
How many colleges did the player picked 57 attend?
CREATE TABLE table_15017024_2 (college VARCHAR, pick VARCHAR)
SELECT COUNT(college) FROM table_15017024_2 WHERE pick = 57
What is the 2013 BAFA adult flag division in Aylesbury?
CREATE TABLE table_name_95 (location VARCHAR)
SELECT 2013 AS _bafa_adult_flag_division FROM table_name_95 WHERE location = "aylesbury"
How many languages for the 2001 (74th) awards?
CREATE TABLE table_16254861_1 (language_s_ VARCHAR, year__ceremony_ VARCHAR)
SELECT COUNT(language_s_) FROM table_16254861_1 WHERE year__ceremony_ = "2001 (74th)"
What is Date, when Team is "Orlando"?
CREATE TABLE table_name_72 (date VARCHAR, team VARCHAR)
SELECT date FROM table_name_72 WHERE team = "orlando"
The highest position with more than 16 points and less than 7 concedes?
CREATE TABLE table_name_40 (position INTEGER, points VARCHAR, conceded VARCHAR)
SELECT MAX(position) FROM table_name_40 WHERE points > 16 AND conceded < 7
What is the title that was first published in August 2010?
CREATE TABLE table_name_39 (title VARCHAR, first_issue VARCHAR)
SELECT title FROM table_name_39 WHERE first_issue = "august 2010"
What is the location is the winning driver is Bill Vukovich II?
CREATE TABLE table_22670216_1 (location VARCHAR, winning_driver VARCHAR)
SELECT location FROM table_22670216_1 WHERE winning_driver = "Bill Vukovich II"
What is the Score, when the Year is after 2007, and when the Country is England?
CREATE TABLE table_name_5 (score VARCHAR, year VARCHAR, country VARCHAR)
SELECT score FROM table_name_5 WHERE year > 2007 AND country = "england"
For the catalog title DP068-07, what formats are available?
CREATE TABLE table_name_52 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_52 WHERE catalog = "dp068-07"
What school is in 36 Jackson?
CREATE TABLE table_name_41 (school VARCHAR, county VARCHAR)
SELECT school FROM table_name_41 WHERE county = "36 jackson"