answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT translation FROM table_name_61 WHERE composer = "jacques brel, rod mckuen" | WhatTranslation has a Composer of jacques brel, rod mckuen? | CREATE TABLE table_name_61 (translation VARCHAR, composer VARCHAR) |
SELECT ch__number FROM table_12379297_1 WHERE callsign = "DWLJ-TV" | What is the ch# of dwlj-tv? | CREATE TABLE table_12379297_1 (ch__number VARCHAR, callsign VARCHAR) |
SELECT measurements FROM table_name_15 WHERE disorder = "ornithine transcarbamylase deficiency" | What lab measurements can help diagnosie ornithine transcarbamylase deficiency? | CREATE TABLE table_name_15 (measurements VARCHAR, disorder VARCHAR) |
SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014 | Show names for all stadiums except for stadiums having a concert in year 2014. | CREATE TABLE stadium (name VARCHAR, stadium_id VARCHAR); CREATE TABLE concert (stadium_id VARCHAR, year VARCHAR); CREATE TABLE stadium (name VARCHAR) |
SELECT chassis FROM table_name_47 WHERE points = 6 | Which chassis was used when over 6 points were earned? | CREATE TABLE table_name_47 (chassis VARCHAR, points VARCHAR) |
SELECT most_recent_final FROM table_1463332_2 WHERE years__won_in_bold_ = "1979" | What is the most recent final result for the years (won in bold) 1979? | CREATE TABLE table_1463332_2 (most_recent_final VARCHAR, years__won_in_bold_ VARCHAR) |
SELECT award FROM table_name_49 WHERE year < 2012 AND category = "revelación pop del año" | Before the year 2012, what award was given to the artist in the category of revelación pop del año? | CREATE TABLE table_name_49 (award VARCHAR, year VARCHAR, category VARCHAR) |
SELECT company FROM customers WHERE first_name = "Eduardo" AND last_name = "Martins" | Eduardo Martins is a customer at which company? | CREATE TABLE customers (company VARCHAR, first_name VARCHAR, last_name VARCHAR) |
SELECT MAX(year) FROM table_name_84 WHERE entrant = "ligier gitanes blondes" | what is the most recent year for a ligier gitanes blondes | CREATE TABLE table_name_84 (year INTEGER, entrant VARCHAR) |
SELECT COUNT(*) FROM party | How many parties are there? | CREATE TABLE party (Id VARCHAR) |
SELECT COUNT(incumbent) FROM table_1341690_18 WHERE result = "Lost renomination Republican gain" | How many incumbents resulted in a lost renomination republican gain? | CREATE TABLE table_1341690_18 (incumbent VARCHAR, result VARCHAR) |
SELECT athlete FROM table_name_9 WHERE react = 0.248 | Which Athlete has a Reaction of 0.248? | CREATE TABLE table_name_9 (athlete VARCHAR, react VARCHAR) |
SELECT primary_conference FROM table_name_56 WHERE ihsaa_football_class = "a" AND school = "south decatur" | What is the primary conference with a IHSAA Football Class of A, at South Decatur school? | CREATE TABLE table_name_56 (primary_conference VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR) |
SELECT home_team FROM table_name_12 WHERE attendance = "2,776" | What Home team had an Attendance of 2,776? | CREATE TABLE table_name_12 (home_team VARCHAR, attendance VARCHAR) |
SELECT coaster_name FROM table_name_87 WHERE location = "sandusky, ohio" | Which coaster is located in sandusky, Ohio? | CREATE TABLE table_name_87 (coaster_name VARCHAR, location VARCHAR) |
SELECT rating / SHARE(18 AS –49) FROM table_name_72 WHERE episode__number = 13 | What is the rating/share for episode 13? | CREATE TABLE table_name_72 (rating VARCHAR, episode__number VARCHAR) |
SELECT COUNT(seasons) FROM table_name_77 WHERE goals = "261-338" AND lost > 111 | How many seasons have goals of 261-338 with more than 111 losses? | CREATE TABLE table_name_77 (seasons VARCHAR, goals VARCHAR, lost VARCHAR) |
SELECT cover_model FROM table_1566852_6 WHERE date = "4-05" | Who were the cover model(s) on the 4-05 issue? | CREATE TABLE table_1566852_6 (cover_model VARCHAR, date VARCHAR) |
SELECT SUM(total) FROM table_name_46 WHERE nation = "germany" AND bronze < 56 | How many total medals for germany with under 56 bronzes? | CREATE TABLE table_name_46 (total INTEGER, nation VARCHAR, bronze VARCHAR) |
SELECT SUM(rebounds) FROM table_name_56 WHERE team = "aris thessaloniki" AND games > 14 | What is the sum of Rebounds, when Team is Aris Thessaloniki, and when Games is greater than 14? | CREATE TABLE table_name_56 (rebounds INTEGER, team VARCHAR, games VARCHAR) |
SELECT res FROM table_name_62 WHERE opponent = "ryo takigawa" | Did the fighter beat Ryo Takigawa? | CREATE TABLE table_name_62 (res VARCHAR, opponent VARCHAR) |
SELECT COUNT(location) FROM table_26351260_1 WHERE institution = "Kent State University" | How many Kent State University's are there? | CREATE TABLE table_26351260_1 (location VARCHAR, institution VARCHAR) |
SELECT T2.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1 | Find the name and checking balance of the account with the lowest saving balance. | CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) |
SELECT founding_date FROM table_2538117_7 WHERE letters = "ΦΑΝ" | If the letters is φαν, what is the founding date? | CREATE TABLE table_2538117_7 (founding_date VARCHAR, letters VARCHAR) |
SELECT first_elected FROM table_name_73 WHERE result = "democratic gain" | Who was the first person elected from Democratic GAIN? | CREATE TABLE table_name_73 (first_elected VARCHAR, result VARCHAR) |
SELECT position FROM table_name_32 WHERE birthplace = "toledo, ohio" | What is the Position when the person's birthplace was toledo, ohio? | CREATE TABLE table_name_32 (position VARCHAR, birthplace VARCHAR) |
SELECT cook_pvi FROM table_19283806_4 WHERE representative = "Mike Thompson" | What is the Cook PVI for the location that has a representative of Mike Thompson? | CREATE TABLE table_19283806_4 (cook_pvi VARCHAR, representative VARCHAR) |
SELECT details FROM table_name_71 WHERE name = "john buchanan" | What are the details for John Buchanan? | CREATE TABLE table_name_71 (details VARCHAR, name VARCHAR) |
SELECT start_date FROM table_name_28 WHERE party = "pd" | Name the start date with party of pd | CREATE TABLE table_name_28 (start_date VARCHAR, party VARCHAR) |
SELECT MIN(pick) FROM table_name_8 WHERE player = "ian hazlett" | Which pick was used on Ian Hazlett? | CREATE TABLE table_name_8 (pick INTEGER, player VARCHAR) |
SELECT league AS Cup FROM table_name_13 WHERE years = "1991–present" | What is the League Cup value for 1991–present? | CREATE TABLE table_name_13 (league VARCHAR, years VARCHAR) |
SELECT MAX(total) FROM table_name_53 WHERE silver > 3 AND rank = "2" | What is the total when silver is more than 3, and rank is 2? | CREATE TABLE table_name_53 (total INTEGER, silver VARCHAR, rank VARCHAR) |
SELECT COUNT(top_10) FROM table_1012730_1 WHERE avg_start = "29.4" | How many top tens had an average start of 29.4? | CREATE TABLE table_1012730_1 (top_10 VARCHAR, avg_start VARCHAR) |
SELECT years FROM table_name_83 WHERE rank < 8 AND matches = 447 | What years did the player ranked less than 8 and had 447 matches play? | CREATE TABLE table_name_83 (years VARCHAR, rank VARCHAR, matches VARCHAR) |
SELECT skip FROM table_1644876_2 WHERE stolen_ends = 14 | Who was the skip with 14 stolen ends? | CREATE TABLE table_1644876_2 (skip VARCHAR, stolen_ends VARCHAR) |
SELECT COUNT(type_of_fare) FROM table_20803241_1 WHERE 31 - day_pass = "N/A" AND cash_fare = "N/A" | When n/a is the cash fate and n/a is the 31-day pass how many types of fare are there? | CREATE TABLE table_20803241_1 (type_of_fare VARCHAR, cash_fare VARCHAR, day_pass VARCHAR) |
SELECT laps FROM table_name_48 WHERE time_retired = "+1:08.577" | What shows for laps when the Time/Retired was +1:08.577? | CREATE TABLE table_name_48 (laps VARCHAR, time_retired VARCHAR) |
SELECT driver FROM table_name_43 WHERE grid = "22" | Which driver had a grid of 22? | CREATE TABLE table_name_43 (driver VARCHAR, grid VARCHAR) |
SELECT date FROM table_name_94 WHERE tournament = "acapulco" | what is the date for the tournament acapulco? | CREATE TABLE table_name_94 (date VARCHAR, tournament VARCHAR) |
SELECT saturday FROM table_name_68 WHERE name = "confederation" | Which Saturday has a Name of confederation? | CREATE TABLE table_name_68 (saturday VARCHAR, name VARCHAR) |
SELECT MAX(height) FROM table_name_94 WHERE position = "outside hitter" | What height is the tallest for an outside hitter? | CREATE TABLE table_name_94 (height INTEGER, position VARCHAR) |
SELECT tournament FROM table_name_86 WHERE round = "semifinal" AND surface = "hard" AND opponent = "pam casale" | Name the tournament for semifinal hard surface for opponent of pam casale | CREATE TABLE table_name_86 (tournament VARCHAR, opponent VARCHAR, round VARCHAR, surface VARCHAR) |
SELECT time_retired FROM table_name_88 WHERE grid = 23 | What is the time/retired for grid 23? | CREATE TABLE table_name_88 (time_retired VARCHAR, grid VARCHAR) |
SELECT format FROM table_name_96 WHERE frequency = "am 980" | What is the Format of AM 980? | CREATE TABLE table_name_96 (format VARCHAR, frequency VARCHAR) |
SELECT record FROM table_name_62 WHERE attendance = "24,597" | Which Record has an Attendance of 24,597? | CREATE TABLE table_name_62 (record VARCHAR, attendance VARCHAR) |
SELECT COUNT(score) FROM table_11621873_1 WHERE tournament = "Northville Long Island Classic" | How many scores were at the Northville Long Island Classic? | CREATE TABLE table_11621873_1 (score VARCHAR, tournament VARCHAR) |
SELECT COUNT(round) FROM table_name_58 WHERE player = "rell tipton" | What is the total number of rounds for the player of Rell Tipton? | CREATE TABLE table_name_58 (round VARCHAR, player VARCHAR) |
SELECT nationality FROM table_name_42 WHERE player = "adam keefe" | What is Adam Keefe's nationality? | CREATE TABLE table_name_42 (nationality VARCHAR, player VARCHAR) |
SELECT DISTINCT allergytype FROM Allergy_type | Show all allergy types. | CREATE TABLE Allergy_type (allergytype VARCHAR) |
SELECT template_id, COUNT(*) FROM Documents GROUP BY template_id | Show all template ids and number of documents using each template. | CREATE TABLE Documents (template_id VARCHAR) |
SELECT COUNT(score) FROM table_22654073_8 WHERE record = "27-9" | How many scores are associated with a record of 27-9? | CREATE TABLE table_22654073_8 (score VARCHAR, record VARCHAR) |
SELECT competition FROM table_name_6 WHERE date = "13 november 2005" | What was the competition on 13 November 2005? | CREATE TABLE table_name_6 (competition VARCHAR, date VARCHAR) |
SELECT gold FROM table_name_42 WHERE total > 4 | How many gold medals correspond with a total over 4? | CREATE TABLE table_name_42 (gold VARCHAR, total INTEGER) |
SELECT MAX(series__number) FROM table_17356106_1 WHERE directed_by = "Laura Innes" AND season__number < 7.0 | What is the maximum series number what is smaller than season 7.0 and directed by Laura Innes? | CREATE TABLE table_17356106_1 (series__number INTEGER, directed_by VARCHAR, season__number VARCHAR) |
SELECT MIN(year) FROM table_name_49 WHERE points < 45 AND team = "yamaha" AND rank = "21st" | What is the earliest year with less than 45 points for Yamaha team in 21st rank? | CREATE TABLE table_name_49 (year INTEGER, rank VARCHAR, points VARCHAR, team VARCHAR) |
SELECT AVG(money___) AS $__ FROM table_name_64 WHERE place = "t4" AND score = 71 - 66 - 74 - 67 = 278 | What is the Money of the T4 Place Player with a Score of 71-66-74-67=278? | CREATE TABLE table_name_64 (money___ INTEGER, place VARCHAR, score VARCHAR) |
SELECT home_team AS score FROM table_name_45 WHERE home_team = "essendon" | What was the score for the home team of essendon? | CREATE TABLE table_name_45 (home_team VARCHAR) |
SELECT visitor FROM table_name_96 WHERE leading_scorer = "rudy gay (18)" | What is the visitor team of the game with Rudy Gay (18) as the leading scorer? | CREATE TABLE table_name_96 (visitor VARCHAR, leading_scorer VARCHAR) |
SELECT score FROM table_19072602_1 WHERE match_no = 4 | What was the score at the end of the match number 4? | CREATE TABLE table_19072602_1 (score VARCHAR, match_no VARCHAR) |
SELECT SUM(high_estimate) FROM table_name_51 WHERE type = "mass suicide" AND location = "france" AND low_estimate > 16 | With a type of mass suicide located in France and a low estimate greater than 16, the sum of the high estimate numbers listed is what number? | CREATE TABLE table_name_51 (high_estimate INTEGER, low_estimate VARCHAR, type VARCHAR, location VARCHAR) |
SELECT venue FROM table_name_54 WHERE state = "indiana" AND host = "purdue university" | What venue is located in Indiana and hosted at Purdue University? | CREATE TABLE table_name_54 (venue VARCHAR, state VARCHAR, host VARCHAR) |
SELECT decision FROM table_name_34 WHERE home = "boston" | Who had the decision with boston at home? | CREATE TABLE table_name_34 (decision VARCHAR, home VARCHAR) |
SELECT away_team AS score FROM table_name_74 WHERE away_team = "footscray" | What is the away team's score when footscray is the away team? | CREATE TABLE table_name_74 (away_team VARCHAR) |
SELECT attendance FROM table_name_36 WHERE date = "september 21, 2003" | What is the Attendance of the game September 21, 2003? | CREATE TABLE table_name_36 (attendance VARCHAR, date VARCHAR) |
SELECT player FROM table_name_11 WHERE pba_team = "barangay ginebra kings" | Who is the player with the PBA team of Barangay Ginebra Kings? | CREATE TABLE table_name_11 (player VARCHAR, pba_team VARCHAR) |
SELECT MIN(pick) FROM table_name_15 WHERE round < 3 AND overall > 4 | What is the lowest pick with fewer than 3 rounds and more than 4 overall? | CREATE TABLE table_name_15 (pick INTEGER, round VARCHAR, overall VARCHAR) |
SELECT COUNT(*) FROM Customers WHERE NOT customer_id IN (SELECT customer_id FROM Customer_Payments) | List the number of customers that did not have any payment history. | CREATE TABLE Customers (customer_id VARCHAR); CREATE TABLE Customer_Payments (customer_id VARCHAR) |
SELECT MAX(late_1943) FROM table_1115992_1 WHERE NOT _late_1941 = "Slovenia" | Name the most late 1943 with late 194 in slovenia | CREATE TABLE table_1115992_1 (late_1943 INTEGER, _late_1941 VARCHAR) |
SELECT time FROM table_name_56 WHERE grid = 21 | What is time of manufacturer with grid 21? | CREATE TABLE table_name_56 (time VARCHAR, grid VARCHAR) |
SELECT title FROM table_name_38 WHERE directed_by = "roy dupuis" | What is the title of the episode that was directed by Roy Dupuis? | CREATE TABLE table_name_38 (title VARCHAR, directed_by VARCHAR) |
SELECT primary_conference FROM table_name_39 WHERE team_nickname = "phoenix" | What primary conference does the team nicknamed Phoenix belongs to? | CREATE TABLE table_name_39 (primary_conference VARCHAR, team_nickname VARCHAR) |
SELECT season_7 FROM table_name_89 WHERE seat > 1 AND season_3 = "w. brett wilson" | Which Season 7 has a Seat larger than 1, and a Season 3 of w. brett wilson? | CREATE TABLE table_name_89 (season_7 VARCHAR, seat VARCHAR, season_3 VARCHAR) |
SELECT actor_in_moscow, _2007 FROM table_name_44 WHERE shipwreck = "leonty ibayev" | Who was the 2007 actor from Moscow for the shipwreck of Leonty Ibayev? | CREATE TABLE table_name_44 (actor_in_moscow VARCHAR, _2007 VARCHAR, shipwreck VARCHAR) |
SELECT franchise FROM table_name_29 WHERE percentage < 0.707 AND year > 1931 AND finish = "won 1998 world series" | Which Franchise has a Percentage under 0.707, a Year larger than 1931, and the Finish was won 1998 World Series? | CREATE TABLE table_name_29 (franchise VARCHAR, finish VARCHAR, percentage VARCHAR, year VARCHAR) |
SELECT place FROM table_name_92 WHERE player = "julius boros" | What area did Julius Boros play at? | CREATE TABLE table_name_92 (place VARCHAR, player VARCHAR) |
SELECT event FROM table_name_51 WHERE nation = "ethiopia" AND performance = "14:11.15" | What's the event that had a performance of 14:11.15 by Ethiopia? | CREATE TABLE table_name_51 (event VARCHAR, nation VARCHAR, performance VARCHAR) |
SELECT partitionid FROM user_profiles WHERE name = 'Iron Man' | What is the partition id of the user named "Iron Man". | CREATE TABLE user_profiles (partitionid VARCHAR, name VARCHAR) |
SELECT karen_handel FROM table_name_78 WHERE poll_source = "insideradvantage" AND john_oxendine = "15%" | What is Karen Handel polling at in the Insideradvantage poll where John Oxendine is at 15%? | CREATE TABLE table_name_78 (karen_handel VARCHAR, poll_source VARCHAR, john_oxendine VARCHAR) |
SELECT ag FROM table_name_71 WHERE d3 & 4 = "41" | What is the AG value associated with a D3&4 of 41? | CREATE TABLE table_name_71 (ag VARCHAR, d3 VARCHAR) |
SELECT COUNT(avg_start) FROM table_2387790_2 WHERE avg_finish = "11.7" | How many years did he have an average finish of 11.7? | CREATE TABLE table_2387790_2 (avg_start VARCHAR, avg_finish VARCHAR) |
SELECT assets__billion_$_ FROM table_1682026_3 WHERE headquarters = "China" AND profits__billion_$_ = "21.2" | What are the assets (in billions) of the company headquartered in China and whose profits are 21.2 billion? | CREATE TABLE table_1682026_3 (assets__billion_$_ VARCHAR, headquarters VARCHAR, profits__billion_$_ VARCHAR) |
SELECT date FROM table_14951643_1 WHERE attendance = 40657 | what's the date with attendance being 40657 | CREATE TABLE table_14951643_1 (date VARCHAR, attendance VARCHAR) |
SELECT MAX(bike_no) FROM table_17176509_4 WHERE position = 30 | Name the max bike number of position for 30 | CREATE TABLE table_17176509_4 (bike_no INTEGER, position VARCHAR) |
SELECT date FROM table_name_89 WHERE loss = "lidle (10-8)" | What was the date of the game that had a loss of lidle (10-8)? | CREATE TABLE table_name_89 (date VARCHAR, loss VARCHAR) |
SELECT current_map FROM table_name_24 WHERE name = "debussy" | What is the current map designation for Debussy? | CREATE TABLE table_name_24 (current_map VARCHAR, name VARCHAR) |
SELECT SUM(live_births_2006) FROM table_name_94 WHERE whites_as__percentage_of_pop = "98.40%" AND tfr_2006 > 2 | What is the total number of live births in 2006 with 98.40% of the population as Whites and has more than 2 for the TFR? | CREATE TABLE table_name_94 (live_births_2006 INTEGER, whites_as__percentage_of_pop VARCHAR, tfr_2006 VARCHAR) |
SELECT date FROM table_30047613_12 WHERE streak = "W 2" | in which date the strea was w 2 | CREATE TABLE table_30047613_12 (date VARCHAR, streak VARCHAR) |
SELECT elected FROM table_name_56 WHERE district = 15 | What was the year elected in District 15? | CREATE TABLE table_name_56 (elected VARCHAR, district VARCHAR) |
SELECT MAX(laps) FROM table_name_40 WHERE grid < 22 AND rider = "ruben xaus" | Tell me the highest Laps for grid less than 22 and riderS of ruben xaus | CREATE TABLE table_name_40 (laps INTEGER, grid VARCHAR, rider VARCHAR) |
SELECT incumbent FROM table_19753079_41 WHERE district = "Pennsylvania 3" | When pennsylvania 3 is the district who is the incumbent? | CREATE TABLE table_19753079_41 (incumbent VARCHAR, district VARCHAR) |
SELECT 1 AS st_leg FROM table_name_21 WHERE team_2 = "psv eindhoven" | What is the 1st leg of Team 2 PSV Eindhoven? | CREATE TABLE table_name_21 (team_2 VARCHAR) |
SELECT year_10_6th_quad FROM table_name_7 WHERE open_2nd_viii = "acgs" AND year_11_2nd_viii = "nc" | What is the Year 10 6th Quads for the Open 2nd VIII of ACGS and a Year 11 2nd VIII NC? | CREATE TABLE table_name_7 (year_10_6th_quad VARCHAR, open_2nd_viii VARCHAR, year_11_2nd_viii VARCHAR) |
SELECT team FROM table_name_57 WHERE high_assists = "tony parker (10)" AND high_rebounds = "kurt thomas (12)" | What team has tony parker (10) as the high assists, kurt thomas (12) as the high rebounds? | CREATE TABLE table_name_57 (team VARCHAR, high_assists VARCHAR, high_rebounds VARCHAR) |
SELECT MAX(town_ships) FROM table_19457_1 WHERE village_groups = 376 | How many townships are there in the region with 376 village groups? | CREATE TABLE table_19457_1 (town_ships INTEGER, village_groups VARCHAR) |
SELECT team FROM table_name_9 WHERE kit_manufacturer = "pony" AND captain = "gary mabbutt" | What team has Pony as the kit manufacturer and Gary Mabbutt as the captain? | CREATE TABLE table_name_9 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR) |
SELECT mlb_draft FROM table_11677100_8 WHERE hometown = "Apopka, FL" | What pick was the player from Apopka, FL in the 2002 MLB draft | CREATE TABLE table_11677100_8 (mlb_draft VARCHAR, hometown VARCHAR) |
SELECT date FROM table_name_16 WHERE visiting_team = "pittsburgh steelers" | Tell me the date for pittsburgh steelers | CREATE TABLE table_name_16 (date VARCHAR, visiting_team VARCHAR) |
SELECT score FROM table_name_70 WHERE opponent_in_the_final = "martin spottl" | What is the Score of the Tournament with Opponent in the final of Martin Spottl? | CREATE TABLE table_name_70 (score VARCHAR, opponent_in_the_final VARCHAR) |
SELECT time FROM table_name_26 WHERE athlete = "law hiu fung" | What was Law Hiu Fung's time? | CREATE TABLE table_name_26 (time VARCHAR, athlete VARCHAR) |
SELECT record FROM table_name_79 WHERE opponent = "pittsburgh pirates" AND date = "may 5" | Which Record has an Opponent of pittsburgh pirates, and a Date of may 5? | CREATE TABLE table_name_79 (record VARCHAR, opponent VARCHAR, date VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.