answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT results FROM table_1805191_6 WHERE incumbent = "Grace Napolitano"
What were the result(s) of the election featuring grace napolitano as the incumbent?
CREATE TABLE table_1805191_6 (results VARCHAR, incumbent VARCHAR)
SELECT competition FROM table_name_45 WHERE year > 2000
Which Competition has a Year larger than 2000?
CREATE TABLE table_name_45 (competition VARCHAR, year INTEGER)
SELECT home_team FROM table_name_82 WHERE tie_no = "6"
What home team has 6 as the tie no.?
CREATE TABLE table_name_82 (home_team VARCHAR, tie_no VARCHAR)
SELECT pole_winner FROM table_name_91 WHERE date = "may 12"
Tell me the pole winner of may 12
CREATE TABLE table_name_91 (pole_winner VARCHAR, date VARCHAR)
SELECT party FROM table_name_46 WHERE office = "majority floor leader"
Which Party has a Office of majority floor leader
CREATE TABLE table_name_46 (party VARCHAR, office VARCHAR)
SELECT COUNT(number) FROM table_name_62 WHERE builder = "hunslet" AND works_number > 822
What is the number with the builder hunslet and a works number greater than 822?
CREATE TABLE table_name_62 (number VARCHAR, builder VARCHAR, works_number VARCHAR)
SELECT AVG(rank) FROM table_name_76 WHERE time > 53.38
What is the average rank of an athlete that holds a time higher than 53.38?
CREATE TABLE table_name_76 (rank INTEGER, time INTEGER)
SELECT points_for FROM table_17625749_3 WHERE tries_against = "63"
How many points are there for 63 tries against?
CREATE TABLE table_17625749_3 (points_for VARCHAR, tries_against VARCHAR)
SELECT episode FROM table_26250151_1 WHERE original_recording_artist = "LaVern Baker"
Which episode had Lavern Baker?
CREATE TABLE table_26250151_1 (episode VARCHAR, original_recording_artist VARCHAR)
SELECT home_team FROM table_name_17 WHERE venue = "windy hill"
Can you tell me the Home team that has a Venue of Windy Hill?
CREATE TABLE table_name_17 (home_team VARCHAR, venue VARCHAR)
SELECT virtues FROM table_name_84 WHERE significant_relationship = "parents"
The Significant Relationship of Parents belongs with what Virtue?
CREATE TABLE table_name_84 (virtues VARCHAR, significant_relationship VARCHAR)
SELECT type FROM table_name_29 WHERE quantity = 11
Which type has a quantity of 11?
CREATE TABLE table_name_29 (type VARCHAR, quantity VARCHAR)
SELECT MAX(founded) FROM table_2076490_1
What is the latest founding date?
CREATE TABLE table_2076490_1 (founded INTEGER)
SELECT AVG(total) FROM table_name_72 WHERE year_s__won = "1978"
What was the average round score of the player who won in 1978?
CREATE TABLE table_name_72 (total INTEGER, year_s__won VARCHAR)
SELECT surface FROM table_name_91 WHERE date = "march 2, 1997"
What was the surface on march 2, 1997?
CREATE TABLE table_name_91 (surface VARCHAR, date VARCHAR)
SELECT total_itv_viewers__millions_ FROM table_27319183_7 WHERE official_itv_rating__millions_ = "10.24"
How many total itv viewers were there for the episode with official itv ratings of 10.24 million?
CREATE TABLE table_27319183_7 (total_itv_viewers__millions_ VARCHAR, official_itv_rating__millions_ VARCHAR)
SELECT owner FROM table_name_18 WHERE name___format = "105.3 kool fm - hot adult contemporary"
Which Owner has a Name / Format of 105.3 kool fm - hot adult contemporary?
CREATE TABLE table_name_18 (owner VARCHAR, name___format VARCHAR)
SELECT SUM(river_mile) FROM table_name_34 WHERE location_[l_] = "greenup, kentucky"
What is the total of the River Mile in Greenup, Kentucky?
CREATE TABLE table_name_34 (river_mile INTEGER, location_ VARCHAR, l_ VARCHAR)
SELECT AVG(prominence__m_) FROM table_name_37 WHERE peak = "nakanai mountains high point" AND elevation__m_ < 2 OFFSET 316
Which Prominence (m) has a Peak of nakanai mountains high point, and an Elevation (m) smaller than 2,316?
CREATE TABLE table_name_37 (prominence__m_ INTEGER, peak VARCHAR, elevation__m_ VARCHAR)
SELECT COUNT(position) FROM table_1965650_6 WHERE player = "Denis Patry"
How many positions for denis patry?
CREATE TABLE table_1965650_6 (position VARCHAR, player VARCHAR)
SELECT date_of_appointment FROM table_27374004_4 WHERE replaced_by = "Hugo Broos"
When was the date of appointment by Hugo Broos?
CREATE TABLE table_27374004_4 (date_of_appointment VARCHAR, replaced_by VARCHAR)
SELECT week FROM table_14941284_1 WHERE attendance = 74804
When 74804 is the attendance what week is it?
CREATE TABLE table_14941284_1 (week VARCHAR, attendance VARCHAR)
SELECT COUNT(rank) FROM table_name_33 WHERE events > 23 AND prize_money__$__ > 823 OFFSET 783
What is the rank for the player with events greater than 23 and prize money in excess of $823,783?
CREATE TABLE table_name_33 (rank VARCHAR, events VARCHAR, prize_money__$__ VARCHAR)
SELECT round FROM table_name_20 WHERE event = "jiu-jitsu vs martial arts"
What is the Round for the jiu-jitsu vs martial arts?
CREATE TABLE table_name_20 (round VARCHAR, event VARCHAR)
SELECT T3.ssn, T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT MAX(hours) FROM projects)
Find the SSN and name of scientists who are assigned to the project with the longest hours.
CREATE TABLE scientists (ssn VARCHAR, name VARCHAR, SSN VARCHAR); CREATE TABLE projects (code VARCHAR, hours INTEGER); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (hours INTEGER)
SELECT team FROM table_17140608_11 WHERE date = "April 23"
What team(s) did they play on april 23?
CREATE TABLE table_17140608_11 (team VARCHAR, date VARCHAR)
SELECT MAX(points) FROM table_name_69 WHERE entrant = "first racing" AND year > 1987
after 1987 and entrant of first racing what is the highest points?
CREATE TABLE table_name_69 (points INTEGER, entrant VARCHAR, year VARCHAR)
SELECT points FROM table_name_64 WHERE time_retired = "1:44:59.557"
How many points were scored in 1:44:59.557 of time?
CREATE TABLE table_name_64 (points VARCHAR, time_retired VARCHAR)
SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1
What is the phone number of the customer who has filed the most recent complaint?
CREATE TABLE customers (phone_number VARCHAR, customer_id VARCHAR); CREATE TABLE complaints (customer_id VARCHAR, date_complaint_raised VARCHAR)
SELECT label FROM table_name_61 WHERE region = "uk" AND date = "1986" AND format = "cd"
Which label has UK for its region, is on a CD, and is dated from 1986?
CREATE TABLE table_name_61 (label VARCHAR, format VARCHAR, region VARCHAR, date 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 FROM table_name_9 WHERE ground = "humber college north"
What is the Away with a Ground that is humber college north?
CREATE TABLE table_name_9 (away VARCHAR, ground VARCHAR)
SELECT MIN(points) FROM table_name_84 WHERE rider = "stéphane mertens"
Rider of stéphane mertens had what lowest points?
CREATE TABLE table_name_84 (points INTEGER, rider VARCHAR)
SELECT city_state FROM table_name_24 WHERE team = "atlanta hawks (retired)"
What City/State did the Atlanta Hawks (retired) team play for?
CREATE TABLE table_name_24 (city_state VARCHAR, team VARCHAR)
SELECT SUM(years) FROM table_name_7 WHERE tied < 37 AND total_games > 33 AND lost = 15
What is the year total for teams with under 37 games tied, over 33 games, and 15 losses?
CREATE TABLE table_name_7 (years INTEGER, lost VARCHAR, tied VARCHAR, total_games VARCHAR)
SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT artist_name FROM song WHERE languages = "english"
Find the names of the artists who are from UK and have produced English songs.
CREATE TABLE artist (artist_name VARCHAR, country VARCHAR, languages VARCHAR); CREATE TABLE song (artist_name VARCHAR, country VARCHAR, languages VARCHAR)
SELECT Competition_type FROM competition GROUP BY Competition_type HAVING COUNT(*) <= 5
List the types of competition that have at most five competitions of that type.
CREATE TABLE competition (Competition_type VARCHAR)
SELECT AVG(episodes) FROM table_name_64 WHERE average_ratings = "7.4%"
What episode has average ratings of 7.4%?
CREATE TABLE table_name_64 (episodes INTEGER, average_ratings VARCHAR)
SELECT result FROM table_name_9 WHERE opponent = "dundee" AND venue = "a" AND date = "6 september 1986"
What was the result when Dundee were the Opponent at Venue A on 6 September 1986?
CREATE TABLE table_name_9 (result VARCHAR, date VARCHAR, opponent VARCHAR, venue VARCHAR)
SELECT record FROM table_name_64 WHERE home = "minnesota"
What was the record when Minnesota was the home team?
CREATE TABLE table_name_64 (record VARCHAR, home VARCHAR)
SELECT COUNT(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id WHERE T2.account_name = "337"
How many transaction does account with name 337 have?
CREATE TABLE Accounts (account_id VARCHAR, account_name VARCHAR); CREATE TABLE Financial_transactions (account_id VARCHAR)
SELECT description FROM table_name_67 WHERE year_of_issue = 1983 AND weight = "3.50grams"
Which Description has a Year of Issue of 1983, and a Weight of 3.50grams?
CREATE TABLE table_name_67 (description VARCHAR, year_of_issue VARCHAR, weight VARCHAR)
SELECT translator_call_letters FROM table_name_94 WHERE station_call_letters = "kcop-dt"
What are the translator call letters for station call letters of KCOP-DT?
CREATE TABLE table_name_94 (translator_call_letters VARCHAR, station_call_letters VARCHAR)
SELECT opponent FROM table_name_48 WHERE round < 3 AND time = "1:09"
Which Opponent has a Round smaller than 3, and a Time of 1:09?
CREATE TABLE table_name_48 (opponent VARCHAR, round VARCHAR, time VARCHAR)
SELECT drawn FROM table_name_79 WHERE try_bp = "1"
What is the number drawn when the try BP is 1?
CREATE TABLE table_name_79 (drawn VARCHAR, try_bp VARCHAR)
SELECT to_par FROM table_name_5 WHERE player = "billy andrade"
What did billy andrade to par?
CREATE TABLE table_name_5 (to_par VARCHAR, player VARCHAR)
SELECT MIN(attendance) FROM table_10566855_1 WHERE score = "8.16 (64) – 8.12 (60)"
what is the minimum attendance with score 8.16 (64) – 8.12 (60)
CREATE TABLE table_10566855_1 (attendance INTEGER, score VARCHAR)
SELECT SUM(points) FROM table_name_32 WHERE chassis = "brm p160e" AND year > 1974
Name the sum of points for chassis of brm p160e and year more than 1974
CREATE TABLE table_name_32 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT COUNT(gold) FROM table_name_53 WHERE sport = "tennis" AND bronze < 2
When tennis has less than 2 bronze, what is the total number of Gold?
CREATE TABLE table_name_53 (gold VARCHAR, sport VARCHAR, bronze VARCHAR)
SELECT date FROM table_name_24 WHERE rank__number = "5" AND opponent_number = "stanford"
On what date was the game played where the opponent was Stanford, ranked #5?
CREATE TABLE table_name_24 (date VARCHAR, rank__number VARCHAR, opponent_number VARCHAR)
SELECT score FROM table_name_65 WHERE date = "1 august 2008"
What was the final score on 1 August 2008?
CREATE TABLE table_name_65 (score VARCHAR, date VARCHAR)
SELECT league FROM table_name_2 WHERE reg_season = "1st"
Tell me the league with a regular 1st season
CREATE TABLE table_name_2 (league VARCHAR, reg_season VARCHAR)
SELECT batting_style FROM table_11950720_3 WHERE player = "Javagal Srinath"
What's Javagal Srinath's batting style?
CREATE TABLE table_11950720_3 (batting_style VARCHAR, player VARCHAR)
SELECT ethernet_ports FROM table_name_5 WHERE name = "m1500"
What is the ethernet ports of the m1500 appliance?
CREATE TABLE table_name_5 (ethernet_ports VARCHAR, name VARCHAR)
SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Demon Kitty Rag"
Find the number of vocal types used in song "Demon Kitty Rag"?
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT san_javier_municipality___percentage_ FROM table_19998428_3 WHERE cuatro_cañadas_municipality___percentage_ = "202"
What is the San Javier municipality percentage if the Cuatro Cañadas municipality percentage is 202?
CREATE TABLE table_19998428_3 (san_javier_municipality___percentage_ VARCHAR, cuatro_cañadas_municipality___percentage_ VARCHAR)
SELECT series FROM table_23286158_11 WHERE game = 5
What was the series where the game was 5?
CREATE TABLE table_23286158_11 (series VARCHAR, game VARCHAR)
SELECT SUM(bronze) FROM table_name_58 WHERE nation = "mexico" AND total > 1
How much Bronze has a Nation of mexico, and a Total larger than 1?
CREATE TABLE table_name_58 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT margin_of_victory FROM table_1602858_1 WHERE winning_score = 63 - 68 - 68 - 68 = 267
What was the margin of victory with the winning score "63-68-68-68=267"?
CREATE TABLE table_1602858_1 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT tournament FROM table_name_8 WHERE date = "jan 29, 2012"
What tournament was on Jan 29, 2012?
CREATE TABLE table_name_8 (tournament VARCHAR, date VARCHAR)
SELECT COUNT(blocks) FROM table_25342713_5 WHERE points = 89
How many players 89 points?
CREATE TABLE table_25342713_5 (blocks VARCHAR, points VARCHAR)
SELECT runner_up FROM table_name_18 WHERE third_place = "yevgeny kafelnikov" AND score = "3–6, 6–4, [10–3]"
What is the name of the runner up when yevgeny kafelnikov was third place and the score was 3–6, 6–4, [10–3]?
CREATE TABLE table_name_18 (runner_up VARCHAR, third_place VARCHAR, score VARCHAR)
SELECT SUM(Num_of_Audience) FROM festival_detail
What are the total number of the audiences who visited any of the festivals?
CREATE TABLE festival_detail (Num_of_Audience INTEGER)
SELECT record FROM table_23248869_10 WHERE team = "Boston"
What is every record for the team Boston?
CREATE TABLE table_23248869_10 (record VARCHAR, team VARCHAR)
SELECT COUNT(network) FROM table_12438767_1 WHERE dates_aired = "1981"
How many networks aired the franchise in 1981 only?
CREATE TABLE table_12438767_1 (network VARCHAR, dates_aired VARCHAR)
SELECT player FROM table_197638_6 WHERE french_open = 1999
Who won the French Open in 1999?
CREATE TABLE table_197638_6 (player VARCHAR, french_open VARCHAR)
SELECT call_sign FROM table_name_81 WHERE frequency = "fm 105.3"
Which call sign has a frequency of FM 105.3?
CREATE TABLE table_name_81 (call_sign VARCHAR, frequency VARCHAR)
SELECT branding FROM table_name_54 WHERE location = "cagayan de oro"
What is the brand where the location is Cagayan De Oro?
CREATE TABLE table_name_54 (branding VARCHAR, location VARCHAR)
SELECT AVG(lost) FROM table_name_33 WHERE diff > -16 AND points = 19 AND against > 24
What is the average number lost with a difference of -16, 19 points, and more than 24 against?
CREATE TABLE table_name_33 (lost INTEGER, against VARCHAR, diff VARCHAR, points VARCHAR)
SELECT venue FROM table_name_74 WHERE home_team = "geelong"
Where did Geelong play a home game?
CREATE TABLE table_name_74 (venue VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_70 WHERE record = "92–70"
Record of 92–70 had what date?
CREATE TABLE table_name_70 (date VARCHAR, record VARCHAR)
SELECT college FROM table_26533354_8 WHERE player = "David Carter"
Name the college for david carter
CREATE TABLE table_26533354_8 (college VARCHAR, player VARCHAR)
SELECT COUNT(total) FROM table_name_98 WHERE bronze < 3 AND nation = "zimbabwe" AND silver < 6
How many totals have a Bronze smaller than 3, a Nation of zimbabwe, and a Silver smaller than 6?
CREATE TABLE table_name_98 (total VARCHAR, silver VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT tournament FROM table_name_62 WHERE score = "6–4, 6–2"
Which Tournament has a Score of 6–4, 6–2?
CREATE TABLE table_name_62 (tournament VARCHAR, score VARCHAR)
SELECT date FROM table_name_15 WHERE attendance > 17 OFFSET 652
On what date was the attendance more than 17,652?
CREATE TABLE table_name_15 (date VARCHAR, attendance INTEGER)
SELECT COUNT(type) FROM table_256286_61 WHERE _percentage_yes = "68.91%"
How many type catagories are listed when the percentage of yes is 68.91%?
CREATE TABLE table_256286_61 (type VARCHAR, _percentage_yes VARCHAR)
SELECT MIN(points) FROM table_name_53 WHERE player = "stuart" AND extra_points < 0
How many points did Stuart have when he had 0 extra points?
CREATE TABLE table_name_53 (points INTEGER, player VARCHAR, extra_points VARCHAR)
SELECT MIN(population__may), _2000_ FROM table_2051288_1 WHERE location = "coastal" AND barangay = "Isio"
What was the population of the coastal location Isio in May of 2000?
CREATE TABLE table_2051288_1 (_2000_ VARCHAR, population__may INTEGER, location VARCHAR, barangay VARCHAR)
SELECT engine FROM table_name_24 WHERE chassis = "lotus 44 f2"
Which engine has a Chassis of lotus 44 f2?
CREATE TABLE table_name_24 (engine VARCHAR, chassis VARCHAR)
SELECT directed_by FROM table_12722302_2 WHERE us_viewers__million_ = "3.19"
Who directed the episode with 3.19 million u.s. viewers?
CREATE TABLE table_12722302_2 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(voters_in_1800) FROM table_24329520_8 WHERE borough = "Drogheda"
What is the number of voters in 1800 that have boroughs named Drogheda?
CREATE TABLE table_24329520_8 (voters_in_1800 VARCHAR, borough VARCHAR)
SELECT song_name FROM song WHERE rating < (SELECT MIN(rating) FROM song WHERE languages = 'english')
What are the names of the songs whose rating is below the rating of all songs in English?
CREATE TABLE song (song_name VARCHAR, rating INTEGER, languages VARCHAR)
SELECT loan_club FROM table_name_35 WHERE name = "c. dickinson"
From which club is player C. Dickinson?
CREATE TABLE table_name_35 (loan_club VARCHAR, name VARCHAR)
SELECT COUNT(winning_team) FROM table_14638077_2 WHERE circuit = "Road America"
how many winning team with circuit being road america
CREATE TABLE table_14638077_2 (winning_team VARCHAR, circuit VARCHAR)
SELECT player FROM table_10015132_14 WHERE years_in_toronto = "1995-96"
Who played in the Toronto Raptors from 1995-96?
CREATE TABLE table_10015132_14 (player VARCHAR, years_in_toronto VARCHAR)
SELECT COUNT(wins) FROM table_19001175_1 WHERE name = "Michele Rugolo Category:Articles with hCards"
Name the number of wins for michele rugolo category:articles with hcards
CREATE TABLE table_19001175_1 (wins VARCHAR, name VARCHAR)
SELECT home_team AS score FROM table_name_32 WHERE venue = "brunswick street oval"
When the venue was brunswick street oval what was the home teams score?
CREATE TABLE table_name_32 (home_team VARCHAR, venue VARCHAR)
SELECT MIN(week) FROM table_name_21 WHERE result = "w 31-16"
What week number saw a w 31-16 result?
CREATE TABLE table_name_21 (week INTEGER, result VARCHAR)
SELECT * FROM products WHERE price BETWEEN 60 AND 120
Find all information of all the products with a price between $60 and $120.
CREATE TABLE products (price INTEGER)
SELECT bus_type FROM table_25005714_3 WHERE texture___gt__s_ = "Fillrate"
What is every bus type for the texture of fillrate?
CREATE TABLE table_25005714_3 (bus_type VARCHAR, texture___gt__s_ VARCHAR)
SELECT place FROM table_name_95 WHERE country = "united states" AND to_par = "–5"
Name the Place which has To par of –5, in united states?
CREATE TABLE table_name_95 (place VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT AVG(bronze) FROM table_name_30 WHERE total = 54
What is the bronze number when the total is 54/
CREATE TABLE table_name_30 (bronze INTEGER, total VARCHAR)
SELECT MAX(LEVEL) FROM manager WHERE Country <> "Australia "
What is the maximum level of managers in countries that are not "Australia"?
CREATE TABLE manager (LEVEL INTEGER, Country VARCHAR)
SELECT county FROM table_name_17 WHERE school = "merrillville"
In what county is the school of Merrillville?
CREATE TABLE table_name_17 (county VARCHAR, school VARCHAR)
SELECT rider FROM table_name_71 WHERE laps < 23 AND grid > 21 AND time_retired = "+1 lap"
Who was the rider for laps less than 23 with grid greater than 21 that had a time of +1 lap?
CREATE TABLE table_name_71 (rider VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT SUM(laps) FROM table_name_74 WHERE rider = "karl muggeridge" AND grid < 16
What is the sum of laps for Karl Muggeridge on a grid less than 16?
CREATE TABLE table_name_74 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT SUM(points) FROM table_name_39 WHERE equipment = "zabel-bsu" AND position = 42
What is the sum of Points, when Equipment was "Zabel-BSU", and when Position was 42?
CREATE TABLE table_name_39 (points INTEGER, equipment VARCHAR, position VARCHAR)
SELECT country FROM table_name_74 WHERE year_s__won = "2004"
What country won in 2004?
CREATE TABLE table_name_74 (country VARCHAR, year_s__won VARCHAR)
SELECT report FROM table_name_51 WHERE winning_driver = "louis wagner"
Tell me the report with winner of louis wagner
CREATE TABLE table_name_51 (report VARCHAR, winning_driver VARCHAR)
SELECT notes FROM table_name_65 WHERE rank > 1 AND time = "7:42.92"
What are the notes when the time was 7:42.92 and the rank is more than 1?
CREATE TABLE table_name_65 (notes VARCHAR, rank VARCHAR, time VARCHAR)