question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is Nelspruit's population?
CREATE TABLE table_name_74 (population__2013_ VARCHAR, largest_city VARCHAR)
SELECT COUNT(population__2013_) FROM table_name_74 WHERE largest_city = "nelspruit"
Which channel comes out of Israel?
CREATE TABLE table_name_83 (channel VARCHAR, country VARCHAR)
SELECT channel FROM table_name_83 WHERE country = "israel"
Name the least join date
CREATE TABLE table_26466528_1 (join_date INTEGER)
SELECT MIN(join_date) FROM table_26466528_1
What is the GPU model when the L3 cache is standard power?
CREATE TABLE table_name_74 (gpu_model VARCHAR, l3_cache VARCHAR)
SELECT gpu_model FROM table_name_74 WHERE l3_cache = "standard power"
How many locations have the Sun Life Stadium?
CREATE TABLE table_15647838_3 (location VARCHAR, stadium VARCHAR)
SELECT COUNT(location) FROM table_15647838_3 WHERE stadium = "Sun Life stadium"
Who is the opponent on October 28, 2001?
CREATE TABLE table_name_77 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_77 WHERE date = "october 28, 2001"
Who's the writer of the episode seen by 3.25 million people in the US?
CREATE TABLE table_18268826_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT written_by FROM table_18268826_1 WHERE us_viewers__million_ = "3.25"
In what season was 577 runs scored?
CREATE TABLE table_name_33 (season VARCHAR, runs VARCHAR)
SELECT season FROM table_name_33 WHERE runs = "577"
Name the total number of opponets venue for oklahoma
CREATE TABLE table_16201038_3 (at_opponents_venue VARCHAR, missouri_vs VARCHAR)
SELECT COUNT(at_opponents_venue) FROM table_16201038_3 WHERE missouri_vs = "Oklahoma"
What is the score from the winner Keith Clearwater (1)?
CREATE TABLE table_name_60 (score VARCHAR, winner VARCHAR)
SELECT score FROM table_name_60 WHERE winner = "keith clearwater (1)"
What's the English name of the month abbreviated as มิ.ย.?
CREATE TABLE table_180802_2 (english_name VARCHAR, abbr VARCHAR)
SELECT english_name FROM table_180802_2 WHERE abbr = "มิ.ย."
what is the highest draw when points is less than 11 and language is norwegian?
CREATE TABLE table_name_54 (draw INTEGER, points VARCHAR, language VARCHAR)
SELECT MAX(draw) FROM table_name_54 WHERE points < 11 AND language = "norwegian"
Who was the away team on 31 January 1987 when the home team was Wimbledon?
CREATE TABLE table_name_51 (away_team VARCHAR, date VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_51 WHERE date = "31 january 1987" AND home_team = "wimbledon"
What is the number of draws for the team with a points difference of -210?
CREATE TABLE table_name_12 (drawn VARCHAR, points_difference VARCHAR)
SELECT drawn FROM table_name_12 WHERE points_difference = "-210"
What district had someone first elected in 1982?
CREATE TABLE table_1341522_41 (district VARCHAR, first_elected VARCHAR)
SELECT district FROM table_1341522_41 WHERE first_elected = 1982
Name the year for open cup did not qualify and national final
CREATE TABLE table_2553861_1 (year VARCHAR, open_cup VARCHAR, playoffs VARCHAR)
SELECT COUNT(year) FROM table_2553861_1 WHERE open_cup = "Did not qualify" AND playoffs = "National Final"
When the blank ends at 1, what is the PA?
CREATE TABLE table_17012578_6 (pa VARCHAR, blank_ends VARCHAR)
SELECT COUNT(pa) FROM table_17012578_6 WHERE blank_ends = 1
What was the report in the Belgian Grand Prix?
CREATE TABLE table_name_5 (report VARCHAR, race VARCHAR)
SELECT report FROM table_name_5 WHERE race = "belgian grand prix"
What was the Bill's attendance on December 6?
CREATE TABLE table_name_86 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_86 WHERE date = "december 6"
Name the present share for australia
CREATE TABLE table_23195_5 (present_share VARCHAR, producing_nation VARCHAR)
SELECT present_share FROM table_23195_5 WHERE producing_nation = "Australia"
What is the Tallangatta DFL losses greater than 2 and an against greater than 1013
CREATE TABLE table_name_49 (tallangatta_dfl VARCHAR, against VARCHAR, losses VARCHAR)
SELECT tallangatta_dfl FROM table_name_49 WHERE against > 1013 AND losses > 2
What is the 2010 when the 2009 shows Q1?
CREATE TABLE table_name_50 (Id VARCHAR)
SELECT 2010 FROM table_name_50 WHERE 2009 = "q1"
Who was home team South Melbourne's opponent?
CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_13 WHERE home_team = "south melbourne"
Which Release date has a Type of 2d?
CREATE TABLE table_name_34 (release_date VARCHAR, type VARCHAR)
SELECT release_date FROM table_name_34 WHERE type = "2d"
What is the A score when the B score is more than 9.15 and the gymnast was in the 2nd position?
CREATE TABLE table_name_1 (a_score INTEGER, b_score VARCHAR, position VARCHAR)
SELECT SUM(a_score) FROM table_name_1 WHERE b_score > 9.15 AND position = "2nd"
What is the lowest swimsuit for a contestant with an average of 9.125?
CREATE TABLE table_name_38 (swimsuit INTEGER, average VARCHAR)
SELECT MIN(swimsuit) FROM table_name_38 WHERE average = 9.125
Which Payments were processed with Visa? List the payment Id, the date and the amount.
CREATE TABLE Payments (Payment_ID VARCHAR, Date_Payment_Made VARCHAR, Amount_Payment VARCHAR, Payment_Method_Code VARCHAR)
SELECT Payment_ID, Date_Payment_Made, Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'
What was the little league team from Indiana when the little league team from Michigan was Midland Northeast LL Midland?
CREATE TABLE table_18461045_1 (indiana VARCHAR, michigan VARCHAR)
SELECT indiana FROM table_18461045_1 WHERE michigan = "Midland Northeast LL Midland"
How many grids have a Time/Retired of gearbox, and Laps smaller than 3?
CREATE TABLE table_name_98 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
SELECT COUNT(grid) FROM table_name_98 WHERE time_retired = "gearbox" AND laps < 3
What team drove a Dodge vehicle?
CREATE TABLE table_name_27 (team VARCHAR, make VARCHAR)
SELECT team FROM table_name_27 WHERE make = "dodge"
Who were the opponents in the match or matches that ended in a score of W/O?
CREATE TABLE table_name_72 (opponents_in_final VARCHAR, score_in_final VARCHAR)
SELECT opponents_in_final FROM table_name_72 WHERE score_in_final = "w/o"
What is the Location when Canada was the runner-up and Australia was the winner?
CREATE TABLE table_name_77 (location VARCHAR, runners_up VARCHAR, winners VARCHAR)
SELECT location FROM table_name_77 WHERE runners_up = "canada" AND winners = "australia"
Who is drafted overall less than 49?
CREATE TABLE table_name_27 (name VARCHAR, overall INTEGER)
SELECT name FROM table_name_27 WHERE overall < 49
Which Thickness has a Year of Issue smaller than 1983?
CREATE TABLE table_name_35 (thickness VARCHAR, year_of_issue INTEGER)
SELECT thickness FROM table_name_35 WHERE year_of_issue < 1983
show the titles, and authors or editors for all books made after the year 1989.
CREATE TABLE book_club (book_title VARCHAR, author_or_editor VARCHAR, YEAR INTEGER)
SELECT book_title, author_or_editor FROM book_club WHERE YEAR > 1989
Which intergiro classification is there for team Polti at stage 14?
CREATE TABLE table_name_53 (intergiro_classification VARCHAR, trofeo_fast_team VARCHAR, stage VARCHAR)
SELECT intergiro_classification FROM table_name_53 WHERE trofeo_fast_team = "team polti" AND stage = "14"
What is the total for the player whose finish was t66?
CREATE TABLE table_name_70 (total VARCHAR, finish VARCHAR)
SELECT total FROM table_name_70 WHERE finish = "t66"
What's Bulgaria's lane with a time more than 21.55?
CREATE TABLE table_name_28 (lane INTEGER, nationality VARCHAR, time VARCHAR)
SELECT SUM(lane) FROM table_name_28 WHERE nationality = "bulgaria" AND time > 21.55
What Etymology ranked 12?
CREATE TABLE table_name_58 (etymology VARCHAR, rank VARCHAR)
SELECT etymology FROM table_name_58 WHERE rank = 12
What pick was Greg Strome?
CREATE TABLE table_2850912_6 (pick__number INTEGER, player VARCHAR)
SELECT MAX(pick__number) FROM table_2850912_6 WHERE player = "Greg Strome"
WHAT IS THE DRAW FOR u ritmu ljubavi, POINTS LARGER THAN 87?
CREATE TABLE table_name_73 (draw INTEGER, song VARCHAR, points VARCHAR)
SELECT MAX(draw) FROM table_name_73 WHERE song = "u ritmu ljubavi" AND points > 87
What ship has a pennant number h05?
CREATE TABLE table_name_89 (ship VARCHAR, pennant_number VARCHAR)
SELECT ship FROM table_name_89 WHERE pennant_number = "h05"
Which district has the least area?
CREATE TABLE district (district_name VARCHAR, city_area VARCHAR)
SELECT district_name FROM district ORDER BY city_area LIMIT 1
How many Gold medals for the country with a Rank of 1 and less than 2 Total medals?
CREATE TABLE table_name_57 (gold VARCHAR, rank VARCHAR, total VARCHAR)
SELECT COUNT(gold) FROM table_name_57 WHERE rank = "1" AND total < 2
with Distribution of 10.6% what is the average api level?
CREATE TABLE table_name_7 (api_level INTEGER, distribution VARCHAR)
SELECT AVG(api_level) FROM table_name_7 WHERE distribution = "10.6%"
Who does jeremy evans play for?
CREATE TABLE table_name_15 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_15 WHERE player = "jeremy evans"
Which province is bay of islands in
CREATE TABLE table_1024710_2 (province VARCHAR, electorate VARCHAR)
SELECT province FROM table_1024710_2 WHERE electorate = "Bay of Islands"
What is the party of re-elected, incumbent Charles H. Grosvenor, who was first elected before 1894?
CREATE TABLE table_name_3 (party VARCHAR, incumbent VARCHAR, result VARCHAR, first_elected VARCHAR)
SELECT party FROM table_name_3 WHERE result = "re-elected" AND first_elected < 1894 AND incumbent = "charles h. grosvenor"
What tournament had a winning score of −27 (64-64-61=189)?
CREATE TABLE table_name_3 (tournament VARCHAR, winning_score VARCHAR)
SELECT tournament FROM table_name_3 WHERE winning_score = −27(64 - 64 - 61 = 189)
Which Year Built has a Parish (Prestegjeld) of bremanger parish, and a Location of the Church of bremanger?
CREATE TABLE table_name_67 (year_built INTEGER, parish___prestegjeld__ VARCHAR, location_of_the_church VARCHAR)
SELECT AVG(year_built) FROM table_name_67 WHERE parish___prestegjeld__ = "bremanger parish" AND location_of_the_church = "bremanger"
What is the highest number of division championships where playoff berths were 11?
CREATE TABLE table_1952065_4 (division_championships INTEGER, playoff_berths VARCHAR)
SELECT MAX(division_championships) FROM table_1952065_4 WHERE playoff_berths = 11
Name the nominated work for 1996 and festival of black maria film and video festival
CREATE TABLE table_name_7 (nominated_work VARCHAR, year VARCHAR, festival VARCHAR)
SELECT nominated_work FROM table_name_7 WHERE year = 1996 AND festival = "black maria film and video festival"
What is the week 10 result where the week 9 result was Dropped: Maryland South Carolina?
CREATE TABLE table_name_13 (week_10_nov_5 VARCHAR, week_9_oct_29 VARCHAR)
SELECT week_10_nov_5 FROM table_name_13 WHERE week_9_oct_29 = "dropped: maryland south carolina"
How much does the most recent treatment cost?
CREATE TABLE Treatments (cost_of_treatment VARCHAR, date_of_treatment VARCHAR)
SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1
Which player from the Ironi Nahariya club was born in 1980?
CREATE TABLE table_name_4 (player VARCHAR, current_club VARCHAR, year_born VARCHAR)
SELECT player FROM table_name_4 WHERE current_club = "ironi nahariya" AND year_born = 1980
How many lanes have a Nationality of france, and a Rank larger than 8?
CREATE TABLE table_name_92 (lane INTEGER, nationality VARCHAR, rank VARCHAR)
SELECT SUM(lane) FROM table_name_92 WHERE nationality = "france" AND rank > 8
How many wins did Parsons have in the year where his winnings were $90,700?
CREATE TABLE table_2597876_1 (wins INTEGER, winnings VARCHAR)
SELECT MAX(wins) FROM table_2597876_1 WHERE winnings = "$90,700"
Which Player has a To par of –1, and a Year(s) won of 1952?
CREATE TABLE table_name_29 (player VARCHAR, to_par VARCHAR, year_s__won VARCHAR)
SELECT player FROM table_name_29 WHERE to_par = "–1" AND year_s__won = "1952"
What was the attendance at the Kardinia Park game?
CREATE TABLE table_name_25 (crowd VARCHAR, venue VARCHAR)
SELECT crowd FROM table_name_25 WHERE venue = "kardinia park"
What is the partner with a score of 4–6, 7–5, [10–8]?
CREATE TABLE table_name_25 (partnering VARCHAR, score VARCHAR)
SELECT partnering FROM table_name_25 WHERE score = "4–6, 7–5, [10–8]"
What is biggest grid when the laps are 65?
CREATE TABLE table_name_86 (grid INTEGER, laps VARCHAR)
SELECT MAX(grid) FROM table_name_86 WHERE laps = 65
Report the total number of students for each fourth-grade classroom.
CREATE TABLE list (classroom VARCHAR, grade VARCHAR)
SELECT classroom, COUNT(*) FROM list WHERE grade = "4" GROUP BY classroom
Where did South Melbourne go to play a team at home?
CREATE TABLE table_name_98 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_98 WHERE away_team = "south melbourne"
What was the city where Hallescher FC won in 2008?
CREATE TABLE table_name_74 (city VARCHAR, winner VARCHAR, year VARCHAR)
SELECT city FROM table_name_74 WHERE winner = "hallescher fc" AND year = 2008
Who were the MLB draft with the hometown Opa-locka, Fl?
CREATE TABLE table_11677100_12 (mlb_draft VARCHAR, hometown VARCHAR)
SELECT mlb_draft FROM table_11677100_12 WHERE hometown = "Opa-locka, FL"
Show all distinct building descriptions.
CREATE TABLE Apartment_Buildings (building_description VARCHAR)
SELECT DISTINCT building_description FROM Apartment_Buildings
What is the sequence length (aa) of the protein with the common name Purple Sea Urchin and a divergence from human lineage less than 742.9?
CREATE TABLE table_name_67 (sequence_length__aa_ INTEGER, common_name VARCHAR, divergence_from_human_lineage__mya_ VARCHAR)
SELECT SUM(sequence_length__aa_) FROM table_name_67 WHERE common_name = "purple sea urchin" AND divergence_from_human_lineage__mya_ < 742.9
Which Games have a Drawn smaller than 1, and a Lost smaller than 1?
CREATE TABLE table_name_91 (games VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT games FROM table_name_91 WHERE drawn < 1 AND lost < 1
What was the percentage of votes for coakley when kennedy won 1.6%
CREATE TABLE table_24115349_4 (coakley__percentage VARCHAR, kennedy__percentage VARCHAR)
SELECT coakley__percentage FROM table_24115349_4 WHERE kennedy__percentage = "1.6%"
What was the name of the episode that had 14.52 viewers?
CREATE TABLE table_22904707_1 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT title FROM table_22904707_1 WHERE us_viewers__million_ = "14.52"
Which event was held in Brazil?
CREATE TABLE table_name_31 (event VARCHAR, country VARCHAR)
SELECT event FROM table_name_31 WHERE country = "brazil"
Who was the supporting actress in 1943?
CREATE TABLE table_24225238_1 (supporting_actress VARCHAR, year VARCHAR)
SELECT supporting_actress FROM table_24225238_1 WHERE year = 1943
When saif saaeed shaheen (qat) is the saif saaeed shaheen ( qat ) what is the world record?
CREATE TABLE table_23988726_2 (world_record VARCHAR)
SELECT world_record FROM table_23988726_2 WHERE "saif_saaeed_shaheen___qat__" = "saif_saaeed_shaheen___qat__"
What is the earliest year won Paul Azinger had with a to par higher than 5?
CREATE TABLE table_name_12 (year_won INTEGER, player VARCHAR, to_par VARCHAR)
SELECT MIN(year_won) FROM table_name_12 WHERE player = "paul azinger" AND to_par > 5
What identifier has 90.3 as the frequency?
CREATE TABLE table_name_92 (identifier VARCHAR, frequency VARCHAR)
SELECT identifier FROM table_name_92 WHERE frequency = "90.3"
Which college did Dennis Byrd come from?
CREATE TABLE table_12165999_1 (college VARCHAR, player VARCHAR)
SELECT college FROM table_12165999_1 WHERE player = "Dennis Byrd"
What tournament had a Score of 6–3, 2–6, [10–8]?
CREATE TABLE table_name_90 (tournament VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_90 WHERE score = "6–3, 2–6, [10–8]"
What is the Result of Game 3?
CREATE TABLE table_name_16 (result VARCHAR, game VARCHAR)
SELECT result FROM table_name_16 WHERE game = "game 3"
what's the attribute with cancelable being yes
CREATE TABLE table_1507852_5 (attribute VARCHAR, cancelable VARCHAR)
SELECT attribute FROM table_1507852_5 WHERE cancelable = "Yes"
List the names of journalists who have not reported any event.
CREATE TABLE journalist (Name VARCHAR, journalist_ID VARCHAR); CREATE TABLE news_report (Name VARCHAR, journalist_ID VARCHAR)
SELECT Name FROM journalist WHERE NOT journalist_ID IN (SELECT journalist_ID FROM news_report)
What average total has cuba as the nation, and a bronze greater than 1?
CREATE TABLE table_name_8 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT AVG(total) FROM table_name_8 WHERE nation = "cuba" AND bronze > 1
What hometown was FR Year, and ha Brown's Gymnastics club?
CREATE TABLE table_name_20 (hometown VARCHAR, year VARCHAR, club VARCHAR)
SELECT hometown FROM table_name_20 WHERE year = "fr" AND club = "brown's gymnastics"
What is the Money ($) of the game with a score of 69-74-70-73=286?
CREATE TABLE table_name_57 (money___ INTEGER, score VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_57 WHERE score = 69 - 74 - 70 - 73 = 286
What is the name of the buildings for China?
CREATE TABLE table_name_15 (name VARCHAR, country VARCHAR)
SELECT name FROM table_name_15 WHERE country = "china"
How many draws does the team with 385 points for have?
CREATE TABLE table_name_98 (drawn VARCHAR, points_for VARCHAR)
SELECT drawn FROM table_name_98 WHERE points_for = "385"
What New Delhi Competition has a Result of Loss?
CREATE TABLE table_name_33 (competition VARCHAR, venue VARCHAR, result VARCHAR)
SELECT competition FROM table_name_33 WHERE venue = "new delhi" AND result = "loss"
What is the result for Gold Coast when Melbourne and Sydney are yes, while Auckland and Perth are no?
CREATE TABLE table_name_8 (gold_coast VARCHAR, perth VARCHAR, auckland VARCHAR, melbourne VARCHAR, sydney VARCHAR)
SELECT gold_coast FROM table_name_8 WHERE melbourne = "yes" AND sydney = "yes" AND auckland = "no" AND perth = "no"
Who had evening gown score of 9.82?
CREATE TABLE table_11690135_1 (country VARCHAR, evening_gown VARCHAR)
SELECT country FROM table_11690135_1 WHERE evening_gown = "9.82"
Name the population density people where population % eu for 1.7%
CREATE TABLE table_1606824_1 (pop_density_people_km_2 VARCHAR, population__percentage_of_eu VARCHAR)
SELECT COUNT(pop_density_people_km_2) FROM table_1606824_1 WHERE population__percentage_of_eu = "1.7%"
Which grid is constructed by Maserati and driven by Oscar Alfredo Gálvez?
CREATE TABLE table_name_74 (grid VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_74 WHERE constructor = "maserati" AND driver = "oscar alfredo gálvez"
Name the result for january 14, 2008
CREATE TABLE table_name_19 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_19 WHERE date = "january 14, 2008"
What is the sum of points in 2010 when the driver had more than 14 races and an F.L. of less than 0?
CREATE TABLE table_name_8 (points INTEGER, fl VARCHAR, year VARCHAR, races VARCHAR)
SELECT SUM(points) FROM table_name_8 WHERE year = 2010 AND races > 14 AND fl < 0
What date does the Home team of Richmond have?
CREATE TABLE table_name_32 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_32 WHERE home_team = "richmond"
what is the format of catalog 865 821-1?
CREATE TABLE table_name_25 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_25 WHERE catalog = "865 821-1"
What is the earliest year a Baylor player made the list?
CREATE TABLE table_name_79 (year INTEGER, college_country VARCHAR)
SELECT MIN(year) FROM table_name_79 WHERE college_country = "baylor"
What was the home team score when south melbourne was the home team?
CREATE TABLE table_name_49 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_49 WHERE home_team = "south melbourne"
What is the Bronze in the year there was a Total of 0 medals and 6 Competitors?
CREATE TABLE table_name_74 (bronze VARCHAR, total VARCHAR, competitors VARCHAR)
SELECT bronze FROM table_name_74 WHERE total = "0" AND competitors = "6"
What was the score against the phillies on may 24?
CREATE TABLE table_name_28 (score VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT score FROM table_name_28 WHERE opponent = "phillies" AND date = "may 24"
Who is the incumbent democratic party in district florida 11?
CREATE TABLE table_1805191_10 (incumbent VARCHAR, party VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1805191_10 WHERE party = "Democratic" AND district = "Florida 11"
When momoiro clover z is the vocalist what is the japanese translation?
CREATE TABLE table_2144389_9 (japanese_translation VARCHAR, vocalist VARCHAR)
SELECT japanese_translation FROM table_2144389_9 WHERE vocalist = "Momoiro Clover Z"