answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT COUNT(party) FROM table_1805191_39 WHERE district = "Pennsylvania 1" | In the district of Pennsylvania 1, what is the total number of political parties? | CREATE TABLE table_1805191_39 (party VARCHAR, district VARCHAR) |
SELECT MAX(2 AS nd_throw) FROM table_17265535_6 WHERE equation = "(10 times 1) + 3" | If the equation is (10 times 1) + 3, what is the 2nd throw? | CREATE TABLE table_17265535_6 (equation VARCHAR) |
SELECT MIN(rank) FROM table_name_78 WHERE laps > 182 AND qual > 134.14 AND time_retired = "+14:21.72" AND grid < 3 | What was the rank of the car who had more than 182 laps, gris less than 3, with a qual time of more than 134.14 and a time/retired of +14:21.72? | CREATE TABLE table_name_78 (rank INTEGER, grid VARCHAR, time_retired VARCHAR, laps VARCHAR, qual VARCHAR) |
SELECT constructor FROM table_name_8 WHERE circuit = "silverstone" | What is the constructor where the circuit is Silverstone? | CREATE TABLE table_name_8 (constructor VARCHAR, circuit VARCHAR) |
SELECT time_retired FROM table_name_59 WHERE laps = 75 | What's the Time/Retired of Laps of 75? | CREATE TABLE table_name_59 (time_retired VARCHAR, laps VARCHAR) |
SELECT genre FROM table_name_50 WHERE game = "super mario galaxy" | What is the genre of Super Mario Galaxy? | CREATE TABLE table_name_50 (genre VARCHAR, game VARCHAR) |
SELECT winners_score FROM table_224616_1 WHERE year = 1982 | List all winning scores from 1982. | CREATE TABLE table_224616_1 (winners_score VARCHAR, year VARCHAR) |
SELECT duration FROM table_19061741_3 WHERE name = "Joaqui Mendoza" | WHen joaqui mendoza is the name how long is the duration? | CREATE TABLE table_19061741_3 (duration VARCHAR, name VARCHAR) |
SELECT perth FROM table_name_97 WHERE sydney = "yes" AND gold_coast = "yes" AND adelaide = "no" | Which Perth also has Sydney yes, Gold Coast yes, and Adelaide no? | CREATE TABLE table_name_97 (perth VARCHAR, adelaide VARCHAR, sydney VARCHAR, gold_coast VARCHAR) |
SELECT mountains_classification FROM table_19115414_4 WHERE team_classification = "Team Columbia" | Name the mountains classification for team columbia | CREATE TABLE table_19115414_4 (mountains_classification VARCHAR, team_classification VARCHAR) |
SELECT home FROM table_name_9 WHERE decision = "kolzig" AND date = "november 5" | Which home has a Decision of kolzig, and a Date of november 5? | CREATE TABLE table_name_9 (home VARCHAR, decision VARCHAR, date VARCHAR) |
SELECT high_points FROM table_27733909_1 WHERE date = "October 20" | what is the most number where the calendar shows october 20 | CREATE TABLE table_27733909_1 (high_points VARCHAR, date VARCHAR) |
SELECT fname FROM authors WHERE lname = "Ueno" | What is the first name of the author with last name "Ueno"? | CREATE TABLE authors (fname VARCHAR, lname VARCHAR) |
SELECT MIN(population__1_july_2005_est_) FROM table_name_5 WHERE population_density__per_km²_ = 0 | What is the lowest Population (1 July 2005 est.), when Population density (per km²) is 0? | CREATE TABLE table_name_5 (population__1_july_2005_est_ INTEGER, population_density__per_km²_ VARCHAR) |
SELECT venue FROM table_name_82 WHERE goal > 9 AND result = "4-1" | Which venue had more than 9 goals and a final result of 4-1? | CREATE TABLE table_name_82 (venue VARCHAR, goal VARCHAR, result VARCHAR) |
SELECT name FROM stadium WHERE capacity < (SELECT AVG(capacity) FROM stadium) | Find the names of stadiums whose capacity is smaller than the average capacity. | CREATE TABLE stadium (name VARCHAR, capacity INTEGER) |
SELECT MAX(season) FROM table_name_44 WHERE podiums = "0" AND races = "16" | Which Season has Podiums of 0, and Races of 16? | CREATE TABLE table_name_44 (season INTEGER, podiums VARCHAR, races VARCHAR) |
SELECT week__number FROM table_name_42 WHERE result = "safe" AND theme = "dolly parton" | Which week had safe as the result and Dolly Parton as the theme? | CREATE TABLE table_name_42 (week__number VARCHAR, result VARCHAR, theme VARCHAR) |
SELECT record FROM table_name_83 WHERE time = "2:46" | Where the time is 2:46, what is the record? | CREATE TABLE table_name_83 (record VARCHAR, time VARCHAR) |
SELECT COUNT(result) FROM table_29026564_9 WHERE score = "6–7 (2–7) , 6–2, 7–6 (7–3)" | How many different results were there for the scores 6–7 (2–7) , 6–2, 7–6 (7–3)? | CREATE TABLE table_29026564_9 (result VARCHAR, score VARCHAR) |
SELECT network FROM table_name_71 WHERE language = "punjabi" | What Network has Punjabi as the Language? | CREATE TABLE table_name_71 (network VARCHAR, language VARCHAR) |
SELECT MAX(game) FROM table_name_35 WHERE opponent = "new york islanders" AND december > 10 | Which Game is the highest one that has an Opponent of new york islanders, and a December larger than 10? | CREATE TABLE table_name_35 (game INTEGER, opponent VARCHAR, december VARCHAR) |
SELECT year FROM table_name_45 WHERE weight = 185 | What is the Year of the Player weighing 185? | CREATE TABLE table_name_45 (year VARCHAR, weight VARCHAR) |
SELECT 2008 FROM table_name_31 WHERE tournament = "us open" | What is the value in 2008 for the US Open? | CREATE TABLE table_name_31 (tournament VARCHAR) |
SELECT notes FROM table_name_94 WHERE position = "12th" | What are the notes of events that finished in 12th position? | CREATE TABLE table_name_94 (notes VARCHAR, position VARCHAR) |
SELECT high_assists FROM table_23285761_11 WHERE date = "April 26" | Who has the high assists when April 26 is the date? | CREATE TABLE table_23285761_11 (high_assists VARCHAR, date VARCHAR) |
SELECT score_qualifying FROM table_25143284_1 WHERE score_final = "12.200" | What was the qualifying score of the competition whose final score was 12.200? | CREATE TABLE table_25143284_1 (score_qualifying VARCHAR, score_final VARCHAR) |
SELECT AVG(product_price) FROM products WHERE product_type_code = 'Clothes' | Find the average price of all product clothes. | CREATE TABLE products (product_price INTEGER, product_type_code VARCHAR) |
SELECT country FROM table_name_26 WHERE rank > 4 AND time = "5:59.56" | What is the Country of the Rowers with a Rank larger than 4 and Time of 5:59.56? | CREATE TABLE table_name_26 (country VARCHAR, rank VARCHAR, time VARCHAR) |
SELECT report FROM table_name_13 WHERE date = "10 october" | What is the report for 10 october? | CREATE TABLE table_name_13 (report VARCHAR, date VARCHAR) |
SELECT opponent FROM table_name_46 WHERE arena = "staples center" | Who was the opponent at the Staples Center? | CREATE TABLE table_name_46 (opponent VARCHAR, arena VARCHAR) |
SELECT round_of_16 FROM table_18602462_22 WHERE athlete = "Jiske Griffioen Esther Vergeer" | What is the round of 16 result for Jiske Griffioen Esther Vergeer? | CREATE TABLE table_18602462_22 (round_of_16 VARCHAR, athlete VARCHAR) |
SELECT candidates FROM table_1342370_41 WHERE district = "Tennessee 9" | Who were the candidates in the election in the Tennessee 9 district? | CREATE TABLE table_1342370_41 (candidates VARCHAR, district VARCHAR) |
SELECT hanzi FROM table_name_84 WHERE name = "nmtv mongolian satellite television" | Which hanzi's name is nmtv mongolian satellite television? | CREATE TABLE table_name_84 (hanzi VARCHAR, name VARCHAR) |
SELECT SUM(weeks_on_top) FROM table_name_94 WHERE issue_date_s_ = "20 november" | Which Weeks on Top have an Issue Date(s) of 20 november? | CREATE TABLE table_name_94 (weeks_on_top INTEGER, issue_date_s_ VARCHAR) |
SELECT chassis FROM table_name_43 WHERE points = 16 | Which chassis had 16 points? | CREATE TABLE table_name_43 (chassis VARCHAR, points VARCHAR) |
SELECT away_team FROM table_name_7 WHERE home_team = "south melbourne" | Who was the away team when the home team was South Melbourne? | CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR) |
SELECT winner FROM table_name_90 WHERE location = "georgia" AND date = "oct 3" | Who is the winner of the tournament in Georgia on Oct 3? | CREATE TABLE table_name_90 (winner VARCHAR, location VARCHAR, date VARCHAR) |
SELECT name FROM table_name_64 WHERE heat = 5 AND country = "guyana" | Who is in heat 5 from Guyana? | CREATE TABLE table_name_64 (name VARCHAR, heat VARCHAR, country VARCHAR) |
SELECT team_classification FROM table_28298471_14 WHERE points_classification = "Michael Van Stayen" | When michael van stayen is the points classification what is the team classification? | CREATE TABLE table_28298471_14 (team_classification VARCHAR, points_classification VARCHAR) |
SELECT d_47 FROM table_name_35 WHERE d_48 = "d 49" AND d_42 = "r 42" | Name the D 47 when it has a D 48 of d 49 and D 42 of r 42 | CREATE TABLE table_name_35 (d_47 VARCHAR, d_48 VARCHAR, d_42 VARCHAR) |
SELECT SUM(place) FROM table_name_60 WHERE draw < 12 AND artist = "quartissimo feat. martina" | what is the place when the draw is less than 12 and the artist is quartissimo feat. martina? | CREATE TABLE table_name_60 (place INTEGER, draw VARCHAR, artist VARCHAR) |
SELECT AVG(number_of_households) FROM table_name_71 WHERE median_household_income = "$43,889" | How many households have a Median household income of $43,889? | CREATE TABLE table_name_71 (number_of_households INTEGER, median_household_income VARCHAR) |
SELECT total_prize_pool FROM table_2715355_1 WHERE location = "New Orleans" | What was the prize pool in New Orleans? | CREATE TABLE table_2715355_1 (total_prize_pool VARCHAR, location VARCHAR) |
SELECT SUM(long) FROM table_name_26 WHERE loss < 390 AND avg_g = 2 AND gain > 29 | When the Gain is 29, and the average per game is 2, and the player lost less than 390 yards, what's the sum of the Long yards? | CREATE TABLE table_name_26 (long INTEGER, gain VARCHAR, loss VARCHAR, avg_g VARCHAR) |
SELECT MAX(extra_points) FROM table_14341967_2 WHERE player = "John Heston" | Name the most extra points for john heston | CREATE TABLE table_14341967_2 (extra_points INTEGER, player VARCHAR) |
SELECT country FROM table_name_39 WHERE place = "1" | What is the Country of the Player in Place 1? | CREATE TABLE table_name_39 (country VARCHAR, place VARCHAR) |
SELECT gold FROM table_name_50 WHERE bronze = "chinese taipei" | What country won gold in the year(s) that Chinese Taipei won bronze? | CREATE TABLE table_name_50 (gold VARCHAR, bronze VARCHAR) |
SELECT winner FROM table_name_76 WHERE date = "may 2011" | Who won on May 2011? | CREATE TABLE table_name_76 (winner VARCHAR, date VARCHAR) |
SELECT karen_handel FROM table_name_45 WHERE eric_johnson = "13%" AND undecided = "22%" | What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%? | CREATE TABLE table_name_45 (karen_handel VARCHAR, eric_johnson VARCHAR, undecided VARCHAR) |
SELECT surface FROM table_name_40 WHERE score = "7–6 (7–3) , 6–3" | What is the surface of the score, 7–6 (7–3) , 6–3? | CREATE TABLE table_name_40 (surface VARCHAR, score VARCHAR) |
SELECT MIN(draws) FROM table_name_86 WHERE club = "ud lérida" AND goals_for < 41 | What is the lowest amount of draws club ud lérida, which has less than 41 goals, has? | CREATE TABLE table_name_86 (draws INTEGER, club VARCHAR, goals_for VARCHAR) |
SELECT customer_details FROM customers WHERE customer_details LIKE "%Diana%" | Find the names of customers whose name contains "Diana". | CREATE TABLE customers (customer_details VARCHAR) |
SELECT COUNT(year) FROM table_name_28 WHERE record = "3:40.8" | How many years was the record 3:40.8? | CREATE TABLE table_name_28 (year VARCHAR, record VARCHAR) |
SELECT player FROM table_name_17 WHERE place = "t5" AND score = 72 - 71 - 73 - 78 = 294 | Which player placed in t5 and had a score of 72-71-73-78=294? | CREATE TABLE table_name_17 (player VARCHAR, place VARCHAR, score VARCHAR) |
SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_number = "4560596484842" | What is the first name, last name, and phone of the customer with card 4560596484842. | CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE Customers_cards (customer_id VARCHAR, card_number VARCHAR) |
SELECT candidates FROM table_1342218_43 WHERE result = "Re-elected" AND district = "Texas 7" | What candidate has a result of being re-elected in the Texas 7 District? | CREATE TABLE table_1342218_43 (candidates VARCHAR, result VARCHAR, district VARCHAR) |
SELECT school FROM table_name_25 WHERE mascot = "panthers" | Which school has a mascot of the Panthers? | CREATE TABLE table_name_25 (school VARCHAR, mascot VARCHAR) |
SELECT team FROM table_name_97 WHERE venue = "dinamo, brest" | What team plays in Dinamo, Brest? | CREATE TABLE table_name_97 (team VARCHAR, venue VARCHAR) |
SELECT tickets_sold___available FROM table_name_26 WHERE gross_revenue__1979_ = "$665,232" | Which venue has Tickets Sold/ Available with a Gross Revenue (1979) of $665,232? | CREATE TABLE table_name_26 (tickets_sold___available VARCHAR, gross_revenue__1979_ VARCHAR) |
SELECT iata FROM table_name_59 WHERE country = "china" AND icao = "zspd" | Which IATA is associated with China and an ICAO of ZSPD? | CREATE TABLE table_name_59 (iata VARCHAR, country VARCHAR, icao VARCHAR) |
SELECT COUNT(attendance) FROM table_21436373_7 WHERE date_year = "2005" | When 2005 is the date/year how many measurements of attendance are there? | CREATE TABLE table_21436373_7 (attendance VARCHAR, date_year VARCHAR) |
SELECT school_club_team FROM table_name_16 WHERE player = "jud buechler" | Which School/Club Team has a Player of jud buechler? | CREATE TABLE table_name_16 (school_club_team VARCHAR, player VARCHAR) |
SELECT poll_source FROM table_20032301_3 WHERE dates_administered = "June 14-16, 2010" | What poll source administered their poll on June 14-16, 2010? | CREATE TABLE table_20032301_3 (poll_source VARCHAR, dates_administered VARCHAR) |
SELECT COUNT(games) FROM table_name_20 WHERE goals = 5 AND assists < 8 | How many games have 5 goals and less than 8 assists? | CREATE TABLE table_name_20 (games VARCHAR, goals VARCHAR, assists VARCHAR) |
SELECT result FROM table_name_3 WHERE opponent = "washington redskins" | Which Result has an Opponent of washington redskins? | CREATE TABLE table_name_3 (result VARCHAR, opponent VARCHAR) |
SELECT location FROM table_24136365_2 WHERE opponent = "Tiger-Cats" | When tiger-cats is the opponent what is the location? | CREATE TABLE table_24136365_2 (location VARCHAR, opponent VARCHAR) |
SELECT label FROM table_name_53 WHERE region = "japan" AND date = "november 3, 2004" | Which label had a Japan region and a date of November 3, 2004? | CREATE TABLE table_name_53 (label VARCHAR, region VARCHAR, date VARCHAR) |
SELECT name FROM table_name_65 WHERE constituency_number = "108" | What's the name of Constituency number 108? | CREATE TABLE table_name_65 (name VARCHAR, constituency_number VARCHAR) |
SELECT number_of_households FROM table_1350350_2 WHERE per_capita_income = "$16,820" | what's the number of households with per capita income being $16,820 | CREATE TABLE table_1350350_2 (number_of_households VARCHAR, per_capita_income VARCHAR) |
SELECT T2.address_id, T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1 | Find the id and city of the student address with the highest average monthly rental. | CREATE TABLE Student_Addresses (address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR) |
SELECT name FROM table_16799784_2 WHERE latitude = "36.0N" | Name the name of 36.0n | CREATE TABLE table_16799784_2 (name VARCHAR, latitude VARCHAR) |
SELECT home FROM table_name_38 WHERE attendance = "n/a" | What home team has an n/a attendance? | CREATE TABLE table_name_38 (home VARCHAR, attendance VARCHAR) |
SELECT deputy FROM table_name_41 WHERE year = "1992–93" | What is the name of the deputy in 1992–93? | CREATE TABLE table_name_41 (deputy VARCHAR, year VARCHAR) |
SELECT name FROM table_25826954_7 WHERE nationality = "Norway" | Name the name for norway nationality | CREATE TABLE table_25826954_7 (name VARCHAR, nationality VARCHAR) |
SELECT team FROM table_name_50 WHERE crew_chief = "walter giles" | Walter Giles is Crew Chief of what team? | CREATE TABLE table_name_50 (team VARCHAR, crew_chief VARCHAR) |
SELECT year_[e_] AS __ceremony_ FROM table_18069789_1 WHERE director = "Otar Iosseliani" | when was otar iosseliani's film selected | CREATE TABLE table_18069789_1 (year_ VARCHAR, e_ VARCHAR, director VARCHAR) |
SELECT SUM(division_titles) FROM table_name_87 WHERE playoff_appearances = 23 AND conference_titles > 1 | How many division titles does the team with 23 playoff appearances and more than 1 conference titles have? | CREATE TABLE table_name_87 (division_titles INTEGER, playoff_appearances VARCHAR, conference_titles VARCHAR) |
SELECT overall_record FROM table_name_9 WHERE school = "indian river" | Name the overall record for indian river | CREATE TABLE table_name_9 (overall_record VARCHAR, school VARCHAR) |
SELECT icao FROM table_name_43 WHERE airport = "lilongwe international airport" | Name the ICAO for lilongwe international airport | CREATE TABLE table_name_43 (icao VARCHAR, airport VARCHAR) |
SELECT shot_pct FROM table_name_96 WHERE skip = "madeleine dupont" | What is Madeleine Dupont's shot pct.? | CREATE TABLE table_name_96 (shot_pct VARCHAR, skip VARCHAR) |
SELECT state FROM table_25244412_1 WHERE renewable_electricity_w_o_hydro__gw•h_ = 5179 | Which state has 5179 (gw×h) of renewable energy without hydrogen power?wha | CREATE TABLE table_25244412_1 (state VARCHAR, renewable_electricity_w_o_hydro__gw•h_ VARCHAR) |
SELECT first_elected FROM table_name_98 WHERE district = "south carolina 4" | What is the first elected date for the incumbent in the South Carolina 4 district? | CREATE TABLE table_name_98 (first_elected VARCHAR, district VARCHAR) |
SELECT coach FROM table_name_27 WHERE losses = 15 | Which Notre Dame coach lost 15 games? | CREATE TABLE table_name_27 (coach VARCHAR, losses VARCHAR) |
SELECT first_cap FROM table_name_27 WHERE caps = 74 | When was the first cap associated with 74 caps? | CREATE TABLE table_name_27 (first_cap VARCHAR, caps VARCHAR) |
SELECT MIN(rank) FROM table_name_23 WHERE country = "new zealand" | What is the smallest rank for new zealand? | CREATE TABLE table_name_23 (rank INTEGER, country VARCHAR) |
SELECT time FROM table_name_30 WHERE set_1 = "18–25" | What time has a Set 1 of 18–25? | CREATE TABLE table_name_30 (time VARCHAR, set_1 VARCHAR) |
SELECT series_1 FROM table_name_60 WHERE series_5 = "peter jones" | Who in series 1 corresponds with Peter Jones in series 5? | CREATE TABLE table_name_60 (series_1 VARCHAR, series_5 VARCHAR) |
SELECT host_team FROM table_name_70 WHERE stadium = "lincoln financial field" | What is the host team with the stadium Lincoln Financial Field? | CREATE TABLE table_name_70 (host_team VARCHAR, stadium VARCHAR) |
SELECT Title FROM book ORDER BY Issues | List the titles of the books in ascending order of issues. | CREATE TABLE book (Title VARCHAR, Issues VARCHAR) |
SELECT call_sign FROM table_name_35 WHERE frequency_mhz < 94.9 AND erp_w = 170 | What is the call sign of the MHz Frequency less than 94.9 and an ERP W of 170? | CREATE TABLE table_name_35 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR) |
SELECT yield__approximate_ FROM table_148578_1 WHERE explosion = "K-4" | What was the yield of the K-4 explosion? | CREATE TABLE table_148578_1 (yield__approximate_ VARCHAR, explosion VARCHAR) |
SELECT time FROM table_name_68 WHERE opponent = "cleber luciano" | What was the time when his opponent was Cleber Luciano? | CREATE TABLE table_name_68 (time VARCHAR, opponent VARCHAR) |
SELECT famous_for FROM table_name_52 WHERE finished = "9th" | Which celebrity was famous for finishing 9th? | CREATE TABLE table_name_52 (famous_for VARCHAR, finished VARCHAR) |
SELECT model FROM table_17157367_1 WHERE method = "HA" | what is the model where the method is ha? | CREATE TABLE table_17157367_1 (model VARCHAR, method VARCHAR) |
SELECT SUM(total) FROM table_name_90 WHERE year_s__won = "1979" | What is the sum of the total of the player who won in 1979? | CREATE TABLE table_name_90 (total INTEGER, year_s__won VARCHAR) |
SELECT result FROM table_name_80 WHERE opponent = "tulsa" | What was the result of the game versus Tulsa? | CREATE TABLE table_name_80 (result VARCHAR, opponent VARCHAR) |
SELECT romaji_title FROM table_name_64 WHERE japanese_title = "女王の教室" | Which Romaji Title has a Japanese Title of 女王の教室? | CREATE TABLE table_name_64 (romaji_title VARCHAR, japanese_title VARCHAR) |
SELECT MAX(field_goals) FROM table_name_76 WHERE touchdowns = 0 AND points > 4 | Which Field goals is the highest one that has Touchdowns of 0, and Points larger than 4? | CREATE TABLE table_name_76 (field_goals INTEGER, touchdowns VARCHAR, points VARCHAR) |
SELECT _percentage_won FROM table_name_12 WHERE team = "durham" | What is the % Won of Team of durham | CREATE TABLE table_name_12 (_percentage_won VARCHAR, team VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.