answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT open_source FROM table_name_48 WHERE cost___us$__ = "free" AND activity = "some" AND editor = "markitup"
Which source has a Cost free, and an Activity of some, and an Editor of markitup?
CREATE TABLE table_name_48 (open_source VARCHAR, editor VARCHAR, cost___us$__ VARCHAR, activity VARCHAR)
SELECT COUNT(game) FROM table_name_31 WHERE november = 7 AND points > 17
How many games have November 7 as the date, and points greater than 17?
CREATE TABLE table_name_31 (game VARCHAR, november VARCHAR, points VARCHAR)
SELECT to_par FROM table_name_72 WHERE player = "bill collins"
What is the to par that has bill collins as the player?
CREATE TABLE table_name_72 (to_par VARCHAR, player VARCHAR)
SELECT name_of_ship FROM table_name_8 WHERE tonnage > 8 OFFSET 782
Which ship had a tonnage over 8,782?
CREATE TABLE table_name_8 (name_of_ship VARCHAR, tonnage INTEGER)
SELECT end_date_of__final__term FROM table_25182437_1 WHERE prime_minister = "Palmer, Geoffrey Geoffrey Palmer"
If the prime minister is Palmer, Geoffrey Geoffrey Palmer, what is the end date of (final) term?
CREATE TABLE table_25182437_1 (end_date_of__final__term VARCHAR, prime_minister VARCHAR)
SELECT country FROM table_name_43 WHERE score = 70 - 69 = 139
What is the country that the player with a score of 70-69=139 from?
CREATE TABLE table_name_43 (country VARCHAR, score VARCHAR)
SELECT spacecraft FROM table_name_66 WHERE end_time = "17:28"
What spacecraft had an EVA that ended at 17:28?
CREATE TABLE table_name_66 (spacecraft VARCHAR, end_time VARCHAR)
SELECT COUNT(position) FROM table_11545282_6 WHERE player = "Jim Farmer"
How many position does Jim Farmer play in?
CREATE TABLE table_11545282_6 (position VARCHAR, player VARCHAR)
SELECT AVG(prominence) FROM mountain WHERE country = 'Morocco'
What are the average prominence of the mountains in country 'Morocco'?
CREATE TABLE mountain (prominence INTEGER, country VARCHAR)
SELECT player FROM table_11677691_4 WHERE college = "Southern California"
Which player went to the college Southern California?
CREATE TABLE table_11677691_4 (player VARCHAR, college VARCHAR)
SELECT winning_span FROM table_1953516_1 WHERE name = "Bernard Gallacher"
What is the winning span for the name of bernard gallacher?
CREATE TABLE table_1953516_1 (winning_span VARCHAR, name VARCHAR)
SELECT season__number FROM table_27914606_1 WHERE us_viewers__millions_ = "7.19"
what is the number of the episode in the season that had 7.19 millions of north american viewers?
CREATE TABLE table_27914606_1 (season__number VARCHAR, us_viewers__millions_ VARCHAR)
SELECT MAX(total) FROM table_name_86 WHERE country = "australia"
What is Australia's highest total?
CREATE TABLE table_name_86 (total INTEGER, country VARCHAR)
SELECT viewers__m_ FROM table_11178271_1 WHERE rating = "5.3"
What is the viewers where the rating is 5.3?
CREATE TABLE table_11178271_1 (viewers__m_ VARCHAR, rating VARCHAR)
SELECT MAX(joined) FROM table_name_43 WHERE division = "west" AND location = "highland township"
What was the most recent year that a team located in Highland Township and a member of the West Division joined the Kensington Lakes Activities Association?
CREATE TABLE table_name_43 (joined INTEGER, division VARCHAR, location VARCHAR)
SELECT result FROM table_name_4 WHERE week = 1
What was the result of the game on week 1?
CREATE TABLE table_name_4 (result VARCHAR, week VARCHAR)
SELECT country FROM table_name_39 WHERE player = "josé maría olazábal"
What is josé maría olazábal's country?
CREATE TABLE table_name_39 (country VARCHAR, player VARCHAR)
SELECT score FROM table_23285805_4 WHERE record = "6-8"
If the record is 6-8, what was the score?
CREATE TABLE table_23285805_4 (score VARCHAR, record VARCHAR)
SELECT MIN(rank) FROM table_19744915_15
What is the lowest rank?
CREATE TABLE table_19744915_15 (rank INTEGER)
SELECT place FROM table_name_3 WHERE score = 68 - 70 - 68 = 206
what is the place when the score is 68-70-68=206?
CREATE TABLE table_name_3 (place VARCHAR, score VARCHAR)
SELECT score1 FROM table_name_69 WHERE match = 2
What was the score of Match 2?
CREATE TABLE table_name_69 (score1 VARCHAR, match VARCHAR)
SELECT player FROM table_name_93 WHERE place = "t9" AND score = 70 - 74 - 69 - 70 = 283
What T9 Player had a Score of 70-74-69-70=283?
CREATE TABLE table_name_93 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT number_of_decimal_digits FROM table_name_26 WHERE total_bits > 32 AND exponent < 15
What's the number of decimal digits when the total bits is more than 32 and the exponent is less than 15?
CREATE TABLE table_name_26 (number_of_decimal_digits VARCHAR, total_bits VARCHAR, exponent VARCHAR)
SELECT MIN(T1.duration), MIN(T2.rating), T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is
What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?
CREATE TABLE song (genre_is VARCHAR, rating INTEGER, f_id VARCHAR); CREATE TABLE files (duration INTEGER, f_id VARCHAR)
SELECT customer_phone FROM available_policies WHERE policy_type_code = "Life Insurance"
What are the customer phone numbers under the policy "Life Insurance"?
CREATE TABLE available_policies (customer_phone VARCHAR, policy_type_code VARCHAR)
SELECT SUM(Amount_Claimed) FROM Claims
Find the total claimed amount of all the claims.
CREATE TABLE Claims (Amount_Claimed INTEGER)
SELECT 1976 FROM table_name_57 WHERE 1978 = "grand slam tournaments"
What 1976 has a 1978 of grand slam tournaments?
CREATE TABLE table_name_57 (Id VARCHAR)
SELECT MAX(attendance) FROM table_name_30 WHERE date = "december 3, 1972" AND week > 12
What is the highest attendance for December 3, 1972 after week 12?
CREATE TABLE table_name_30 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT phonetic_realisation FROM table_name_61 WHERE without_niqqud = "as final letter: ו or יו"
If a variant without niqqud is as final letter: ו or יו, what is the phonetic realisation?
CREATE TABLE table_name_61 (phonetic_realisation VARCHAR, without_niqqud VARCHAR)
SELECT opponent FROM table_27654988_1 WHERE competition = "Women's Cup 0 0" AND scorers = "Brancão Couto 0"
Who was the opponent in the Women's Cup 0 0 where Brancão Couto 0 is the scorer?
CREATE TABLE table_27654988_1 (opponent VARCHAR, competition VARCHAR, scorers VARCHAR)
SELECT manufacturer FROM table_name_82 WHERE wheel_arrangement = "2-8-0" AND year_made = "1883"
What is the manufacturer with a wheel arrangement of 2-8-0, and Year made of 1883?
CREATE TABLE table_name_82 (manufacturer VARCHAR, wheel_arrangement VARCHAR, year_made VARCHAR)
SELECT MAX(attendance) FROM table_name_89 WHERE time = "2:42"
What was the attendance for the game that went 2:42?
CREATE TABLE table_name_89 (attendance INTEGER, time VARCHAR)
SELECT record FROM table_27744976_10 WHERE team = "Indiana"
What was the rocket's record when they played against Indiana?
CREATE TABLE table_27744976_10 (record VARCHAR, team VARCHAR)
SELECT kickoff_[a_] FROM table_name_25 WHERE week = "3"
What is the kickoff time for week 3?
CREATE TABLE table_name_25 (kickoff_ VARCHAR, a_ VARCHAR, week VARCHAR)
SELECT driver FROM table_name_48 WHERE laps = 20
I want the Driver with Laps of 20
CREATE TABLE table_name_48 (driver VARCHAR, laps VARCHAR)
SELECT technology FROM table_name_20 WHERE toxic_materials = "yes" AND moving_parts = "no"
What's the technology when there are no moving parts but yes to toxic materials?
CREATE TABLE table_name_20 (technology VARCHAR, toxic_materials VARCHAR, moving_parts VARCHAR)
SELECT fastest_lap FROM table_name_39 WHERE grand_prix = "brazilian grand prix"
Name the fastest lap for the brazilian grand prix
CREATE TABLE table_name_39 (fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT cpu_speed FROM table_name_74 WHERE type = "new plus"
What is the CPU speed(s) of the New Plus type hardware?
CREATE TABLE table_name_74 (cpu_speed VARCHAR, type VARCHAR)
SELECT venue FROM table_name_51 WHERE date = "january 9, 2011"
Which Venue has a Date of january 9, 2011?
CREATE TABLE table_name_51 (venue VARCHAR, date VARCHAR)
SELECT SUM(points) FROM table_name_18 WHERE lost < 10 AND name = "vfl denklingen" AND position > 2
what is the sum of points when lost is less than 10, name is vfl denklingen and position is higher than 2?
CREATE TABLE table_name_18 (points INTEGER, position VARCHAR, lost VARCHAR, name VARCHAR)
SELECT engine FROM table_name_98 WHERE finish = "27"
What Engine had a Finish of 27?
CREATE TABLE table_name_98 (engine VARCHAR, finish VARCHAR)
SELECT team FROM table_name_50 WHERE year = "1989"
What is the team in 1989?
CREATE TABLE table_name_50 (team VARCHAR, year VARCHAR)
SELECT engine FROM table_name_63 WHERE entrant = "team lotus" AND year > 1965
What engine did the Team Lotus have after 1965?
CREATE TABLE table_name_63 (engine VARCHAR, entrant VARCHAR, year VARCHAR)
SELECT team_2 FROM table_name_27 WHERE venue = "binh duong stadium, vietnam"
Can you tell me the Team 2 that has the Venue of binh duong stadium, vietnam?
CREATE TABLE table_name_27 (team_2 VARCHAR, venue VARCHAR)
SELECT senior_status FROM table_name_22 WHERE reason_for_termination = "death" AND chief_judge = "—"
What was the senior status for the judge who was terminated because of death, with a Chief Judge entry of —?
CREATE TABLE table_name_22 (senior_status VARCHAR, reason_for_termination VARCHAR, chief_judge VARCHAR)
SELECT bowling_figures_wickets_runs__overs_ FROM table_name_42 WHERE bowler = "gd mcgrath"
What were GD Mcgrath's bowling figures?
CREATE TABLE table_name_42 (bowling_figures_wickets_runs__overs_ VARCHAR, bowler VARCHAR)
SELECT COUNT(tor_fløysvik) FROM table_28677723_11 WHERE christer_tornell = 7
how many for floysvik and christer tornell is 7?
CREATE TABLE table_28677723_11 (tor_fløysvik VARCHAR, christer_tornell VARCHAR)
SELECT constructor FROM table_name_31 WHERE laps = "56" AND grid = "15"
Who was the constructor of the car that went 56 laps and had a grid of 15?
CREATE TABLE table_name_31 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT university_of_minnesota FROM table_name_63 WHERE rood_ & _taylor = "o" AND buechel_ & _manhart_spelling__pronunciation_ = "o"
Rood & Taylor of o, and a Buechel & Manhart spelling (pronunciation) of o had what university of Minnesota?
CREATE TABLE table_name_63 (university_of_minnesota VARCHAR, rood_ VARCHAR, _taylor VARCHAR, buechel_ VARCHAR, _manhart_spelling__pronunciation_ VARCHAR)
SELECT opponents FROM table_name_8 WHERE venue = "home" AND competition = "league play offs"
What was the opponent at the League Play Offs at home?
CREATE TABLE table_name_8 (opponents VARCHAR, venue VARCHAR, competition VARCHAR)
SELECT away_team AS score FROM table_16388478_3 WHERE home_team = "Port Adelaide"
What score did the away team receive against home team Port Adelaide?
CREATE TABLE table_16388478_3 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(enrollment) FROM table_16432543_1 WHERE nickname = "Blue Hens"
Total enrollment at the school with the nickname Blue Hens
CREATE TABLE table_16432543_1 (enrollment VARCHAR, nickname VARCHAR)
SELECT time_elapsed FROM table_name_11 WHERE destination = "jupiter" AND closest_approach = "4 february 2004"
With the Destination of Jupiter and the Closest approach of 4 February 2004, what is the Time elapsed?
CREATE TABLE table_name_11 (time_elapsed VARCHAR, destination VARCHAR, closest_approach VARCHAR)
SELECT MAX(grid) FROM table_name_71 WHERE rider = "tetsuya harada"
What is the highest grid that tetsuya harada rode in?
CREATE TABLE table_name_71 (grid INTEGER, rider VARCHAR)
SELECT winner FROM table_name_74 WHERE venue = "campbelltown sports stadium"
Who was the Winner at Campbelltown Sports Stadium?
CREATE TABLE table_name_74 (winner VARCHAR, venue VARCHAR)
SELECT movie_album FROM table_2528382_5 WHERE co_stars = "Bela Bose"
What movie did Bela Bose co-star in?
CREATE TABLE table_2528382_5 (movie_album VARCHAR, co_stars VARCHAR)
SELECT name FROM table_name_36 WHERE direction = "toyohashi east" AND length__km_ = 24.7
What line is 24.7 km and head towards Toyohashi East?
CREATE TABLE table_name_36 (name VARCHAR, direction VARCHAR, length__km_ VARCHAR)
SELECT title FROM table_2818164_5 WHERE production_code = 418
What is the name of the episode with 418 as the production code?
CREATE TABLE table_2818164_5 (title VARCHAR, production_code VARCHAR)
SELECT laps FROM table_name_49 WHERE grid = 9
How many laps for grid of 9?
CREATE TABLE table_name_49 (laps VARCHAR, grid VARCHAR)
SELECT away_team FROM table_name_49 WHERE home_team = "geelong"
What was the away team that played the home team of Geelong?
CREATE TABLE table_name_49 (away_team VARCHAR, home_team VARCHAR)
SELECT name FROM table_name_87 WHERE rank = "lieutenant colonel" AND begin_date = "1904-02-22 22 february 1904"
what name has a Rank of lieutenant colonel, and a Begin Date of 1904-02-22 22 february 1904?
CREATE TABLE table_name_87 (name VARCHAR, rank VARCHAR, begin_date VARCHAR)
SELECT MAX(year) FROM table_name_17 WHERE result = "won"
What was the latest year that resulted in won?
CREATE TABLE table_name_17 (year INTEGER, result VARCHAR)
SELECT league_goals FROM table_name_66 WHERE league_cup_goals = "0" AND scorer = "bill dearden"
What is the number of league goals when Bill Dearden was the scorer and there was 0 league cup goals?
CREATE TABLE table_name_66 (league_goals VARCHAR, league_cup_goals VARCHAR, scorer VARCHAR)
SELECT venue FROM table_name_60 WHERE date = "10 november 2007"
On 10 November 2007, what was the venue?
CREATE TABLE table_name_60 (venue VARCHAR, date VARCHAR)
SELECT COUNT(player) FROM table_26077092_7 WHERE college = "Purdue"
How many players are from Purdue?
CREATE TABLE table_26077092_7 (player VARCHAR, college VARCHAR)
SELECT 2000 FROM table_name_13 WHERE 2001 = "ferrari f133 5.5l v12 456 / 550"
Which car won the same award in 2000 that the ferrari f133 5.5l v12 456 / 550 won in 2001?
CREATE TABLE table_name_13 (Id VARCHAR)
SELECT MAX(meas_num) FROM table_256286_55
What is the highest measure number?
CREATE TABLE table_256286_55 (meas_num INTEGER)
SELECT venue FROM table_name_22 WHERE result = "3–0" AND competition = "2006 fifa world cup qualifier" AND score = "3–0"
What is the Venue with a Result of 3–0, and a Competition with 2006 fifa world cup qualifier, and with a Score of 3–0?
CREATE TABLE table_name_22 (venue VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR)
SELECT COUNT(enrollment) FROM table_name_56 WHERE school = "shakamak"
How much Enrollment has a School of shakamak?
CREATE TABLE table_name_56 (enrollment VARCHAR, school VARCHAR)
SELECT production_number FROM table_name_52 WHERE director = "friz freleng" AND title = "wacky worm, the"
Name the Production Number with a Director of friz freleng, and a Title of wacky worm, the?
CREATE TABLE table_name_52 (production_number VARCHAR, director VARCHAR, title VARCHAR)
SELECT record FROM table_name_61 WHERE team = "utah"
What is the record of team utah?
CREATE TABLE table_name_61 (record VARCHAR, team VARCHAR)
SELECT british FROM table_name_55 WHERE letter = "o /oʊ/"
What is the British letter with o /oʊ/?
CREATE TABLE table_name_55 (british VARCHAR, letter VARCHAR)
SELECT opponent FROM table_name_94 WHERE record = "10-6"
Which opponent led to a record of 10-6?
CREATE TABLE table_name_94 (opponent VARCHAR, record VARCHAR)
SELECT grüne FROM table_name_14 WHERE fritz = "1.3%"
What percent did GRÜNE get in the state where FRITZ got 1.3%?
CREATE TABLE table_name_14 (grüne VARCHAR, fritz VARCHAR)
SELECT date_of_appointment FROM table_26998135_2 WHERE date_of_vacancy = "15 March 2011"
What is the date of appointment when the date of vacancy is 15 march 2011?
CREATE TABLE table_26998135_2 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)
SELECT year FROM table_name_80 WHERE works_no = "2040-2049"
In what Year is the Works No. 2040-2049?
CREATE TABLE table_name_80 (year VARCHAR, works_no VARCHAR)
SELECT years_as_tallest FROM table_name_12 WHERE street_address = "324 e. 11th street"
What's the Years as tallest with a Street address of 324 E. 11th Street?
CREATE TABLE table_name_12 (years_as_tallest VARCHAR, street_address VARCHAR)
SELECT winning_team FROM table_name_47 WHERE fastest_lap = "1:13.516"
Which team had the fastest lap of 1:13.516?
CREATE TABLE table_name_47 (winning_team VARCHAR, fastest_lap VARCHAR)
SELECT away_team AS score FROM table_name_62 WHERE home_team = "collingwood"
At the home game in Collingwood, how much did the away team score?
CREATE TABLE table_name_62 (away_team VARCHAR, home_team VARCHAR)
SELECT service FROM table_name_96 WHERE origin_of_programming = "india" AND genre = "general" AND network = "zee variasi"
Which general service in India is a part of the zee variasi network?
CREATE TABLE table_name_96 (service VARCHAR, network VARCHAR, origin_of_programming VARCHAR, genre VARCHAR)
SELECT original_air_date FROM table_24018430_3 WHERE production_code = 216
what is the original air date for production code 216?
CREATE TABLE table_24018430_3 (original_air_date VARCHAR, production_code VARCHAR)
SELECT MIN(san_jose_goals) FROM table_name_28 WHERE san_jose_wins < 0
Which San Jose goals have a San Jose wins smaller than 0?
CREATE TABLE table_name_28 (san_jose_goals INTEGER, san_jose_wins INTEGER)
SELECT 1976 FROM table_name_67 WHERE tournament = "overall win – loss"
What 1976 has a Tournament of overall win – loss?
CREATE TABLE table_name_67 (tournament VARCHAR)
SELECT AVG(poles) FROM table_name_65 WHERE wins = 0 AND position = "nc" AND season < 2004
What is the average Poles, when Wins is 0, when Position is "nc", and when Season is before 2004?
CREATE TABLE table_name_65 (poles INTEGER, season VARCHAR, wins VARCHAR, position VARCHAR)
SELECT to_par FROM table_name_48 WHERE money___$__ > 5 OFFSET 500
Which To par has a Money ($) larger than 5,500?
CREATE TABLE table_name_48 (to_par VARCHAR, money___$__ INTEGER)
SELECT date FROM table_28298589_4 WHERE visiting_team = "Texas Southern"
What date was the game where Texas Southern was the visiting team?
CREATE TABLE table_28298589_4 (date VARCHAR, visiting_team VARCHAR)
SELECT MAX(series__number) FROM table_26808178_3 WHERE us_viewers__millions_ = "0.852"
Which series # had 0.852 U.S. viewers(millions)?
CREATE TABLE table_26808178_3 (series__number INTEGER, us_viewers__millions_ VARCHAR)
SELECT SUM(pick) FROM table_name_66 WHERE player = "bill bray"
Which pick was Bill Bray?
CREATE TABLE table_name_66 (pick INTEGER, player VARCHAR)
SELECT result FROM table_name_33 WHERE week = 3
Tell me the result for week of 3
CREATE TABLE table_name_33 (result VARCHAR, week VARCHAR)
SELECT home_team FROM table_name_6 WHERE venue = "arden street oval"
Who was the home team when the VFL played Arden Street Oval?
CREATE TABLE table_name_6 (home_team VARCHAR, venue VARCHAR)
SELECT player FROM table_name_82 WHERE college = "baylor"
Which players college was Baylor?
CREATE TABLE table_name_82 (player VARCHAR, college VARCHAR)
SELECT viewers__in_millions_ FROM table_25356350_2 WHERE series__number = 1
How many viewers (in millions) did episode 1 have?
CREATE TABLE table_25356350_2 (viewers__in_millions_ VARCHAR, series__number VARCHAR)
SELECT awardee_s_ FROM table_25926120_3 WHERE name_of_award = "Best Actress"
Who won best actress?
CREATE TABLE table_25926120_3 (awardee_s_ VARCHAR, name_of_award VARCHAR)
SELECT enrollment FROM table_262481_2 WHERE left = "2012" AND nickname = "Panthers"
What is the enrollment for the institution nicknamed the panthers that left in 2012?
CREATE TABLE table_262481_2 (enrollment VARCHAR, left VARCHAR, nickname VARCHAR)
SELECT SUM(drew) FROM table_name_17 WHERE lost > 14
Which Drew has a Lost larger than 14?
CREATE TABLE table_name_17 (drew INTEGER, lost INTEGER)
SELECT att FROM table_name_75 WHERE time = "2:14"
Which Att has a Time of 2:14?
CREATE TABLE table_name_75 (att VARCHAR, time VARCHAR)
SELECT AVG(starts) FROM table_name_34 WHERE wins > 0 AND position = "32nd"
What is the average start with wins larger than 0 and 32nd position?
CREATE TABLE table_name_34 (starts INTEGER, wins VARCHAR, position VARCHAR)
SELECT articulatory_class FROM table_name_27 WHERE non__stop = "(ㆁ)"
If the Non- stop is (ㆁ), what is the Articulatory Class?
CREATE TABLE table_name_27 (articulatory_class VARCHAR, non__stop VARCHAR)
SELECT away_team FROM table_name_72 WHERE home_team = "collingwood"
Who played Collingwood?
CREATE TABLE table_name_72 (away_team VARCHAR, home_team VARCHAR)
SELECT part_3 FROM table_1745843_5 WHERE part_2 = "band"
What is the 3rd participle of the verb whose 2nd participle is band?
CREATE TABLE table_1745843_5 (part_3 VARCHAR, part_2 VARCHAR)