answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT MIN(uefa_champions_league) FROM table_name_9 WHERE la_liga = 17 AND copa_del_rey > 0 | Which UEFA Champions League has a La Liga of 17, and a Copa del Rey larger than 0? | CREATE TABLE table_name_9 (uefa_champions_league INTEGER, la_liga VARCHAR, copa_del_rey VARCHAR) |
SELECT location FROM table_name_42 WHERE aircraft = "f-27-600rf" AND tail_number = "6o-saz" | What was the location that had an accident by the F-27-600RF aircraft with tail number 6O-SAZ? | CREATE TABLE table_name_42 (location VARCHAR, aircraft VARCHAR, tail_number VARCHAR) |
SELECT county FROM table_name_61 WHERE city = "changhua" | Which County has a City of changhua? | CREATE TABLE table_name_61 (county VARCHAR, city VARCHAR) |
SELECT score FROM table_name_44 WHERE date = "june 22" AND attendance = 0 | What was the score for the June 22 game with attendance 0? | CREATE TABLE table_name_44 (score VARCHAR, date VARCHAR, attendance VARCHAR) |
SELECT name FROM channel ORDER BY rating_in_percent DESC | List all channel names ordered by their rating in percent from big to small. | CREATE TABLE channel (name VARCHAR, rating_in_percent VARCHAR) |
SELECT round FROM table_name_42 WHERE opponent = "andre roberts" | What is the round when the opponent is Andre Roberts? | CREATE TABLE table_name_42 (round VARCHAR, opponent VARCHAR) |
SELECT winning_song FROM table_1646960_3 WHERE debut_album = "Mike" | What is the winning song for the artist with a debut album "mike"? | CREATE TABLE table_1646960_3 (winning_song VARCHAR, debut_album VARCHAR) |
SELECT venue FROM table_name_27 WHERE year < 2005 AND position = "10th (sf)" | What Venue is listed that has a Year smaller than 2005 and a Position of 10th (sf)? | CREATE TABLE table_name_27 (venue VARCHAR, year VARCHAR, position VARCHAR) |
SELECT MAX(position) FROM table_name_66 WHERE pilot = "mario kiessling" | What is the highest Position, when Pilot is "Mario Kiessling"? | CREATE TABLE table_name_66 (position INTEGER, pilot VARCHAR) |
SELECT MAX(overall) FROM table_name_55 WHERE position = "k" AND pick < 28 | If the pick is under 28 and the position is k, what's the highest Overall pick? | CREATE TABLE table_name_55 (overall INTEGER, position VARCHAR, pick VARCHAR) |
SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T2.balance > T3.balance | Find the name of accounts whose checking balance is higher than corresponding saving balance. | CREATE TABLE savings (custid VARCHAR, balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (custid VARCHAR, balance INTEGER) |
SELECT runs FROM table_name_13 WHERE opponent = "new south wales" AND season = "2002/03" | How many runs did they get against new south wales in 2002/03? | CREATE TABLE table_name_13 (runs VARCHAR, opponent VARCHAR, season VARCHAR) |
SELECT postcodedistrict FROM table_name_76 WHERE location = "eden park" | What is the name of the Post code district that is in Eden Park? | CREATE TABLE table_name_76 (postcodedistrict VARCHAR, location VARCHAR) |
SELECT nba_draft FROM table_name_48 WHERE college = "kansas" | What is the NBA draft result of the player from the College of Kansas? | CREATE TABLE table_name_48 (nba_draft VARCHAR, college VARCHAR) |
SELECT tier_1_ratio FROM table_22368322_2 WHERE institution = "Irish Life and Permanent" | Name the tier 1 ratio for irish life and permanent | CREATE TABLE table_22368322_2 (tier_1_ratio VARCHAR, institution VARCHAR) |
SELECT record FROM table_name_14 WHERE event = "ufc 115" | What is his record at ufc 115? | CREATE TABLE table_name_14 (record VARCHAR, event VARCHAR) |
SELECT AVG(b_score) FROM table_name_85 WHERE total = 16.325 AND a_score > 7.3 | What is the B score for the person with a total of 16.325 and an A score of more than 7.3? | CREATE TABLE table_name_85 (b_score INTEGER, total VARCHAR, a_score VARCHAR) |
SELECT away_team AS score FROM table_name_55 WHERE crowd > 6 OFFSET 872 | What did the away team score when the crowd was larger than 6,872? | CREATE TABLE table_name_55 (away_team VARCHAR, crowd INTEGER) |
SELECT player FROM table_name_16 WHERE no_s_ = "12" AND school_club_team_country = "oregon" | Which player from Oregon used the number 12? | CREATE TABLE table_name_16 (player VARCHAR, no_s_ VARCHAR, school_club_team_country VARCHAR) |
SELECT MIN(others_number) FROM table_name_12 WHERE others_percentage = "1.9%" AND bush_number < 160 OFFSET 390 | How many votes went to other candidates in the county that gave 1.9% votes to them, and 160,390 total votes to Bush? | CREATE TABLE table_name_12 (others_number INTEGER, others_percentage VARCHAR, bush_number VARCHAR) |
SELECT nat FROM table_name_24 WHERE name = "roma" | What nation had a ship named Roma? | CREATE TABLE table_name_24 (nat VARCHAR, name VARCHAR) |
SELECT lost FROM table_name_77 WHERE try_bonus = "try bonus" | What is the Lost with a Try Bonus that is try bonus? | CREATE TABLE table_name_77 (lost VARCHAR, try_bonus VARCHAR) |
SELECT position FROM table_name_93 WHERE player = "sue bird" | What is Sue Bird's position? | CREATE TABLE table_name_93 (position VARCHAR, player VARCHAR) |
SELECT firefox FROM table_name_97 WHERE safari = "1.9%" | What is the firefox value with a 1.9% safari? | CREATE TABLE table_name_97 (firefox VARCHAR, safari VARCHAR) |
SELECT title FROM table_name_14 WHERE year < 2001 AND award = "independent spirit awards" | Which Title has a Year smaller than 2001, and an Award of independent spirit awards? | CREATE TABLE table_name_14 (title VARCHAR, year VARCHAR, award VARCHAR) |
SELECT attendance_average FROM table_name_68 WHERE reg_season = "2nd aisa, 24-16" | What is the average attendance of the team that had a regular season result of 2nd aisa, 24-16? | CREATE TABLE table_name_68 (attendance_average VARCHAR, reg_season VARCHAR) |
SELECT MAX(pick) FROM table_2840500_8 WHERE player = "Evgeny Korolev" | Name the most pick for evgeny korolev | CREATE TABLE table_2840500_8 (pick INTEGER, player VARCHAR) |
SELECT AVG(1970) FROM table_name_12 WHERE region = "east europe (7 economies)" AND 2000 > 2 | What is the average value for 1970, when the Region is East Europe (7 Economies), and when 2000 has a value greater than 2? | CREATE TABLE table_name_12 (region VARCHAR) |
SELECT SUM(floors) FROM table_name_92 WHERE name = "blue diamond" | How many floors does the Blue Diamond have? | CREATE TABLE table_name_92 (floors INTEGER, name VARCHAR) |
SELECT date FROM table_name_47 WHERE team = "@ new orleans" | What date has @ new orleans as the team? | CREATE TABLE table_name_47 (date VARCHAR, team VARCHAR) |
SELECT general_classification FROM table_29332810_14 WHERE winner = "Ben Swift" AND young_rider_classification = "Cameron Meyer" | Who is listed under the general classifcation where Ben Swift won and Cameron Meyer was listed under the young rider? | CREATE TABLE table_29332810_14 (general_classification VARCHAR, winner VARCHAR, young_rider_classification VARCHAR) |
SELECT last_update FROM table_name_81 WHERE name = "jamar jackson" | for the name of jamar jackson what is the last update? | CREATE TABLE table_name_81 (last_update VARCHAR, name VARCHAR) |
SELECT elector FROM table_name_86 WHERE cardinalatial_title = "priest of s. marco" | What is listed for the Elector that also has the Cardinalatial title of Priest of S. Marco? | CREATE TABLE table_name_86 (elector VARCHAR, cardinalatial_title VARCHAR) |
SELECT african_spoonbill FROM table_20042805_2 WHERE ostrich = "Brown-hooded Kingfisher" | What is the African Spoonbill when the Ostrich is Brown-hooded Kingfisher? | CREATE TABLE table_20042805_2 (african_spoonbill VARCHAR, ostrich VARCHAR) |
SELECT time FROM table_name_90 WHERE opponent = "martin kampmann" | Tell me the time for martin kampmann | CREATE TABLE table_name_90 (time VARCHAR, opponent VARCHAR) |
SELECT MAX(wkts) FROM table_name_58 WHERE ovrs < 28.5 AND player = "adam voges" | If Adam Voges had less than 28.5 Ovrs, what are his highest Wkts? | CREATE TABLE table_name_58 (wkts INTEGER, ovrs VARCHAR, player VARCHAR) |
SELECT location FROM table_22165661_3 WHERE score = "2-1" | What is the location when 2-1 is the score? | CREATE TABLE table_22165661_3 (location VARCHAR, score VARCHAR) |
SELECT date FROM table_name_14 WHERE home_team = "south melbourne" | What was the date when South Melbourne was the home team? | CREATE TABLE table_name_14 (date VARCHAR, home_team VARCHAR) |
SELECT start FROM table_name_72 WHERE qual = "141.033" | What place did Jack McGrath start in when he received a qual score of 141.033? | CREATE TABLE table_name_72 (start VARCHAR, qual VARCHAR) |
SELECT COUNT(school) FROM table_17429402_7 WHERE last_occ_championship = "2006" | How many schools won their last occ championship in 2006? | CREATE TABLE table_17429402_7 (school VARCHAR, last_occ_championship VARCHAR) |
SELECT COUNT(week) FROM table_name_17 WHERE date = "december 18, 1960" | What is the Week number on December 18, 1960? | CREATE TABLE table_name_17 (week VARCHAR, date VARCHAR) |
SELECT team FROM table_22669044_8 WHERE score = "W 115–104 (OT)" | Name the team for w 115–104 (ot) | CREATE TABLE table_22669044_8 (team VARCHAR, score VARCHAR) |
SELECT hometown FROM table_name_40 WHERE name = "hasan shah" | What is Hasan Shah's hometown? | CREATE TABLE table_name_40 (hometown VARCHAR, name VARCHAR) |
SELECT location_attendance FROM table_name_64 WHERE high_assists = "rafer alston (7)" AND high_rebounds = "yao ming (13)" | What is Location Attendance, when High Assists is "Rafer Alston (7)", and when High Rebounds is "Yao Ming (13)"? | CREATE TABLE table_name_64 (location_attendance VARCHAR, high_assists VARCHAR, high_rebounds VARCHAR) |
SELECT title FROM table_27987623_1 WHERE us_viewers__in_million_ = "5.03" | What was the title of the episode viewed by 5.03 million viewers? | CREATE TABLE table_27987623_1 (title VARCHAR, us_viewers__in_million_ VARCHAR) |
SELECT subdivision_name___ru____bgn_pcgn_ FROM table_290017_1 WHERE code = "BY-HR" | What subdivision names (RU) have a code of by-hr? | CREATE TABLE table_290017_1 (subdivision_name___ru____bgn_pcgn_ VARCHAR, code VARCHAR) |
SELECT MAX(year) FROM table_name_55 WHERE association = "american music awards" AND category = "favorite rap/hip-hop new artist" | Who won the most recent favorite rap/hip-hop new artist at the American music awards? | CREATE TABLE table_name_55 (year INTEGER, association VARCHAR, category VARCHAR) |
SELECT architecture FROM table_name_15 WHERE vehicle_name = "saturn vue" | What type of architecture does the Saturn Vue have? | CREATE TABLE table_name_15 (architecture VARCHAR, vehicle_name VARCHAR) |
SELECT fa_cup_apps FROM table_name_90 WHERE total_goals > 6 AND fa_cup_goals < 1 | Which FA Cup Apps have Total Goals larger than 6, and an FA Cup Goals smaller than 1? | CREATE TABLE table_name_90 (fa_cup_apps VARCHAR, total_goals VARCHAR, fa_cup_goals VARCHAR) |
SELECT name FROM table_14962287_2 WHERE league = 142 | What name is associated with League 142? | CREATE TABLE table_14962287_2 (name VARCHAR, league VARCHAR) |
SELECT birth FROM table_name_91 WHERE name = "anne of lorraine" | When was anne of lorraine born? | CREATE TABLE table_name_91 (birth VARCHAR, name VARCHAR) |
SELECT AVG(year) FROM table_name_84 WHERE date = "december 26" | What is the average year of the games with the date December 26? | CREATE TABLE table_name_84 (year INTEGER, date VARCHAR) |
SELECT d_43_√ FROM table_name_58 WHERE d_42_√ = "d 42 √" | What is the value of D 43 √ when the value of D 42 √ is d 42 √? | CREATE TABLE table_name_58 (d_43_√ VARCHAR, d_42_√ VARCHAR) |
SELECT COUNT(germans) FROM table_2374338_2 WHERE slovaks = "0.11%" | How many values for Germans occurs when value for Slovaks is 0.11%? | CREATE TABLE table_2374338_2 (germans VARCHAR, slovaks VARCHAR) |
SELECT COUNT(endowment) FROM table_12896884_1 WHERE football_stadium = "Mosaic Stadium" | How many endowments does Mosaic Stadium have? | CREATE TABLE table_12896884_1 (endowment VARCHAR, football_stadium VARCHAR) |
SELECT outcome FROM table_name_83 WHERE opponent = "lindsay lee-waters" | Which Outcome has a Opponent of lindsay lee-waters? | CREATE TABLE table_name_83 (outcome VARCHAR, opponent VARCHAR) |
SELECT COUNT(geo_id) FROM table_18600760_19 WHERE latitude = "48.578664" | how many geo id with 48.578664 are | CREATE TABLE table_18600760_19 (geo_id VARCHAR, latitude VARCHAR) |
SELECT name FROM table_name_17 WHERE best = "1:45.361" | What is the name for the best of 1:45.361? | CREATE TABLE table_name_17 (name VARCHAR, best VARCHAR) |
SELECT city_of_license FROM table_name_15 WHERE frequency = "90.1 fm" | What is the city of license for the frequency 90.1 FM? | CREATE TABLE table_name_15 (city_of_license VARCHAR, frequency VARCHAR) |
SELECT proto_germanic_origin FROM table_name_2 WHERE sound__phoneme_ = "/[[|j]]/" | What is the Proto-Germanic origin of the phoneme /[[|j]]/? | CREATE TABLE table_name_2 (proto_germanic_origin VARCHAR, sound__phoneme_ VARCHAR) |
SELECT district FROM table_1342198_25 WHERE party = "Republican" | What is the district with Republican party in place? | CREATE TABLE table_1342198_25 (district VARCHAR, party VARCHAR) |
SELECT date FROM table_name_33 WHERE partner = "daniella dominikovic" | Which Date has a Partner of daniella dominikovic? | CREATE TABLE table_name_33 (date VARCHAR, partner VARCHAR) |
SELECT location FROM table_name_59 WHERE college_name = "kanyakumari government medical college" | What is the location of the kanyakumari government medical college? | CREATE TABLE table_name_59 (location VARCHAR, college_name VARCHAR) |
SELECT AVG(losses) FROM table_name_24 WHERE wins = 3 | what is the average losses when the wins is 3? | CREATE TABLE table_name_24 (losses INTEGER, wins VARCHAR) |
SELECT club FROM table_name_33 WHERE goals_for < 61 AND goals_against = 55 | What club has less than 61 goals for and 55 goals against? | CREATE TABLE table_name_33 (club VARCHAR, goals_for VARCHAR, goals_against VARCHAR) |
SELECT margin_of_victory FROM table_name_66 WHERE winning_score = –9(69 - 72 - 68 - 70 = 279) | When the Winning score was –9 (69-72-68-70=279), what was the Margin of victory? | CREATE TABLE table_name_66 (margin_of_victory VARCHAR, winning_score VARCHAR) |
SELECT attendance FROM table_name_10 WHERE away_team = "solihull moors" | What was the attendance for the away team Solihull Moors? | CREATE TABLE table_name_10 (attendance VARCHAR, away_team VARCHAR) |
SELECT result FROM table_name_74 WHERE week = "wild card" | What was the result on the wild card? | CREATE TABLE table_name_74 (result VARCHAR, week VARCHAR) |
SELECT unit FROM table_name_65 WHERE authors = "dalla vecchia, wild, & reitner" | Which Unit has Authors of dalla vecchia, wild, & reitner? | CREATE TABLE table_name_65 (unit VARCHAR, authors VARCHAR) |
SELECT publisher FROM table_name_4 WHERE title = "far cry" | Which publisher has Far Cry as the title? | CREATE TABLE table_name_4 (publisher VARCHAR, title VARCHAR) |
SELECT player FROM table_name_10 WHERE score = 72 - 73 - 67 - 72 = 284 | What is the name of the player when the Score was 72-73-67-72=284? | CREATE TABLE table_name_10 (player VARCHAR, score VARCHAR) |
SELECT club FROM table_name_4 WHERE capacity = "25138" | Which club has a capacity of 25138? | CREATE TABLE table_name_4 (club VARCHAR, capacity VARCHAR) |
SELECT tournament FROM table_name_47 WHERE 2003 = "a" | What tournament has a 2003 of a? | CREATE TABLE table_name_47 (tournament VARCHAR) |
SELECT traffic_direction FROM table_name_8 WHERE west = "2nd avenue" AND _number_of_lanes = "1" AND street = "64th street" | What is the traffic direction of 64th street with 2nd avenue to the west and 1 lane? | CREATE TABLE table_name_8 (traffic_direction VARCHAR, street VARCHAR, west VARCHAR, _number_of_lanes VARCHAR) |
SELECT AVG(year) FROM table_name_22 WHERE tournament = "world cross country championships" AND venue = "st etienne, france" AND extra = "team competition" AND result = "8th" | What is the average year that anna thompson had an 8th place result in team competition at the world cross country championships in st etienne, france with | CREATE TABLE table_name_22 (year INTEGER, result VARCHAR, extra VARCHAR, tournament VARCHAR, venue VARCHAR) |
SELECT date_of_exit FROM table_1160304_2 WHERE chart = "Dutch Albums Top 100" | What is the exit date for the Dutch Albums Top 100 Chart? | CREATE TABLE table_1160304_2 (date_of_exit VARCHAR, chart VARCHAR) |
SELECT MIN(first_elected) FROM table_1341663_14 WHERE incumbent = "Frank Annunzio" | What year was Frank Annunzio elected | CREATE TABLE table_1341663_14 (first_elected INTEGER, incumbent VARCHAR) |
SELECT tv_station FROM table_name_17 WHERE romaji_title = "kazoku~tsuma no fuzai・otto no sonzai~" | what is the tv station when the romaji title is kazoku~tsuma no fuzai・otto no sonzai~? | CREATE TABLE table_name_17 (tv_station VARCHAR, romaji_title VARCHAR) |
SELECT manager FROM table_name_92 WHERE captain = "dean whitehead" | Who is Dean Whitehead's manager? | CREATE TABLE table_name_92 (manager VARCHAR, captain VARCHAR) |
SELECT date FROM table_name_92 WHERE time = "18:00" AND set_1 = "22–25" | When was there a Time of 18:00, and a Set 1 of 22–25? | CREATE TABLE table_name_92 (date VARCHAR, time VARCHAR, set_1 VARCHAR) |
SELECT time FROM table_name_32 WHERE composer_s_ = "kyriakos papadopoulos" | What is Time, when Composer(s) is "Kyriakos Papadopoulos"? | CREATE TABLE table_name_32 (time VARCHAR, composer_s_ VARCHAR) |
SELECT MIN(game) FROM table_name_66 WHERE date = "february 10" | What is the lowest game on February 10? | CREATE TABLE table_name_66 (game INTEGER, date VARCHAR) |
SELECT owner FROM table_name_98 WHERE built = "2009-2011" | Who is the owner that built in 2009-2011? | CREATE TABLE table_name_98 (owner VARCHAR, built VARCHAR) |
SELECT member FROM table_name_16 WHERE electorate = "cook" | Which member has Cook as the electorate? | CREATE TABLE table_name_16 (member VARCHAR, electorate VARCHAR) |
SELECT COUNT(party) FROM table_1341568_48 WHERE incumbent = "Tom Foley" | How many parties is Tom Foley a member of? | CREATE TABLE table_1341568_48 (party VARCHAR, incumbent VARCHAR) |
SELECT authors FROM table_name_90 WHERE novelty = "gen nov" AND location = "south africa" AND name = "criocephalosaurus" | What is Authors, when Novelty is Gen Nov, when Location is South Africa, and when Name is Criocephalosaurus? | CREATE TABLE table_name_90 (authors VARCHAR, name VARCHAR, novelty VARCHAR, location VARCHAR) |
SELECT dissolved FROM table_name_95 WHERE elected = "1553" | Who was dissolved that was elected in 1553? | CREATE TABLE table_name_95 (dissolved VARCHAR, elected VARCHAR) |
SELECT interview_subject FROM table_1566852_6 WHERE cover_model = "Bai Ling" | What were the interview subjects on those occasions where Bai Ling was the cover model? | CREATE TABLE table_1566852_6 (interview_subject VARCHAR, cover_model VARCHAR) |
SELECT result FROM table_name_47 WHERE category = "album of the year" AND year = 2011 | What is the Result with a Category of album of the year in a Year that is 2011? | CREATE TABLE table_name_47 (result VARCHAR, category VARCHAR, year VARCHAR) |
SELECT MIN(number_of_seasons_in_top_division) FROM table_name_46 WHERE position_in_2012_13 = "001 1st" | Name the least number of seasons in top division with position in 2012-13 of 001 1st | CREATE TABLE table_name_46 (number_of_seasons_in_top_division INTEGER, position_in_2012_13 VARCHAR) |
SELECT skip FROM table_name_69 WHERE lead = "dominik greindl" | Who has the role of skip when the lead is Dominik Greindl? | CREATE TABLE table_name_69 (skip VARCHAR, lead VARCHAR) |
SELECT city FROM table_name_25 WHERE event = "ept german open" | The EPT German Open took place in what city? | CREATE TABLE table_name_25 (city VARCHAR, event VARCHAR) |
SELECT league FROM table_name_93 WHERE season = "1955-56" | What is the league for season 1955-56? | CREATE TABLE table_name_93 (league VARCHAR, season VARCHAR) |
SELECT type FROM table_256286_8 WHERE description = "Department of Industry and Public Works Amendment" | What was the type of ballot measure with the description of Department of Industry and Public Works Amendment? | CREATE TABLE table_256286_8 (type VARCHAR, description VARCHAR) |
SELECT COUNT(celebrity) FROM table_14345690_4 WHERE famous_for = "Athlete" | Name the number of celebrity for athlete | CREATE TABLE table_14345690_4 (celebrity VARCHAR, famous_for VARCHAR) |
SELECT SUM(b_score) FROM table_name_37 WHERE a_score = 6.6 AND total = 15.6 | what is the sum of the b score when the a score is 6.6 and the total is 15.6? | CREATE TABLE table_name_37 (b_score INTEGER, a_score VARCHAR, total VARCHAR) |
SELECT championship FROM table_26202788_7 WHERE opponent_in_the_final = "Marat Safin" | Marat Safin is the opponent in the final in what championship? | CREATE TABLE table_26202788_7 (championship VARCHAR, opponent_in_the_final VARCHAR) |
SELECT COUNT(team) FROM table_14288212_1 WHERE points_for = 38 | How many teams scored exactly 38 points | CREATE TABLE table_14288212_1 (team VARCHAR, points_for VARCHAR) |
SELECT television_service FROM table_name_27 WHERE package_option = "qualsiasi" | Which television service has a qualsiasi package/option? | CREATE TABLE table_name_27 (television_service VARCHAR, package_option VARCHAR) |
SELECT driver FROM table_name_80 WHERE time_retired = "+ 10 laps" AND points > 6 | What driver had a time/retired of + 10 laps and more than 6 points? | CREATE TABLE table_name_80 (driver VARCHAR, time_retired VARCHAR, points VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.