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