answer
stringlengths
28
316
question
stringlengths
21
201
context
stringlengths
33
286
SELECT MAX(played) FROM table_name_26 WHERE position > 5 AND points > 0 AND drawn < 0
Which Played has a Position larger than 5, a Points larger than 0, and a Drawn smaller than 0?
CREATE TABLE table_name_26 (played INTEGER, drawn VARCHAR, position VARCHAR, points VARCHAR)
SELECT player FROM table_name_63 WHERE team = "1970s"
Who is the player on a team from the 1970s?
CREATE TABLE table_name_63 (player VARCHAR, team VARCHAR)
SELECT team FROM table_name_74 WHERE drivers = "christian fittipaldi"
Christian Fittipaldi drove in what team?
CREATE TABLE table_name_74 (team VARCHAR, drivers VARCHAR)
SELECT country FROM table_28498999_3 WHERE score = 72 - 63 - 71 - 68 = 274
What is the country for the score 72-63-71-68=274?
CREATE TABLE table_28498999_3 (country VARCHAR, score VARCHAR)
SELECT area__km²_ FROM table_name_95 WHERE pop__km² < 0.97 AND _english_ = "east"
What area has less than 0.97 mil in population and is on the east?
CREATE TABLE table_name_95 (area__km²_ VARCHAR, pop__km² VARCHAR, _english_ VARCHAR)
SELECT became_duchess FROM table_name_77 WHERE name = "eleonor magdalene of the palatinate-neuburg"
When did eleonor magdalene of the palatinate-neuburg become duchess?
CREATE TABLE table_name_77 (became_duchess VARCHAR, name VARCHAR)
SELECT january FROM table_name_59 WHERE march = "alexandria karlsen"
Who is the January playmate with a March playmate Alexandria Karlsen?
CREATE TABLE table_name_59 (january VARCHAR, march VARCHAR)
SELECT school_year FROM table_14603212_5 WHERE class_aAAA = Gregory - Portland
What are all the school years where class AAAA is in Gregory-Portland?
CREATE TABLE table_14603212_5 (school_year VARCHAR, class_aAAA VARCHAR, Gregory VARCHAR, Portland VARCHAR)
SELECT gold FROM table_name_15 WHERE year = 1998
Who won the gold medal in 1998?
CREATE TABLE table_name_15 (gold VARCHAR, year VARCHAR)
SELECT surface FROM table_name_61 WHERE opponent = "ivo klec" AND score = "6–3, 6–3"
What is the Surface of the court against Ivo Klec with a Score of 6–3, 6–3?
CREATE TABLE table_name_61 (surface VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT engine FROM table_name_59 WHERE entrant = "larrousse f1"
Name the engine with entrant of larrousse f1
CREATE TABLE table_name_59 (engine VARCHAR, entrant VARCHAR)
SELECT match_date FROM table_22384475_1 WHERE winner = "West Indies"
What date did the West Indies win the match?
CREATE TABLE table_22384475_1 (match_date VARCHAR, winner VARCHAR)
SELECT guest_2 FROM table_20466963_4 WHERE guest_4 = "Iyare Igiehon" AND guest_3 = "John Oliver"
Who is the guest 2 in the episode where guest 4 is Iyare Igiehon and guest 3 is John Oliver?
CREATE TABLE table_20466963_4 (guest_2 VARCHAR, guest_4 VARCHAR, guest_3 VARCHAR)
SELECT away_team FROM table_name_82 WHERE home_team = "hawthorn"
What team played Hawthorn?
CREATE TABLE table_name_82 (away_team VARCHAR, home_team VARCHAR)
SELECT country FROM table_20754016_2 WHERE hometown = "Chihuahua"
What country is the contestant from Chihuahua from?
CREATE TABLE table_20754016_2 (country VARCHAR, hometown VARCHAR)
SELECT venue FROM table_name_71 WHERE date = "10-09-2012"
What was the venue for the game on 10-09-2012?
CREATE TABLE table_name_71 (venue VARCHAR, date VARCHAR)
SELECT to_par FROM table_name_99 WHERE year_s__won = "1968 , 1971"
What is To Par, when Year(s) Won is "1968 , 1971"?
CREATE TABLE table_name_99 (to_par VARCHAR, year_s__won VARCHAR)
SELECT first_elected FROM table_name_28 WHERE party = "labor" AND member = "james sharpe"
Which first election for the labor party is James Sharpe a part of?
CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, member VARCHAR)
SELECT winning_team FROM table_18095719_2 WHERE circuit = "Zolder"
Who was the winning team on the circuit Zolder?
CREATE TABLE table_18095719_2 (winning_team VARCHAR, circuit VARCHAR)
SELECT family_friendly FROM table_name_8 WHERE decade = "1970s" AND genre = "punk"
What is the family friendly status of the punk genre song from the 1970s?
CREATE TABLE table_name_8 (family_friendly VARCHAR, decade VARCHAR, genre VARCHAR)
SELECT highest_rank FROM table_name_44 WHERE name = "yoshiazuma"
Which Rank is Highest for Yoshiazuma?
CREATE TABLE table_name_44 (highest_rank VARCHAR, name VARCHAR)
SELECT enterprise FROM table_name_1 WHERE datacenter = "yes" AND features = "memory modules: hot replacement"
What is the Enterprise for teh memory modules: hot replacement Feature that has a Datacenter of Yes?
CREATE TABLE table_name_1 (enterprise VARCHAR, datacenter VARCHAR, features VARCHAR)
SELECT score FROM table_name_81 WHERE game = 2
When the game is listed as 2, what is the score?
CREATE TABLE table_name_81 (score VARCHAR, game VARCHAR)
SELECT COUNT(*) FROM item WHERE NOT i_id IN (SELECT i_id FROM review)
Find the number of items that did not receive any review.
CREATE TABLE review (i_id VARCHAR); CREATE TABLE item (i_id VARCHAR)
SELECT attendance FROM table_name_62 WHERE record = "1-1"
How many people attended the game whose score was 1-1?
CREATE TABLE table_name_62 (attendance VARCHAR, record VARCHAR)
SELECT branding FROM table_name_38 WHERE power = "10 kw" AND location = "iloilo city"
What is the Branding of the Iloilo City Frequency with a Power of 10 Kw?
CREATE TABLE table_name_38 (branding VARCHAR, power VARCHAR, location VARCHAR)
SELECT location FROM table_name_9 WHERE round < 3 AND opponent = "matt horwich"
Which location had a round of 3, and an Opponent of matt horwich?
CREATE TABLE table_name_9 (location VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT high_assists FROM table_17288825_10 WHERE date = "April 7"
What was the high assists on April 7?
CREATE TABLE table_17288825_10 (high_assists VARCHAR, date VARCHAR)
SELECT SUM(total) FROM table_name_34 WHERE gold > 97 AND silver < 332
What nation had more than 97 Gold Medals and fewer than 332 Silver Medals?
CREATE TABLE table_name_34 (total INTEGER, gold VARCHAR, silver VARCHAR)
SELECT away FROM table_name_46 WHERE plyff = "(0-0)" AND opponent = "sioux city bandits"
Which away team has a playoff record of (0-0) and played against Sioux City Bandits?
CREATE TABLE table_name_46 (away VARCHAR, plyff VARCHAR, opponent VARCHAR)
SELECT title FROM table_name_16 WHERE name = "ahaziah"
What is the title of ahaziah?
CREATE TABLE table_name_16 (title VARCHAR, name VARCHAR)
SELECT COUNT(goals_against) FROM table_name_97 WHERE played > 34
How many Goals against have Played more than 34?
CREATE TABLE table_name_97 (goals_against VARCHAR, played INTEGER)
SELECT replaced_by FROM table_26998135_2 WHERE date_of_vacancy = "27 December 2010"
Who is the replaced by when the date of vacancy is 27 december 2010?
CREATE TABLE table_26998135_2 (replaced_by VARCHAR, date_of_vacancy VARCHAR)
SELECT launch_date FROM table_name_22 WHERE designation = "atv-002"
When did the atv-002 launch?
CREATE TABLE table_name_22 (launch_date VARCHAR, designation VARCHAR)
SELECT date FROM table_name_50 WHERE circuit = "interlagos"
Name the date for circuit of interlagos
CREATE TABLE table_name_50 (date VARCHAR, circuit VARCHAR)
SELECT round FROM table_name_39 WHERE opponent = "joe lauzon"
In what round did opponent Joe Lauzon play?
CREATE TABLE table_name_39 (round VARCHAR, opponent VARCHAR)
SELECT pole_position FROM table_26137666_3 WHERE circuit = "Castle Combe" AND winning_driver = "Robbie Kerr"
What is every pole position for the Castle Combe circuit and Robbie Kerr is the winning driver?
CREATE TABLE table_26137666_3 (pole_position VARCHAR, circuit VARCHAR, winning_driver VARCHAR)
SELECT place FROM table_name_48 WHERE player = "justin leonard"
Which Place has a Player of justin leonard?
CREATE TABLE table_name_48 (place VARCHAR, player VARCHAR)
SELECT orchestra FROM table_222198_1 WHERE year_of_recording = 1934
Where is the orchestra when the year of recording is 1934?
CREATE TABLE table_222198_1 (orchestra VARCHAR, year_of_recording VARCHAR)
SELECT time_retired FROM table_name_89 WHERE constructor = "brabham - climax" AND grid = 10
What is the Time/Retired for brabham - climax, on Grid of 10?
CREATE TABLE table_name_89 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR)
SELECT opponent FROM table_name_84 WHERE result = "l 27-20"
Tell me the opponent that had a result of l 27-20
CREATE TABLE table_name_84 (opponent VARCHAR, result VARCHAR)
SELECT team FROM table_17275810_7 WHERE replaced_by = "Mario Somma"
Name the team for mario somma
CREATE TABLE table_17275810_7 (team VARCHAR, replaced_by VARCHAR)
SELECT score FROM table_name_97 WHERE date = "march 18"
What is the score on March 18?
CREATE TABLE table_name_97 (score VARCHAR, date VARCHAR)
SELECT manufacturer FROM table_24193494_3 WHERE order_year = 2011
Name the manufacturer for 2011
CREATE TABLE table_24193494_3 (manufacturer VARCHAR, order_year VARCHAR)
SELECT year FROM table_name_83 WHERE tournament = "1st division el salvador" AND finish = "champion" AND team = "fas"
In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas?
CREATE TABLE table_name_83 (year VARCHAR, team VARCHAR, tournament VARCHAR, finish VARCHAR)
SELECT Ends AS lost FROM table_15333005_1 WHERE pa = 67
Name the ends lost for 67 pa
CREATE TABLE table_15333005_1 (Ends VARCHAR, pa VARCHAR)
SELECT MIN(grid) FROM table_name_21 WHERE time_retired = "steering" AND laps < 15
What is the low grid total for a retired due to steering in under 15 laps?
CREATE TABLE table_name_21 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT COUNT(candidates) FROM table_1341472_15 WHERE first_elected = "1948 , 1964"
what's the total number of candidates for first elected in 1948 , 1964
CREATE TABLE table_1341472_15 (candidates VARCHAR, first_elected VARCHAR)
SELECT original_title FROM table_20061872_1 WHERE film_title_used_in_nomination = "Zozo"
What's the original title of the film Zozo?
CREATE TABLE table_20061872_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT SUM(bronze) FROM table_name_67 WHERE rank = "10" AND gold < 0
What is the sum of bronzes associated with 0 golds and a rank of 10?
CREATE TABLE table_name_67 (bronze INTEGER, rank VARCHAR, gold VARCHAR)
SELECT country FROM table_name_94 WHERE transfer_fee = "loan" AND name = "lynch"
What is the Country, when the Transfer fee is "loan", and when the Name is Lynch?
CREATE TABLE table_name_94 (country VARCHAR, transfer_fee VARCHAR, name VARCHAR)
SELECT AVG(year) FROM table_name_66 WHERE position = "9th" AND event = "100 m" AND venue = "munich, germany"
What is the average Year, when Position is 9th, when Event is 100 m, and when Venue is Munich, Germany?
CREATE TABLE table_name_66 (year INTEGER, venue VARCHAR, position VARCHAR, event VARCHAR)
SELECT COUNT(date) FROM table_27274566_2 WHERE home_team = "Orlando Pirates" AND result = "1–3"
How many dates are shown for the home team of orlando pirates and result of 1–3?
CREATE TABLE table_27274566_2 (date VARCHAR, home_team VARCHAR, result VARCHAR)
SELECT DISTINCT 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 GROUP BY T1.customer_id HAVING COUNT(DISTINCT T3.product_id) >= 3
Find the names of customers who have bought by at least three distinct products.
CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)
SELECT SUM(goals) FROM table_name_52 WHERE assists = 12 AND apps < 291
What is the total goals with 12 assists, and less than 291 apps?
CREATE TABLE table_name_52 (goals INTEGER, assists VARCHAR, apps VARCHAR)
SELECT date_entered_service FROM table_11662133_3 WHERE ships_name = "Koningin Wilhelmina"
what's the date entered service with ships name koningin wilhelmina
CREATE TABLE table_11662133_3 (date_entered_service VARCHAR, ships_name VARCHAR)
SELECT nationality FROM table_name_52 WHERE time = 50.92
Which nationality has a time of 50.92?
CREATE TABLE table_name_52 (nationality VARCHAR, time VARCHAR)
SELECT MAX(number_of_seats) FROM table_name_45 WHERE leader = "jillian evans"
What is Jillian Evans highest number of seats?
CREATE TABLE table_name_45 (number_of_seats INTEGER, leader VARCHAR)
SELECT card_number, name, hometown FROM member ORDER BY LEVEL DESC
Show card number, name, and hometown for all members in a descending order of level.
CREATE TABLE member (card_number VARCHAR, name VARCHAR, hometown VARCHAR, LEVEL VARCHAR)
SELECT COUNT(gt1_winning_team) FROM table_12146068_2 WHERE rnd = 5
What is the number of gt1 winning team for rnd 5?
CREATE TABLE table_12146068_2 (gt1_winning_team VARCHAR, rnd VARCHAR)
SELECT week_1 FROM table_name_12 WHERE week_2 = "kamila sulewska"
Who was the girl on week 1 that preceded week 2's Kamila Sulewska?
CREATE TABLE table_name_12 (week_1 VARCHAR, week_2 VARCHAR)
SELECT high_points FROM table_27703902_9 WHERE game = 81
Who had the high points in game is 81?
CREATE TABLE table_27703902_9 (high_points VARCHAR, game VARCHAR)
SELECT MIN(react) FROM table_name_90 WHERE lane > 3 AND time < 20.3 AND nationality = "zimbabwe" AND rank > 1
What's the smallest react of Zimbabwe, ranked after 1 in a lane after 3 and a time less than 20.3?
CREATE TABLE table_name_90 (react INTEGER, rank VARCHAR, nationality VARCHAR, lane VARCHAR, time VARCHAR)
SELECT tyre FROM table_name_50 WHERE pole_position = "jacky ickx" AND race = "canadian grand prix"
In the Canadian Grand Prix, what tyre was used when Jacky Ickx held pole position?
CREATE TABLE table_name_50 (tyre VARCHAR, pole_position VARCHAR, race VARCHAR)
SELECT time FROM table_name_31 WHERE record = "66-95"
when is Record of 66-95?
CREATE TABLE table_name_31 (time VARCHAR, record VARCHAR)
SELECT COUNT(party) FROM table_1342370_10 WHERE incumbent = "Charles R. Crisp"
How many parties were represented for Charles R. Crisp?
CREATE TABLE table_1342370_10 (party VARCHAR, incumbent VARCHAR)
SELECT location FROM table_26476336_2 WHERE years = "2005-2010"
What location is listed from 2005-2010?
CREATE TABLE table_26476336_2 (location VARCHAR, years VARCHAR)
SELECT opponent FROM table_13258876_2 WHERE attendance = 61615
Who did the Seahawks play when the listed attendance was 61615?
CREATE TABLE table_13258876_2 (opponent VARCHAR, attendance VARCHAR)
SELECT position_in_2006 FROM table_name_77 WHERE team = "dnepr"
What was Team Dnepr's position in 2006?
CREATE TABLE table_name_77 (position_in_2006 VARCHAR, team VARCHAR)
SELECT AVG(level) FROM table_name_42 WHERE example_name = "lower snake" AND number_of_hus__approximate_ < 370
What is the mean level number when the example name is lower snake and the approximate number is hus is less than 370?
CREATE TABLE table_name_42 (level INTEGER, example_name VARCHAR, number_of_hus__approximate_ VARCHAR)
SELECT winner FROM table_name_20 WHERE runner_up = "real salt lake"
Who was the Winner when the Runner-up was Real Salt Lake?
CREATE TABLE table_name_20 (winner VARCHAR, runner_up VARCHAR)
SELECT MIN(altitude__mslm_) FROM table_1449169_1
What is the minimum altitude (mslm) in all the commons?
CREATE TABLE table_1449169_1 (altitude__mslm_ INTEGER)
SELECT attendance FROM table_name_53 WHERE game_site = "bye"
How many fans attended the game at Bye?
CREATE TABLE table_name_53 (attendance VARCHAR, game_site VARCHAR)
SELECT home_team AS score FROM table_16388398_1 WHERE away_team = "Sydney"
What was the score for the home team when the away team was Sydney?
CREATE TABLE table_16388398_1 (home_team VARCHAR, away_team VARCHAR)
SELECT AVG(rank) FROM table_name_73 WHERE lane = 6
What was the rank of the player in lane 6?
CREATE TABLE table_name_73 (rank INTEGER, lane VARCHAR)
SELECT authority FROM table_name_32 WHERE name = "whakamaru school"
What is the Whakamaru school's authority?
CREATE TABLE table_name_32 (authority VARCHAR, name VARCHAR)
SELECT liberal FROM table_name_36 WHERE polling_firm = "corporate research associates" AND prog_cons = "32%" AND dates = "august 2007"
According to the August 2007 poll by the Corporate Research Associates that reported 32% Prog. Cons., what percentage aligned with the Liberal party?
CREATE TABLE table_name_36 (liberal VARCHAR, dates VARCHAR, polling_firm VARCHAR, prog_cons VARCHAR)
SELECT AVG(lane) FROM table_name_80 WHERE heat < 2 AND name = "racheal nachula"
What is the average lane racheal nachula has when the heat is less than 2?
CREATE TABLE table_name_80 (lane INTEGER, heat VARCHAR, name VARCHAR)
SELECT tournament FROM table_name_40 WHERE date = "6 april 1992"
What is Tournament, when Date is "6 April 1992"?
CREATE TABLE table_name_40 (tournament VARCHAR, date VARCHAR)
SELECT T2.Hometown, COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown
What are the hometowns of gymnasts and the corresponding number of gymnasts?
CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR)
SELECT SUM(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = "Cancelled"
What is the total number of products that are in orders with status "Cancelled"?
CREATE TABLE customer_orders (order_id VARCHAR, order_status VARCHAR); CREATE TABLE order_items (order_quantity INTEGER, order_id VARCHAR)
SELECT score FROM table_name_67 WHERE tie_no = "109"
What is Score, when Tie No is "109"?
CREATE TABLE table_name_67 (score VARCHAR, tie_no VARCHAR)
SELECT notes FROM table_name_71 WHERE rank < 6 AND athlete = "ioannis christou"
Ioannis Christou with a rank smaller than 6 has what notes?
CREATE TABLE table_name_71 (notes VARCHAR, rank VARCHAR, athlete VARCHAR)
SELECT finalist FROM table_name_83 WHERE winner = "first vienna fc"
Who was the finalist when the winner was First Vienna FC?
CREATE TABLE table_name_83 (finalist VARCHAR, winner VARCHAR)
SELECT title FROM table_15824796_3 WHERE original_air_date = "February 27, 1954"
What is the title of the first episode of the season that begin on february 27, 1954?
CREATE TABLE table_15824796_3 (title VARCHAR, original_air_date VARCHAR)
SELECT date FROM table_name_77 WHERE record = "88-74"
Question does not make sense since there was no record of 88-74
CREATE TABLE table_name_77 (date VARCHAR, record VARCHAR)
SELECT SUM(crowd) FROM table_name_74 WHERE home_team = "north melbourne"
What is the sum of all the crowds that watched North Melbourne at home?
CREATE TABLE table_name_74 (crowd INTEGER, home_team VARCHAR)
SELECT may_2009 FROM table_23680576_2 WHERE jul_2009 = "7.2%"
If the polling average in July 2009 was 7.2%, what was it in May 2009?
CREATE TABLE table_23680576_2 (may_2009 VARCHAR, jul_2009 VARCHAR)
SELECT COUNT(number_of_major_hurricanes) FROM table_2930244_3 WHERE deaths = "None"
When the death is none what is the number of major hurricanes?
CREATE TABLE table_2930244_3 (number_of_major_hurricanes VARCHAR, deaths VARCHAR)
SELECT launched FROM table_name_31 WHERE time_elapsed = "1991 days (5 yr, 5 mo, 12 d)"
What Launched has Time elapsed of 1991 days (5 yr, 5 mo, 12 d)?
CREATE TABLE table_name_31 (launched VARCHAR, time_elapsed VARCHAR)
SELECT region FROM table_name_77 WHERE catalog_number = "3 12046 2"
What is the Region of the release with Catalog number 3 12046 2?
CREATE TABLE table_name_77 (region VARCHAR, catalog_number VARCHAR)
SELECT COUNT(total_pts) FROM table_21457754_2 WHERE team_name = "GBR Challenge"
Name the number of total pts for gbr challenge
CREATE TABLE table_21457754_2 (total_pts VARCHAR, team_name VARCHAR)
SELECT high_points FROM table_name_61 WHERE date = "november 20"
who had the high points on november 20?
CREATE TABLE table_name_61 (high_points VARCHAR, date VARCHAR)
SELECT MAX(gold) FROM table_name_16 WHERE total < 3 AND rank = "5" AND silver > 1
What is the largest gold number when the total is less than 3, the rank is 5, and the silver is more than 1?
CREATE TABLE table_name_16 (gold INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR)
SELECT high_assists FROM table_name_93 WHERE date = "march 10"
What is High Assists, when Date is "March 10"?
CREATE TABLE table_name_93 (high_assists VARCHAR, date VARCHAR)
SELECT MAX(opponents) FROM table_18847736_2 WHERE opponent = "at Minnesota Vikings"
How many opponents are at Minnesota Vikings?
CREATE TABLE table_18847736_2 (opponents INTEGER, opponent VARCHAR)
SELECT location FROM table_name_16 WHERE score = "119-115 (ot)"
Score of 119-115 (ot) involved what location?
CREATE TABLE table_name_16 (location VARCHAR, score VARCHAR)
SELECT place FROM table_name_11 WHERE score = 69 - 71 - 66 - 73 = 279
WHAT IS THE PLACE WITH THE SCORE 69-71-66-73=279?
CREATE TABLE table_name_11 (place VARCHAR, score VARCHAR)
SELECT SUM(average) FROM table_name_70 WHERE swimsuit < 9.62 AND country = "colorado"
What is the total average for swimsuits smaller than 9.62 in Colorado?
CREATE TABLE table_name_70 (average INTEGER, swimsuit VARCHAR, country VARCHAR)
SELECT location FROM table_29535057_4 WHERE big_ten_team = "Wisconsin"
Where did the games that had Wisconsin as big ten team take place?
CREATE TABLE table_29535057_4 (location VARCHAR, big_ten_team VARCHAR)