answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT attendance FROM table_name_9 WHERE date = "august 29" | What is the attendance for august 29? | CREATE TABLE table_name_9 (attendance VARCHAR, date VARCHAR) |
SELECT date FROM table_name_90 WHERE opponent = "chicago bears" | What was the date of the game against the Chicago Bears? | CREATE TABLE table_name_90 (date VARCHAR, opponent VARCHAR) |
SELECT rank FROM table_name_42 WHERE worldwide_gross = "$914,691,118" | What is the Rank of the Film with a Worldwide Gross of $914,691,118? | CREATE TABLE table_name_42 (rank VARCHAR, worldwide_gross VARCHAR) |
SELECT program FROM table_16275828_4 WHERE track_name = "Highland Speedway" | What programs were held at highland speedway? | CREATE TABLE table_16275828_4 (program VARCHAR, track_name VARCHAR) |
SELECT COUNT(letters) FROM table_2538117_12 WHERE founding_date = "1997-12-12" | How many letters were given to the organization with a founding date of 1997-12-12? | CREATE TABLE table_2538117_12 (letters VARCHAR, founding_date VARCHAR) |
SELECT venue FROM table_name_46 WHERE away_team = "st kilda" | Where did St KIlda play their away game? | CREATE TABLE table_name_46 (venue VARCHAR, away_team VARCHAR) |
SELECT SUM(capacity) FROM table_name_64 WHERE coach = "trevor gleeson" | What is the total capacity for coach Trevor Gleeson? | CREATE TABLE table_name_64 (capacity INTEGER, coach VARCHAR) |
SELECT type FROM table_name_79 WHERE quantity = "140" | Which type has 140 made? | CREATE TABLE table_name_79 (type VARCHAR, quantity VARCHAR) |
SELECT AVG(field_goals) FROM table_name_25 WHERE touchdowns < 3 AND player = "clark" AND points < 5 | What the average amount of field goals Clark has if he has less than 3 touch downs and less than 5 points? | CREATE TABLE table_name_25 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR, player VARCHAR) |
SELECT womens_doubles FROM table_12266757_1 WHERE season = "1951/1952" | Where were the Womens Doubles in the 1951/1952 season and who won? | CREATE TABLE table_12266757_1 (womens_doubles VARCHAR, season VARCHAR) |
SELECT railway FROM table_name_52 WHERE location = "shildon" AND objectnumber = "1978-7006" | Which Railway has a Location of shildon, and an ObjectNumber of 1978-7006? | CREATE TABLE table_name_52 (railway VARCHAR, location VARCHAR, objectnumber VARCHAR) |
SELECT runner_up FROM table_name_81 WHERE winner = "ilhwa chunma" | Who is the runner-up for Ilhwa Chunma? | CREATE TABLE table_name_81 (runner_up VARCHAR, winner VARCHAR) |
SELECT fy08_$millions FROM table_25438110_5 WHERE fy07_$millions = "$120" | What is the FY2008 $mil value associated with a FY2007 $mil value of exactly $120? | CREATE TABLE table_25438110_5 (fy08_$millions VARCHAR, fy07_$millions VARCHAR) |
SELECT score FROM table_17103645_10 WHERE game = 19 | Name the score when game is 19 | CREATE TABLE table_17103645_10 (score VARCHAR, game VARCHAR) |
SELECT MAX(week) FROM table_name_83 WHERE attendance = "64,900" AND result = "l 34-13" | What is the Week of the game with an Attendance of 64,900 and a Result of L 34-13? | CREATE TABLE table_name_83 (week INTEGER, attendance VARCHAR, result VARCHAR) |
SELECT republican FROM table_name_26 WHERE district = 10 | Which Republican has a District of 10? | CREATE TABLE table_name_26 (republican VARCHAR, district VARCHAR) |
SELECT launched FROM table_name_91 WHERE laid_down = "14 august 1942" | when was the destroyer launched when it was laid down on 14 august 1942? | CREATE TABLE table_name_91 (launched VARCHAR, laid_down VARCHAR) |
SELECT COUNT(percent_yes) FROM table_name_68 WHERE jurisdiction = "alberta" AND percent_no > 60.2 | What is the percent yes of Alberta, which had a percent no larger than 60.2? | CREATE TABLE table_name_68 (percent_yes VARCHAR, jurisdiction VARCHAR, percent_no VARCHAR) |
SELECT COUNT(rank) FROM table_name_62 WHERE time = "7:31.90" | What rank did the time of 7:31.90 receive? | CREATE TABLE table_name_62 (rank VARCHAR, time VARCHAR) |
SELECT MAX(total_pts) FROM table_22011138_7 WHERE avg = "1.2803" | If the average is 1.2803, what is the total points maximum? | CREATE TABLE table_22011138_7 (total_pts INTEGER, avg VARCHAR) |
SELECT attendance FROM table_name_25 WHERE away_team = "bournemouth" | What was the attendance when Bournemouth was the away team? | CREATE TABLE table_name_25 (attendance VARCHAR, away_team VARCHAR) |
SELECT date FROM table_23286112_6 WHERE game = 3 | When was the game number 3 played? | CREATE TABLE table_23286112_6 (date VARCHAR, game VARCHAR) |
SELECT attendance FROM table_name_61 WHERE score = "2 – 3" | Score of 2 – 3 has what attendance? | CREATE TABLE table_name_61 (attendance VARCHAR, score VARCHAR) |
SELECT SUM(pop__2004_) FROM table_name_48 WHERE governorate = "al mahwit" | How many Pop (2004) has a Governorate of al mahwit? | CREATE TABLE table_name_48 (pop__2004_ INTEGER, governorate VARCHAR) |
SELECT AVG(final_episode) AS Count FROM table_name_99 WHERE character = "maxine valera" | What is the average number for a final episode featuring maxine valera? | CREATE TABLE table_name_99 (final_episode INTEGER, character VARCHAR) |
SELECT clubname FROM club WHERE clublocation = "AKW" | Find the name of all the clubs at "AKW". | CREATE TABLE club (clubname VARCHAR, clublocation VARCHAR) |
SELECT DISTINCT firstname, lastname FROM teachers | Report the first name and last name of all the teachers. | CREATE TABLE teachers (firstname VARCHAR, lastname VARCHAR) |
SELECT d_48 FROM table_name_29 WHERE d_44 = "d 33" | Name the D 48 when it has a D 44 of d 33 | CREATE TABLE table_name_29 (d_48 VARCHAR, d_44 VARCHAR) |
SELECT school_year FROM table_14603212_5 WHERE class_aAA = Argyle | What are the school years where class "AAA" is argyle? | CREATE TABLE table_14603212_5 (school_year VARCHAR, class_aAA VARCHAR, Argyle VARCHAR) |
SELECT member FROM table_name_6 WHERE party = "national" AND electorate = "hinkler" | Which member of the National Party is from the Hinkler electorate? | CREATE TABLE table_name_6 (member VARCHAR, party VARCHAR, electorate VARCHAR) |
SELECT AVG(top_5) FROM table_name_3 WHERE top_10 = 5 AND cuts_made < 12 | What is the average number of top-5s for the major with 5 top-10s and fewer than 12 cuts made? | CREATE TABLE table_name_3 (top_5 INTEGER, top_10 VARCHAR, cuts_made VARCHAR) |
SELECT MAX(draws) FROM table_18594107_2 WHERE scored = 13 | How many draws are there when the score is 13? | CREATE TABLE table_18594107_2 (draws INTEGER, scored VARCHAR) |
SELECT tie_no FROM table_name_44 WHERE date = "18 february 1956" AND away_team = "tottenham hotspur" | /What is Tie No, when Date is 18 February 1956, and when Away Team is Tottenham Hotspur? | CREATE TABLE table_name_44 (tie_no VARCHAR, date VARCHAR, away_team VARCHAR) |
SELECT category FROM table_name_72 WHERE award = "premios lo nuestro" | What is the category for the premios lo nuestro award? | CREATE TABLE table_name_72 (category VARCHAR, award VARCHAR) |
SELECT Literate AS male FROM table_28939145_2 WHERE _percentage_of_district_population = "6.65" | how many literate males are there that has a district population of 6.65? | CREATE TABLE table_28939145_2 (Literate VARCHAR, _percentage_of_district_population VARCHAR) |
SELECT team FROM table_name_60 WHERE game = 82 | Which team had a game of 82? | CREATE TABLE table_name_60 (team VARCHAR, game VARCHAR) |
SELECT _number FROM table_28498999_5 WHERE score = 70 - 69 - 69 - 70 = 278 | What is the # listed when the score is 70-69-69-70=278? | CREATE TABLE table_28498999_5 (_number VARCHAR, score VARCHAR) |
SELECT margin_of_victory FROM table_name_28 WHERE date = "apr 8, 1979" | What was the margin of victory on Apr 8, 1979? | CREATE TABLE table_name_28 (margin_of_victory VARCHAR, date VARCHAR) |
SELECT status FROM table_name_73 WHERE notes = "n coelurosauria" | What is the Status of the dinosaur, whose notes are, "n coelurosauria"? | CREATE TABLE table_name_73 (status VARCHAR, notes VARCHAR) |
SELECT written_by FROM table_25679312_2 WHERE prod_code = 5 | Who wrote the episode with production code 5? | CREATE TABLE table_25679312_2 (written_by VARCHAR, prod_code VARCHAR) |
SELECT name FROM table_name_49 WHERE term_end = "2013" | What was the name of the leader whose term ended in 2013? | CREATE TABLE table_name_49 (name VARCHAR, term_end VARCHAR) |
SELECT venue FROM table_name_86 WHERE date = "22 january 2008" | Which venue was used 22 january 2008? | CREATE TABLE table_name_86 (venue VARCHAR, date VARCHAR) |
SELECT socialist_ticket FROM table_name_89 WHERE socialist_labor_ticket = "charles m. carlson" | Who's the Socialist ticket with a Socialist Labor ticket of charles m. carlson? | CREATE TABLE table_name_89 (socialist_ticket VARCHAR, socialist_labor_ticket VARCHAR) |
SELECT score FROM table_name_48 WHERE date = "april 12" | What was the score on April 12? | CREATE TABLE table_name_48 (score VARCHAR, date VARCHAR) |
SELECT opponent FROM table_27877656_7 WHERE edition = "2009 Europe/Africa Group IIIB" AND opponent_team = "Armenia" | For armenia as opponent team and edition is 2009 europe/africa group iiib mention all the opponent | CREATE TABLE table_27877656_7 (opponent VARCHAR, edition VARCHAR, opponent_team VARCHAR) |
SELECT record FROM table_name_19 WHERE time = "3:38" | What Records Time is 3:38? | CREATE TABLE table_name_19 (record VARCHAR, time VARCHAR) |
SELECT player FROM table_name_90 WHERE position = "center" AND school_club_team = "washington state" | Who was the center from Washington State? | CREATE TABLE table_name_90 (player VARCHAR, position VARCHAR, school_club_team VARCHAR) |
SELECT tie_no FROM table_name_96 WHERE home_team = "gillingham" | What is Tie no, when Home Team is "Gillingham"? | CREATE TABLE table_name_96 (tie_no VARCHAR, home_team VARCHAR) |
SELECT SUM(number_of_deputies) FROM table_name_74 WHERE percentage_of_votes = "94.2%" | What is the number of deputies with 94.2% of the votes? | CREATE TABLE table_name_74 (number_of_deputies INTEGER, percentage_of_votes VARCHAR) |
SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada' | Show the names for all females from Canada having a wedding in year 2016. | CREATE TABLE people (name VARCHAR, people_id VARCHAR, country VARCHAR, is_male VARCHAR); CREATE TABLE wedding (female_id VARCHAR, year VARCHAR) |
SELECT directed_by FROM table_30030477_1 WHERE viewers__million_ = "3.24" | Who directed the episdoe veiwed by 3.24 million viewers? | CREATE TABLE table_30030477_1 (directed_by VARCHAR, viewers__million_ VARCHAR) |
SELECT COUNT(points) FROM table_name_36 WHERE drawn < 0 | How many Points have a Drawn smaller than 0? | CREATE TABLE table_name_36 (points VARCHAR, drawn INTEGER) |
SELECT 1991 AS _92 FROM table_14368332_1 WHERE average = "1.053" | What is the result in 91-92 for the team with a 1.053 average? | CREATE TABLE table_14368332_1 (average VARCHAR) |
SELECT MIN(no_in_series) FROM table_29803475_2 WHERE us_viewers__million_ = "0.23" | What is the lowest number in series when U.S. viewers is 0.23 million? | CREATE TABLE table_29803475_2 (no_in_series INTEGER, us_viewers__million_ VARCHAR) |
SELECT COUNT(title) FROM table_25740548_2 WHERE written_by = "Brett Conrad" | How many episode were written by Brett Conrad? | CREATE TABLE table_25740548_2 (title VARCHAR, written_by VARCHAR) |
SELECT horse FROM table_19624708_1 WHERE owner = "R. A. Scott" | What horses does r. a. Scott own? | CREATE TABLE table_19624708_1 (horse VARCHAR, owner VARCHAR) |
SELECT MAX(pick__number) FROM table_name_43 WHERE rd__number < 6 AND player = "bob dailey" AND reg_gp > 257 | What is the highest Pick number that had a road number that was less than 6, featured Bob Dailey as a player, and which had a Reg GP bigger than 257? | CREATE TABLE table_name_43 (pick__number INTEGER, reg_gp VARCHAR, rd__number VARCHAR, player VARCHAR) |
SELECT tickets_sold___available FROM table_name_54 WHERE city = "barcelona" | How many tickets were there sold/available in Barcelona? | CREATE TABLE table_name_54 (tickets_sold___available VARCHAR, city 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 score_in_the_final FROM table_name_25 WHERE opponent_in_the_final = "alberto berasategui" | What is the score of the match that was against alberto berasategui? | CREATE TABLE table_name_25 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR) |
SELECT position FROM table_name_60 WHERE co_contestant__yaar_vs_pyaar_ = "tina sachdev" | What is Tina Sachdev's position? | CREATE TABLE table_name_60 (position VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR) |
SELECT res FROM table_name_7 WHERE record = "3–1" | Record of 3–1 had what Res? | CREATE TABLE table_name_7 (res VARCHAR, record VARCHAR) |
SELECT venue FROM table_name_9 WHERE away_team = "geelong" | Where did Geelong play as the away team? | CREATE TABLE table_name_9 (venue VARCHAR, away_team VARCHAR) |
SELECT COUNT(points) FROM table_name_76 WHERE place < 7 AND draw > 2 AND artist = "piece of cake" | what is the number of points when the place is less than 7, the draw is more than 2 and the artist is piece of cake? | CREATE TABLE table_name_76 (points VARCHAR, artist VARCHAR, place VARCHAR, draw VARCHAR) |
SELECT d_48 FROM table_name_27 WHERE d_43 = "plurality ↑" | What is the D48 when D 43 is plurality ↑?? | CREATE TABLE table_name_27 (d_48 VARCHAR, d_43 VARCHAR) |
SELECT venue FROM table_name_50 WHERE result = "7-1" | Which venue had the result 7-1? | CREATE TABLE table_name_50 (venue VARCHAR, result VARCHAR) |
SELECT AVG(access_count) FROM documents GROUP BY document_structure_code ORDER BY COUNT(*) LIMIT 1 | Find the average access count of documents with the least popular structure. | CREATE TABLE documents (access_count INTEGER, document_structure_code VARCHAR) |
SELECT ncaa_tourn_appearances FROM table_name_3 WHERE conference_titles > "0" AND ncaa_titles = "0" AND coach = "lou watson" | Which NCAA Tournament Appearances have Conference Titles that are larger than 0, NCAA Titles of 0, and were coached by Lou Watson? | CREATE TABLE table_name_3 (ncaa_tourn_appearances VARCHAR, coach VARCHAR, conference_titles VARCHAR, ncaa_titles VARCHAR) |
SELECT school FROM table_name_76 WHERE hometown = "riverside, ca" | Which school is in Riverside, CA? | CREATE TABLE table_name_76 (school VARCHAR, hometown VARCHAR) |
SELECT manuals FROM table_name_2 WHERE opus = "147" | What are the manuals with an opus of 147? | CREATE TABLE table_name_2 (manuals VARCHAR, opus VARCHAR) |
SELECT years FROM table_name_51 WHERE notes = "laredo, limited, overland" AND engine = "5.7l hemi v8" | what is the years when the notes is laredo, limited, overland and the engine is 5.7l hemi v8? | CREATE TABLE table_name_51 (years VARCHAR, notes VARCHAR, engine VARCHAR) |
SELECT city FROM table_name_84 WHERE ihsaa_football_class = "aaa" AND enrollment < 676 AND school = "lawrenceburg" | Which city is Lawrenceburg school, with an IHSAA football class of aaa and less than 676 enrollments, located in? | CREATE TABLE table_name_84 (city VARCHAR, school VARCHAR, ihsaa_football_class VARCHAR, enrollment VARCHAR) |
SELECT order_shipping_charges, customer_id FROM customer_orders WHERE order_status_code = 'Cancelled' OR order_status_code = 'Paid' | Show the shipping charge and customer id for customer orders with order status Cancelled or Paid. | CREATE TABLE customer_orders (order_shipping_charges VARCHAR, customer_id VARCHAR, order_status_code VARCHAR) |
SELECT COUNT(date_location) FROM table_28211674_3 WHERE mixed_veteran = "Eddie Smith" | When and where did Eddie Smith win the mixed veteran? | CREATE TABLE table_28211674_3 (date_location VARCHAR, mixed_veteran VARCHAR) |
SELECT SUM(week) FROM table_name_78 WHERE opponent = "dallas cowboys" | What week did the dallas cowboys play? | CREATE TABLE table_name_78 (week INTEGER, opponent VARCHAR) |
SELECT player FROM table_name_87 WHERE pick = "19" | What was the player with pick 19? | CREATE TABLE table_name_87 (player VARCHAR, pick VARCHAR) |
SELECT years FROM table_name_55 WHERE decile > 4 AND area = "thames" | Which years have a Decile larger than 4, and an Area of thames? | CREATE TABLE table_name_55 (years VARCHAR, decile VARCHAR, area VARCHAR) |
SELECT result FROM table_name_35 WHERE year > 2002 | What result has a year after 2002? | CREATE TABLE table_name_35 (result VARCHAR, year INTEGER) |
SELECT 3 AS rd_place FROM table_name_20 WHERE year = "1990" | Who came in 3rd place in 1990? | CREATE TABLE table_name_20 (year VARCHAR) |
SELECT percent_for FROM table_120778_1 WHERE jurisdiction = "Manitoba" | What is the percent for in manitoba? | CREATE TABLE table_120778_1 (percent_for VARCHAR, jurisdiction VARCHAR) |
SELECT player FROM table_name_24 WHERE cfl_team = "toronto" | Name the Player who has a CFL Team of toronto? | CREATE TABLE table_name_24 (player VARCHAR, cfl_team VARCHAR) |
SELECT country FROM table_name_12 WHERE place = "t10" AND score = 66 - 72 - 70 = 207 | What country was the player in t10 place with a score of 66-72-70=207? | CREATE TABLE table_name_12 (country VARCHAR, place VARCHAR, score VARCHAR) |
SELECT regular_season FROM table_1939214_1 WHERE playoffs = "Conference Finals" | In what season did the team get in the conference finals of the playoffs? | CREATE TABLE table_1939214_1 (regular_season VARCHAR, playoffs VARCHAR) |
SELECT high_points FROM table_27755603_10 WHERE team = "Washington" | What was the high points when the team was Washington? | CREATE TABLE table_27755603_10 (high_points VARCHAR, team VARCHAR) |
SELECT team FROM table_name_35 WHERE driver = "jan heylen" | What team does jan heylen race for? | CREATE TABLE table_name_35 (team VARCHAR, driver VARCHAR) |
SELECT surface FROM table_name_47 WHERE runner_up = "brian gottfried" | What is the surface of the match with Brian Gottfried as the runner-up? | CREATE TABLE table_name_47 (surface VARCHAR, runner_up VARCHAR) |
SELECT circuit FROM table_name_92 WHERE race = "british grand prix" | What circuit was the British Grand Prix? | CREATE TABLE table_name_92 (circuit VARCHAR, race VARCHAR) |
SELECT candidates FROM table_1342218_17 WHERE district = "Kentucky 4" | Who were the candidates in the Kentucky 4 voting district? | CREATE TABLE table_1342218_17 (candidates VARCHAR, district VARCHAR) |
SELECT AVG(wins) FROM table_name_91 WHERE goal_difference > 12 AND club = "granada cf" AND played > 30 | Which Wins have a Goal Difference larger than 12, and a Club of granada cf, and Played larger than 30? | CREATE TABLE table_name_91 (wins INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR) |
SELECT COUNT(game) FROM table_name_95 WHERE location = "memorial stadium" AND time = "2:27" | how many games have a location of memorial stadium and a time of 2:27? | CREATE TABLE table_name_95 (game VARCHAR, location VARCHAR, time VARCHAR) |
SELECT MAX(capacity) FROM table_name_44 WHERE club = "treviso" | What is the largest capacity for the stadium for Treviso club? | CREATE TABLE table_name_44 (capacity INTEGER, club VARCHAR) |
SELECT elimination AS Move FROM table_name_35 WHERE eliminated_by = "batista" AND wrestler = "henry" | What Elimination Move is listed against Wrestler Henry, Eliminated by Batista? | CREATE TABLE table_name_35 (elimination VARCHAR, eliminated_by VARCHAR, wrestler VARCHAR) |
SELECT MAX(inflation_index__2000) = 100 AS _ FROM table_name_67 WHERE per_capita_income__as__percentage_of_usa_ = 10.65 AND year < 1990 | Which Inflation Index (2000=100) has a Per Capita Income (as % of USA) of 10.65, and a Year smaller than 1990? | CREATE TABLE table_name_67 (inflation_index__2000 INTEGER, per_capita_income__as__percentage_of_usa_ VARCHAR, year VARCHAR) |
SELECT team FROM table_29414946_3 WHERE replaced_by = "Renato Gaúcho" | What team hired Renato Gaúcho? | CREATE TABLE table_29414946_3 (team VARCHAR, replaced_by VARCHAR) |
SELECT torque FROM table_name_49 WHERE name = "1.2 petrol" | What is the torque of 1.2 petrol? | CREATE TABLE table_name_49 (torque VARCHAR, name VARCHAR) |
SELECT name FROM table_name_68 WHERE status = "final cast" AND first_performance = "12 november 2011" | what's the name with final cast status and first performance on 12 november 2011? | CREATE TABLE table_name_68 (name VARCHAR, status VARCHAR, first_performance VARCHAR) |
SELECT title FROM table_name_48 WHERE production_number = "1023" | What is the title of the film with a production number of 1023? | CREATE TABLE table_name_48 (title VARCHAR, production_number VARCHAR) |
SELECT power__kw_ FROM table_name_63 WHERE coverage = "general santos" | What is the power in kW corresponding to the station that covers General Santos? | CREATE TABLE table_name_63 (power__kw_ VARCHAR, coverage VARCHAR) |
SELECT AVG(word__number) FROM table_name_9 WHERE name = "crs" AND subframe__number < 2 | What is the average word count with crs and subframes lesser than 2? | CREATE TABLE table_name_9 (word__number INTEGER, name VARCHAR, subframe__number VARCHAR) |
SELECT division_southwest FROM table_name_4 WHERE division_north = "madžari solidarnost" | Who won Division Southwest when Madžari Solidarnost won Division North? | CREATE TABLE table_name_4 (division_southwest VARCHAR, division_north VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.